Smart Phone question

  • Thread starter Thread starter Dave
  • Start date Start date
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
 
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.
 
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.
 
Back
Top