Click here to Skip to main content
16,020,990 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

I want to show alert box when i am update the information of any user. i use the alert box but it redirect to the next page without show a alert box.

So, how can i show an Alertbox then redirect to the next page.

Please, help me on this.....


Thanks and Regards....
Mitesh
Posted

1 solution

Try this...may it will help you..

C#
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
 
Share this answer
 
v2
Comments
[no name] 10-Oct-12 4:46am    
thank you so much. it help me and worked......
AshishChaudha 10-Oct-12 4:47am    
Thanks Mits Machhi

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900