Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » ASP.Net   (RSS)

DRY-ing out the MVC 2 Templated Helpers

In my MSDN article Using Templated Helpers to Display Data , I show how they provide a very productive means of building a UI for data sets. The code below shows a typical use of the Display and Label helpers. < span style =" font-weight : bold ; ">
Posted by ricka0 | 0 Comments
Filed under: ,

Attachment(s): Lbl4Ed4.zip

Using DataAnnotations in MVC 2 - Catching up to Dynamic Data

DataAnnotations help you write robust validation and prevent the type of annoying error message shown above. Form submittal failure when a field doesn’t validate can be very frustrating - especially when there is no indication of the problematic property
Posted by ricka0 | 0 Comments
Filed under: ,

Custom Validation Error message not displayed

A customer pointed out that his Spanish validation error messages were not being displayed; the default Error message was shown instead. I'll use the Products table from the NorthWind Db to reproduce the problem and show a work-around. Create a partial
Posted by ricka0 | 3 Comments
Filed under: ,

Improving the FK field display: Showing two fields in Foreign Key columns

The default scaffold of the CustomerAddress table in the AdventureWorksLT database poses a problem: Dynamic Data (DD) defaults to using the first string field in the referenced table. In this case, the first string field is the Title field (Mr,Ms, and
Posted by ricka0 | 6 Comments
Filed under: ,

How to create an updateable view with ADO Entity Framework and with LINQ to SQL

Creating an update-able view with ADO Entity Framework (EF) or LINQ to SQL (L2S) is a fairly advanced topic and not directly associated with Dynamic Data. At the end of the article I have a sample console application to verify the modified L2S data model
Posted by ricka0 | 3 Comments
Filed under: ,

Tweaking the Filter Repeater

The default implementation of Dynamic Data provides a drop down list box for each foreign key and boolean field in a table. The drop down list allows you to filter the table with the value selected from the drop down list box. The figure below shows a
Posted by ricka0 | 3 Comments
Filed under: ,
 
Page view tracker