Link to home
Start Free TrialLog in
Avatar of AdibRahman77
AdibRahman77Flag for United States of America

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?


Avatar of McExp
McExp
Flag of United Kingdom of Great Britain and Northern Ireland image

Are the checkboxes created from aspx code?

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?
Avatar of AdibRahman77

ASKER

Can you show me an example of dynamically creating checkboxlist  in the codebehind?
ASKER CERTIFIED SOLUTION
Avatar of McExp
McExp
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Have you resolved your problems?

If so shall we close this off?

We might even win the laptops!!!