datalist dynamically loaded template with user control

S

Steve

I would like to load my templates for my datalist programmatically using
loadtemplate. In the edititemtemplate, I have a web user control that
contains a dropdownlist. The dropdownlist datasource is successfully being
populated with available values. The selectedvalue is supposed to be set to
the value currently set in the database. however, this does not occur; it
just defaults to the first value in the list. This does not happen when I
just put a regular dropdownlist into the template instead of a user control
containing a dropdownlist. I am setting the selectedvalue during the
ondatabound event of the datalist. Any suggestions?

Thanks,
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,364
Latest member
Stevanida

Latest Threads

Top