Thursday, May 28, 2009

Some number in Ajax usage among .NET developers

Source
- the most used web frameworks is pretty obviously WebForms (89%) followed by ASP.NET MVC (38%);
- the most used JavaScript library is jQuery with 76%, followed by Ajax Control Toolkit (58%) and ASP.NET Ajax (48%). And still a good 8% is hand-crafting javascript and ajax calls;
- among the ones using ASP.NET Ajax, the vast majority is using the UpdatePanel control (88%) and 58% is using the ASP.NET Ajax client library and talking directly to Json/XML services.

Tuesday, May 26, 2009

How to deal with disabled Javascript in Browsers in ASP.NET MVC

Add noscript html tag into master page to redirect description page:
<noscript>
<meta http-equiv="refresh" content="5; url=<%= Url.Relative("~/ControllerName/ActionName") %>" />
</noscript>