Tag | MVC Posts

Check out John Papa’s blog for much more detail and camera work… I’m just doing highlights. Web… Each of the tools can be used independently or integrate with each other or open source tools Expression Web 3: Standards based web authoring, Multi-laguage, Secure FTP, CSS Diagnostics, SuperPreview Erik Saltwell demoing Expression Web 3 SuperPreview – split screen or full, and can pick the browser to view it in, also can side-by-side the various browsers, or layering them one over the other to see problems. ...
ASP.NET MVC is released today. The RC1 and RC2 released were out over last month and today, at MIX, we will be unveiling ASP.NET MVC 1.0 RTW version that can be downloaded from www.asp.net/mvc There are over 40 videos resource tutorials available already and these provide close to 200 hours of learning on ASP.NET MVC that help you kick start with ASP.NET MVC based web development. MVC would be supported out of the box, in addition to the Web Form model of development in Visual Studio 2010 and that ...
The goodies from Mix are starting to appear early today. First there was the ASP.NET MVC 1.0 release, now the Twitter feed is showing that the Silverlight 3 SDK Beta 1 is available for download as well. I think this is going to be one of those days mimicing the Showcase Showdown on Price is Right where they keep bringing the prizes out, getting better and better until the new car…which of course will be SL 3. D ...
I was talking with a colleague yesterday about the free MVC eBook that was released, and he noticed that the book was using MVC 1.0 and not the release candidates. We figured it was because the full book that the eBook is part of was going to be released in May sometimes, which version 1.0 would be released sometime before then. Well it looks like “sometime” was yesterday. You can hit this link to download ASP.NET MVC 1.0! According to this guy, the fixes from RC2 to 1.0 relate to the version of ...
A while back, I blogged about using the Enterprise Library Validation Application Block (VAB) with ASP.NET MVC. As MVC has matured as a framework, this scenario has becoming simpler. In early releases of MVC, I implemented the execution of the VAB validation in the controller methods. However, I now prefer to put that logic in the binders themselves. In earlier versions of the framework, the model binders that came out of the box dealt well with simple objects but if you had more complex View Models ...
In this issue: Bob Thomson(2), Colin M, Expression Blend and Design Blog, Alex Knight, Gavin Wignall, Chris Cavanagh(2), Rishi, and Tess Fernandez. Shoutout: Jeff Weber announed Introducing Krashlander (A Silverlight Game) ... this looks like it will be a fun game. From SilverlightCream.com: colaab – View large images instantly with DeepZoom integration Bob Thomson at colaab has been having way too much fun with DeepZoom and Silverlight. You can still get a free account... check out what they've ...

On April 1 I will be presenting ASP.NET MVC at Microsoft Tech Days.  This is a totally free 24-hour virtual event.  You can register right now at: http://www.msfttechdays.com. Hope to see you there!

Here's what's happening: Attendees: 428 Sessions: 73 Speakers: 49 Tracks: 15 Sessions: ASP.NET Make your Data Dance with ASP.NET Dynamic Databy Shawn Weisfeld + Show Description ASP.NET Dynamic Data is a framework that lets you create data-driven ASP.NET Web applications easily. It does this by automatically discovering data-model metadata at run time and deriving UI behavior from it. A scaffolding framework provides a functional Web site for viewing and editing data. You can easily customize the ...
In this issue: Martin Duffy, Nihkil Kothari, Rishi, Nigel Sampson, Bryant Likes, Ofir Shemesh, Jeff Wilcox, Swiss MSDN Team Blog, Yasser Makram, Lee, and David Anson. Shoutouts: Mike Snow has made his book public: Silverlight Tip of the Day #98 – Silverlight 3 Game Programming Book ... very cool, Mike... I look forward to that! John Papa the Silverlight data/webservice guru is learning guitar and has combined that experience with Silverlight: Silverlight Chord Finder. Since I paid for a lot of my ...
I want to mention SharpArhitecture project. This represents a solid architectural foundation for rapidly building maintainable web applications leveraging the ASP.NET MVC framework with NHibernate. What I want here is to show some advantages/disadvantages and the points of interested that I faced up. So when analysing the possibilities that this code offers, I discovered that : 1) NHibernate validation is not suitable for a series of scenarious that mostly enterprise level applications require. Let's ...
I have been developing web sites for a little over a decade now, and I have to tell you, I missed the boat. A lot of that time was wasted. I spent most of my career developing crappy code that was doomed to cause some poor sap some real heartache. To those who have had to support my crappy legacy code, I profusely apologize. You know who you are, and you undoubtedly know who I am. You've probably spent many hours rewriting my leftovers and trying to spin gold out of code-dung. Again, I apologize. ...
ASP.NET MVC RC2 pojawil sie 3 marca i jest juz prawdopodobnie ostatnim release'em przed wersja RTM. RC2 w przeciwienstwie do RC1 nie wnosi duzych zmian i skierowany jest przede wszystkim do hostingowców, choc by zdeployowac aplikacje i tak trzeba zrobic update referencji i/lub binariów. Ale skupiajac sie na zmianach: (tylko release note) Od tej wersji ASP.NET SP1 jest wymagane. Oznacza to po prostu, ze MVC nie wychdzi juz w paczce razem z System.Web.Routing, ani System.Web.Abstractions. I moze sie ...

 

This is a great tutorial by vivek_iit. 

ASP.NET MVC Framework Tutorial

Routing Library resides in the System.Web.Routing Namespace of the .NET Framework 3.5, which provides us the flexibility to use URLs that has no mapping to a physical file. This means ASP.NET MVC framework provides flexible URL mapping engine and enables us to write SEO (Search Engine Optimization) friendly URLs with very little effort. No one can deny the importance of SEO, to be successful in search based marketing. What better way to analyze a business than from what customers are looking for ...
In this issue: Maurice de Beijer, Jesse Liberty(2), Corey Schuman, Mike Snow, Tim Heuer, and Radenko Zec. Shoutouts: Andras Velvart sent me a link to a stunning commercial application using Silverlight and DeepZoom... don't take my word for it, try it out: Zoomery. If you're interested in 3D in Silverlight, check out what Telerik has going on: 3D in Silverlight from Telerik Dan Wahlin has his My Latest Silverlight Articles post up. From SilverlightCream.com: Using Ninject with Silverlight to make ...
In this issue: Shawn Wildermuth and Andrej Tozon. Shoutouts: Chad Campbell does a SL2 review and discusses SL3: Silverlight 2 in Review and Silverlight 3 (yes Three) in Action Discussion Adam Kinney remarks that MIX09 10k has come to a close, now its time to vote From SilverlightCream.com: Building AgiliTrain: Part 2 - MVC in Action Shawn Wildermuth has part 2 of his MVC activity detailed on his site... definitely one to read! Design a Vista-like account display picture for Silverlight application ...
Over my last handful of posts, Building a Simple Photo Gallery in ASP.NET MVC Framework, Returning Thumbnails With the MVC Framework and Adding Lighbox.js to the Simple Photo Gallery I've built a simple photo gallery on the ASP.NET MVC framework. In this post, we're going to continue that project by adding paging rather than showing all of the pictures on the one page. In this post, we leverage LINQ to select the data in the model that we want to show and implement paging. Read the full post at Adding ...
In my previous two posts, Building a Simple Photo Gallery in ASP.NET MVC Framework and Returning Thumbnails With the MVC Framework, I built a simple photo gallery on the ASP.NET MVC framework. In this post we are going to start making this a little prettier. To start with, we are going to leverage an JavaScript project called Lightbox.js To read more about this and the rest of the project, see my post at Adding Lighbox.js to the Simple Photo Gallery ...

It turns out the code sample that was posted online for my MVC Visual Studio Magazine article was an older version (based on a previous CTP). The latest version based on the MVC beta can be found here.  Let me know if any problems.

In my last post, we put together a quick and simple photo gallery. This post will be building on that. Depending on the size of your photo, however, it didn't have the worlds greatest user experience. I'll be playing with the CSS, JavaScript and a ton more over time. Today, however, I'm going to be just returning a thumbnail rather than the full picture to show in the view. I don't want to have to physically create each of the thumbnails so we'll generate those dynamically on the fly. Read the full ...
I decided to create a simple photo gallery in the ASP.NET MVC framework. The fun part is that this level of application is really the new "Hello World". It takes less time to build than the "Hello World" did back in the day. In this post, I'll walk you through the process of creating this simple photo gallery with the MVC framework. You can see the full walk-through at Building a Simple Photo Gallery in ASP.NET MVC Framework ...
Presentation models, or screen-bound DTOs, are are lightweight classes tailored to the needs of the screens on which they are used. The obvious benefit is that they remove some of the work required to translate between domain model objects and user interface elements. Work that is usually performed by the view and controller in an MVC context. A secondary benefit of presentation models is that they explicity define what can be bound to domain model objects. Automatic binding such as Asp.net MVC's ...
In my last post I had discussed about the key classes/interfaces involved in the ASP.NET MVC routing process.In this post we will develop sample route handler.To implement a route handler we need to implement the System.Web.Routing.IRouteHa... interface.The GetHttpHandler method of this interface should create the instance of IHttpHandler which in turn has to create the controller instance.Let us concentrate on this IHttpHandler implementation first.Take a close look at the code below: public class ...
While requesting some resource from an web server we normally type an URL like www.xyz.com/default.aspx?ops=1 in the browser address bar.In this case the URL maps directly to a file residing in the server.Now say we have an URL like www.xyz.com/default/1 .In this case the web application has to be intelligent enough to parse the URL and find out which resource or request handler it will map to.This technique of parsing URL patterns and deciding on the requested resource is known as URL Routing. Along ...
As ScottGu mentioned in his post, ASP.NET MVC supports error handling. But, as always, you need to take care of some (1) steps before it actually works completely. In this post, I will show how to enable all the error handling, so that when an exception occurs in code, the user gets a nice screen. You can start by creating a new ASP.NET MVC project. Than open web.config and change the following item: <configuration> <customErrors mode="On"> </customErrors> </configuration> ...
We have a big pile of speaker submissions that the track chairs are sorting through and are in the process of getting posted and organized on the website. Subject to change the track line up is: Intro to .NET - John Dunagan / Max Trinidad Web Development – Jonas Stawski .net Clients / Language Features – Vishal Shukla SQL - Scott Klein BI - Scott Klein Visual Studio Team System - Oleg Sych/Randy Patterson Silverlight / Cloud computing / onlin- Bill Reiss / Joe Healy Architecture / Agile - Jeff Barnes ...
In an ASP.NET MVC application the request URI is of the following format {controller}/{action}/{id}.... on the controller name in the URI the ControllerFactory instantiates the appropriate Controller class and then based on the action in the URI the corresponding action method in the Controller is executed.Action method then dispatches the right view and by default the location of the views are in the path ~/Views/<Controller>/... how can we change this default behavior ...
In this post I will be discussing about the process of locating views in ASP.NET MVC and design of the classes & interfaces involved.In the controller class we normally write a method for each action to be performed and code in that method looks something like this: public ActionResult About() { ViewData["Title"] = "About Page"; return View(); } Note the method View() which is invoked at the last step.The method View() of System.Web.Mvc.Controller class returns System.Web.Mvc.ViewResult.Now let ...
Roanoke Valley .NET User Group meetings and events for the first quarter of 2009 has been scheduled. For more details visit www.rvnug.org January Meeting - Thursday, 1/8/2009 Justin Etheridge, founder of Richmond Meet and Code Dinners, Senior Consultant at Dominion Digital, will walk you through an ASP.NET MVC application. February Meeting - Thursday, 2/5/2009 Joel Cochran, RV.NUG Member extraordinaire presents, "Going beyond Hello World: Developing real world WPF applications using Blend and Visual ...
I just had an article published in the Visual Studio Magazine January 2009 Issue on the ASP.NET MVC framework. The direct link to the article is here: http://visualstudiomagazine... One correction is that the “About the Author” section at the bottom of the article is out of date since I am no longer employed at e.magination. I am now with Applied Information Sciences (AIS) and can be reached either through this blog or at steve.michelotti@gmail.com ...
In this issue: Pencho Popadiyn, Infragistics, Damon Payne, David Betz, Koen Zwikstra, Jaime Rodriguez, Jeff Wilcox(2), Karl Shifflett, and Jonathan van de Veen(2). From SilverlightCream.com: Exploring the Model – View – Controller (MVC) pattern Pencho Popadiyn at SilverlightShow has (I think) the first entry for the Write & Win Contest up .. this one is on MVC in Silverlight ... good-looking tutorial. Infragistic's Holiday Gift Infragistics sent out an email yesterday. If you aren't on the list, ...
ASP.NET MVC Framework has been around for quite sometime now.It has now moved to BETA from it's initial CTP versions.I am a very big fan of this framework for it's simplicity and extensibility.For the next few posts I would like discuss about the various extensibility points of this framework.In this post I will note down my observations about implementing a custom controller factory. When adding a controller to a ASP.NET MVC Web application we see that the Controller name must end with "Controller" ...
For the past four months my controllers have had two constructors: one that received my dependencies and one parameterless that called Windsor directly, because parameterless constructors are a requirement for the default MVC ControllerFactory. (These constructors did have a huge //HACK comment on them.) Wiring up IOC with zero friction was quite simple. First, we need to make a new ControllerFactory. In it, we will ask Windsor to give us the controller. public class CastleWindsorControllerFactory ...
Dec 6th' 08 I presented ADO .Net Sync services at the Tampa code camp. This was my 6th presentation on same topic in as many months and except Orlando Tech Ed I did not see enough developers interested in Sync services. At first it was kind of disappointing to see just 15 developers in the session but then I realized that there were few other sessions running parallel and the one that had biggest crowd was MVC architecture in ASP .net. I guess that's true for winform or smart client development. ...
I just had the privilege (trauma?) of setting up my new machine and had to install everything from the scratch. I will save the rest of my experiences, for another post, but for now I thought of sharing, what I had to install to work with the latest stuff for Web Development in ASP.NET. These are pretty quick to install and helps you build cutting edge websites. 1. Install Visual Studio 2008 (you can get a trial version from http://msdn.microsoft.com/h... or the free ...
Hi!, Today I'm gonna consider UrlRouting, despite the fact, that actually it is not a part of ASP.NET MVC. Though, we need UrlRouting to understand MVC. Scott Guthrie also promised, that UrlRouting namespace's source code will be realeased with final version of MVC. I'm really waiting for that to happen, because reflector has little problems with extracting source code, and gives me code that cannot be compiled. [CompilerGenerated] private RouteBase <Route>k__BackingField; This kinda code can ...
Hi!, As all of you (I hope) I want to have something similar to Intellisense everywhere. So also I want it in JavaScript and particularly in jQuery. Yeah, yeah, I know, that we have Script# and even M$ uses it, but I want pure JS and pure jQuery. I become very as jQuery team brought us Visual Studio Documentation for jQuery. It is on their site in download section. Works very nice and start its help as soon as you start typing, $ goes first then identifier in brackets and after $("sth"). there is ...
Hi!, In first post I wrote, that I'll write posts from beggining, so that newbies could start writing MVC apps as my new posts would be coming. But I change my mind :D. We'll start from knowledge that is here. MVC pattern and ASP.NET MVC approach is something that you have to know, but you don't have to read other tutorials on asp.net/mvc, because we'll egzamine them in different way - understanding it from the total basics - looking at the MVC source code. So watch that video and next post I'll ...
Welcome to my new blog about web technologies. Firstly, sorry for my poor english, I guess that sometimes it would be difficult for you to understand, what I wanted to say, but you should always try ;]. You know I'm from Poland and that's a country, where they teach as they wouldn't want you to know anything. Very sad country. But whatever happens, you must never give up. In next posts I'm gonna consider mainly ASP.NET MVC. Kinda new framework, as described by guys form m$ it's alternative approach ...
Thank you all for attending my “Applying Domain Driven Design on Asp.net MVC” session. It’s interesting how things went that we got a bit deep into the ASP.NET MVC framework and have achieved the geeky talk goal via covering the other aspects of ASP.NET. Even that this took the entire session, it is nice that it could benefit the attendance. I am not sure whether we can arrange another session for Domain Driven Design fundamentals and combining that in the same project while using the MVC pattern ...
In a previous post, I discussed how to identify the technologies you want to learn and come up with a personal learning road map, so to speak. But when it comes time to dive into one specific technology, how do you go about learning something new? In fact, I almost always ask that question during developer interviews. The most disappointing answer I get to that question is, "well, I will Google it and read articles about it." That doesn't really show a very deep level of enthusiasm or commitment. ...
How do you stay up on new technologies? How do you approach learning a specific new technology? The first thing you have to accept is that the Microsoft technology stack has gotten so vast that it is simply impossible for a single person to be an expert in everything. This is the most important aspect to remember. This post is simply to describe my personal approach for staying up on new technologies in the hopes that other people will find something valuable in this to add to their toolbox. In terms ...
Virtual TechDays is back and this time, I would be covering topics around ASP.NET AJAX Improvements in .NET 3.5 Service Pack 1, Internet Explorer 8 for Web Developers and .NET Application Development. If you want to have a quick preview of what I am talking on, you can check my previous posts However, there are a few more enhancements that help AJAX driven web developement and if you are an ASP.NET / AJAX Developer you really dont want to miss the sessions. The ASP.NET and IE 8 Sessions are on Day ...
Manning Publications Co. has some great books. Ever since I first heard that MVC was coming to ASP.NET I was extremely excited. I have always preferred the MVC pattern over the MVP pattern that ASP.NET used. Most of the information on MVC for ASP.NET is limited or not as in depth as I would like. I have created multiple MVC applications just by using Reflector to learn more about the runtimes. However, being a book junky, and one that really enjoys the early access program at Manning Publications ...
I needed an attribute to decorate methods/controllers to protect them from being accessed by users that are not logged in. If I were using a .net provider for authentication I could use the [Authorize] attribute that is provided in the MVC framework. However, in this case I chose to create my own security. This means that I need to also create my own [Authorize] attribute (as I love it’s simplicity!). Finding the way to do this is not that straight forward. So here is the custom attribute. Code Snippet0: ...
Update Presentation slides and sample are now available. Please click here to find them! Yeah, somehow dotNETwork decided to allow me to show all my psychopath about design and implementation in a session with a very weird long title, “Applying Domain Driven Design on ASP.NET MVC”. Yeah, two unrelated topics. In 2 hours frame, I should be introducing day to day development styles from a different perspective. I had a small talk about the process side of the world. This time we move towards the other ...
The out-of-the-box StaticSiteMapProvider is great for, well, static web sites. I don't find the StaticSiteMapProvider (and web.sitemap) model very practical for the dynamic nature of web sites/applications and especially Asp.Net Mvc applications. In an mvc application it's difficult to render a static sitemap that allows breadcrumbs like: Home Home > Cars Home > Cars > Porsche 911 Home > Cars > Porsche 911 > Edit For the sake of discussion, and to keep the discussion as small as ...
Intro to SQL Compact and Data Sync services - by Nikita Polyakov This meeting will be held on Wed, November. 12, 2008 at 6:00pm - 8:00pm. Location: Sarasota Community Foundation, located at 2635 Fruitville Rd., Sarasota, FL 34237 (just west of Tuttle on the north side of Fruitville). In this presentation Nikita will cover the benefits of SQL Compact not only on a mobile device, but as an amazing alternative to locally cached data for occasionally connected devices like laptops. We will also go over ...
I was talking with Phil Haack via facebook status comments regarding Phil’s picture for the upcoming ASP.NET MVC book being published by Wrox (which you can buy at amazon here, at amazon.ca here, or at your local bookstore…no link provided for that). Phil was commenting about some aspects of his picture, and I began to type “Well at least you don’t look like that guy on the en…” and then…I stopped…that couldn’t be…BUT IT WAS: Rob Conery. But what was it that caused me such grief and pain at the sight ...
Here's a simple way to avoid postbacks in your site, still be SEO friendly and degrade gracefully to JavaScript free browsers (and handle middle clicks and copy&paste) in ASP.NET MVC using jQuery. First, we'll create an alternate MasterPage called No.master with no content, only one ContentPlaceHolder: <asp:ContentPlaceHolder ID="MainContent" runat="server" /> Now, we're able to tell via HTTP Headers if a Request is an Ajax Request, so we'll write a new method in our Controller Base class ...