altering controls with dynamic data sources in dreamweaver
If I’m binding a web control to database values, I generally set it’s properties at run time in the page_load or page_prerender events.
However, since Dreamweaver has its own databinding event going on at page load, you can’t refer to controls that have dynamic data sources populated by Dreamweaver there as they will still be empty then!
Instead, you need to attach an onload event to the control and put the relevant code inside that function instead.
For example, if Dreamweaver is populating a dropdownlist from a mm:dataset, you can set the selected value from within a sub which you attach to the dropdownlist’s onload event.


