Tuesday, October 12, 2010

How to call jquery only on postback.

I had a senario where I need to call a jquery code only after postback.
When ever we add a jquery code in the HTML section it's called always as the page gets loaded. Sometimes it would be enough to execute the peice of Jqurey code only on post back.
The below code shows an example of how to call a Jquery only on postback.