Get mobile device information (VB.net) : Mobile Capabilities « Mobile Control « ASP.Net






Get mobile device information (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 = "Mobile Device?: " _
        & MyMobCaps.IsMobileDevice _
        & " Mobile Device Model: " _
        & MyMobCaps.MobileDeviceModel _
        & " Mobile Device Manufacturer: " _
        & MyMobCaps.MobileDeviceManufacturer
End Sub
</script>
<mobile:Form id="Test" runat="server">
    <mobile:label
        runat="server" 
        id="Label1"
    />
</mobile:Form>

           
       








Related examples in the same category

1.Get mobile device code Capabilities (VB.net)
2.Get mobile device screen width and height (VB.net)
3.Mobile Capabilities: support color? (VB.net)
4.Mobile Capabilities
5.Preferred RenderingType