How can I access child controls of a web form?
-
I have a web page with a asp:checklistbox object. I have buttons to "check all" checkboxes; however, to avoid the roundtrip back to the server, I was wondering if I could use jscript to set the checkboxes in the client. The problem I have is how do I access all of the checkboxes that get automatically generated by the checklistbox? If I can access all the checklistboxes of the form then I could set their value to checked.
-
I have a web page with a asp:checklistbox object. I have buttons to "check all" checkboxes; however, to avoid the roundtrip back to the server, I was wondering if I could use jscript to set the checkboxes in the client. The problem I have is how do I access all of the checkboxes that get automatically generated by the checklistbox? If I can access all the checklistboxes of the form then I could set their value to checked.
-
-
Colin Angus Mackay wrote:
using some javascript on the client side.
Ah. :-O I guess I'm heavily influenced by code-behind. So nice to dive into ASP.NET and see the resemblance to an MVC paradigm with a distinct separation of presentation and control. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com
-
Colin Angus Mackay wrote:
using some javascript on the client side.
Ah. :-O I guess I'm heavily influenced by code-behind. So nice to dive into ASP.NET and see the resemblance to an MVC paradigm with a distinct separation of presentation and control. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com
-
I am heavily influenced by that as well; however, in this case I would prefer to avoid the trip back to the server.
-