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
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