All jQuery With ASP.NET

jQuery, ASP.NET Client ID and External JS File

To find any ASP.NET Control in jQuery, we use Client ID property to get the correct ID of the rendered control. For example, to find an ASP.NET textbox with ID "txtName", a familiar jQuery syntax is, $('<%= txtName.ClientID %>').focus( //Blah Blah); If you are writing this above code directly in your .aspx page, then your […]
Read the rest of this entry »

Fix for ASP.NET Checkbox -jQuery click event getting fired twice issue

This is really interesting. If ASP.NET checkboxes or checkbox list is placed within any container element like div or span, and click event is attached on checkbox. And then clicking on checkbox text will call click event twice. For example, consider the following HTML/ASP.NET code. <div id="dvList"> <asp:CheckBox ID="chk1" runat="server" Text="Check1" CssClass="Dummy" /> <asp:CheckBox ID="chk2" […]
Read the rest of this entry »

Using jQuery with ASP.NET

As this post is about "using jQuery with ASP.NET" so we will not be looking into "What is jQuery" and "How to use jQuery" assuming you know basics of jQuery. If not, then please read "Learn how to use jQuery?" To begin with using jQuery with ASP.NET, first download the latest version the jQuery library […]
Read the rest of this entry »

ASP.NET GridView + jQuery Tips and Tricks

Find ASP.NET GridView and jQuery tips and tricks which can make this control more effective and user friendly. These tips and tricks will help to make this control look more elegant and also allows you to do searching and filtering on client side using jQuery. Related Post: Download ASP.NET GridView & jQuery Tips and Tricks […]
Read the rest of this entry »

Restrict Date Range in jQuery UI DatePicker for two dates

In this post, you will learn how to implement validation to "Restrict Date Range in jQuery UI DatePicker" or "End Date should be greater than Start Date by few days using jQuery Date Picker". When I say few days, which means end date must be at least StartDate + 4 or StartDate + 2.. The […]
Read the rest of this entry »

jQuery: Get row and column index of a GridView Cell

In this post, Find jQuery code to get Row Index and Column Index of ASP.NET GridView Cell on click or on mouseover event. Related Post: How to access particular cell in gridview using jQuery Get ASP.NET GridView Cell Value on Click using jQuery How to loop through all grid view rows using jQuery To get […]
Read the rest of this entry »