How Do I Use a DynamicControl in ListView and DetailsView Controls?

Please install Silverlight or click download to watch video locally.

This video compares the same application written twice, once with Dynamic Data and once without. In the process, you add DynamicControl objects to ListView and DetailsView controls.

Presented by Scott Hanselman

Duration: 5 minutes, 14 seconds

Date: 08 May 2008

Watch    Video   |   Download    Video

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

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

Comments : 8

Leave a Comment

Shimon_wi : On May 29, 2008 5:57 AM said:

It look very nice! can i use AJAx with it?

shanselman : On June 09, 2008 2:23 PM said:

Sure, you can use whatever Ajax you like in the templates, or in custom pages. We'll be looking at making prescriptive samples and more guidance on how to better use Ajax in the near future.

noimed : On June 18, 2008 10:53 AM said:

That is really impressive.

Will you be publishing source code for these examples?

muhammed : On July 21, 2008 5:20 AM said:

nice work

cv_vikram : On August 19, 2008 7:08 PM said:

thanks....

pashakasim : On August 25, 2008 10:18 PM said:

Cool.

Thanx.

John.Vonesh : On September 25, 2008 8:39 AM said:

Hello Scott,

I have been experimenting with Dynamic Data for three days now and your videos have been instrumental in guiding me along the path of acceptance. Until I watched this video, I was of the opinion that this technology, while very very cool and simple to use, was only useful in a scenario where you might have a part of your system that was used by administrators to maintain certain tables of data. I now see that there are many other applications for this technology. I really appreciate the work you are doing to introduce this technology to us new comers.

I do have one question, I am using the OnCreated method to attempt to set some values based on someone inserting a record. I did not have much success because what I was expecting was not what occured. I am using multiple events to control what happens during data changes. When certain fields are updated I want fields in the database to reflect the person and timestamp of when the change was effected. On the other hand for the same table I also use the OnCreated method to populate columns for the person who is doing the insert. The problem that I am running into is that after the insert, the fields for who did the insert are not populated and the fields for who did the update are populated. Do you have any idea why DD would behave that way? In addition, Can I capture the record that was just inserted for audit purposes? Sorry, I guess that was two questions :)

djibril_chimere_DIAW : On October 31, 2008 12:40 PM said:

Thanks! Jërëjëf!

Leave a Comment

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

Microsoft Communities