Routing, an open debatable topic among many in the developer community, is an interesting feature in which to deep dive. Routing is a functionally based tag or Uri template used by APIs to match the desired action or methods expected to be executed. There are two types or rather two different types of Routing being used during development. Namely, ‘Convention-based Routing’ the elder son in the REST routing family followed by ‘Attribute Routing’ the most
Sometimes we need please wait message button in our website to inform the visitor that their submission still in progress. Today, we will explain about creating please wait message in the button on ASP.NET website. You can copy below code to please wait message in the button.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PleaseWaitButton.aspx.cs"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<form id="form1" runat="server">
<asp:Button ID="Button1" runat="server" Text="Button" />
public partial class PleaseWaitButton : System.Web.UI.Page
protected void Button1_Click(object sender, System.EventArgs e)
"document.getElementById('" + Button1.ClientID + "').disabled=false;", true);
protected void Page_Load(object sender, System.EventArgs e)
Button1.Attributes.Add("onclick", ClientScript.GetPostBackEventReference(Button1, "") + ";
this.value='Please wait...';this.disabled = true;");
Depending on your context you may not want to be storing these types of application settings in configuration files that are committed to source control. As you would expect, my local environment for development and once I deploy to Azure have completely different configurations. So how do you change the configuration from local to production? If you are used to using appSettings from the app.config and web.config, you may have been going down the road of transforming and replacing values with tools With
In today's article you will learn the differences between Code Behind and Inline Code in ASP.NET. Many people remain confused about the differences between Code Behind and Inline Code. Here I am explaining both of them with examples that will help you to understand the differences between the two. Code Behind Code Behind refers to the code for an ASP.NET Web page that is written in a separate class file that can have the extension
In this example we explain that how to change CSS dynamically from code behind in asp.net using C#. or how to change CSS file programmatically in C# code(back end code) in asp.net. Some time we have requirement like if user click on or check Lightweight button then Lightweight CSS is apply to the application for these user only same like if user checked or click on Professional button then Professional look is applied to the
Often developers ask how to add polling, scheduled tasks and so on to ASP.NET web applications. There are many ways how to do it and there are even more reasons why not to do it on ASP.NET web application. Let’s see what are the problems and how to build services for your web applications wherever they run. IIS and Web Applications IIS is the host of web applications. It knows how to handle requests and
Nowadays, a large number of people have their own websites to promote their products, services, online shopping stores or even to get theirself popularity. And maybe you are classified as one of them. To get more traffic to their websites, sure you are always look on for tips to improve performance of your websites to make profit out of it. One of the common way that you have to do is to increase your site's
In this article I will sharing few tips to improve the performance in ASP.NET site. This is the things that I have done: HTTP Compression HTTP compression is used to compress page content from the server end. It compress HTTP requests and responses, so is a great performance improvement. My project is hosted in Windows Server 2003, and I implemented HTTP compression after reading this article. Disable Possible ViewState View State allows the page state