AdibRahman77
asked on
Retriveing checkbox value in ASP.NET
I have list of dynamic html checkboxes like below in ASP.NET page
<input name="SecuritySuite1" type="checkbox" value="" />
<input name="SecuritySuite2" type="checkbox" value="" />
<input name="SecuritySuite3" type="checkbox" value="" />
.
.
.
<input name="SecuritySuite n" type="checkbox" value="" />
How do I access the values in the codebehind dynamically since I dont know the name of SecuritySuite ...n.
How do I loop to the Request.Params collection for these checkboxes?
<input name="SecuritySuite1" type="checkbox" value="" />
<input name="SecuritySuite2" type="checkbox" value="" />
<input name="SecuritySuite3" type="checkbox" value="" />
.
.
.
<input name="SecuritySuite n" type="checkbox" value="" />
How do I access the values in the codebehind dynamically since I dont know the name of SecuritySuite ...n.
How do I loop to the Request.Params collection for these checkboxes?
ASKER
Can you show me an example of dynamically creating checkboxlist in the codebehind?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Have you resolved your problems?
If so shall we close this off?
We might even win the laptops!!!
If so shall we close this off?
We might even win the laptops!!!
If so you could use a CheckBoxList Control and then dynamically add the items and then subsequently itterate thorugh the items collection of the CheckBoxList?