This document contains information about Soe Tun, including his affiliation with the American College of Cardiology, his email and Twitter account, and the URL to his blog. It also contains information about the DC .NET User Group, including its Twitter account and location.
3. Soe Tun
American College of Cardiology (ACC)
Email: soelinn@gmail.com
Twitter: @SoeLinn
Blog: http://geekswithblogs.net/stun/
DC .NET User Group
Twitter: @dcdnug
2400 N St. NW DC 20037
http://dcdnug.org
13. Matched on System.Type Name
DateTime.ascx for DateTime
Using UIHintAttribute
[UIHint(“SelectionElement”)]
public int UidBloodType { get; set; }
Brad Wilson – ASP.NET MVC 2 Templates (series)
http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-1-introduction.html
15. Web Forms
ASP.NET MVC
Patient model = service.GetPatient( id );
PatientViewModel viewModel = Mapper.Map<Patient, PatientViewModel>(model);
viewModel.RaceCheckBoxes = GetRaceSelections(model.UidPatient);
viewModel.BloodTypes = new SelectList(service.GetBloodTypes(), "UidBloodType", "BloodTypeDesc", model.UidBloodType);
return View("Edit", viewModel);
16. Web Forms
1. View Model
2. Data Binding
3. Server-Side Validation
ASP.NET MVC
21. Presentation
[DisplayName] and [Display].NET 4.0
[HiddenInput]
Validation
[StringLength]
[RegularExpression]
Brad Wilson – ASP.NET MVC 2 Templates (series)
http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-2-modelmetadata.html
http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-4-custom-object-templates.html
22.
23. ASP.NET MVC 3
Built-in support for Validation Summary with jQuery
http://geekswithblogs.net/stun/archive/2011/01/28/aspnet-mvc-3-client-side-
validation-summary-with-jquery-validation-unobtrusive-javascript.aspx
24. WebForms ASP.NET MVC
Web Controls Html.EditorFor()
Themes / Skins Use View Templates
Validation Attributes from Data Annotations
View Models
Data Binding and
ViewData[“PropertyName”] = value;
25.
26. Thank you!
Soe Tun
http://geekswithblogs.net/stun
Twitter: @SoeLinn
Email: soelinn@gmail.com
27. Phil Haack
Custom Validation Attributes
http://haacked.com/archive/2009/11/19/aspnetmvc2-custom-validation.aspx
Kazi Manzur
Post-Redirect-Get (PRG) Pattern
http://weblogs.asp.net/rashid/archive/2009/04/01/asp-net-mvc-best-practices-part-1.aspx
http://weblogs.asp.net/rashid/archive/2009/04/03/asp-net-mvc-best-practices-part-2.aspx
Martijn Boland
Paging with ASP.NET MVC
http://blogs.taiga.nl/martijn/2008/08/27/paging-with-aspnet-mvc/
Note: I modified his code a little bit in my demo project.