indydavid32
May 3rd, 2004, 12:31 PM
In my mobile web page, I have to create my Selection List like this in order to get the value when the user clicks the List.
mobile:Panel id="Panel1" runat="server">
<mobile:DeviceSpecific id="DeviceSpecific1" runat="server">
<Choice Filter="supportsJavaScript">
<ContentTemplate>
<mobile:SelectionList id="cmbEmployees" runat="server" onselectedindexchanged="SelectionList1_SelectedIndexChanged"></mobile:SelectionList>
<mobile:Command runat="server" text="Submit" ID="Command2" NAME="Command2" />
</ContentTemplate>
</Choice>
</mobile:DeviceSpecific>
</mobile:Panel></vbcode>
I also have in my web.config page the following...
<filter name="supportsJavaScript" compare="Javascript" argument="true" />
This is supposed to work but I get an error on this line.
<mobile:SelectionList id="cmbEmployees" runat="server" onselectedindexchanged="SelectionList1_SelectedIndexChanged"></mobile:SelectionList>
The error message is...
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30456: 'SelectionList1_SelectedIndexChanged' is not a member of 'ASP.Login_aspx'.
Source Error:
Line 18: <Choice Filter="supportsJavaScript">
Line 19: <ContentTemplate>
Line 20: <mobile:SelectionList id="cmbEmployees" runat="server" onselectedindexchanged="SelectionList1_SelectedIndexChanged"></mobile:SelectionList>
Line 21: <mobile:Command runat="server" text="Submit" ID="Command2" NAME="Command2" />
Line 22: </ContentTemplate>
Source File: http://localhost/Mobile1/Login.aspx Line: 20
Anyone have any ideas why this is not working?
Thanks
mobile:Panel id="Panel1" runat="server">
<mobile:DeviceSpecific id="DeviceSpecific1" runat="server">
<Choice Filter="supportsJavaScript">
<ContentTemplate>
<mobile:SelectionList id="cmbEmployees" runat="server" onselectedindexchanged="SelectionList1_SelectedIndexChanged"></mobile:SelectionList>
<mobile:Command runat="server" text="Submit" ID="Command2" NAME="Command2" />
</ContentTemplate>
</Choice>
</mobile:DeviceSpecific>
</mobile:Panel></vbcode>
I also have in my web.config page the following...
<filter name="supportsJavaScript" compare="Javascript" argument="true" />
This is supposed to work but I get an error on this line.
<mobile:SelectionList id="cmbEmployees" runat="server" onselectedindexchanged="SelectionList1_SelectedIndexChanged"></mobile:SelectionList>
The error message is...
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30456: 'SelectionList1_SelectedIndexChanged' is not a member of 'ASP.Login_aspx'.
Source Error:
Line 18: <Choice Filter="supportsJavaScript">
Line 19: <ContentTemplate>
Line 20: <mobile:SelectionList id="cmbEmployees" runat="server" onselectedindexchanged="SelectionList1_SelectedIndexChanged"></mobile:SelectionList>
Line 21: <mobile:Command runat="server" text="Submit" ID="Command2" NAME="Command2" />
Line 22: </ContentTemplate>
Source File: http://localhost/Mobile1/Login.aspx Line: 20
Anyone have any ideas why this is not working?
Thanks