P
Piotr Strycharz
Hi all.
I have problem with ASPropDownList. I do not know how to get its value.
The DropDownList is populated in Page_Load method (from SQL Server). When
this list is embeded in ASPX page everything runs fine: I can use
Request.Form["DDL_Name"] to know its value.
However, when I use it in control (ASCX) the framework adds something like
"ctl5_:" to the name of the control. So Request.Form[] method does not work.
What is NOT working too, is the SelectedIndexChanged event. This is because
the number of list items is zero at first, so the framework always sets
SelectedIndex to 0.
How to deal with it ?
Regards.
I have problem with ASPropDownList. I do not know how to get its value.
The DropDownList is populated in Page_Load method (from SQL Server). When
this list is embeded in ASPX page everything runs fine: I can use
Request.Form["DDL_Name"] to know its value.
However, when I use it in control (ASCX) the framework adds something like
"ctl5_:" to the name of the control. So Request.Form[] method does not work.
What is NOT working too, is the SelectedIndexChanged event. This is because
the number of list items is zero at first, so the framework always sets
SelectedIndex to 0.
How to deal with it ?
Regards.