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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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