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

Home
ASP.Net
1.ADO.net Database
2.Ajax
3.Asp Control
4.Collections
5.Components
6.Data Binding
7.Development
8.File Directory
9.HTML Control
10.Language Basics
11.Login Security
12.Mobile Control
13.Network
14.Page
15.Request
16.Response
17.Server
18.Session Cookie
19.Sitemap
20.Theme Style
21.User Control and Master Page
22.Validation by Control
23.Validation by Function
24.WebPart
25.WPF
26.XML
ASP.Net » Mobile Control » Mobile Capabilities 
Get mobile device code Capabilities (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
    If MyMobCaps.IsColor Then
        Image1.ImageURL="color.gif"
    Else
        Image1.ImageURL="nocolor.gif"
    End If
End Sub
</script>
<mobile:Form id="Test" runat="server">
    <mobile:Image 
        runat="server" 
        id="Image1"
        AlternateText="No graphics supported!">
    </mobile:Image>
</mobile:Form>

           
       
Related examples in the same category
1.Get mobile device information (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
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.