[lnkForumImage]
TotalShareware - Download Free Software

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


 

leezard

8/17/2003 5:43:00 PM

I have created 4 SelectionList boxes and a Command button. User will make
their selections and hit the Command button, the code below are for the
Command button.

<code>
Sub submit_Click(sender As Object, e As EventArgs)
Response.redirect("mpaging.aspx?Day=" + Day.SelectedItem.Value +
"&TimeID=" + TimeID.SelectedItem.Value + "&Origin=" +
Origin.SelectedItem.Value + "&DestID=" + DestID.SelectedItem.Value)
End Sub
</code>

Compiler Error Message: BC30456: 'SelectedItem' is not a member of
'System.Web.UI.MobileControls.SelectionList'.

This error is generated when I hit the Command button, I've copy out this
code from a working ASP.NET webpage. So what is the correct statement to
perform the task above in a mobile webpage?

Thanks in advance.


1 Answer

duncan

8/21/2003 11:00:00 AM

0

Hi there,

I believe the method call you need to make is:

Origin.Selection.Value

>
> <code>
> Sub submit_Click(sender As Object, e As EventArgs)
> Response.redirect("mpaging.aspx?Day=" + Day.SelectedItem.Value +
> "&TimeID=" + TimeID.SelectedItem.Value + "&Origin=" +
> Origin.SelectedItem.Value + "&DestID=" + DestID.SelectedItem.Value)
> End Sub
> </code>
>
> Compiler Error Message: BC30456: ''SelectedItem'' is not a member of
> ''System.Web.UI.MobileControls.SelectionList''.
>
> This error is generated when I hit the Command button, I''ve copy out this
> code from a working ASP.NET webpage. So what is the correct statement to
> perform the task above in a mobile webpage?
>
> Thanks in advance.