Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
Dim browser As System.Web.Mobile.MobileCapabilities = CType(Request.Browser, System.Web.Mobile.MobileCapabilities)
If browser.ScreenCharactersWidth < 20 Then
Label1.Text = "short text message"
Else
Label1.Text = "long text message"
End If
End If
End Sub
My English is very poor ,Maybe I can't express my meaning exactly.
Notice:20 is Characters Width in line
Openwave 7.0 only has 19 Characters
you can test browser.screencharacterswidth value for you Smart phone and you PDA-phone
i from china!
I can understand Chinglish only.
Frankly speaking, the above sentence is translated by others.