简体   繁体   English

Asp.net在移动设备上工作

[英]Asp.net works on mobile device

I asked to get clarify, I have an asp.net site it works great. 我要求澄清一下,我有一个asp.net网站,它很好用。 Site Contains many pages ,what I aim to do, is to make this page works on mobile device. 网站包含许多页面,我的目标是使此页面在移动设备上运行。 The Real problem it, my page contains many and many controls, So there is messy in the page . 真正的问题吧,我的页面包含许多控件,因此页面中杂乱无章。

First I want to know, how can I make page on asp.net works on mobile device? 首先,我想知道如何使asp.net上的页面在移动设备上工作?
Second ,Is it should to create a new one to get few of controls of the main page , because on the mobile page I need only few of the original . 其次,是否应该创建一个新控件以使主页的控件很少,因为在移动页面上,我只需要很少的控件即可。

Update:- my site is responsive But I have a specific page which have a lot of controls and it looks messy in appearing on mobile , So I need to create a new page similar to this page with fewer controls appears only when user use mobile not web browser. 更新:-我的网站响应迅速,但是我有一个特定的页面,其中包含很多控件,并且在移动设备上显示时看起来很乱,所以我需要创建一个与此页面类似的新页面,只有在用户不使用移动设备时才会出现更少的控件网页浏览器。

Sorry for bad English, or being not organized. 对不起,英语不好,或者组织不好。

Browser sniffing is not reliable. 浏览器嗅探不可靠。 You should look to redesigning your site as RWD (Responsive Web Design). 您应该将网站重新设计为RWD(响应式Web设计)。 Use Nuget to bring in Twitter Bootstrap and start from there. 使用Nuget引入Twitter Bootstrap并从那里开始。

Here's an example using Web Forms (MVC would be similar): 这是一个使用Web窗体的示例(MVC与此类似):

http://www.mytecbits.com/microsoft/dot-net/bootstrap-3-0-0-with-asp-net-web-forms http://www.mytecbits.com/microsoft/dot-net/bootstrap-3-0-0-with-asp-net-web-forms

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM