发生了什么事ASP.Net移动Web窗体? [英] What Happened to ASP.Net Mobile Web Forms?

查看:99
本文介绍了发生了什么事ASP.Net移动Web窗体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

previously Visual Studio中有移动web表单模板(不移动SDK)。它们出现在Visual Studio 2008和我见过的唯一的解决办法就是从这里奥马尔下载一些模板消失:

Previously Visual Studio had templates for mobile web forms (not the mobile SDK). They appear to be gone in Visual Studio 2008 and the only solution I've seen is to download some templates from Omar here:

<一个href=\"http://blogs.msdn.com/webdevtools/archive/2007/09/17/tip-trick-asp-net-mobile-development-with-visual-studio-2008.aspx\" rel=\"nofollow\">http://blogs.msdn.com/webdevtools/archive/2007/09/17/tip-trick-asp-net-mobile-development-with-visual-studio-2008.aspx

这是支持了,如果是这样是这种支持的解决方案?

Is this supported anymore and if so is this the supported solution?

推荐答案

我想我会再来回答这个问题。移动窗体控件仍然存在和非正式上面提供的模板可唯一的,我已经找到。我不知道为什么他们拿出来,在Visual Studio 2008。

I thought I'd come back to answer this. The mobile forms controls are still there and the templates provided unofficially above are the only ones available that I've found. I'm not sure why they took them out in Visual Studio 2008.

没有模板,你主要是你只需要改变你的网页从MobilePage而非网页和你的控制,以获得从MobileUserControl,而不是用户控件派生。要访问控制标记中,引用移动命名空间是这样的:

Without the templates, you mostly you just need to change your pages to derive from MobilePage instead of Page and your controls to derive from MobileUserControl instead of UserControl. To access the controls in markup, reference the mobile namespace like this:

&LT;%@注册标签preFIX =手机命名空间=System.Web.UI.MobileControls大会=System.Web.Mobile%>

<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>

,然后你就可以用手机控制是这样的:

and then you will be able to use the mobile controls like this:

手机:形式,手机:TextView的...

mobile:form, mobile:textview ...

这仍然是我发现创建一个与旧手机和浏览器兼容的网页的唯一途径。较新的手机,当然浏览器使用标准的HTML大部分和页面可以创建与任何其他ASP.Net页。

These are still the only way that I've found to create pages that are compatible with older phones and browsers. Newer phones and browsers of course use standard HTML for the most part and pages can be created the same as any other ASP.Net page.

这篇关于发生了什么事ASP.Net移动Web窗体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆