<feed xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
    <title>object(ive) undefined!</title>
    <link rel="self" type="application/xml" href="http://geekswithblogs.net/ranganh/Atom.aspx" />
    <subtitle type="html">var myExperiments = ['ASP.NET', 'Windows Azure', 'Windows Phone', 'HTML5'];</subtitle>
    <id>http://geekswithblogs.net/ranganh/Default.aspx</id>
    <author>
        <name>Harish Ranganathan</name>
        <uri>http://geekswithblogs.net/ranganh/Default.aspx</uri>
    </author>
    <generator uri="http://subtextproject.com" version="Subtext Version 0.0.0.0">Subtext</generator>
    <updated>2012-02-07T19:34:12Z</updated>
    <entry>
        <title>Diving Deep: ASP.NET Membership and the new Universal Providers</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2012/01/16/diving-deep-asp.net-membership-and-the-new-universal-providers.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2012/01/16/diving-deep-asp.net-membership-and-the-new-universal-providers.aspx</id>
        <published>2012-01-16T16:23:4705:30:00</published>
        <updated>2012-02-07T15:20:27Z</updated>
        <content type="html">                                    &lt;div style="width: 640px; height: 360px;"&gt;&lt;br /&gt;&lt;object data="data:application/x-oleobject;base64,QfXq3+HzJEysrJnDBxUISgAJAAAlQgAANSUAABQAAAAjAEYARgAwADAAMAAwADAAMAAAAAAAAAAAAAAAAAAAAI4AAABoAHQAdABwADoALwAvAHcAdwB3AC4AbQBpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAvAGcAbABvAGIAYQBsAC8AZQBuAC0AaQBuAC8AcwBoAG8AdwBjAGEAcwBlAC8AUgBpAGMAaABNAGUAZABpAGEALwBwAGwAYQB5AGUAcgAtAGUAbgAuAHgAYQBwAAAAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKICAABDAHUAbAB0AHUAcgBlAD0AZQBuAC0ASQBOACwAVQB1AGkAZAA9AGIAZAA0ADcAOQBkADQANwAtADIAYwA3AGQALQA0AGUAMQA2AC0AYQBiAGQANAAtAGIAYQBiAGMAOAA1ADgAZABjAGQANgA5ACwAQQB1AHQAbwBwAGwAYQB5AD0AZgBhAGwAcwBlACwATQBhAHIAawBlAHQAaQBuAGcATwB2AGUAcgBsAGEAeQBUAGUAeAB0AD0AVgBpAHMAaQB0ACAAdABoAGkAcwAgAHYAaQBkAGUAbwAnAHMAIAB3AGUAYgAgAHMAaQB0AGUALABTAGgAbwB3AE0AYQByAGsAZQB0AGkAbgBnAE8AdgBlAHIAbABhAHkAPQB0AHIAdQBlACwATQBpAHMAYwBDAG8AbgB0AHIAbwBsAHMAPQBGAHUAbABsAFMAYwByAGUAZQBuADsARABlAHQAYQBjAGgAZQBkACwAUwBoAG8AdwBNAGUAbgB1AD0AVAByAHUAZQAsAFQAYQBiAHMAPQBFAG0AYgBlAGQAOwBFAG0AYQBpAGwAOwBTAGgAYQByAGUAOwBJAG4AZgBvACwAVgBpAGQAZQBvAFUAcgBsAD0AaAB0AHQAcAA6AC8ALwB3AHcAdwAuAG0AaQBjAHIAbwBzAG8AZgB0AC4AYwBvAG0ALwBlAG4ALQBpAG4ALwBzAGgAbwB3AGMAYQBzAGUALwBkAGUAdABhAGkAbABzAC4AYQBzAHAAeAA/AHUAdQBpAGQAPQBiAGQANAA3ADkAZAA0ADcALQAyAGMANwBkAC0ANABlADEANgAtAGEAYgBkADQALQBiAGEAYgBjADgANQA4AGQAYwBkADYAOQAsAE0AbwBkAGUAPQBQAGwAYQB5AGUAcgAAAAAAAAAAAAAA//8AAP//AAAAAAAAAAAAAAAAAAAYAAAANAAuADAALgA1ADAANAAwADEALgAwAAAACgAAAHQAcgB1AGUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" width="640" type="application/x-silverlight-2" height="360"&gt;                                        &lt;param name="source" value="http://www.microsoft.com/global/en-in/showcase/RichMedia/player-en.xap" /&gt;                                        &lt;param name="enableHtmlAccess" value="true" /&gt;                                            &lt;param name="background" value="#FF000000" /&gt;                                        &lt;param name="allowHtmlPopupwindow" value="true" /&gt;                                        &lt;param name="minRuntimeVersion" value="4.0.50401.0" /&gt;                                        &lt;param name="autoUpgrade" value="true" /&gt;                                        &lt;param name="initParams" value="Culture=en-IN,Uuid=bd479d47-2c7d-4e16-abd4-babc858dcd69,Autoplay=false,MarketingOverlayText=Visit this video's web site,ShowMarketingOverlay=true,MiscControls=FullScreen;Detached,ShowMenu=True,Tabs=Embed;Email;Share;Info,VideoUrl=http://www.microsoft.com/en-in/showcase/details.aspx?uuid=bd479d47-2c7d-4e16-abd4-babc858dcd69,Mode=Player" /&gt;                                      &lt;iframe height="100%" border="0" src="http://www.microsoft.com/showcase/video.aspx?uuid=bd479d47-2c7d-4e16-abd4-babc858dcd69&amp;amp;locale=en-IN" width="100%"&gt;                                        &amp;lt;/object&amp;gt;                                        &amp;lt;script type="text/javascript"&amp;gt;                                            document.write("&amp;lt;script type='text/javascript' src='" + (window.location.protocol) + "//c.microsoft.com/ms.js'" + "&amp;gt;&amp;lt;\/script&amp;gt;");&amp;lt;/script&amp;gt;                                        &amp;lt;/div&amp;gt;&amp;lt;/body&amp;gt;&lt;/iframe&gt;&lt;/object&gt;&lt;/div&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/148365.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/148365.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/148365.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/148365.aspx</trackback:ping>
    </entry>
    <entry>
        <title>'Microsoft.ServiceBus.TransportClientCredentialType' is obsolete</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2012/01/10/microsoft.servicebus.transportclientcredentialtype-is-obsolete.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2012/01/10/microsoft.servicebus.transportclientcredentialtype-is-obsolete.aspx</id>
        <published>2012-01-10T22:51:0905:30:00</published>
        <updated>2012-01-10T22:51:37Z</updated>
        <content type="html">&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Once you upgrade to the &lt;/font&gt;&lt;a href="http://www.microsoft.com/web/gallery/install.aspx?appid=WindowsAzureToolsVS2010" target="_blank"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Windows Azure SDK 1.6&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt; you also get the updated Microsoft Service Bus assemblies (version 1.6.0.0) that you can use for working with Windows Azure Service Bus (yeah, no longer AppFabric Service Bus)&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;One of the standard implementations of Service Bus is  to use the CredentialType, Credentials (the service bus namespace and the issuer key and issuer name) to create the service bus namespace URI.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Once you upgrade to Windows Azure Service Bus (Microsoft.ServiceBus) version 1.6.0.0, the following are the errors you might encounter.  These are rather warnings.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;'Microsoft.ServiceBus.TransportClientCredentialType' is obsolete &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;'Microsoft.ServiceBus.TransportClientEndpointBehavior.CredentialType' is obsolete: '"This property is deprecated. Please use TransportClientEndpointBehavior.TokenProvider instead."' &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;'Microsoft.ServiceBus.TransportClientEndpointBehavior.Credentials' is obsolete: '"This property is deprecated. Please use TransportClientEndpointBehavior.TokenProvider instead."' &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;'Microsoft.ServiceBus.TransportClientEndpointBehavior.Credentials' is obsolete: '"This property is deprecated. Please use TransportClientEndpointBehavior.TokenProvider instead."' &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;While this is nicely documented in the &lt;/font&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/windowsazure/hh667331.aspx" target="_blank"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;release notes&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;, the new equivalent for this is Token Provider.  So here below is a sample implementation code which uses Token Provider and TransportClientEndPointBehaviour namespaces.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Uri serviceUri = ServiceBusEnvironment.CreateServiceUri("sb", serviceNamespace, "SERVICE NAME”); &lt;/font&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;// create the credentials object for the endpoint &lt;/font&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;TransportClientEndpointBehavior sharedSecretServiceBusCredential = new TransportClientEndpointBehavior(); &lt;/font&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;TokenProvider tokenProvider = tokenProvider.CreateSharedSecretTokenProvider(issuerName, issuerSecret); &lt;/font&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;sharedSecretServiceBusCredential.TokenProvider = tokenProvider; &lt;/font&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;// create the channel factory loading the configuration &lt;/font&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;ChannelFactory&amp;lt;IDirectoryService&amp;gt; channelFactory = new ChannelFactory&amp;lt;IDirectoryService&amp;gt;("DirectoryEndpoint", new EndpointAddress(serviceUri)); &lt;/font&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;channelFactory.Endpoint.Behaviors.Add(sharedSecretServiceBusCredential); &lt;/font&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Cheers!!!&lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/148304.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/148304.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/148304.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/148304.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Windows Azure Service Bus November 2011 Release</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2012/01/10/windows-azure-service-bus-november-2011-release.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2012/01/10/windows-azure-service-bus-november-2011-release.aspx</id>
        <published>2012-01-10T21:04:4705:30:00</published>
        <updated>2012-01-10T22:36:19Z</updated>
        <content type="html">&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;I have been working on Windows Azure Service Bus for the recently concluded &lt;/font&gt;&lt;a href="http://www.microsoft.com/india/events/cloudcamps" target="_blank"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Azure Camps&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt; &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;em&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Yes, it is no longer referred as “Windows Azure AppFabric Service Bus”.  All the 3 components i.e. Service Bus, Access Control and Caching are hereinafter referred to as simply Windows Azure Service Bus, Caching &amp;amp; Access Control Service, to minimize the complexity in referring to them.&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Also, Service Bus and the related releases usually come as an out of bound release and are usually behind in terms of the Windows Azure SDK releases.  The Windows Azure SDK latest release is the 1.6 version and along with, there is also a new version of the Service Bus.  Earlier, the Service Bus assemblies sit inside the C:\Program Files\Windows Azure AppFabric SDK folder.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;With the 1.6 version of the release of SDK, the Service Bus assemblies also sit inside the regular Windows Azure SDK folder.  Therefore, you can find the latest version of Service Bus i.e. Microsoft.ServiceBus sits inside C:\Program Files\Windows Azure SDK\v1.6\ServiceBus\ref folder.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Similarly, the Caching assemblies sit inside C:\Program Files\Windows Azure SDK\v1.6\Cache\ref folder.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;The latest version of ServiceBus is hence 1.6.0.0 and hence if you are installing, you need to make sure you update the assembly version in the config files.  &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Otherwise, you would typically get the wrong assembly referenced error, as follow&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#000080" size="2" face="Tahoma"&gt;&lt;em&gt;Exception type:   System.Configuration.ConfigurationErrorsException&lt;br /&gt;Message:          Configuration binding extension 'system.serviceModel/bindings/netTcpRelayBinding' could not be found. Verify that this binding extension is properly registered in system.serviceModel/extensions/bindingExtensions and that it is spelled correctly.&lt;/em&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Particularly, if you are using the &lt;/font&gt;&lt;a title="http://www.microsoft.com/download/en/details.aspx?id=19925" href="http://www.microsoft.com/download/en/details.aspx?id=19925"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;http://www.microsoft.com/download/en/details.aspx?id=19925&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt; &lt;strike&gt;Azure AppFabric&lt;/strike&gt; samples, they reference the older version of the assembly.  And you need to update them. The release notes &lt;/font&gt;&lt;a title="http://msdn.microsoft.com/en-us/library/windowsazure/hh667331.aspx" href="http://msdn.microsoft.com/en-us/library/windowsazure/hh667331.aspx"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;http://msdn.microsoft.com/en-us/library/windowsazure/hh667331.aspx&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt; covers pretty much line by line on the binding changes to be included in the config file.&lt;/font&gt;  &lt;/p&gt;&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;So, now, whether you develop for Windows Azure Hosted Services, Storage Services or Windows Azure Service Bus you need to install, just one SDK and all of them reside under the C:\Program Files\Windows Azure\SDK folder.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;In my subsequent post, I want to cover a specific deprecated assembly, its implementation and the new equivalent.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Cheers !!!&lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/148301.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/148301.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/148301.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/148301.aspx</trackback:ping>
    </entry>
    <entry>
        <title>A day in the life of a Developer Evangelist!</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2011/12/21/a-day-in-the-life-of-a-developer-evangelist.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2011/12/21/a-day-in-the-life-of-a-developer-evangelist.aspx</id>
        <published>2011-12-21T01:13:3005:30:00</published>
        <updated>2012-02-07T19:34:12Z</updated>
        <content type="html">		&lt;p&gt;
				&lt;iframe height="315" src="http://www.youtube.com/embed/uB68HvavjiI" frameborder="0" width="560" allowfullscreen=""&gt;
				&lt;/iframe&gt;
		&lt;/p&gt;
		&lt;p&gt;
				&lt;font color="#ff0000" size="2" face="Tahoma"&gt;The opinions mentioned herein are solely mine and do not reflect those of my employer in any way...&lt;/font&gt;
		&lt;/p&gt;
&lt;img src="http://geekswithblogs.net/ranganh/aggbug/148095.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/148095.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/148095.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/148095.aspx</trackback:ping>
    </entry>
    <entry>
        <title>"Why WindowsPhone?" in conversation with Girish C Joshi</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2011/12/19/why-windowsphone-in-conversation-with-girish-c-joshi.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2011/12/19/why-windowsphone-in-conversation-with-girish-c-joshi.aspx</id>
        <published>2011-12-19T22:12:3105:30:00</published>
        <updated>2011-12-19T22:12:31Z</updated>
        <content type="html">
		&lt;div style="width: 640px; height: 360px;"&gt;
				&lt;object data="data:application/x-oleobject;base64,QfXq3+HzJEysrJnDBxUISgAJAAAlQgAANSUAABQAAAAjAEYARgAwADAAMAAwADAAMAAAAAAAAAAAAAAAAAAAAI4AAABoAHQAdABwADoALwAvAHcAdwB3AC4AbQBpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAvAGcAbABvAGIAYQBsAC8AZQBuAC0AaQBuAC8AcwBoAG8AdwBjAGEAcwBlAC8AUgBpAGMAaABNAGUAZABpAGEALwBwAGwAYQB5AGUAcgAtAGUAbgAuAHgAYQBwAAAAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKICAABDAHUAbAB0AHUAcgBlAD0AZQBuAC0ASQBOACwAVQB1AGkAZAA9ADcAYQA2ADcAYQA4ADEAMQAtADkANQBhADAALQA0ADMAYwA3AC0AOQAwADUAOAAtADUAOQBhAGUAMQBkAGMAZgAxAGYAZgA4ACwAQQB1AHQAbwBwAGwAYQB5AD0AZgBhAGwAcwBlACwATQBhAHIAawBlAHQAaQBuAGcATwB2AGUAcgBsAGEAeQBUAGUAeAB0AD0AVgBpAHMAaQB0ACAAdABoAGkAcwAgAHYAaQBkAGUAbwAnAHMAIAB3AGUAYgAgAHMAaQB0AGUALABTAGgAbwB3AE0AYQByAGsAZQB0AGkAbgBnAE8AdgBlAHIAbABhAHkAPQB0AHIAdQBlACwATQBpAHMAYwBDAG8AbgB0AHIAbwBsAHMAPQBGAHUAbABsAFMAYwByAGUAZQBuADsARABlAHQAYQBjAGgAZQBkACwAUwBoAG8AdwBNAGUAbgB1AD0AVAByAHUAZQAsAFQAYQBiAHMAPQBFAG0AYgBlAGQAOwBFAG0AYQBpAGwAOwBTAGgAYQByAGUAOwBJAG4AZgBvACwAVgBpAGQAZQBvAFUAcgBsAD0AaAB0AHQAcAA6AC8ALwB3AHcAdwAuAG0AaQBjAHIAbwBzAG8AZgB0AC4AYwBvAG0ALwBlAG4ALQBpAG4ALwBzAGgAbwB3AGMAYQBzAGUALwBkAGUAdABhAGkAbABzAC4AYQBzAHAAeAA/AHUAdQBpAGQAPQA3AGEANgA3AGEAOAAxADEALQA5ADUAYQAwAC0ANAAzAGMANwAtADkAMAA1ADgALQA1ADkAYQBlADEAZABjAGYAMQBmAGYAOAAsAE0AbwBkAGUAPQBQAGwAYQB5AGUAcgAAAAAAAAAAAAAA//8AAP//AAAAAAAAAAAAAAAAAAAYAAAANAAuADAALgA1ADAANAAwADEALgAwAAAACgAAAHQAcgB1AGUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" width="640" type="application/x-silverlight-2" height="360"&gt;
						&lt;param name="source" value="http://www.microsoft.com/global/en-in/showcase/RichMedia/player-en.xap" /&gt;
						&lt;param name="enableHtmlAccess" value="true" /&gt;
						&lt;param name="background" value="#FF000000" /&gt;
						&lt;param name="allowHtmlPopupwindow" value="true" /&gt;
						&lt;param name="minRuntimeVersion" value="4.0.50401.0" /&gt;
						&lt;param name="autoUpgrade" value="true" /&gt;
						&lt;param name="initParams" value="Culture=en-IN,Uuid=7a67a811-95a0-43c7-9058-59ae1dcf1ff8,Autoplay=false,MarketingOverlayText=Visit this video's web site,ShowMarketingOverlay=true,MiscControls=FullScreen;Detached,ShowMenu=True,Tabs=Embed;Email;Share;Info,VideoUrl=http://www.microsoft.com/en-in/showcase/details.aspx?uuid=7a67a811-95a0-43c7-9058-59ae1dcf1ff8,Mode=Player" /&gt;
						&lt;iframe height="100%" border="0" src="http://www.microsoft.com/showcase/video.aspx?uuid=7a67a811-95a0-43c7-9058-59ae1dcf1ff8&amp;amp;locale=en-IN" width="100%"&gt;                                        &amp;lt;/object&amp;gt;                                        &amp;lt;script type="text/javascript"&amp;gt;                                            document.write("&amp;lt;script type='text/javascript' src='" + (window.location.protocol) + "//c.microsoft.com/ms.js'" + "&amp;gt;&amp;lt;\/script&amp;gt;");&amp;lt;/script&amp;gt;                                        &amp;lt;/div&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/iframe&gt;
				&lt;/object&gt;
		&lt;/div&gt;
&lt;img src="http://geekswithblogs.net/ranganh/aggbug/148087.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/148087.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/148087.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/148087.aspx</trackback:ping>
    </entry>
    <entry>
        <title>"What is WebMatrix?" in conversation with Sarvashrestha Paliwal on Web Technologies</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2011/12/19/what-is-webmatrix-in-conversation-with-sarvashrestha-paliwal-on-web.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2011/12/19/what-is-webmatrix-in-conversation-with-sarvashrestha-paliwal-on-web.aspx</id>
        <published>2011-12-19T22:03:0405:30:00</published>
        <updated>2011-12-19T22:05:22Z</updated>
        <content type="html">
		&lt;div style="width: 640px; height: 360px;"&gt;
				&lt;object data="data:application/x-oleobject;base64,QfXq3+HzJEysrJnDBxUISgAJAAAlQgAANSUAABQAAAAjAEYARgAwADAAMAAwADAAMAAAAAAAAAAAAAAAAAAAAI4AAABoAHQAdABwADoALwAvAHcAdwB3AC4AbQBpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAvAGcAbABvAGIAYQBsAC8AZQBuAC0AaQBuAC8AcwBoAG8AdwBjAGEAcwBlAC8AUgBpAGMAaABNAGUAZABpAGEALwBwAGwAYQB5AGUAcgAtAGUAbgAuAHgAYQBwAAAAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKICAABDAHUAbAB0AHUAcgBlAD0AZQBuAC0ASQBOACwAVQB1AGkAZAA9ADIAZQA4ADkAZAA4ADgANQAtAGMAZABkAGYALQA0AGYAMgAwAC0AYgA0ADEAYgAtAGQAYgA4ADIANABiADMAZQBmADQANwA1ACwAQQB1AHQAbwBwAGwAYQB5AD0AZgBhAGwAcwBlACwATQBhAHIAawBlAHQAaQBuAGcATwB2AGUAcgBsAGEAeQBUAGUAeAB0AD0AVgBpAHMAaQB0ACAAdABoAGkAcwAgAHYAaQBkAGUAbwAnAHMAIAB3AGUAYgAgAHMAaQB0AGUALABTAGgAbwB3AE0AYQByAGsAZQB0AGkAbgBnAE8AdgBlAHIAbABhAHkAPQB0AHIAdQBlACwATQBpAHMAYwBDAG8AbgB0AHIAbwBsAHMAPQBGAHUAbABsAFMAYwByAGUAZQBuADsARABlAHQAYQBjAGgAZQBkACwAUwBoAG8AdwBNAGUAbgB1AD0AVAByAHUAZQAsAFQAYQBiAHMAPQBFAG0AYgBlAGQAOwBFAG0AYQBpAGwAOwBTAGgAYQByAGUAOwBJAG4AZgBvACwAVgBpAGQAZQBvAFUAcgBsAD0AaAB0AHQAcAA6AC8ALwB3AHcAdwAuAG0AaQBjAHIAbwBzAG8AZgB0AC4AYwBvAG0ALwBlAG4ALQBpAG4ALwBzAGgAbwB3AGMAYQBzAGUALwBkAGUAdABhAGkAbABzAC4AYQBzAHAAeAA/AHUAdQBpAGQAPQAyAGUAOAA5AGQAOAA4ADUALQBjAGQAZABmAC0ANABmADIAMAAtAGIANAAxAGIALQBkAGIAOAAyADQAYgAzAGUAZgA0ADcANQAsAE0AbwBkAGUAPQBQAGwAYQB5AGUAcgAAAAAAAAAAAAAA//8AAP//AAAAAAAAAAAAAAAAAAAYAAAANAAuADAALgA1ADAANAAwADEALgAwAAAACgAAAHQAcgB1AGUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" width="640" type="application/x-silverlight-2" height="360"&gt;
						&lt;param name="source" value="http://www.microsoft.com/global/en-in/showcase/RichMedia/player-en.xap" /&gt;
						&lt;param name="enableHtmlAccess" value="true" /&gt;
						&lt;param name="background" value="#FF000000" /&gt;
						&lt;param name="allowHtmlPopupwindow" value="true" /&gt;
						&lt;param name="minRuntimeVersion" value="4.0.50401.0" /&gt;
						&lt;param name="autoUpgrade" value="true" /&gt;
						&lt;param name="initParams" value="Culture=en-IN,Uuid=2e89d885-cddf-4f20-b41b-db824b3ef475,Autoplay=false,MarketingOverlayText=Visit this video's web site,ShowMarketingOverlay=true,MiscControls=FullScreen;Detached,ShowMenu=True,Tabs=Embed;Email;Share;Info,VideoUrl=http://www.microsoft.com/en-in/showcase/details.aspx?uuid=2e89d885-cddf-4f20-b41b-db824b3ef475,Mode=Player" /&gt;
						&lt;iframe height="100%" border="0" src="http://www.microsoft.com/showcase/video.aspx?uuid=2e89d885-cddf-4f20-b41b-db824b3ef475&amp;amp;locale=en-IN" width="100%"&gt;                                        &amp;lt;/object&amp;gt;&amp;lt;script type="text/javascript"&amp;gt;                                            document.write("&amp;lt;script type='text/javascript' src='" + (window.location.protocol) + "//c.microsoft.com/ms.js'" + "&amp;gt;&amp;lt;\/script&amp;gt;");&amp;lt;/script&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/body&amp;gt;&lt;/iframe&gt;
				&lt;/object&gt;
		&lt;/div&gt;
&lt;img src="http://geekswithblogs.net/ranganh/aggbug/148086.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/148086.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/148086.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/148086.aspx</trackback:ping>
    </entry>
    <entry>
        <title>EFProviders require MultipleActiveResultSets=True for System.Data.SqlClient connection strings</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2011/12/13/efproviders-require-multipleactiveresultsetstrue-for-system.data.sqlclient-connection-strings-again.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2011/12/13/efproviders-require-multipleactiveresultsetstrue-for-system.data.sqlclient-connection-strings-again.aspx</id>
        <published>2011-12-13T15:25:0305:30:00</published>
        <updated>2011-12-13T15:54:09Z</updated>
        <content type="html">
		&lt;p&gt;
				&lt;font color="#004080" size="2" face="Tahoma"&gt;I was playing with the new Membership API (System.Web.Providers) for the upcoming &lt;/font&gt;
				&lt;a href="http://www.virtualtechdays.com/" target="_blank"&gt;
						&lt;font color="#004080" size="2" face="Tahoma"&gt;Virtual TechDays&lt;/font&gt;
				&lt;/a&gt;
				&lt;font color="#004080" size="2" face="Tahoma"&gt; &lt;/font&gt;
		&lt;/p&gt;
		&lt;p&gt;
				&lt;font color="#004080" size="2" face="Tahoma"&gt;While I was trying out a lot of options for using as DB store, one of the obvious choices was SQL Azure.  With SQL Azure, I could offload the Database hosting capabilities to Azure and just focus on my application code.  Of course, it comes at a cost and SQL Azure is a subscription based database available in different sizes and rates there of.&lt;/font&gt;
		&lt;/p&gt;
		&lt;p&gt;
				&lt;font color="#004080" size="2" face="Tahoma"&gt;One of the challenges I faced was, working with the Membership API’s connectionstring called as “DefaultConnection”.  The Default Connection is something you would use simply for all connection strings once you upgrade the application to use the New Membership API.  While configuring the connection string, I copied an existing connection string of SQL Azure and changed just the database name.&lt;/font&gt;
		&lt;/p&gt;
		&lt;p&gt;
				&lt;font color="#004080" size="2" face="Tahoma"&gt;The new Membership API is supposed to create the database if it doesn’t exist and then use it for creating tables for storing users, roles, etc.,  It failed!!&lt;/font&gt;
		&lt;/p&gt;
		&lt;p&gt;
				&lt;font color="#004080" size="2" face="Tahoma"&gt;The error precisely I got was the title i.e. “EFProviders require MultipleActiveResultSets=True for System.Data.SqlClient connection strings.”&lt;/font&gt;
		&lt;/p&gt;
		&lt;p&gt;
				&lt;font color="#004080" size="2" face="Tahoma"&gt;I was doubly sure that the attribute existed in connection string and moved it around, as much closer to the other attributes i.e. User Id, Database name etc.,  Still no luck.&lt;/font&gt;
		&lt;/p&gt;
		&lt;p&gt;
				&lt;font color="#004080" size="2" face="Tahoma"&gt;This connection string had earlier worked with SQL Azure in another application earlier and I was also damn sure about it.  The only difference was that application wasn’t using the new Membership API.&lt;/font&gt;
		&lt;/p&gt;
		&lt;p&gt;
				&lt;font color="#004080" size="2" face="Tahoma"&gt;Then, I changed the case of the attribute (lowercase) to camel case to make it “MultipleActiveResultSets” and voila, it worked!!&lt;/font&gt;
		&lt;/p&gt;
		&lt;p&gt;
				&lt;font color="#004080" size="2" face="Tahoma"&gt;I couldn’t believe that this was the problem but eventually figured that, indeed it was &lt;img style="" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/EFP.SqlClient-connection-stringsSQL-Azur_D32B/wlEmoticon-smile_2.png" /&gt;&lt;/font&gt;
		&lt;/p&gt;
		&lt;p&gt;
				&lt;font color="#004080" size="2" face="Tahoma"&gt;So, if you hit the above error and are sure that the attribute exists, make sure, it is of pascal case.  The Membership API doesn’t like it in other formats &lt;img style="" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/EFP.SqlClient-connection-stringsSQL-Azur_D32B/wlEmoticon-smile_2.png" /&gt;&lt;/font&gt;
		&lt;/p&gt;
		&lt;p&gt;
				&lt;font color="#004080" size="2" face="Tahoma"&gt;Cheers!!!&lt;/font&gt;
		&lt;/p&gt;
&lt;img src="http://geekswithblogs.net/ranganh/aggbug/148031.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/148031.aspx</wfw:comment>
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/148031.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/148031.aspx</trackback:ping>
    </entry>
    <entry>
        <title>HTML5 Boilerplate template for ASP.NET with Visual Studio 2010</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2011/11/17/html5-boilerplate-template-for-asp.net-with-visual-studio-2010.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2011/11/17/html5-boilerplate-template-for-asp.net-with-visual-studio-2010.aspx</id>
        <published>2011-11-17T22:41:0905:30:00</published>
        <updated>2011-11-17T22:41:09Z</updated>
        <content type="html">&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;This is the 5th post in the series of &lt;/font&gt;&lt;a href="http://geekswithblogs.net/ranganh/archive/2011/10/17/html5-for-asp.net-developers.aspx" target="_blank"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;HTML5 for ASP.NET Developers&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;  &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Support for HTML5 in Visual Studio 2010 has been quite good &lt;/font&gt;&lt;a href="http://geekswithblogs.net/ranganh/archive/2011/03/26/html5-development-with-visual-studio-2010-service-pack-1.aspx" target="_blank"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;with Visual Studio Service Pack 1&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;However, HTML5 Boilerplate template has been one of the most popular HTML5 templates out in the internet.  Now, there is one for your favorite ASP.NET Webforms as well as ASP.NET MVC 3 Projects (even for ASP.NET MVC 2).  And its available in the most optimal place, i.e. NuGet.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Lets see it in action.  Let us fire up Visual Studio 2010 and create a “File – New Project – ASP.NET Web Application” and leave the default name to create the project.  The default project template creates Site.Master, Default.aspx and the Account (membership) files.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;When you run the project without any changes, it shows up the default Master Page with the Home and About placeholder pages.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/HTML5-Boiler.NET-with-Visual-Studio-2010_12132/image_2.png"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/HTML5-Boiler.NET-with-Visual-Studio-2010_12132/image_thumb.png" width="510" height="240" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Also, just to check the rendering on devices, lets try running the same page in Windows Phone 7 Emulator.  You can download the &lt;/font&gt;&lt;a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=27570&amp;amp;WT.mc_id=aff-n-in-loc--hr" target="_blank"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;SDK from here&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/HTML5-Boiler.NET-with-Visual-Studio-2010_12132/image_4.png"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/HTML5-Boiler.NET-with-Visual-Studio-2010_12132/image_thumb_1.png" width="512" height="347" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Clearly, it looks bad on the emulator and if we were to publish the application as is, its going to be the same experience when users browse this app.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Close the browser and then switch to Visual Studio.   Right click on the project and select “Manage NuGet Packages”&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/HTML5-Boiler.NET-with-Visual-Studio-2010_12132/image_6.png"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/HTML5-Boiler.NET-with-Visual-Studio-2010_12132/image_thumb_2.png" width="515" height="323" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;The NuGet Package Manager dialog opens up.  Search for HTML5 Boilerplate.  The options for MVC &amp;amp; Web Forms show up.  Click on Install corresponding to the “Add HTML5 Boilerplate to Web Forms” options.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;It installs the template in a few seconds.   Once installed, you will be able to see a lot of additional Script files and also the all important HTML5Boilerplate.Master file.  &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/HTML5-Boiler.NET-with-Visual-Studio-2010_12132/image_8.png"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/HTML5-Boiler.NET-with-Visual-Studio-2010_12132/image_thumb_3.png" width="260" height="428" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;This would be the replacement for the default Site.Master.  We need to change the Content Pages (Default.aspx &amp;amp; other pages) to point to this Master Page.  Example &amp;lt;%@ &amp;lt;% Master Language="C#" AutoEventWireup="true" CodeBehind="Html5Boilerplate.Master.cs" Inherits="WebApplication14.SiteMaster" %&amp;gt; would be the setting in the Default.aspx Page.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;You can do a Find &amp;amp; Replace for Site.Master to HTML5Boilerplate.Master for the whole solution so that it is changed in all the locations.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;With this, we have our Webforms application ready with HTML5 capabilities.  Needless to say, we need to wire up HTML5 mark up level code, canvas, etc., further to use the actual HTML5 features, but even without that, the page is now HTML5’ed.   One of the advantages of HTML5 (here HTML5 is collectively referred for CSS3, Javascript enhancements etc.,)  is the ability to render the pages better on mobile and hand held devices.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;So, now when we run the page from Visual Studio, the following is what we get.  Notice the site.icon automatically added.  The page otherwise looks similar to what it was earlier.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/HTML5-Boiler.NET-with-Visual-Studio-2010_12132/image_10.png"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/HTML5-Boiler.NET-with-Visual-Studio-2010_12132/image_thumb_4.png" width="565" height="291" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Now, when we also check this page on the Windows Phone Emulator, here below is what, we get.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/HTML5-Boiler.NET-with-Visual-Studio-2010_12132/image_12.png"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/HTML5-Boiler.NET-with-Visual-Studio-2010_12132/image_thumb_5.png" width="565" height="394" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;As you can see, we definitely get a better experience now.  Of course, this is not the only HTML5 feature that we can use.  We need to wire up additional code for using Canvas, SVG and other HTML5 features.  But, definitely, this is a good starting point.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;You can also install the HTML5boilerplate Template for your ASP.NET MVC 3 and ASP.NET MVC 2 from the NuGet packages and get them ready for HTML5.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Cheers !!!&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/147735.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/147735.aspx</wfw:comment>
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/147735.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/147735.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Making HTML5 Video work with IIS Express</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2011/11/03/making-html5-video-work-with-iis-express.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2011/11/03/making-html5-video-work-with-iis-express.aspx</id>
        <published>2011-11-03T17:26:5905:30:00</published>
        <updated>2011-11-03T17:34:58Z</updated>
        <content type="html">&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;One of the cool things about HTML5 is the ability to play audio/video files out of the box without the dependency on plugins.  Earlier I had written about &lt;/font&gt;&lt;a href="http://geekswithblogs.net/ranganh/archive/2011/02/22/playing-html5-video-with-fall-back-for-ie8ie7-and-earlier.aspx" target="_blank"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;HTML5 Video and the fallback using Silverlight for non-supported scenarios&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Visual Studio 2010 SP1 has decent support for HTML5, in terms of intellisense, validation etc.,  But, one issue that is constantly faced when using the HTML5 Video tag in an ASP.NET Application (Web/MVC) built using Visual Studio is that, the videos doesn’t play when running the application from Visual Studio on IE9.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Taking a step back, Visual Studio uses ASP.NET Development Server as the default setting when debugging and running applications on the local machine.  The ASP.NET Development Server (also called as Cassini) has been there ever since Visual Studio 2005 days.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;So, I created a simple MVC Application with “File – New - Project – ASP.NET MVC 3 Web Application” and left the defaults to create an Application.  I added a videos folder and added a H.264 encoded mp4 video (one of the supported HTML5 Video formats) inside the folder.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Then, I added the following line of code in the “Index.cshtml” file.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;strong&gt;&lt;em&gt;&amp;lt;video src="@Url.Content("~/Videos/video.mp4")" id="myVideo" controls &amp;gt;&amp;lt;/video&amp;gt;&lt;/em&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Making-HTML5-Video-work-with-IIS-Express_EE3A/image_2.png"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px" title="image" border="0" alt="image" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Making-HTML5-Video-work-with-IIS-Express_EE3A/image_thumb.png" width="413" height="297" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;All I got was the above.  Basically a broken link.  I verified that the path is right and the video is indeed playable on Windows Media Player etc.,&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;The issue was that, since by default Visual Studio uses the ASP.NET Development Server and the ASP.NET Development Server doesn’t have the flexibility to configure MIME types,  It doesn’t understand the video format and hence could not play.  When I ran the application on IE9 and checked the Network Tab of the Developer Toolbar, all I got was what you see below&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Making-HTML5-Video-work-with-IIS-Express_EE3A/image_4.png"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px" title="image" border="0" alt="image" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Making-HTML5-Video-work-with-IIS-Express_EE3A/image_thumb_1.png" width="418" height="235" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;I switched the Project to use IIS Express using “ProjectName” – Right Click – Properties – Web Tab&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Making-HTML5-Video-work-with-IIS-Express_EE3A/image_6.png"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px" title="image" border="0" alt="image" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Making-HTML5-Video-work-with-IIS-Express_EE3A/image_thumb_2.png" width="418" height="258" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Still had the same result.  Since IIS Express also doesn’t have the MIME Type to play video, configured by default, it couldn’t recognize the video and couldn’t play it.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;The simple option is to configure it to use the “Actual IIS” (in the above screen, remove the check from “Use IISExpress”) which can play the video.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;But, thankfully &lt;/font&gt;&lt;a href="http://bob.yexley.net/tag/iis-express/" target="_blank"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;this blog post&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt; has steps on how to configure MIME types for IIS Express.  Only thing is, I had to change it for configuring the MIME type for playing MP4 video.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;So, the steps are&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;1. Click on Start button&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;2. Type CMD&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;3. Right click on the CMD that is listed and choose “Run as Administrator”&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;4. Do a cd to navigate to the IIS Express directory CD “Program Files (x86)”\”IIS Express”&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;5. And then run the following command&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;strong&gt;appcmd set config /section:staticContent /+[fileExtension='.mp4',mimeType='vieo/mp4']&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;That’s it.  When I re-ran the application, it could play the video.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Making-HTML5-Video-work-with-IIS-Express_EE3A/image_8.png"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px" title="image" border="0" alt="image" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Making-HTML5-Video-work-with-IIS-Express_EE3A/image_thumb_3.png" width="431" height="354" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Please note, I was unable to configure or figure out how to do it for the ASP.NET Development Server.  So, if we need to play HTML5 Video from Visual Studio we either need to use IIS Express or use the full fledged IIS.  And from the performance and configuration perspective IIS Express offers a lot more than ASP.NET Development Server and hence it makes more sense to use IIS Express for local development.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Cheers !!!&lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/147540.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/147540.aspx</wfw:comment>
        <slash:comments>5</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/147540.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/147540.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Silverlight 5 RC now available for download</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2011/11/01/silverlight-5-rc-now-available-for-download.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2011/11/01/silverlight-5-rc-now-available-for-download.aspx</id>
        <published>2011-11-01T19:38:3705:30:00</published>
        <updated>2011-11-01T20:00:29Z</updated>
        <content type="html">&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Much has been the expectation about Silverlight 5 ever since the &lt;/font&gt;&lt;a target="_blank" href="http://channel9.msdn.com/Series/Silverlight-Firestarter/Silverlight-Firestarter-2010-Keynote-with-Scott-Guthrie?ocid=aff-n-in-loc--hr"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;fire-starter in December 2010&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;  &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Silverlight 5 has been the expectation of every SL developer ever since the SL4 release and the huge momentum surrounding HTML5 on the web.  While HTML5 is definitely promising, Silverlight and other proprietary plugins have their own strengths in terms of rich capabilities such as Digital Rights Management which have evolved to a great extent.  &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;In MIX 2011, Scott Guthrie unveiled &lt;/font&gt;&lt;a target="_blank" href="http://www.silverlight.net/learn/overview/what's-new-in-silverlight-5?WT.mc_id=aff-n-in-loc--hr"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Silverlight 5 Beta&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt; among much fanfare! You can read about the complete list of &lt;/font&gt;&lt;a target="_blank" href="http://i1.silverlight.net/content/downloads/silverlight_5_beta_features.pdf?cdn_id=1"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Silverlight 5 Beta features&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;In the meantime, Silverlight 5 RC is available for download &lt;/font&gt;&lt;a target="_blank" href="http://www.silverlight.net/downloads?WT.mc_id=aff-n-in-loc--hr"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;from here&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Cheers !!!&lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/147514.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/147514.aspx</wfw:comment>
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/147514.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/147514.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Enabling Facebook Timeline view on IE10 Developer Preview</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2011/10/26/enabling-facebook-timeline-view-on-ie10-developer-preview.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2011/10/26/enabling-facebook-timeline-view-on-ie10-developer-preview.aspx</id>
        <published>2011-10-26T21:46:4505:30:00</published>
        <updated>2011-10-26T21:49:35Z</updated>
        <content type="html">&lt;p&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;If you are active on Facebook, there is very less chance that you missed on the recent Facebook UI update “Social Graph” or more popularly referred as “Timeline” (a screenshot of how the Timeline profile UI looks, here below)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Enabling-Facebook-Timeline-view-on-IE10-_11780/image_2.png"&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;&lt;img width="500" height="289" title="image" alt="image" border="0" style="border-width: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; display: inline; background-image: none;" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Enabling-Facebook-Timeline-view-on-IE10-_11780/image_thumb.png" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;This Timeline UI has been quite popular and is supported in most of the modern browsers including IE9, Chrome 14 &amp;amp; Firefox 6 and above.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;I am a power consumer of web and use &lt;/font&gt;&lt;a target="_blank" href="http://windows.microsoft.com/en-IN/internet-explorer/downloads/ie?WT.mc_id=aff-n-in-loc--hr"&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;IE9&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt; as my primary browser.  Timeline UI works excellent in IE9.  &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;I have also downloaded the &lt;/font&gt;&lt;a target="_blank" href="http://ie.microsoft.com/testdrive/?WT.mc_id=aff-n-in-loc--hr"&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;IE10 Platform Preview&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt; for Windows 7, which provides greater support for some of the HTML5 standards.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;Also, with &lt;/font&gt;&lt;a target="_blank" href="http://msdn.microsoft.com/en-us/windows/home/?ocid=aff-n-in-loc--hr"&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;Windows Developer Preview&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt; ships the IE10 Developer Preview (a newer version after IE10 PP2).  This has the best possible support for CSS3 transitions and other latest web standards.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;Both in IE10 PP2 and IE Developer Preview, Facebook Timeline UI doesn’t show up.  It shows the classic view although I have enabled timeline.  Gut feel is, they are doing browser sniffing and with the user agent not enabling the Timeline for not matching major version 9 in case of IE.  Actually IE10 PP2 and Developer Preview have better support for CSS3 and other new web standards.  So, to enable Timeline UI in &lt;/font&gt;&lt;a target="_blank" href="http://ie.microsoft.com/testdrive/?WT.mc_id=aff-n-in-loc--hr"&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;IE10 PP2&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt; or the IE Developer Preview shipped in &lt;/font&gt;&lt;a target="_blank" href="http://msdn.microsoft.com/en-us/windows/home/?ocid=aff-n-in-loc--hr"&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;Windows Developer Preview&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;, we need to use the IE Developer Toolbar (press F12)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;So, here is the view of Facebook Profile in IE Developer Preview which features by default Browser Mode IE10.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Enabling-Facebook-Timeline-view-on-IE10-_11780/image_4.png"&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;&lt;img width="506" height="243" title="image" alt="image" border="0" style="border: 0px currentColor; padding-top: 0px; padding-right: 0px; padding-left: 0px; display: inline; background-image: none;" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Enabling-Facebook-Timeline-view-on-IE10-_11780/image_thumb_1.png" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;Once we change the browser mode to IE9, I get the social graph view as below&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Enabling-Facebook-Timeline-view-on-IE10-_11780/image_6.png"&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;&lt;img width="504" height="287" title="image" alt="image" border="0" style="border: 0px currentColor; padding-top: 0px; padding-right: 0px; padding-left: 0px; display: inline; background-image: none;" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Enabling-Facebook-Timeline-view-on-IE10-_11780/image_thumb_2.png" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;I tested the same in both IE10 Developer Preview (Windows Developer Preview) and IE10 PP2 (Windows 7) and got the desired results &lt;img class="wlEmoticon wlEmoticon-smile" alt="Smile" style="" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Enabling-Facebook-Timeline-view-on-IE10-_11780/wlEmoticon-smile_2.png" /&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;Goes on to prove my &lt;/font&gt;&lt;a target="_blank" href="http://geekswithblogs.net/ranganh/category/9470.aspx"&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;earlier posts on how the Developer Toolbar in IE&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt; is very helpful for Developers.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;And here is a &lt;/font&gt;&lt;a target="_blank" href="http://www.youtube.com/watch?v=xZXqhMymU6M"&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;nice video&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt; on how to enable Facebook Timeline for your account.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;I think it is these little nifty changes that separates we developers from the regular consumers &lt;img class="wlEmoticon wlEmoticon-smile" alt="Smile" style="" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Enabling-Facebook-Timeline-view-on-IE10-_11780/wlEmoticon-smile_2.png" /&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" face="Tahoma" size="2"&gt;Cheers !!!&lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/147462.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/147462.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/147462.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/147462.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Installing MVC 3 for Visual Studio 2010 on Windows Developer Preview after installing MVC 4</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2011/10/26/installing-mvc-3-for-visual-studio-2010-on-windows-developer.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2011/10/26/installing-mvc-3-for-visual-studio-2010-on-windows-developer.aspx</id>
        <published>2011-10-26T17:44:0505:30:00</published>
        <updated>2011-10-26T17:48:27Z</updated>
        <content type="html">&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;I am playing more with the Windows Developer Preview and simply love the backward compatibility it has for applications that used to work in Windows 7.  And one of the applications critical to my day-to-day life is Visual Studio.  Visual Studio 2010 with SP1 and ASP.NET MVC 3 Tools is my everyday requirement.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Windows Developer Preview when &lt;/font&gt;&lt;a target="_blank" href="http://msdn.microsoft.com/en-us/windows/home/?ocid=aff-n-in-loc--hr"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;installed from the MSDN Center&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt; has two flavors.  One with the Developer Tools which I would assume, most of us developers would want and the other one, which is simply the Windows Developer Preview (without the Tools).&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;And the Tools that it ships with has a version of VS11 Developer Preview which is just for building Metro Style applications.  If you plan to use the same for web development (using MVC or Web Forms) you need to install a separate version of VS11.  &lt;/font&gt;&lt;a target="_blank" href="http://geekswithblogs.net/ranganh/archive/2011/09/27/developing-asp.net-mvc-4-applications-on-windows-8-developer-preview.aspx"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;I had blogged about this earlier&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;I was setting up Windows Developer Preview as my primary development machine so in addition to VS11, I also required VS 2010 to be installed.  So, I installed VS 2010 and the SP1.  Post that I was trying to install MVC 3 for VS 2010.  It simply took a long time and then rolled back the installation &lt;img class="wlEmoticon wlEmoticon-sadsmile" alt="Sad smile" style="border-top-style: none; border-bottom-style: none; border-right-style: none; border-left-style: none" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Installing-MVC-3-for-Visual-Studio-2010-_F1B3/wlEmoticon-sadsmile_2.png" /&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;I tried couple of times just to repro and found the same results.  &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;The interesting thing is, &lt;/font&gt;&lt;a target="_blank" href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=1491&amp;amp;WT.mc_id=aff-n-in-loc--hr"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;MVC3 for VS11&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt; installed happily on the machine.  (MVC 4 was already installed)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;When I checked with &lt;/font&gt;&lt;a target="_blank" href="http://haacked.com/"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Phil Haack&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt; and &lt;/font&gt;&lt;a target="_blank" href="http://weblogs.asp.net/jacqueseloff/default.aspx"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Jacques Eloff&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt; they neatly helped me with this.  Essentially MVC 4 has a newer version of NuGet installed and that was preventing MVC 3 for VS 2010 to be installed.  The steps to resolve are quite simple.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Uninstall NuGet from Add/Remove Programs.  &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;a target="_blank" href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=1491&amp;amp;WT.mc_id=aff-n-in-loc--hr"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Install MVC 3 for VS 2010 from here&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;That’s it.  It would automatically reinstall the NuGet.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;If this post was &lt;/font&gt;&lt;a target="_blank" href="http://geekswithblogs.net/ranganh/archive/2011/09/27/developing-asp.net-mvc-4-applications-on-windows-8-developer-preview.aspx"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;confusing like my earlier post&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt; read it again &lt;img class="wlEmoticon wlEmoticon-smile" alt="Smile" style="border-top-style: none; border-bottom-style: none; border-right-style: none; border-left-style: none" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Installing-MVC-3-for-Visual-Studio-2010-_F1B3/wlEmoticon-smile_2.png" /&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Cheers !!! &lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/147459.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/147459.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/147459.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/147459.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Using HTML5 Geolocation API in ASP.NET Application</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2011/10/17/using-html5-geolocation-api-in-asp.net-application.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2011/10/17/using-html5-geolocation-api-in-asp.net-application.aspx</id>
        <published>2011-10-17T18:24:1505:30:00</published>
        <updated>2011-10-28T15:23:08Z</updated>
        <content type="html">&lt;p&gt;&lt;span style="color: #ff0000"&gt;&lt;font size="2" face="Tahoma"&gt;UPDATE&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #ff0000"&gt;&lt;font size="2" face="Tahoma"&gt;The below sample just showcases the locality sample.  The complete set of attributes exposed which include PostalCode, CountryRegion, Address etc., are available at&lt;/font&gt;&lt;/span&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt; &lt;a href="http://msdn.microsoft.com/en-us/library/ff701710.aspx"&gt;http://msdn.microsoft.com/en-us/library/ff701710.aspx&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;This is the third in the &lt;/font&gt;&lt;a target="_blank" href="http://geekswithblogs.net/ranganh/archive/2011/10/17/html5-for-asp.net-developers.aspx"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;series of posts&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt; I am doing on &lt;/font&gt;&lt;a target="_blank" href="http://geekswithblogs.net/ranganh/archive/2011/10/17/html5-for-asp.net-developers.aspx"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;HTML5 for ASP.NET Developers&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Geolocation is one of the popular features of HTML5 that’s being touted as a favorite for building location aware applications.  It helps to a great extent not just for Web Applications that run on PCs, but also for Web Applications that run on Devices.  Since browser on the phone is no longer a rare thing, it always helps to identify the location of the user carrying the phone and build applications that cater to the specific geo (example: providing deals available nearby etc.,)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;The actual call required for our sample is quite simple.  Geolocation works only on IE9 and above.  So, if you haven’t installed already, you can &lt;/font&gt;&lt;a target="_blank" href="http://windows.microsoft.com/en-IN/internet-explorer/products/ie/home?WT.mc_id=aff-n-in-loc--hr"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;download and install IE9 from here&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;For the sake of our sample, lets create an ASP.NET Web Forms Application using Visual Studio 2010 (File – New – Project – ASP.NET Web Application)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;By default it creates a Site.Master and Default.aspx page which inherits from the master page.  Also, jQuery is included as a part of the scripts.  So, lets pull the jQuery files on to the Master Page.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;So, as of now, I have opened up the Site.Master and also expanded the Scripts folder in the project explorer and dragged the jQuery-1.4.1.min.js file onto the Site.Master&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Using-HTML5-Geolocation-.NET-Application_D1DF/image_4.png"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;img title="image" border="0" alt="image" width="552" height="155" style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Using-HTML5-Geolocation-.NET-Application_D1DF/image_thumb_1.png" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Then, open up the Default.aspx page and add the following lines of code&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;strong&gt;&lt;em&gt;&amp;lt;input type="button" id="btnFindMyLocation" value="Find My Location" /&amp;gt; &lt;br /&gt;
       &amp;lt;input type="text" id="txtLocation" /&amp;gt; &lt;br /&gt;
&lt;/em&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;The Geolocation API provides the Latitude and Longitude co-ordinates.  Using that, we would like to get the current location by using the Bing Maps SDK.  Hence, we need a Bing Maps SDK token.  It can be obtained from &lt;/font&gt;&lt;a title="http://www.bing.com/toolbox/bingdeveloper/" href="http://www.bing.com/toolbox/bingdeveloper/"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;http://www.bing.com/toolbox/bingdeveloper/&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Click on “Sign-in Bing Maps” and use existing Live ID credentials.  Once signed-in, it asks you a few details.  Fill out those details and then it presents a dashboard.  On the top left menu, you can find the “Create or View Keys”.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Click on it, and follow the steps to get the token.  Your token would be typically a GUID of considerable length.  This we would need to pass on to the SDK and get the location.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Coming back to our Default Page, add the following snippet somewhere above the input tags which we added earlier.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;strong&gt;&lt;em&gt;&amp;lt;script type="text/javascript"&amp;gt; &lt;br /&gt;
   $(function () { &lt;br /&gt;
   $("#btnFindMyLocation").click(function () { &lt;br /&gt;
       // find lat/long with geo api &lt;br /&gt;
       if (navigator.geolocation) { &lt;br /&gt;
           navigator.geolocation.getCurrentPosition(function (pos) { &lt;br /&gt;
               // query city from Bing Maps API &lt;br /&gt;
               var url = "&lt;/em&gt;&lt;/strong&gt;&lt;/font&gt;&lt;a href="http://dev.virtualearth.net/REST/v1/Locations/&amp;quot;"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;strong&gt;&lt;em&gt;http://dev.virtualearth.net/REST/v1/Locations/"&lt;/em&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;strong&gt;&lt;em&gt; + pos.coords.latitude + "," + pos.coords.longitude + "?&amp;amp;key=&lt;font color="#ff0000"&gt;REPLACE YOUR BING MAP SDK KEY&lt;/font&gt;"; &lt;br /&gt;
               $.ajax({ &lt;br /&gt;
                   url: url, &lt;br /&gt;
                   dataType: "jsonp", &lt;br /&gt;
                   jsonp: "jsonp", &lt;br /&gt;
                   success: function (data) { &lt;br /&gt;
                       $("#txtLocation").val(data.resourceSets[0].resources[0].address.locality); &lt;br /&gt;
                   } &lt;br /&gt;
               });&lt;/em&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;strong&gt;&lt;em&gt;           }, function () { &lt;br /&gt;
               alert("Unable to find your location"); &lt;br /&gt;
           }); &lt;br /&gt;
       } else { &lt;br /&gt;
           alert("Your browser does not support GeoLocation API! "); &lt;br /&gt;
       } &lt;br /&gt;
   }); &lt;br /&gt;
   }); &lt;br /&gt;
   &amp;lt;/script&amp;gt;&lt;/em&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Make sure you change the RED text in the code above with the actual Bing Maps SDK Key that you obtain from the Developer Portal.  Once this is done, you can run the page.  It presents an UI as below:-&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Using-HTML5-Geolocation-.NET-Application_D1DF/image_6.png"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;img title="image" border="0" alt="image" width="541" height="293" style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Using-HTML5-Geolocation-.NET-Application_D1DF/image_thumb_2.png" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Click on “Find My Location” and you would see a warning in the below as follows:-&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Using-HTML5-Geolocation-.NET-Application_D1DF/image_8.png"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;img title="image" border="0" alt="image" width="549" height="333" style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Using-HTML5-Geolocation-.NET-Application_D1DF/image_thumb_3.png" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Click on “Allow Once” and then it reloads the page and then fills up the TextBox with your current location.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Using-HTML5-Geolocation-.NET-Application_D1DF/image_10.png"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;img title="image" border="0" alt="image" width="556" height="342" style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/Using-HTML5-Geolocation-.NET-Application_D1DF/image_thumb_4.png" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;So, with few simple steps, we can find the actual location of the users through the Geolocation API and using Bing Maps SDK.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Cheers!!!&lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/147342.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/147342.aspx</wfw:comment>
        <slash:comments>3</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/147342.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/147342.aspx</trackback:ping>
    </entry>
    <entry>
        <title>HTML5 Markup Enhancements for ASP.NET</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2011/10/17/html5-markup-enhancements-for-asp.net.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2011/10/17/html5-markup-enhancements-for-asp.net.aspx</id>
        <published>2011-10-17T14:46:1305:30:00</published>
        <updated>2011-10-17T14:46:13Z</updated>
        <content type="html">&lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;This would be the first in the series of posts I plan to do for &lt;/font&gt;&lt;a href="http://geekswithblogs.net/ranganh/archive/2011/10/17/html5-for-asp.net-developers.aspx" target="_blank"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;HTML5 for ASP.NET Developers&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt; The first thing that everyone would have experienced is the HTML5 header tag.  &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;The regular header tag that Visual Studio creates for ASP.NET Webforms is &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;em&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "&lt;/font&gt;&lt;/em&gt;&lt;a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;"&gt;&lt;em&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&lt;/font&gt;&lt;/em&gt;&lt;/a&gt;&lt;em&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&amp;gt;&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;This would be the header tag present in the Master Page or the actual ASPX Page when you don’t inherit from a Master Page.  Till HTML5 specifications started momentum, the general DOCTYPE was this lengthy and makes it hard to really remember.  It also indicates a bit of versioning to HTML.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;With HTML5, the header changes simply to&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;You would notice this tag quite prominently in all HTML5 conferences and articles.  &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Also, when you create an ASP.NET MVC 3 project using Visual Studio 2010, you would notice that this is the default header tag in your Layout.cshtml page (equivalent of Master Pages for MVC3)&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Strictly speaking this tag is not mandatory for using other HTML5 tags.  But having this would mean or decipher to the browser that this page uses HTML5 features.  &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Going forward VS11 and other project types would have this default header tag but as of now, we can modify our page header and simply put &amp;lt;!DOCTYPE html&amp;gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;One interesting thing which was identified by my friend and team mate &lt;/font&gt;&lt;a href="http://blogorama.nerdworks.in/" target="_blank"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Rajasekharan Vengalil&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt; is that, if we remove the tag completely, the Internet Developer Toolbar defaults to Quirks Mode since its unable to find a DocType.  The IE Developer Toolbar is a wonderful utility for web developers for testing, debugging and doing a variety of tasks.  I had written a bunch of posts earlier on this &lt;/font&gt;&lt;a href="http://geekswithblogs.net/ranganh/archive/2011/06/26/formatting-minified-jquery-javascript-using-the-internet-explorer-9-developer.aspx" target="_blank"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;here&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;, &lt;/font&gt;&lt;a href="http://geekswithblogs.net/ranganh/archive/2011/07/06/testing-for-firefox-chrome-user-agents-using-the-ie9-developer.aspx" target="_blank"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;here&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt; &amp;amp; &lt;/font&gt;&lt;a href="http://geekswithblogs.net/ranganh/archive/2011/07/07/pick-that-favourite-colour-using-the-colour-picker-in-ie.aspx" target="_blank"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;here&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;  Plan to write more of these in near future &lt;img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/HTML5-Markup-Enhancements-for-ASP.NET_B96E/wlEmoticon-smile_2.png" /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;To demonstrate this behavior, lets fire up Visual Studio 2010 and create a File – New Project – ASP.NET Web Forms Application.  Just leave the defaults and let the site be created.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;I would assume you are running the IE9 as your default browser.  If you haven’t installed it yet, you can &lt;/font&gt;&lt;a href="http://windows.microsoft.com/en-IN/internet-explorer/products/ie/home?WT.mc_id=aff-n-in-loc--hr" target="_blank"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;download it from here&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Lets open up the Site.Master.  We will find in the top the default XHTML 1.0 strict doctype.  Lets remove this header and then run the page. Once IE opens up with the Default Page, press F12 or choose “F12 developer tools” from the Tools menu in the right top.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/HTML5-Markup-Enhancements-for-ASP.NET_B96E/image_2.png"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/HTML5-Markup-Enhancements-for-ASP.NET_B96E/image_thumb.png" width="470" height="383" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Once it opens up, you would notice the following for “Browser Mode” and “Document Mode”&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/HTML5-Markup-Enhancements-for-ASP.NET_B96E/image_6.png"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://geekswithblogs.net/images/geekswithblogs_net/ranganh/Windows-Live-Writer/HTML5-Markup-Enhancements-for-ASP.NET_B96E/image_thumb_2.png" width="474" height="307" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;As you can see, it defaults to “Quirks Mode”.  Here is a nice post from the IE Team on &lt;/font&gt;&lt;a href="http://blogs.msdn.com/b/ie/archive/2011/03/24/ie9-s-document-modes-and-javascript.aspx?ocid=aff-n-in-loc--hr" target="_blank"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Document Modes and Browser Modes&lt;/font&gt;&lt;/a&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt; but, simply putting, Quirks mode is JavaScript behavior of  IE6.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;So, we need to have DocType mentioned in the Master Page or Layout Page.  And all the more good, if we simply change it to &amp;lt;!DOCTYPE html&amp;gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Next, we will jump into some advanced stuff and then come back to the mark up enhancements.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Cheers !!!&lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/147340.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/147340.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/147340.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/147340.aspx</trackback:ping>
    </entry>
    <entry>
        <title>HTML5 for ASP.NET Developers</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2011/10/17/html5-for-asp.net-developers.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2011/10/17/html5-for-asp.net-developers.aspx</id>
        <published>2011-10-17T12:52:2505:30:00</published>
        <updated>2011-11-22T13:03:26Z</updated>
        <content type="html">&lt;p&gt;&lt;span style="color: #000033"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;HTML5 for ASP.NET Developers is my attempt to learn HTML5 myself being an ASP.NET Developer.  I am planning to post a series of posts on how ASP.NET Developers can leverage some of the HTML5 features in their applications.  To begin with, I plan to post a few samples on the following&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #000033"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;1. &lt;/font&gt;&lt;a href="http://geekswithblogs.net/ranganh/archive/2011/10/17/html5-markup-enhancements-for-asp.net.aspx"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Markup Enhancements that every ASP.NET Developer should know&lt;/font&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #000033"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;2. &lt;a href="http://geekswithblogs.net/ranganh/archive/2011/10/17/using-html5-geolocation-api-in-asp.net-application.aspx"&gt;Using HTML5 Geolocation API&lt;/a&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #000033"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;3. &lt;/font&gt;&lt;/span&gt;&lt;span style="color: #000033"&gt;&lt;a href="http://geekswithblogs.net/ranganh/archive/2011/08/29/using-html5-local-storage-in-asp.net-applications.aspx"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Using HTML5 Local Storage in ASP.NET Applications&lt;/font&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #000033"&gt;4. &lt;a href="http://geekswithblogs.net/ranganh/archive/2011/11/03/making-html5-video-work-with-iis-express.aspx"&gt;Making HTML5 Video work with IIS Express&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #000033"&gt;5. &lt;a target="_blank" href="http://geekswithblogs.net/ranganh/archive/2011/11/17/html5-boilerplate-template-for-asp.net-with-visual-studio-2010.aspx"&gt;HTML5 Boilerplate template for ASP.NET with Visual Studio 2010&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #000033"&gt;6. &lt;a href="http://geekswithblogs.net/ranganh/archive/2011/02/22/playing-html5-video-with-fall-back-for-ie8ie7-and-earlier.aspx"&gt;Playing HTML5 Video with fall back for IE8/IE7 and earlier versions of other browsers using Silverlight&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #000033"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;And few other things (I will update the above links as and when I get more posts)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #000033"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;In the meantime, it doesn’t need more reiteration that HTML5 is a critical learning for every web developer be it you work on ASP.NET or PHP for web development.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #000033"&gt;&lt;font color="#004080" size="2" face="Tahoma"&gt;Cheers !!!&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/147338.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/147338.aspx</wfw:comment>
        <slash:comments>4</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/147338.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/147338.aspx</trackback:ping>
    </entry>
</feed>
