简体   繁体   English

Visual Studio 2012,ASP.NET Web窗体和HTML5

[英]Visual Studio 2012, ASP.NET Web Forms & HTML5

I have a question related to Web Forms. 我有一个与Web窗体有关的问题。 Do the ASP.NET Web Controls provided in Visual Studio 2012 emit HTML5 as output? Visual Studio 2012中提供的ASP.NET Web控件是否将HTML5作为输出发出?

I understand we can use custom controls or content adapters to make web control emit HTML5 even with Visual Studio 2010 and probably earlier versions with support for .NET framework 2.0, but I am interested in the DEFAULT behavior; 我知道我们可以使用自定义控件或内容适配器使Web控件即使在Visual Studio 2010和可能支持.NET Framework 2.0的早期版本中也可以发射HTML5,但是我对DEFAULT行为感兴趣; that is, without going for any work around or our own implementation. 也就是说,无需进行任何工作或我们自己的实施。

So has anyone of you checked the DEFAULT output of web controls provided in Visual Studio 2012? 因此,您是否有人检查过Visual Studio 2012中提供的Web控件的默认输出?

There is a web standards update available for visual studio that will output HTML 5 controls available here 有一个适用于Visual Studio的Web标准更新,它将在此处输出HTML 5控件

However normally visual studio will output generic HTML: 但是,通常Visual Studio将输出通用HTML:

<select name="ctl00$ContentPlaceHolder1$reportName" id="ctl00_ContentPlaceHolder1_reportName" class="input-large">
        <option value="Finance">Finance</option>
        <option value="Sales">Sales</option>
        <option value="RealEstate">RealEstate</option>>

    </select>

With it's own ID addition (if not specified to not use that in the web.config 带有自己的ID添加(如果未指定,则在web.config中不使用它)

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

相关问题 ASP.Net成员资格(Visual Studio 2012和Web窗体) - ASP.Net Membership (Visual Studio 2012 & Web Forms) Visual Studio 2012中缺少ASP.NET Web应用程序模板 - ASP.NET Web Application template missing in Visual Studio 2012 Visual Studio 2012-ASP.NET网站 - Visual Studio 2012 - asp.net web site 如何在Visual Studio 2012中的命令行上将ASP.NET网站或Web应用程序发布到文件系统 - How to publish an ASP.NET web site or web application to a file system on the command line in Visual Studio 2012 使用Visual Studio 2012 Express for Web将Web API和文件夹引用添加到空ASP.NET项目 - Adding Web API and folder references to empty ASP.NET project with Visual Studio 2012 Express for Web 带有ASP.NET的HTML5 Web套接字 - HTML5 web socket with ASP.NET 如何在Visual Studio 2012下的ASP.net Web应用程序中添加和构建打字稿文件? - How to add & build a typescript file in ASP.net web application under Visual studio 2012? 使用Visual Studio 2012将具有数据库的ASP.net Web应用程序发布到Azure - Publishing ASP.net web application with database to Azure using Visual Studio 2012 使用Visual Studio 2012部署ASP.NET网站(.NET 2) - Deploy ASP.NET Website (.NET 2) using Visual Studio 2012 Visual Studio 2010和ASP.NET MVC中HTML5音频控件的问题 - Issue with HTML5 audio control in Visual Studio 2010 and ASP.NET MVC
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM