ASP.NET Dynamic Data Samples
Database Image APIDefaults From FiltersDynamic LabelThese samples have been moved into our new
Dynamic Data Futures VS2008 SP1 RTM which has samples of what kinds of things we are looking at for Dynamic Data 2.0.
Double ColumnThis sample shows how to take two columns from the database and expose them in one single column in the data bound control. This is an advanced sample that shows how a field template control can use the Dynamic Data API's to get access to data from other columns and still keep the metadata driven display formatting.
Existing Web SiteThis is a sample that shows what an address-book Web application might look like coded in ASP.NET version 3.5. You can also see the same address-book application coded by using Dynamic Data. This example shows how much less code is required in order provide basic validation on entry pages. It also shows some examples of how instead of writing code, you add metadata to the data model.
Scaffold DemoThis is a simple application that shows what a fully scaffolded application looks like. It is basically the Dynamic Data project template with the Northwind database added, and with a LINQ for SQL Class generated for all tables. The data model is registered in the Global.asax file and scaffolding is enabled. This shows what a Dynamic Data Web site can do without requiring any code from you.
MVCDynamicDataThis is a sample that shows how to combine MVC 1.0 and Dynamic Data into the same site. This might be done when the site uses MVC for its front end and WebForms Dynamic Data for the backend admin interface.
DynamicDataSProcThis is a sample that shows how to use stored procedures with Dynamic Data. In the example the Contacts table in the Linq to SQL designer is mapped to used stored procedures for Insert, Update and Delete. Then there is a custom page for Contacts that overrides the OnSelecting event in the LinqDataSource and calls a stored procedure to return the data. The stored procedure supports server side paging, sorting and filtering.
Scaffold Demo (Entity Framework)This is a simple application that shows what a fully scaffolded application looks like. It is basically the Dynamic Data project template with the Northwind database added, and with a Entity Framework Model generated for all tables. The data model is registered in the Global.asax file and scaffolding is enabled. This shows what a Dynamic Data Web site can do without requiring any code from you. Note this adds metadata to the hide the primary keys for autogenerated columns and contains the Entity Framework workaround.
Existing Web Site (Entity Framework)This is a sample that shows what an address-book Web application might look like coded in ASP.NET version 3.5. You can also see the same address-book application coded by using Dynamic Data. This example shows how much less code is required in order provide basic validation on entry pages. It also shows some examples of how instead of writing code, you add metadata to the data model. This is based on a Entity Framework Data Model.
Secure Dynamic DataThe Secure Dynamic Data Site allows or deny user's access to the database tables based on the user's authenticated role.
Furthermore, it allows or denies user's table actions based on the user's authorization.
The site integrates the ASP.NET forms authentication with a new concept of authorization provided by Dynamic Data.
ModalThis includes samples for both Entity Framework and Linq to SQL that replace the ListDetails page template with a ListDetails page template that is based on the ModalPopupExtender control from the Ajax Control Toolkit. This means when inserting or editing a record the DetailsView pops up on top of the page like a dialog box.