[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.buildingcontrols

LoadPostData and html

0

> 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?

The value for the corresponding key contains the entries as a string but in
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 | http://www.master...
http://www.edujini...
http://articles.edujinionline.com/w...
-------------------