HighTechTalks DotNet Forums  

Getting inputype Checkbox values without ID

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss Getting inputype Checkbox values without ID in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Mansi Shah
 
Posts: n/a

Default Getting inputype Checkbox values without ID - 10-22-2007 , 02:15 AM







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.

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #2  
Old   
Nathan Sokalski
 
Posts: n/a

Default Re: Getting inputype Checkbox values without ID - 10-30-2007 , 10:19 PM






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.
--
Nathan Sokalski
njsokalski (AT) hotmail (DOT) com
http://www.nathansokalski.com/

"Mansi Shah" <mansi (AT) devdex (DOT) com> wrote

Quote:
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.

*** Sent via Developersdex http://www.developersdex.com ***



Reply With Quote
  #3  
Old   
Mansi Shah
 
Posts: n/a

Default Re: Getting inputype Checkbox values without ID - 10-31-2007 , 03:35 AM




Hi,

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


Regards,
Mansi Shah.

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.