Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.aspnet.buildingcontrols
Getting inputype Checkbox values without ID
Mansi Shah
10/22/2007 6:16:00 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.develop...
***
2 Answers
Nathan Sokalski
10/31/2007 2:19:00 AM
0
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@hotmail.com
http://www.nathansok...
"Mansi Shah" <mansi@devdex.com> wrote in message
news:urvC7LHFIHA.3400@TK2MSFTNGP03.phx.gbl...
>
> 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.develop...
***
Mansi Shah
10/31/2007 7:36:00 AM
0
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.develop...
***
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Getting inputype Checkbox values without ID
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password