How to Enable Table Specific Routing in Dynamic Data Applications

Please install Silverlight or click download to watch video locally.

In this video learn how to add custom workflow logic to your ASP.NET dynamic data application by using Routing to enable table-specific .aspx file usage.

Presented by Joe Stagner

Duration: 6 minutes, 45 seconds

Date: 23 October 2008

Watch    Video   |   Download    Video   |   VB Code    C# Code

Video downloads: WMV  |  Zune  |  iPod  |  PSP  |  MPEG-4  |  3GP

Audio downloads: AAC  |  WMA  |  MPEG-4  |  MPEG-3  |  MPEG-2

Comments : 3

Leave a Comment

dwsievers : On November 07, 2008 2:28 PM said:

Thanks for the video. There is one thing I am trying to understand.

When routing the Products table to use the standard templates, the definition was (in C#)

routes.Add(new DynamicDataRoute("Products/{action}.aspx")

{

   Constraints = ...

   Model = model,

   Table = "Products"

});

However, in this case I have to type "Products" twice, and I am locking in my route to include the table name. I tried something that I was expecting to work, like so:

routes.Add(new DynamicDataRoute("{table}/{action}.aspx")

{

   Constraints = ...

   Model = model,

   Table = "Products"

});

but this causes all tables to use this routing, instead of only "Products". It seems that specifying the table only once would be preferred... is there any other syntax that would allow this?

Thank you.

JoeStagner : On November 17, 2008 8:25 AM said:

If you haven't get it to work send me an email and I'll try to help.

santosh.singh : On February 04, 2009 1:58 PM said:

nice video

Leave a Comment

You must be logged in to leave a comment. Click here to log in.

Microsoft Communities