Frank Wang's inspirations on .NET

IEnumerable<Inspiration> inspirations = from i in DataContext.Inspirations where i.Sharable == true select i

New Dynamic Data Preview 04/23 Refresh

Sunday, April 27, 2008 1:43 AM

A new preview of the ASP.NET Dynamic Data Web Site was made available on April 23, 2008. Some new nice features for Dynamic Data Wizard and routed URLs were included in this release. The Visual Basic language support was added for the first time as well.

In this quick blog post, we will take a look at some of the enhancements to the wizard template. First off, download the latest release from the following URL http://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=dynamicdata&ReleaseId=954. The installation process is the same as the 04/08 preview. Unzip your download, launch Visual Studio 2008 Command Prompt, and execute the install.cmd file to begin the installation.

Since I am going to focus on the changes from 04/08 preview, not every single step of the site generation will be listed here. To see how to generate a Dynamic Data web site using the wizard, please refer to my earlier blog post First look at ASP.NET Dynamic Data Web Site Preview.

We will again generate the site from the Northwind database. The tables I selected are Customers, Orders, and OrderDetails. Accept all the files and CRUD methods the wizard has generated for you.

The first change I want to show you is the automatic association with the Site.master page. Open any generated web form in the DynamicData/CustomPages folder and you should see the MasterPageFile is already added in the page direction. In the previous two releases of Dynamic Data, although this site.master file was created for you, you would have to associate it with the content pages manually.

<%@ Page Title="Customers Details" MasterPageFile="~/Site.master" Language="C#" AutoEventWireup="true" CodeFile="Details.aspx.cs" Inherits="CustomersDetails" %>

 

Another cool change in the 04/23 preview is drop-down lists are rendered for foreign-key fields in edit/insert pages.

Foreignkey

JavaScript dialog box has been added to confirm deletions.

image 

For a complete list of changes in this release, please refer to the Release Changes page on MSDN Code Gallery.

The complete source code for this example can be downloaded here.



  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Feedback

# re: New Dynamic Data Preview 04/23 Refresh

Great information... thanks for sharing... 9/8/2008 4:21 AM | Net Framework Development

# re: New Dynamic Data Preview 04/23 Refresh

東京・大阪・名古屋を中心とした高級マンスリーマンション、D-Room Stay。30日からの賃貸マンション・サービスアパートメントに、厳選された上質な家具家電、ゆとりある居住空間をプロデュースしています 10/12/2008 7:27 PM | マンスリーマンション

# re: New Dynamic Data Preview 04/23 Refresh

自分の力だけでショップを開くには、在庫管理、商品の宣伝、顧客対応などに追われてしまいますよね。でもドロップシッピングでは、注文が入ってから商品にデザインをプリントしてくれるので、在庫管理の心配や発送やお支払いまで全ておまかせできるんです だから気軽にブログなどで自分のショップが開けてしまうんです 自分のデザインした商品で気軽にショップが開けてしまうなんて嬉しいですね 難しいことは全ておまかせできるので、宣伝にだけ力を入れることができるのも嬉しいです 10/22/2008 1:27 AM | bad

Post a comment