Set text to mobile label (VB.net) : Label « Mobile Control « ASP.Net






Set text to mobile label (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)
    Dim MyMobCaps as Mobile.MobileCapabilities
    MyMobCaps = Request.Browser
    Label1.Text = "Your browser name is: " _
        & MyMobCaps.Browser
End Sub
</script>
<mobile:Form id="Test" runat="server">
    <mobile:label
        runat="server" 
        id="Label1"
    />
</mobile:Form>

           
       








Related examples in the same category

1.Mobile Label: bold, reference style (VB.net)
2.Mobile label: font and alignment (VB.net)
3.Mobile label visibility (VB.net)
4.Mobile label: foreground color and wrap (VB.net)