Monday, May 25, 2009

How to add HTML Attributes into html helper

<%=Html.DropDownList("CategoryID", new {@class="input", style="display:none"})%>

Friday, May 22, 2009

Simplest way to redirect user to maintaining page

Just add an HTML file named “app_offline.htm” to the root directory of your website. Adding this file will clear the server cache. When ASP.NET sees the app_offline.htm file, it will shut-down the app-domain for the application (and not restart it for requests), and instead send back the contents of the app_offline.htm file in response to all new dynamic requests for the application.

The size of the file should be more that 512 bytes to be displayed.

Thursday, May 21, 2009

New for web development in Visual Studio 2010

Source

Dynamic IntelliSense for JavaScript
Snippets for HTML and JavaScript

Tuesday, May 19, 2009

DevHawk - Microsoft, Open Source and ASP.NET MVC

Source
...
Personally, I think Microsoft is making small steps in the right direction when it comes to Open Source. Not only have some high profile Microsoft projects go Open Source like ASP.NET MVC and MEF, but we’ve even started taking baby steps for including external intellectual property. Releasing ASP.NET MVC under Ms-PL is a big deal, but I think including jQuery “in the box” is a much, much bigger deal. It remains to be seen if it’s a one-time-only deal or if it’s a new trend inside Microsoft.
...