Display alert message while saving records

Satyapriyanayak
Posted by Satyapriyanayak under ASP.NET category on | Points: 40 | Views : 864
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace WebApplication
{
public partial class WebForm : System.Web.UI.Page
{
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text = TextBox1.Text;
ClientScriptManager csm = Page.ClientScript;
csm.RegisterStartupScript(this.GetType(), "showalert", "alert('Data Saved Successfully.')", true);
}
}
}

Comments or Responses

Login to post response