Tampa/Orlando Web Platform Firestarter Content and Links

Thanks to all of the folks who came out for the Web Platform Firestarter events that Chris Bowen and I presented this week.

If you’d like the slides from our presentations, you can find Chris’ slides via this post, and mine are available here.

Additionally, some of the questions during the event prompted me to look up some information on the following:

controlRenderingCompatibilityVersion Page property

An attendee asked me what the default value for this property is in a new project in Visual Studio 2010 and .NET 4. The default for the property is “4.0” which may potentially break compatibility with previous behavior. If you use the Visual Studio upgrade wizard to update a site to .NET 4, it will automatically add this property to the pages section of web.config and set it to “3.5” to preserve backwards compatibility.

You can read more about this property at:

https://msdn.microsoft.com/en-us/library/system.web.configuration.pagessection.controlrenderingcompatibilityversion.aspx

And you can read more about upgrading a site to .NET 4 at:

https://msdn.microsoft.com/en-us/library/dd483478.aspx

Routing in Web Forms

Another question that came up was whether you could use the new routing support in Web Forms to route an incoming URL to a handler (.ashx) or web service. I gave that a shot, and found that the answer was no…in order to use MapPageRoute with a given file, that file has to inherit from the Page base class.

To learn more about routing in Web Forms, check out the following docs and articles:

https://msdn.microsoft.com/en-us/library/cc668177.aspx

https://weblogs.asp.net/scottgu/archive/2009/10/13/url-routing-with-asp-net-4-web-forms-vs-2010-and-net-4-0-series.aspx

https://www.4guysfromrolla.com/articles/012710-1.aspx