I’m trying to set a custom ClientID to my DropDownList to later on be able to get the selected value using javascript.
Setting it like
ClientID="<%=MyVar%>" it works fine, but when I try to concatenate some string then it messes up.
ClientID="dropdown_<%=MyVar%>" the output would be
literally clientid=”dropdown_<%=MyVar%>”
It is possible to do it?
I would suggest you to create a public method on your web page that concatenate the string then you can call it from the page source (easier to maintain and reuse)