Request.Browser.Platform not returning iPad, OSX, or Windows7

前端 未结 2 640
死守一世寂寞
死守一世寂寞 2021-01-12 18:16

I\'m working on some advanced browser detection, and I\'ve downloaded the MDBF browser file from CodePlex.

Unfortunately my Request.Browser.Platform, along with a fe

2条回答
  •  感情败类
    2021-01-12 19:07

    Use Request.UserAgent instead.

    Beware that it includes the word Mobile as well:

      Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us)
      AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 
      Mobile/7B367 Safari/531.21.10
    

    From Apple on preparing content for iPad:
    https://developer.apple.com/library/content/technotes/tn2010/tn2262/_index.html

提交回复
热议问题