ASP.Net/Mobile Control/TextBox
Get value from mobile textbox (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 Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
If Not IsPostBack Then
Dim MyItem1 as New MobileListItem
Dim MyItem2 as New MobileListItem
Dim MyItem3 as New MobileListItem
MyItem1.Text = "A"
MyItem2.Text = "B"
MyItem3.Text = "C"
List1.Items.Add(MyItem1)
List1.Items.Add(MyItem2)
List1.Items.Add(MyItem3)
End If
End Sub
Sub OK_OnSubmit(Sender As Object, E As EventArgs)
List1.Items.Remove(txtitem.Text)
End Sub
</script>
<mobile:form
id="StartForm"
runat="server">
<mobile:list
runat="server"
id="List1"
/>
<mobile:label
runat="server"
id="lbl1"
Text="Item to remove:"
/>
<mobile:textbox
runat="server"
id="txtItem"
/>
<mobile:Command
runat="server"
id="cmdOK"
OnClick="OK_OnSubmit"
Text="OK"
/>
</mobile:form>
<A href="http://www.nfex.ru/Code/ASPDownload/EmployeeDatabase.zip">EmployeeDatabase.zip( 10 k)</a>
Mobile textbox size and length (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">
</script>
<mobile:form
id="StartForm"
runat="server">
<mobile:textbox
runat="server"
id="txtSomeText"
text="Enter some text"
maxlength=25
size=6
/>
</mobile:form>
Numeric Mobile textbox (VB.net)
<%@ Page
Inherits="System.Web.UI.MobileControls.MobilePage"
Language="VB"
%>
<%@ Register
TagPrefix="mobile"
Namespace="System.Web.UI.MobileControls"
Assembly="System.Web.Mobile"
%>
<mobile:Form id="Test" runat="server">
<mobile:Label
runat="server"
id="lblTitle"
StyleReference="title"
Text="TextBox Test Page"
/>
<mobile:Label
runat="server"
id="lbl1"
Text="Enter Some Text"
/>
<mobile:TextBox
runat="server"
id="txt1"
MaxLength=20
/>
<mobile:Label
runat="server"
id="lbl2"
Text="Enter a Number"
/>
<mobile:TextBox
runat="server"
id="txt2"
MaxLength=20
Numeric=True
/>
<mobile:Label
runat="server"
id="lbl3"
Text="Enter Password"
/>
<mobile:TextBox
runat="server"
id="txt3"
MaxLength=20
Password=True
/>
</mobile:Form>