Tag | ASP.NET MVC Posts

The LiveMeeting Q&A session with ScottGu was, as usual, very exciting. As promised, here are some of the highlights from his answers. Microsoft’s Development Process In terms of the development process at Microsoft, Scott said that more projects will be developed with openness, transparency, more frequent releases, relying on customers’ feedback and with OSI open source licenses as in the case of ASP.NET MVC. Silverlight In regards to Silverlight 3 release date, it might be around the July 10th. ...
As a developer I’ve become used to multiple monitors to increase my productivity. Debugging applications is much easier when one monitor is running Visual Studio and a second monitor is displaying the application being debugged, or SQL Management Studio, or your Locals window. When I plugged my latest HP 6910p laptop into the docking station I was amazed to find that it supported dual external displays; both the DVI and analogue VGA ports can be active simultaneously. It’s a real advantage to get ...
I’ve not blogged much recently, for the simple reason that I’m not doing much development in my new job. I’ve done a couple of weeks of new development using C'# 3.0 in the last six months, but mostly I seem to be supporting legacy apps, planning and carrying out deployments and analysing data. I don’t mind this at the moment, but I have to say I was very pleased when Amazon finally sent me a copy of Steve Sanderson’s “Pro ASP.NET MVC Framework”. I needed a developer fix, and I’m getting it here. ...
Note: This is a reminder/update from a previous post. We’ve got our event listed on the NerdDinner website so interested attendees can register there! Geek Dinners have been around for a number of years, and are venues for geeks to get together and socialize in a comfortable setting. Recently Scott Hanselman, Phil Haack, Rob Conery, and Scott Guthrie released a book on the Microsoft ASP.NET MVC framework and also did a starter site focussed around the scheduling and searching of geek dinners. They ...
At Lansing GiveCamp I was chosen to lead a team tasked with creating a guest registration system for Ronald McDonald House of Mid-Michigan. Ronald McDonald House wanted to get off their current system, paper, to streamline their processes and report on their data. The event started around 7:00PM on Friday and ended with 3:00PM on Sunday. That’s 44 hours. At first it seemed too simple and I wondered if Microsoft Access wouldn’t have been sufficient for their needs. That is until Jay Harris met with ...
Geek Dinners have been around for a number of years, and are venues for geeks to get together and socialize in a comfortable setting. Recently Scott Hanselman, Phil Haack, Rob Conery, and Scott Guthrie released a book on the Microsoft ASP.NET MVC framework and also did a starter site focussed around the scheduling and searching of geek dinners. They called the site NerdDinner.com and provided a free e-tutorial on how to build it. Protegra would like to invite you to join us as we host our own Nerd ...
I am back from delivering Tech.Ed India 2009, particularly the web platform track where I delivered three sessions across 2 days. In addition, we also had Stephen Walther from the ASP.NET Team deliver sessions on ASP.NET 4.0, ASP.NET MVC and ASP.NET AJAX. Over the next few posts, I would like to get all the content that we discussed during Tech.Ed India and possible videos so that even if you missed the action over there, you could benefit right here. To begin with, the sessions focussing on ASP.NET ...
Recently I have started playing with the Moq (pronounced "Mock-you" or just "Mock") a Mocking Library for .NET Developers, that takes full advantage of .NET 3.5 (i.e. Linq expression trees) and C# 3.0 features. Here in this post I will discuss how I have used the TryUpdateModel method in the Form POST scenario and also share how I have written a test case using Moq mocking library to deal with the TryUpdateModel<TModel>... model) method of the ASP.NET MVC controller. I have a very simple ...
Don't get this confused with the Scott Guthrie event and then be mad at yourself for missing it! On May 18th there is a FREE half-day Best of MIX Event in downtown Phoenix. Did I mention it is FREE? Come out to see Tim Heuer present on Silverlight 3, Dan Wahlin on ASP.NET MVC 1.0 and Web Forms, and Rob Bagby on Windows Azure. These are all 3 great presenters and great topics. You were going to celebrate Victoria Day anyway, so come out for an afternoon with 3 Phoenix "Rockstars" and get warmed up ...
I finally posted the code from my book ASP.NET 3.5 Social Networking on CodePlex at http://community.codeplex.c... Several people have asked for this so that we can make changes to the code and improve/expand the code base. I think I may also take the time to convert it from the MVP pattern to the latest ASP.NET MVC pattern/template as well as add test coverage the project. I also set up a forum for this at forum.socialnetworkingin.net and a separate blog at blog.socialnetworkinging.net ...
I was integrating a JQuery plugin for file uploads, uploadify, in my app when I saw a very strange behavior. The plugin reported an error transmitting the file to the server and debugging the controller code I noticed the target action wasn’t being called at all. Debugging the client code I found out that the server was redirecting the upload to the login page. The Controller was marked with the AuthorizeAttribute but the user was already authenticated. After a google search I found this article ...
As others have pointed out Asp.Net MVC is full of magic strings. We use magic strings to...

Read the full article

 

The default Asp.Net MVC View Helpers use method overloads to allow customisation of the generated output...

Read the full article

 

Critics of ASP.NET MVC often point out that view code can end up looking a bit like classic ASP spaghetti code. Two of the major offenders are conditionals and loops in the view...

Read the full article

 

NOTA (2009-06-26): Existe una librería oficial de NHibernate Validator con validadores adicionales específicos para ciertos paises, NHibernate.Validator.Specif... (descargar) y ya cuenta con un validador de CUIT. Gracias Fabio Maulo por el dato. La aplicación en la que estoy trabajando está basada en ASP.net MVC y utilizamos Sharp Architecture como base. Sharp Architecture utiliza a su vez NHibernate Validator para la validación de las entidades de negocio por lo que, continuando con el tema del ...
The next Frederick .NET User Group (FredNUG) meeting will be Wednesday, May 27th at the Urbana Regional Library. We’re pleased to have Jeremy Kadlec returning to FredNUG as well as Steve Andrews who is coming to FredNUG as part of his goal of 52 (yes 52!) talks to the Developer Community this year. It will be an excellent meeting filled with valuable content! The scheduled agenda is: 6:30 PM - 7:00 PM - Intro Topic: SQL Server Dynamic Management Views with Jeremy Kadlec Speaker Bio: Jeremy Kadlec ...
In this Issue: Thanigainathan Siranjeevi, Ashish Shetty, Kirupa Chinnathambi, Mike Taulty(2), and Andrew Duthie. Shoutouts: Scott Guthrie announced: Free ASP.NET MVC “NerdDinner” Tutorial Now in HTML -- note 'Free' -- 12 parts to this Tutorial! Shawn Wildermuth announces I am on .NET Rocks! .. no not ME... Shawn! :) From SilverlightCream.com: Silverlight 3 Navigation API Thanigainathan Siranjeevi put up a nice tutorial at SilverlightShow on the NAV API in Silverlight 3B. Silverlight out-of-browser ...
Below are links to a few good MVC books…. ASP.NET MVC Framework Unleashed Professional ASP.NET MVC 1.0 ...
Below are links to a few good MVC books…. ASP.NET MVC Framework Unleashed Professional ASP.NET MVC 1.0 ...
Below are links to a few good MVC books…. ASP.NET MVC Framework Unleashed Professional ASP.NET MVC 1.0 ...
6 words: Scott Guthrie May 26 Phoenix Free Do I need to say anything else?? Oh ok, here's the rest of the info: ASP.NET MVC Presented By Scott Guthrie (ScottGu) We’ll walkthrough building an application from scratch using the recent ASP.NET MVC 1.0 release. You’ll learn what ASP.NET MVC is, the design decisions behind it, and how to build a real application with it. We’ll cover topics ranging from the basics of application creation through to concepts like unit testing and dependency injection. Silverlight ...
Before I joined Microsoft I worked at a software development company that focused on delivering large, mission critical systems on… Unix. My work environment included Gnu Emacs, Gnu C and C++ and Gnu Make, all products from the Free Software Foundation (FSF). My home environment was similar - a mix of PCs running early versions of Linux and BSD Unix. As a company and as individuals we were fans of the work of the FSF because not only were their products very good but as developers we also had unfettered ...
Tomorrow after work, I'm driving to Richmond to speak at the Richmond Code Camp. In the past, I didn't plan out which sessions I would attend. Instead, I just floated to whatever seemed interesting. This time, I'm taking the steps to get the most out of the conference. Here's my schedule. 8:00 - 8:45am - Auditorium - Welcome And Keynote I'm not a morning guy, particularly after driving 6 hours. However, I'll try to be on time to catch the keynote. 8:45 - 10:00am - Speakers Lounge - Preparation Before ...
Normal 0 false false false EN-GB X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans... ...
Wow, what a great couple of days last week! Despite having attended Devscovery the past two years, I’m still amazed at the amount of useable content that is covered during this 3-day event. The event started with a keynote by Scott Hanselman talking about the impact of social networking on software development. While some of his points may be debated by some folks in the industry, he certainly caused many in attendance to give more thought into exercising their own personal branding. Following the ...
Florida has a very active developer community. The biggest problem we seem to have is that all of these different groups usually don't know about each and there hasn't been a "centralized clearinghouse" listing all of the technical communities. Joe Healy, one of our Florida Microsoft Developer Evangelists, maintains a list and one-page flyers for each of the main areas in Florida. I think the eventual plan is that Joe will be updating his site to take advantage of the newer version of Live Maps and ...
My journey with jQuery has actually began last month when along with ASP.NET MVC I started exploring the different features provided by jQuery and related plugins.I am simple amazed at the overall design of jQuery core and also by functionalities provided by the various plugins built around jQuery.I am planing to write a series of posts with my observations on jQuery and this happens to be the first in that series. In this post I will discuss about the magical ready() function in jQuery.I always ...

Thanks to everyone who attended my session today on ASP.NET MVC at Microsoft Tech Days.  You can download the code sample that was build here.  Let me know if any questions.  Thanks.

Thanks to Clint Edmonson, I got a chance to go to Mix this year. While Las Vegas was absolutely frustrating (it was the week of St. Patrick’s Day AND Spring Break week), Mix itself was outstanding. We kicked it off with a keynote from Bill Buxton. Each Mix attendee got a copy of his book on Sketching User Experiences. Bill is THE MAN when it comes to UX design, and he did not disappoint. He was energetic, animated and passionate: everything you look for in a speaker. It is always enjoyable to see ...
Note: I just updated the title for this article, sorry to all of you who were waiting for the TechDays Belgium source code and didn't realize it was here :) I just posted the source code of the demo applications I used in my MIX09 talk "Working across the client continuum". The source code is structured as follows: Read the rest of this entry » ...
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 ...

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 ...
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. ...
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 ...
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 ...
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 ...
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> ...
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 ...
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" ...