Getting inputype Checkbox values without ID

M

Mansi Shah

Hi,

I have used a literal control in my form and it's text is generated
dynamically. It has all the products with checkboxs. Now i want all the
values of products, the user have checked.

Can anybody tell how can i get values of dynamically genereated(input
type="Checkbox") control's value??

waiting for reply..

Thank you,
Mansi Shah.
 
N

Nathan Sokalski

First of all, why are you using a literal control to create checkboxes? But
if you do want to do it that way, I think that you use the Request.Form
property. Take a look at the documentation for details; I have never done it
this way, and am not 100% positive that this is how to do it since I have
not looked at the details yet. However, my recommendation would be to not
create form fields using literal control. If none of the existing controls
meet your need, write a custom control or write a class that inherits one of
the existing controls.
 
M

Mansi Shah

Hi,

Thanx for your reply. U r right. so, I had impletemented it using
gridview instead literal N its working perfect.


Regards,
Mansi Shah.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top