Hi All,
This is driving me insane. People please help me out!
(I'm working with ASP.Net using C#)
I need to manipulate a couple of server-side controls (CheckBox, DropDownList, ListBox, etc) using client-side script. The problem is that the object model of the server-side controls is not accessible via client-side script. For example, in a code-behind class, I could write:
In client-side script, however, the story is different. If I were to write the same code I wrote above, I would get an error in the page. So, the question is: How do I interact with server-side controls using client-side script?
Please note that this problem has reached very high frustration levels and that lack of help would cause me to commit suicide (ok, ok, maybe I won't - just help me out)
Thanks!
Jose
This is driving me insane. People please help me out!
(I'm working with ASP.Net using C#)
I need to manipulate a couple of server-side controls (CheckBox, DropDownList, ListBox, etc) using client-side script. The problem is that the object model of the server-side controls is not accessible via client-side script. For example, in a code-behind class, I could write:
Code:
//This is C# code
DropDownList ddl = new DropDownList();
ddl.Items.Add(...);
Please note that this problem has reached very high frustration levels and that lack of help would cause me to commit suicide (ok, ok, maybe I won't - just help me out)
Thanks!
Jose