Follow by Email

Monday, 6 August 2012

Javascript alert box in C# codebehind

 protected void btn_reg_Click(object sender, EventArgs e)
    {
string textForMessage = @"<script language='javascript'> alert('Registration done successfully, check your mail for login details.\nThank you');</script>";
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "UserPopup", textForMessage);

  }


0 comments:

Post a Comment


                                                            

 
Design by Abhinav Ranjan Sinha