Last post Dec 30, 2010 06:05 AM by CatchyTech
Mar 23, 2009 08:49 PM|Sojan80|LINK
I'm looking at buidling my site using HTML 5 as the default markup language. and including some jQuery functionality.
Do we know if ASP.NET 3.5 currently inlcudes or if ASP.NET 4 will include support for working with HTML 5 and / or jQuery? Are there any plans to include support for HTML5 in ASP.NET? Will they be changing the XHTMLConformance tag so that it has an 'EDGE'
value for use witht he cutting edge stuff like HTML5? Will the behavior of the XHTMLConformance tag be switched to where once declared it goes through the site and updates the doctype statement in all Master pages and ASP.NET pages to reflec the change of
the Conformance tag?
Example: By default XHTMLConformance is XHTML 1. 0 Transitional If you cange that to STIRCT will it go throught he entire project and change all the doctype statements to the STRICT format?
Mar 23, 2009 10:11 PM|rtpHarry|LINK
Wow you really are ahead of the curve! Html5 isnt finished yet and the browsers dont have great support either. Unless you are doing a specialist website I wouldnt go for this yet.
You can use jQuery with asp.net though for sure. It has been very popular recently and has even been adopted as an officially supported library by the asp.net team. It is packaged with recently released asp.net mvc as well.
You will find lots of tutorials out there introducing asp.net and jquery:
Mar 24, 2009 07:20 AM|mvark|LINK
HTML 5 support is not fully implemented in IE8 or in any other popular browser. I'm guessing ASP.NET will have support for HTML 5 after IE supports it fully.
As per this blog post by ScottGu, Microsoft already supports jQuery and will be shipping jQuery with Visual Studio going forward - http://weblogs.asp.net/scottgu/archive/2008/09/28/jquery-and-microsoft.aspx
Mar 24, 2009 01:35 PM|Sojan80|LINK
True while no one browser fully supports all of HTML 5 yet, it is a working draft (read="it's ready") as opposed to being a proposed recommendation (read="it’s been finished for ages and now it’s 100% supported in at least two implementations") and thus
ready to use.
There are already a number of sites by reputable web people out there using HTML 5 for their site markup. A few of these would An Event Apart
http://www.aneventapart.com/ Jeffrey Zeldman and Eric Meyer put this one out, then there's the UX London site, by
ClearLeft.com, Also, the ClearLeft Website itself and
Huffduffer.com, Bruce Lawson
http://www.brucelawson.co.uk/ has also fully converted his blog to running on HTML5. So why not use it? They're using with PHP, why not ASP.NET?
The W3C Validator even validates HTML 5 markup now. When Visual Studio first came out it was hailed as a "cutting edge development tool" and that's all I'm after is the cutting edge. The addition of jQuery support is definitely one of those things that is
bringing back the cutting edge for VS as is working with Silverlight and SharePoint. But so is getting the XHTMLConformance tag to work like you would logically think it would (see my earlier comment about it switching the doctype statement out project wide
based on setting), and for it to support more doctypes than just XHTML 1.0 Stransistional and XHTML 1.0 Strict.
As for lack of support in IE for HTML 5, John Resig already developed HTML 5 Shiv
http://ejohn.org/blog/html5-shiv/ which enables IE to see / style the HTML 5 tags it doesn't support, and Bruce Lawson even uses something a bit different to do it in his WordPress blog.
I guess I'd be happy with something like the initial IE8 announcement where MS said, "We're working on a new implementation of IE, and have a tentative release date of XXXX". Just somethig to let you know "We're working on it and it's coming soon".
Feb 02, 2010 11:26 AM|samlangdon|LINK
I agree, it would be great to have something from Microsoft on HTML 5 support in .Net. I would think your best bet would be to do it yourself at the moment, avoiding .Net controls and creating your own markup by using custom controls or going down the MVC
I don't think you're quite right about all those sites using HTML 5 now though. Quoting the guys who built the UX London site:
For the UX London site, we didn’t go quite that far. We stuck to using div
s with class attributes for our structure. But we could still build on the work that has gone into the HTML5 structural elements. Rather than coming up with our own class names, we used the names proposed in the spec: article, section, aside, etc.
For the UX London site, we didn’t go quite that far. We stuck to using
s with class
Also the Bruce Lawson site doesn't entirely use HTML 5, but this page does:
Google has recently released its voice application for the iPhone though (which does support HTML 5 in its latest OS), so things are moving in that direction.
So Microsoft, any news?
Feb 02, 2010 06:50 PM|jennifert|LINK
thought I would post this, the Visual web developer team blog just came out with intelisence for html. I was using it for a quick test yesterday and it seemed to work well.
I have used the above combined with IE detection to dynamically include HTML 5 Shiv.
May 12, 2010 10:32 AM|Sniffer|LINK
Thanks for the link to the HTML5 intellisense - works like a treat. Anyone know if there is a HMTL5TextWriter I can get hold of anywhere?
Jul 23, 2010 10:26 AM|ja928|LINK
I didn't see an HTML5Textwriter per se. I built my own set of custom
html5 asp controls for a mobile-optimized version of a website. It's not simple, but you can inherit from Control or WebControl and override the Render event and make the properties that are important to you.
For the most part, I just wanted to get postbacks, have custom keyboards pop up on my iPhone and iPad and set some properties on a canvas, but I added as much as I could to make them attractive to other developers. Let me know if you'd like to try it out.
html5 asp.net input canvas postback
Sep 19, 2010 07:01 PM|CatchyTech|LINK
Maybe this can help
Sep 20, 2010 07:42 AM|Dave Sussman|LINK
Just some follow up information. You can absolutely write HTML5 sites in ASP.NET, apart from the server controls, as there are no HTML5 equivalents in the asp: namespace. Even with a standard input control, you can't set its type to one of the new HTML5
types if you want it to be a server control.
The ASP.NET team are aware of this and are looking into it. I wouldn't be at all surprised if we see additions either as an out-of-band release, or maybe part of some service pack.
Sep 22, 2010 12:57 PM|ja928|LINK
While we wait for MS to come out with a version, I've decided to open source my project. The full source of my HTML5ASP controls are now on
SourceForge.Net. This one is the
dll. This includes canvas, inputs for tel, url, range, color, etc, email links, map links, and phone links. I'd love to hear back from anyone who uses them. I'm new to open source, so I'm just building up the site. Let me know if you want to suggest
(or build) any features!
Sep 27, 2010 04:13 AM|mcguiliver|LINK
while you are waiting for that check out some word about the new HTML 5.0 , this is a good resource I found that give comparison on the new HTML coding
Nov 14, 2010 04:25 PM|istavnit|LINK
Do controls in your library support graceful degradation in browsers not capable of HTML5?
That would create some value and is probably the direction that MSFT will take.
Nov 15, 2010 02:59 PM|ja928|LINK
The inputs degrade to standard Textboxes. The links should be pretty well supported regardless of browser. My personal implementation is fairly diverse(several thousand end users with home PCs / Macs), but I'm sure there are scenarios I haven't tested.
I'll be happy to work out kinks if people point them out to me. Give it a spin and let me know how I can help!
Dec 30, 2010 05:52 AM|samw|LINK
Is html 5 the same "postback model" (for lack of a better term) that we have with html 4? I've been playing with Silverlight and after a few weeks with it, going back to page loads and postbacks seems so inefficient.
Dec 30, 2010 06:05 AM|CatchyTech|LINK
Yes, same postback model as html4