Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Mobile > SelectionList problem

Reply
Thread Tools

SelectionList problem

 
 
leezard
Guest
Posts: n/a
 
      08-17-2003
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.


 
Reply With Quote
 
 
 
 
duncan mason
Guest
Posts: n/a
 
      08-21-2003
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SelectionList Control Kenny ASP .Net 0 12-01-2003 02:17 PM
selectionList and datareader problem - Please Help!! domchik ASP .Net Mobile 0 09-02-2003 02:15 PM
SelectionList Problem Sanjay Sood ASP .Net Mobile 1 08-12-2003 02:00 AM
Databound SelectionList Problem Ran ASP .Net Mobile 0 08-11-2003 10:38 PM
SelectionList DataValueField problem Brad Wist ASP .Net Mobile 0 07-30-2003 08:35 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57