YAFLogo

squirrel
  • squirrel
  • 100% (Exalted)
  • YAF Leader Topic Starter
13 years ago
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
13 years ago
Quick reply
PageContext.IsMobileDevice
squirrel
  • squirrel
  • 100% (Exalted)
  • YAF Leader Topic Starter
13 years ago
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 
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
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