mobile selectionList Demo (ComboBox) (VB.net)
<%@ Page
Inherits="System.Web.UI.MobileControls.MobilePage"
Language="VB"
%>
<%@ Register
TagPrefix="mobile"
Namespace="System.Web.UI.MobileControls"
Assembly="System.Web.Mobile"
%>
<script runat="server" language="VB">
Sub OK_OnSubmit(Sender As Object, E As EventArgs)
lbl1.Text = sl1.Selection.Value
ActiveForm = Test2
End Sub
</script>
<mobile:Form id="Test" runat="server">
<mobile:Label
runat="server"
id="lblTitle"
StyleReference="title"
Text="SelectionList Test Page"
/>
<mobile:SelectionList
runat="server"
id="sl1"
SelectType="DropDown"
>
<Item Text="Item1" Value="1:1" />
<Item Text="Item2" Value="1:2" />
</mobile:SelectionList>
<mobile:Command
runat="server"
id="cmdOK"
OnClick="OK_OnSubmit"
Text="OK"
/>
</mobile:Form>
<mobile:Form id="Test2" runat="server">
<mobile:Label
runat="server"
id="lblTitle2"
StyleReference="title"
Text="SelectionList Test Page"
/>
<mobile:Label
runat="server"
id="lbl1"
/>
</mobile:Form>
Related examples in the same category