All jQuery With Ajax

jQuery does not work properly after ajax partial postback

Don't get shocked by the title of the post. This is true. Recently I have faced this issue. Let us walkthrough of what we are talking about. We all are familiar with below code. A script manager, update panel and content template. As you see I have placed 2 buttons. One gets binded on document.ready() […]
Read the rest of this entry »

jQuery Datepicker does not work after Ajax Partial Postback

I had already posted number of post related to jQuery UI Datepicker. 1. Implement jQueryUI DatePicker with ASP.NET 2. Show Hand/Pointer cursor on image button with jQueryUI datepicker control 3. Disable Weekends in jQuery UI DatePicker 4. Enable weekends in jQuery UI Datepicker 5. Disable specific days in jQuery Datepicker "jQuery UI Datepicker does not […]
Read the rest of this entry »

Call jQuery from ASP.NET server side

In this post, I will explain you that how can you call jQuery from server side in ASP.Net. Lets place a button on the page and on click of button, server side click event of button will get executed. <asp:Button ID="btnCall" runat="server" Text="Call jQuery From Server" OnClick="btnCall_Click" /> Server side click event of button. protected […]
Read the rest of this entry »

Use jQuery and Ajax together with ASP.NET Master pages

I had previously posted about "jQuery does not work properly after ajax partial postback" and the best possible solution was to put all your jQuery code in pageLoad() function instead of document.ready(). This works great. But this will not work when you are using ASP.NET master page feature and you have jQuery code in master […]
Read the rest of this entry »

Avoid jQuery.Post(), use jQuery.ajax()

Well, as you are aware that there are many ways to make an ajax call. If you don't know then do read "How to Make jQuery AJAX calls". Okay, hope you have gone through the article. So 2 very common ways are jQuery.Post() and jQuery.get().jQuery post() is for to make a post request and jQuery […]
Read the rest of this entry »

Use jQuery.getScript to load external js files

jQuery provides a function called "getScript", which allows to load external Javascript or js file on the fly. The advantage of using $.getScript is that it loads the content on run time, which is far better than including <script> tag in your head section. jQuery getScript load a JavaScript file from the server using a […]
Read the rest of this entry »

Responsive Menu
Add more content here...