[英]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.