asp.net 3.5 - Dynamic value in dropdownlist onchange call -
in following code snippet i'm trying set setprice argument dynamically.
xhtml:
<asp:dropdownlist id="cctype" runat="server" onchange="setprice('<%# eval("setpriceval") %>')" tabindex="16"> </asp:dropdownlist>
code behind:
dim setpriceval literal = ctype(findcontrol("setpriceval"),literal) setpriceval.text = "0"
i error saying server tag not formed.
have gone wrong way or there syntax error can't see?
i believe it's:
<asp:dropdownlist id="cctype" runat="server" onchange='<%# setprice(eval("setpriceval"))%>' tabindex="16"> </asp:dropdownlist>
Comments
Post a Comment