Hello there,
I am using ASP.NET with C# and facing below problem. I am not able to get values of selected checkboxes which are generated dynamically.
Pls have a look at the image attached with the message...
Waiting for your reply....
Thanks,
Paresh
Printable View
Hello there,
I am using ASP.NET with C# and facing below problem. I am not able to get values of selected checkboxes which are generated dynamically.
Pls have a look at the image attached with the message...
Waiting for your reply....
Thanks,
Paresh
When you added the control to the page you give them an ID, ie chkAdmin.
Use the FindControl function to get this control:
WoofVB Code:
Dim chkAdmin As CheckBox = CType(Me.FindControl("chkAdmin"), CheckBox) Dim Value As Boolean = chkAdmin.Checked