I have a DropDownList and need to know its name in the code behind:
<select name="ctl00$cphMainContent$ddlTopic" onchange="javascript:setTimeout('__doPostBack(\'ctl00$cphMainContent$ddlTopic\',\'\')', 0)" id="ctl00_cphMainContent_ddlTopic">
<option value="All">All</option>
</select>
I need to get the value "ctl00$cphMainContent$ddlTopic"
Is that possible?
myddl.ClientID
/ myddl.UniqueID
, depending on what you need, name
or id
attribute.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With