DropDownList databind()
Hi,
I have noticed that if i want to make a pre-selection in the dropdownlist at the page_load function i have to first call the DDL.databind() because there are no Items until then,. my question is why there are items in the dropdownlist even if i didn't call the databind() function (the list is using a sqldatasource).
my question is referenced to the Genre list in the Reviews.aspx file, that when i wanted to make it pre-selected i had to use the databind() fun, but before i wanted to do that, there was no databind() on the dropdownlist, but still the list shows the genre items on it when you load the page.
Thanks, Roni.
|