C
ChAnGePoInT_DaWg
Is there an "eval" function in C#? Here is what I want to do:
I have a lot of controls like this:
<asp:textbox id="books_quantity" runat="server"/>
<asp:textbox id="vcds_quantity" runat="server"/>
<asp:textbox id="dvds_quantity" runat="server"/>
In my script, I want to refer to the names dynamically like this:
eval("books" + "_quantity").Text = 100;
Is it possible in C#? Because in PHP, Javascript.. they all can do this.
Help..
I have a lot of controls like this:
<asp:textbox id="books_quantity" runat="server"/>
<asp:textbox id="vcds_quantity" runat="server"/>
<asp:textbox id="dvds_quantity" runat="server"/>
In my script, I want to refer to the names dynamically like this:
eval("books" + "_quantity").Text = 100;
Is it possible in C#? Because in PHP, Javascript.. they all can do this.
Help..