norashlea
-
5/14/2006 8:37:59 AM
User Control - more issues accessing values
Hi,
I've run into problems, again, getting the value from a control on a User Control. This time it's a dropdownlist.
To get the value I use:
if(Convert.ToInt32(this.ddlNetwork.SelectedIndex)!=0) {Convert.ToInt32(this.ddlNetwork.SelectedValue);}
When the dropdownlist is on a page template aspx registered in CMSDesk, and then a page created, all is ok.
When it is on a user control, if I drop the control onto a page test.aspx and then navigate to test.aspx (not registered as a page template), all is ok.
But, if I register the user control in CMS Desk, and then put it on a page created in CMS Desk, I can't read any value at all. SelectedIndex is always -1. But I can get the value from a radio button list!!!
Regards, Sharon.
|