Smart Phone question

D

Dave

If I have a forms authentication web page, how can I tell if a visitor
is coming from a Desktop or a smart phone? I'd like to redirect to a
different page after logging in if coming from a smart phone.

Thanks
 
J

Jason Keats

Dave said:
If I have a forms authentication web page, how can I tell if a visitor
is coming from a Desktop or a smart phone? I'd like to redirect to a
different page after logging in if coming from a smart phone.

Use JavaScript to detect the client's screen resolution - that is,
return screen.width and screen.height.
 
C

Cubaman

If I have a forms authentication web page, how can I tell if a visitor
is coming from a Desktop or a smart phone?  I'd like to redirect to a
different page after logging in if coming from a smart phone.

Thanks

Use Page.Request.UserAgent property to determine the web broowser.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top