-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Pandurang_Nayak
Message 3 in Discussion
I would suggest a little use of JavaScript
and a trick here (assuming from Pooran's mail that ASP.NET doesn't support this,
which I think is surprising).
The JavaScript would be something
like:
var strList = "";
for(i=0;i<document.forms[0].elements.length;i++)
{
if(document.forms[0].element[i].name.substr(0, 5) == "check"))
{
strList = i + ",";
}
}
document.forms[0].hiddenfieldname.value =
strList;
You could call this function onclick of the
submit button. This would put in the numbers of the checkboxes and you could
retrieve it from the hidden form field.
note that i assume you will name the
checkboxes with a name starting with "check"
rgds
Pandurang
-----Original Message-----
From: MysticAspen
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003
12:12 PM
To: BDOTNET
Subject: Determining the Check Boxes
Selected
New Message on BDOTNET
Determining the Check Boxes Selected
Reply
Reply to Sender Recommend
Message 1 in
Discussion
From: MysticAspen
Hi All
I use a asp:Checkbox Control. There is a list
boxe for every row of information displayed. basically the user
has the option to select ant row of his/her choice. In Classic
HTML if i would do a QueryString for the Checkbox control it
would give a Array of Checkboxes that were selected.
Say for E.g
Request.QueryString("facilitiesid")--->This would give
the id's that were selected.
like 9,12,13
Is there a way in .net to get the Selected values in the
above fashion?
Thanks in Advance
Srivats
View other groups in this
category.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]