Ask a Question related to ASP.NET Building Controls, Design and Development.
-
studen771 #1
LoadPostData and html <select> with multiple selections
Thanks in advance to anyone else who can help :)
I've got a custom control that contains a PLAIN HTML <select> element that
allows multiple selections (NOT A asp.net listbox, listcontrol or
derivatives, etc.)
Within the LoadPostData method I'm trying to retrieve the values that were
chosen from the <select> element, yet the NameValueCollection parameter that
this method passes only allows for single strings, NOT collections..(at least
to my understanding up to this point)
How is it possible for me to retrieve the items selected out of my <select>
html element in the LoadPostData method when its second parameter
(NameValueCollection xxx) only accepts strings?
studen771 Guest
-
datagrid multiple selections
How do i go about dealing with multiple selections within a datagrid? Any tutorials or examples. Thanks Dave -
Multiple Selections
I have a multiple dropdown which have multiple selection. If I select multiple value on my multiple dropdown list and submit it,how can i write... -
HTTPService with multiple selections?
I have a form with a list of criteria that I need to send to the server for processing. Does anyone know how to send it with an HTTPService ? I have... -
HTML::Form, Multiple select Elements with Same name
Hi all, I have a form that has multiple <select> elements that have the same name. This is so that the destination script can deal with all of... -
php and html forms: select multiple default selected from php/mysql
hi, i'm pretty new to all this, so bear with me.... i want to call from the database the total number of options for a select box (from table... -
Gaurav Vaish \(www.EduJiniOnline.com\) #2
Re: LoadPostData and html <select> with multiple selections
> How is it possible for me to retrieve the items selected out of my
The value for the corresponding key contains the entries as a string but in> <select>
> html element in the LoadPostData method when its second parameter
> (NameValueCollection xxx) only accepts strings?
a comma-separated form.
You may simply do:
string[] allSelectedValues = postCollection.GetValues(postDataKey);
If no values were selected, the array will be null.
--
Happy Hacking,
Gaurav Vaish | [url]http://www.mastergaurav.com[/url]
[url]http://www.edujinionline.com[/url]
[url]http://articles.edujinionline.com/webservices[/url]
-------------------
Gaurav Vaish \(www.EduJiniOnline.com\) Guest



Reply With Quote

