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 »

Implement jQuery UI slider with ASP.NET

jQuery UI provides slider widget which can be used for inputs where range is defined or fixed like we have in various color pickers for RGB. The biggest advantage of slider is that you are not concerned about the validation of the input value as range is fixed and user can't input value beyond the […]
Read the rest of this entry »

How to change jQuery UI Slider value from textbox in ASP.NET

I had recently posted about how to use jQuery slider with ASP.NET which I had also used for my client. But my client came up with one more requirement which is user can either select value from slider or can enter in a textbox. Based on the value entered in textbox, slider value should also […]
Read the rest of this entry »

Things to remember while using jQuery with ASP.NET Master Pages

jQuery is great library but if not used properly then it can make you crazy. If you are using ASP.NET Master Page and planning to use jQuery as well then it is quite important to know few things otherwise your code is not going to work. I have prepared a checklist which you should remember […]
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 »

Get ASP.NET Dropdown selected value and text using jQuery

In this post, I will show you how can you get the selected value and selected text of ASP.NET Dropdown using jQuery. Let's first declare the dropdown list and a button. <asp:DropDownList ID="ddlLanguage" runat="server"> <asp:ListItem Text="Select" Value="0"></asp:ListItem> <asp:ListItem Text="C#" Value="1"></asp:ListItem> <asp:ListItem Text="VB.NET" Value="2"></asp:ListItem> <asp:ListItem Text="Java" Value="3"></asp:ListItem> <asp:ListItem Text="PHP" Value="4"></asp:ListItem> </asp:DropDownList> <asp:Button ID="btnGetValue" runat="server" Text="Get DropDown […]
Read the rest of this entry »

Responsive Menu
Add more content here...