Category: jQuery
-
Calling ASP.Net Code Behind using jQuery AJAX – A Simple Complete Example
Ajax (Asynchronous Javascript And XML) is a technique of sending the request to the server and receiving the response from the server without reloading the entire page. Consider a scenario where you have many Fields in your Web Form and you want to populate Field2 based on Field1 value. It would be overkill if you…
-
How to prevent double clicking or multiple Form submission after the ASP.Net Button is clicked?
Below picture shows the typical flow when an ASP.Net Web Form is submitted by the user. You want to prevent double clicking or submitting the form multiple times after the ASP.Net Button is clicked so that same data should not be stored more than once. We want to prevent multiple form submission at step 1…
-
How to get the id of any ASP.Net server control using javascript or jQuery
If you want to select a particular element to get the value or to process it, first you would select that element by id – as no two elements can have the same id in a valid HTML. Let us assume you have the following ASP.Net TextBox server control in your WebForm. We are taking asp:TextBox…
-
How to set the value of asp:HiddenField using jQuery and get the value at ASP.Net code behind
If you come to this page looking out for a quick answer for “How to set the value of asp:HiddenField using jQuery and get it in code behind”, here is the answer. But I recommend you to read through the rest of the article to know why we are doing what we are doing. Aspx…