469,963 Members | 2,803 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,963 developers. It's quick & easy.

How to capture the value of html check boxes created dynamically

Hi freinds,

In my aspx page i have generated some check boxes dynamically
using dhtml.
When i check any check box and submit the form,how can i capture the
value of check box.
How should i identify wich check box is been checked.And the check
boxes are not server controls.They are the ordinary html check
boxes.Can any one help me out

Thanks
Muthu

Apr 26 '06 #1
2 1759
Request.Form["name"] should work.

Cheers

Greg
"muthu" <s.*************@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
Hi freinds,

In my aspx page i have generated some check boxes dynamically
using dhtml.
When i check any check box and submit the form,how can i capture the
value of check box.
How should i identify wich check box is been checked.And the check
boxes are not server controls.They are the ordinary html check
boxes.Can any one help me out

Thanks
Muthu

Apr 26 '06 #2
for a checkbox to postback its status, you need to give it a name and a
value. if the user selects it, then the browser will postback it name/value
pair. if not selected, its not included in the postback. to access
non-server control name/value pairs just use the Request.Form collection,
where the name is the indexer.
-- bruce (sqlwork.com)
"muthu" <s.*************@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
Hi freinds,

In my aspx page i have generated some check boxes dynamically
using dhtml.
When i check any check box and submit the form,how can i capture the
value of check box.
How should i identify wich check box is been checked.And the check
boxes are not server controls.They are the ordinary html check
boxes.Can any one help me out

Thanks
Muthu

Apr 26 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Stephen Miller | last post: by
reply views Thread by j101 | last post: by
15 posts views Thread by lxyone | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.