Creating Understanding and Educating Programmers, Developers and Technical Communities, one post at a time.

Friday, October 30, 2009

How To Enable jQuery Intellisense in VS 2008

Here I want to share some valuable information on jQuery intellisense support in Visual Studio 2008.
Here are few steps which you need to follow.
  1. Make sure you already have SP1 for VS 2008. Otherwise you need to install it.
  2. Install patch KB958502 - JScript Editor support for “-vsdoc.js” IntelliSense files.
  3. Download the visual studio documentation from jQuery website.
Now drag downloaded documentation in your project and place it at same location where you have jQuery library. You will also notice that your downloaded documentation contain file name vsdoc2.js. In my case, I have jQuery library name jquery-1.3.2.js, when I downloaded jQuery documentation, that has jquery-1.3.2-vsdoc2.js, what I did, I removed 2 before dot. It became like jquery-1.3.2-vsdoc.js.

For more detail on jQuery subject, please visit Setting up Visual Studio Intellisense for jQuery.

Wednesday, October 21, 2009

ASP.NET Validation Controls

Once again, I am writing a very short blog post on ASP.NET validation controls. These are six validation controls. You can see them in following snapshot of toolbox wrapper.



Except ValidationSummary, all of the validation controls have following two common properties.
  • ControlToValidate: The ID of the form field being validatd.

  • Text: The error message displayed when validation fails.


Your suggestions and comments are always welcome, let me know so I can improve it.
AS a part of social networking campaign I have setup twitter account for programming360 blog. You can follow it @ http://twitter.com/Programming360

Tuesday, October 20, 2009

MSDN re-design

MSDN got new look. Several year it maintains its maroon color them. But, now it is using dark blue color, which is cool in my opinion. MSDN is ultimate resource for Microsoft platform developer. Earlier this year .Net logo was also changed to wave symbol with dark and light blue mixture of color. New re-design of MSDN library also follow the same color. It shows consistency in online business of Microsoft Corporate.

Friday, October 16, 2009

Page Execution Lifecycle

Here is the sequence of events that are raised whenever you request an ASP.NET page.
  • PreInit
  • Init
  • InitComplete
  • PreLoad
  • Load
  • LoadComplete
  • PreRender
  • PreRenderComplete
  • SaveStateComplete
  • Unload

Wednesday, October 7, 2009

Trilogy Stickers for Stackers

I got my Trilogy Stickers (League of Justice Stickers) three days ago, I immediately took a shot, so I can post it on Meta site of Stackoverflow. Stickers are cool and now I will paste them on my car, computer and router. Once I done with that, I will post some more pictures.

Thread was being aborted

I was working on project. Everything was fine but exception log showed "Thread was being aborted". I further looked into and found out System.Threading.ThreadAbortException:

It is because Response.Redirect and Server.Transfer methods take me to another page and call Response.End internally. Response.End immediately ends the page execution and shifts the execution to the Application_EndRequest event in the application's event pipeline. This make impossible to execute current page code.

You can avoid such exception by using overload method of Response.Redirect(string url, bool endResponse), and pass false value for second argument. It will suppress the interal call to Response.End.

You can use Server.Execute instead of Server.Transfer.

Thursday, October 1, 2009

Programming360 is now on Twitter

At this point when everybody (brand, companies, politicians etc ) is creating twitter. I also decide to adopt this new trend. Today, I am officially announcing twitter account for my Programming360 blog. You can follow Programming360 twit.

You could also subscribe Programming360 Twitter feeds.