Posts
203
Comments
1118
Trackbacks
51
.NET 3.5
Encapsulate Multiple HTML Helpers to Make Views More DRY
MVC 2 is adding many new features that make views more elegant to write. For example, the new EditorFor() Html helper returns the appropriate HTML input elements for a given property so you don’t have to explicitly specify text box, dropdown, or whatever control you need and can even use the [UIHint] attribute to specify the editor you want to use (either an OOTB or custom editor). This results in view markup that often looks like this: 1: <p> 2: <%=Html.LabelFor(m => m.FirstName)%> ......
Posted On Sunday, January 17, 2010 12:52 PM | Comments (4)
LINQ to XML with Hierarchical XML, Optional Elements, and Namespaces
Recently I had an interesting task to consume a particular XML document and populate a C# object from it. The structure of the XML document looked roughly like this: 1: <root xmlns="http://www.w3.org/20... 2: <entry> 3: <id>1</id> 4: <title>abc</title> 5: <content> 6: <div xmlns="http://www.w3.org/19... 7: <table> 8: <tr> 9: <td>Item1</td> 10: <td>111</td> 11: </tr> 12: <tr> 13: <td>Item2</td> ......
Posted On Tuesday, December 29, 2009 11:34 PM | Comments (2)
ASP.NET MVC Application – AlbumCredits.com
Recently my company just released the first version of a new MVC web site: AlbumCredits.com. This project, led by Oskar Austegard, is was I consider a highly successful real-world implementation of MVC. In a time when most music these days is downloaded, the production and performance engineers, and recording professionals that work on the music don’t always get credit because there is no CD booklet to look through. Album Credits is almost like a LinkedIn for recording professionals. From the about ......
Posted On Wednesday, November 18, 2009 10:15 AM | Comments (9)
LINQ to SQL Again??
Tomorrow night I’ll be at RockNUG presenting LINQ to SQL. Yes, LINQ to SQL. Again. In the last 2 years I have presented LINQ to SQL numerous times at various user groups and code camps. Why do I keep getting asked to present LINQ to SQL? Isn’t LINQ to SQL dead? Answer: No. LINQ to SQL is not dead! This confusion all started back in October 2008 with a seemingly innocuous post on the ADO.NET team blog discussing the emphasis that Microsoft was going to put into the Entity Framework going forward. ......
Posted On Tuesday, November 10, 2009 9:26 PM | Comments (4)
FredNUG Code Samples
Thanks to everyone who attended my presentation last night at FredNUG.  The code samples can be downloaded here.
Posted On Thursday, August 27, 2009 12:30 PM | Comments (0)
C# 3.0 Deep Dish with a slice of C# 4.0 – Code Samples
Thanks to everyone who attended my presentation last night at CapArea on C# 3.0 and C# 4.0. You can download the C# 3.0 code samples, C# 4.0 code samples, and the PowerPoint presentation from here. Several people asked me about some of the tools I was using during the presentation. A list of the tools that I use (and more) can be found here. Feel free to email me with any questions ......
Posted On Wednesday, August 26, 2009 10:04 AM | Comments (2)
Enterprise Library Validation Application Block with MVC Binders
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 ......
Posted On Monday, March 16, 2009 11:17 PM | Comments (4)
MVC AJAX Form with jQuery Form Plugin and jQuery Thickbox
In a previous post, I showed how to submit an AJAX form in MVC with the jQuery Thickbox and the built-in MVC AJAX helpers. If you read that post first, it will show the complete context for how to simply submit an AJAX form that is being rendered inside a jQuery Thickbox with built-in MVC AJAX helpers. But what if you want to stick to a pure jQuery solution? That is also simple enough to do. Instead of using the Ajax.BeginForm() method, you can use the jQuery Form Plugin. The code is almost identical ......
Posted On Tuesday, September 1, 2009 7:28 AM | Comments (1)
Microsoft Tech Days – MVC Presentation

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!

Posted On Saturday, March 14, 2009 12:34 AM | Comments (0)
Presentation at SOMD NUG – LINQ to SQL

Tomorrow I’ll be giving a presentation at Southern Maryland .NET User Group on LINQ to SQL.  Details of the event can be found here:  http://www.communitymegaphone.com/ShowEvent.aspx?EventID=1022.

Posted On Sunday, March 8, 2009 8:46 PM | Comments (2)
Full .NET 3.5 Archive

View Steve Michelotti's profile on LinkedIn

profile for Steve Michelotti at Stack Overflow, Q&A for professional and enthusiast programmers




Google My Blog

Tag Cloud