Category: ASP.Net
-
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…
-
3 Things Every ASP.Net Developers Should Know
There are several options to develop web applications in Microsoft ecosystem such as ASP.Net Web Forms, ASP.Net MVC, Single Page Applications. ASP.Net Web Forms is supported from the initial days of ASP.Net and even today enterprises build many of their web applications using Web Forms. The advantage of web forms is that enables you to…
-
Calling Javascript from Code Behind in ASP.Net using C# – How it works
There are times when you want to call a javascript function from code behind based on business logic in your ASP.Net applications. This could be because that your business logic needs to talk to database to decide whether javascript function has to be called or not. When you do a simple Google search for this…
-
Applying styles to Gridview in ASP.Net using custom CSS (e.g, Twitter Bootstrap)
Gridview is one of the most powerful web controls which is used in most of the ASP.Net web applications to display information to the user in tabular form. In this article, we are going to discuss on How to apply styles to gridview How to apply style to a particular row based on the row…
-
Sorting a Gridview dynamically on multiple columns in different order in ASP.Net
Most of the ASP.Net developers would have used Gridview control in their applications. This article explains about sorting the gridview dynamically on multiple columns in different order in web applications. I am using Product table of AdventureWorks database for this sorting. Our objective is to achieve the sorting order ListPrice desc, ReOrderPoint asc, Name desc…