ASP.Net/Mobile Control/Password

Материал из .Net Framework эксперт
Версия от 11:52, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Mobile password field (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>



Mobile password 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">
</script>
<mobile:form 
    id="StartForm" 
    runat="server">
<mobile:label
    runat="server"
    id="lbl1"
    text="Enter your password:"
/>
<mobile:textbox
    runat="server" 
    id="txtPassword"
    password="True"
/>
</mobile:form>