Skip to content

Instantly share code, notes, and snippets.

@tnayanam
Created June 13, 2018 15:50
Show Gist options
  • Save tnayanam/89b77f856a65d86fbd87cba8b46db2e8 to your computer and use it in GitHub Desktop.
Save tnayanam/89b77f856a65d86fbd87cba8b46db2e8 to your computer and use it in GitHub Desktop.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<script runat="server">
protected void btnSave_Click(object sender, EventArgs e)
{
//Include three second delay for example only.
System.Threading.Thread.Sleep(3000);
Label1.Text = "Button Clicked";
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<span style="background-color:#66997A;"> <img src="img/images.jpg" alt="Please wait" width="100px"/> Please wait ...</span>
</ProgressTemplate>
</asp:UpdateProgress>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Label ID="lblMessage" runat="server" EnableViewState="false" ForeColor="blue"></asp:Label>
<asp:TextBox ID="TextBox2" runat="Server"></asp:TextBox>
<asp:Button ID="btnSave" runat="Server" Text="Add Records"
OnClick="btnSave_Click" />
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment