How can I force iPad to always Request Desktop Site?

时间:2018-06-04 17:35:54

标签: vb.net ipad

At my new company I am maintaining a VB.Net webforms application. We are seeing an issue when viewing the site on an iPad that can be fixed by Requesting Desktop Site in either Chrome or Safari. Is there a way to force this in code so the user does not have to hold the refresh button in Safari and request the desktop site?

UPDATE: We are using Telerik controls and the functionality changes when its displayed on an iPad vs a browser on a desktop. When I pull up the page on an iPad the textbox filters will not work until I select Request Desktop Site, see below for wrong incorrect version.

enter image description here

Here is what it looks like after that is selected and normally on a desktop browser. enter image description here

So I need a way to force the browser to request the desktop site/version when viewing on an iPad.

1 个答案:

答案 0 :(得分:0)

没有一些例子很难对此发表评论,但我想我知道如何获得你想要的结果。在页面的HTML中:

<meta name="viewport" content="width=device-width, initial-scale=1">

来源here

这应该可以解决您在所有浏览器中看到的问题,如果它是我认为的那样。

编辑:问题已经明显更新,这绝对不是正确的答案。

相关问题