Define style separately (VB.net) : Style « Mobile Control « ASP.Net






Define style separately (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="The Title" 
        stylereference="title" 
    />
    <mobile:label 
        runat="server" 
        id="lbl2"
        text="Large Text" 
        stylereference="BigText" 
    />
    <mobile:label 
        runat="server" 
        id="lbl3"
        text="Small Text" 
        stylereference="SmallText" 
    />
</mobile:form>
<mobile:stylesheet id="ss1" runat="server">
    <Style Font-Size="Large" Font-Name="Arial" 
        Font-Bold="true" ForeColor="Green" 
        Font-Italic="True"  Name="BigText"/>
    <Style Font-Size="Small" Font-Name="Arial"
        ForeColor="Blue" Name="SmallText" />
</mobile:StyleSheet>

           
       








Related examples in the same category