简体   繁体   中英

Visual Studio 2012, ASP.NET Web Forms & HTML5

I have a question related to Web Forms. Do the ASP.NET Web Controls provided in Visual Studio 2012 emit HTML5 as output?

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; 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?

There is a web standards update available for visual studio that will output HTML 5 controls available here

However normally visual studio will output generic 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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