Mike Bosch's Blog on .NET

Agile enterprise architecture in .NET, SOA, WCF, WS-*, AJAX, MVC, Sharepoint and more...

Browse by Tags

All Tags » MVC (RSS)
Showcase of "Live" ASP.NET MVC Sites
It looks like people are starting to deploy sites based on the ASP.NET MVC Framework already. I've been trying to collect some examples and here's what I got so far. FlingMix.com - FlingMix.com is a craigslist-like dating / adult personals site built...
Posted: May 05 2008, 08:00 AM by MikeBosch | with 12 comment(s)
Filed under: ,
Using the ComponentController in ASP.NET MVC CTP 2
ASP.NET MVC CTP 2 shipped with a new controller class which you may have missed. Community feedback begged for a better way to handle component pages that don't rely on the main page's view data. A classic example might be a stock ticker. We would want...
Posted: Mar 10 2008, 12:45 PM by MikeBosch | with 18 comment(s)
Filed under: ,
ASP.NET MVC Tip # 7 - Using a CAPTCHA with MVC
Problem: You need a CAPTCHA to use when submitting forms in MVC Solution: For this I will defer to an excellent explanation: http://www.coderjournal.com/2008/03/aspnet-mvc-captcha/
Posted: Mar 07 2008, 12:17 PM by MikeBosch | with no comments
Filed under: ,
ASP.NET MVC Tip #6 - Code Snippets for Quickly Testing Routes
Scenario: You want to write some tests for your route configuration, but you hate typing... Solution: We can create some VS Code Snippets to generate most of the tests for you. While messing around with Kigg , I got the idea to create some snippets to...
Posted: Feb 21 2008, 07:00 AM by MikeBosch | with 3 comment(s)
Filed under: ,
ASP.NET MVC Tip #5 - Submitting an AJAX Form with jQuery
This is one of the neatest, straightforward, and down right coolest way to submit a form with the ASP.NET MVC Framework. I've blogged in the past about jQuery and how useful it is. Combining MVC with jQuery can produce some really neat Web 2.0 style applications...
Posted: Feb 15 2008, 01:18 AM by MikeBosch | with 13 comment(s)
Filed under: , , ,
ASP.NET MVC Tip #4 - Handling Multiple Form Actions on One View
Scenario: You have a view which renders a list of customers. You need to provide a way to delete customers from this table view of the data. In your "CustomersController" you have a Delete action which takes a Customer ID. How do we go about providing...
Posted: Feb 12 2008, 12:30 AM by MikeBosch | with 6 comment(s)
Filed under: ,
ASP.NET MVC Tip # 3 - Getting an Absolute Url Using an Extension Method
This is probably a good time to note... all of this is based on a CTP version of the MVC framework. I'm putting this together mostly as a reference for myself. If you start developing with any of these tips, new versions of the MVC framework will have...
Posted: Feb 06 2008, 08:26 PM by MikeBosch | with 1 comment(s)
Filed under: ,
ASP.NET MVC Tip #2 - Redirecting to another action and passing information to it
Scenario : Here's a quick little "how-to" for a pretty common task. After some controller event, you want to redirect the user to a new action, perhaps on a different controller, while passing some data along to it. Fair enough (and very simple)... Solution...
Posted: Feb 02 2008, 02:30 AM by MikeBosch | with 5 comment(s)
Filed under: ,
ASP.NET MVC Tip #1 - Accessing TempData from a ViewUserControl
Scenario: I've been creating several shared components that I use throughout the MVC application. I found that almost all my forms needed some kind of feedback mechanism on whether the form was successful or not. I created an ErrorDisplay ViewUserControl...
Posted: Jan 31 2008, 05:00 AM by MikeBosch | with 2 comment(s)
Filed under: ,
South Florida Code Camp / ASP.NET MVC Tips Series
This weekend, Saturday, February 2nd is the South Florida Code Camp . I'm really looking forward to some of the sessions. I couldn't believe that the ASP.NET MVC Framework got it's own track on the agenda ! This is great news and shows how much excitement...
More Posts