Try this...may it will help you..
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
LinkButton1.Attributes.Add("onClick", "javascript:alert('Record Saved Successfully');");
}
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("Default.aspx");
}
Thanks