Microsoft marries jQuery for VS 2010

According to Scott Guthrie, jQuery will be integrated into Microsoft’s Asp.Net platform including Visual Studio 2010. They plan to basically just give developers a much better experience while using it along with Asp.Net AJAX, but they will use the main branch from jQuery and adhere to its MIT open source license. Javascript intellisense is already implemented in the 2008 line of Visual Studio, but this will enhance the jQuery library with better intellisense documentation. This is definitely great news.

Correct Click Event on Typing Enter

If you work with ASP.Net and have multiple buttons on the form that correspond to different textboxes you’ve probably run into the problem of a user pressing the “Enter” key and submitting to the wrong button’s server “Click” event.

I finally found the solution @ http://forums.asp.net/p/1292662/2501472.aspx using Panel and DefaultButton.

You can put TextBox and Button inside the Panel and use DefaultButton property. In that case you will not need any javascript:

<asp:Panel ID="Panel1" runat="server" DefaultButton="Button1">