ASP.Net/Mobile Control/Password — различия между версиями

Материал из .Net Framework эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Текущая версия на 11:52, 26 мая 2010

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>