Easy one - Mobile or PC RRS feed

  • Question

  • User-844087814 posted

    How can I make my login page send the user to webite\default.aspx if on a PC and to website\mobile\default.aspx if on a mobile device?




    Friday, May 13, 2005 3:11 PM

All replies

  • User-888460199 posted
    Consider: You default to PC and in your code behind in the OnPreInit() function check the user's platform (Request.Browser.Platform or Request.Browser.Type/Request.Browser.Name) - . If it is a mobile device, redirect them to where you want them to go (Server.Transfer).

    Thursday, August 4, 2005 11:57 AM