467,915 Members | 1,541 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

standard asp.net + mobile asp.net

Hey

asp.net 2.0

I wonder if it's possible to have both standard asp.net and mobile asp.net
in the same web application. When the web server gets a request it can
detect if this requested comes from a mobile or not???.

Maybe there is setting in web.config specifying the default page if
requested by a mobile phone???

Jeff
Sep 24 '06 #1
  • viewed: 1594
Share:
1 Reply
I don't know what you mean by a mobile asp.net site. I thought there was
only an asp.net web site--possibly with special pages that will display well
in mobile devices.

That given, the code below will determine if the device accessing the page
uses the WinCe operating system, in which case it can the be directed to a
page at the site that will display nicely in the mobile device.

If your mobile device uses an operating system other than WinCe, then just
substitute that.
Dim temp As String = LCase(Request.Browser.Platform) 'WinCE
If InStr(temp, "wince") 0 Then
'send them to the appropriate page for mobile
Else
'send them to a normal page
End If
"Jeff" <it************@hotmail.com.NOSPAMwrote in message
news:%2***************@TK2MSFTNGP02.phx.gbl...
Hey

asp.net 2.0

I wonder if it's possible to have both standard asp.net and mobile asp.net
in the same web application. When the web server gets a request it can
detect if this requested comes from a mobile or not???.

Maybe there is setting in web.config specifying the default page if
requested by a mobile phone???

Jeff

Sep 24 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Nick White [MSFT] | last post: by
reply views Thread by Wiktor Zychla | last post: by
reply views Thread by =?Utf-8?B?Q2hhcmxlcw==?= | last post: by
5 posts views Thread by rn5a | last post: by
1 post views Thread by Vangati | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.