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

前端 未结 2 643
死守一世寂寞
死守一世寂寞 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:04

    I've solved my particular issue (detecting iPad) with the following file in my application's App_Browsers folder:

    
      
      
        
          
        
    
        
          
          
          
        
      
    
    

    Then in the code I test:

    if (Request.Browser.MobileDeviceModel == "IPad")
      ...
    

提交回复
热议问题