SelectionList problem

L

leezard

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.
 
D

duncan mason

Hi there,

I believe the method call you need to make is:

Origin.Selection.Value
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,807
Latest member
ryef

Latest Threads

Top