I have a HTML list box created and I am trying to access the selected values on the PostBack. However I am only getting one value back from the list box.
<TD ID='TDDescripti on'>
<SELECT NAME='Descripti on' Class='RegText' isrequired=Yes Multiple=True Size=6 divname='Non-FatalCorrected' >
<OPTION Value='aa' >aa</OPTION>
<OPTION Value='bb' >bb</OPTION>
<OPTION Value='cc' >cc</OPTION>
<OPTION Value='dd' >dd</OPTION>
<OPTION Value='ee' >ee</OPTION>
</SELECT> </TD></TR></Table></Div></td>
In the code behind I have:
Dim aString As String = Request.Form("D escription")
I expected to get the results back as "aa,bb,cc,dd,ee " if all the results were selected. However I am only getting back "aa".
Any ideas?
<TD ID='TDDescripti on'>
<SELECT NAME='Descripti on' Class='RegText' isrequired=Yes Multiple=True Size=6 divname='Non-FatalCorrected' >
<OPTION Value='aa' >aa</OPTION>
<OPTION Value='bb' >bb</OPTION>
<OPTION Value='cc' >cc</OPTION>
<OPTION Value='dd' >dd</OPTION>
<OPTION Value='ee' >ee</OPTION>
</SELECT> </TD></TR></Table></Div></td>
In the code behind I have:
Dim aString As String = Request.Form("D escription")
I expected to get the results back as "aa,bb,cc,dd,ee " if all the results were selected. However I am only getting back "aa".
Any ideas?
Comment