YAFLogo

squirrel
  • squirrel
  • 100% (Exalted)
  • YAF Leader Topic Starter
14 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
14 years ago
Quick reply

PageContext.IsMobileDevice

squirrel
  • squirrel
  • 100% (Exalted)
  • YAF Leader Topic Starter
14 years ago

Quick reply

PageContext.IsMobileDevice

Originally Posted by: bbobb 

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