squirrel
  •  squirrel
  • 100% (Exalted)
  • YAF Leader Topic Starter
2011-02-13T22:03:50Z
Is there a way from inside one of the aspx/ascx pages to determine if YAF is outputting to a mobile browser? I have a header inserted in our default.aspx under the YAF root that displays an advertisement, but it is formatted for full version output. I need to pickup whether or not YAF is outputting the page as a mobile and if so, either disable that ad or use an alternative version. Something in the pageContext maybe (like was shown in another post for the user ranks)?

Thanks!
If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
Sponsor
bbobb
  •  bbobb
  • 100% (Exalted)
  • YAF Developer
2011-02-14T13:16:03Z
Quick reply
PageContext.IsMobileDevice
squirrel
  •  squirrel
  • 100% (Exalted)
  • YAF Leader Topic Starter
2011-02-15T01:51:44Z
Originally Posted by: bbobb 

Quick reply
PageContext.IsMobileDevice



Thank you! I'm assuming that can be run as a 'true/false' check basically and I can run my code that way -- 🙂
If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved