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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -