[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Frank Tse [MS]

2/27/2002 2:22:00 AM

You were probably missing the corresponding namespace for
MobileCapabilities.

You either specify the namespace explicitly as
Line 13: Dim capabilities as System.Web.Mobile.MobileCapabilities

Or import the namespace at the beginning of the aspx file or the code behind
cs file (depends on where your code below is specified)
aspx file:
<%@ Import Namespace="System.Web.Mobile" %>
cs file:
Imports System.Web.Mobile

Frank
--
This posting is provided "AS IS" with no warranties, and confers no rights.


"spikes" <mrspyx@yahoo.com> wrote in message
news:659901c1b9db$f4b0ac00$9ee62ecf@tkmsftngxa05...
> i Get an error: Type 'MobileCapabilities' is not defined.
> when trying to get uniquedeviceid, code below:
>
> Line 11: Sub Page_Load(sender As Object, e As EventArgs)
> Line 12: If (Not IsPostBack)
> Line 13: Dim capabilities as MobileCapabilities
> Line 14: Dim strDeviceID as String
> Line 15: capabilities = Request.Browser