Development – Leet 4 Life

Software Development Code Samples and More

Skip to: Content | Sidebar | Footer

Tag: Function

Firing JavaScript only when inside an ASP.NET Ajax Postback

29 June, 2012 | ASP.NET, C#. NET, jQuery | By: Michael Merrell

There are times where you need to fire a JavaScript event only when you are posting inside of an ASP.NET AJAX post back event. In my example below I am needing to fire a function used for a document ready jQuery event. This event only needs to be fired on AJAX post backs because on normal posts back it will already be handled by jQuery, however it will not be fired when executed inside of an AJAX post back unless told to. The following JavaScript is a pretty standard script for firing a set of functionality when a page has [Read More…]