Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi


i have problem regarding Tabcontainer.i have a tabcontainer with two tab in my page.when i click on submit button for insert data to database,then a message box is display and that time my tabcontainer is vanish and when i click on message box ok button then its display.

and i used different updatepanel for tab .

please help me, what is the error and why it is so?

i tried following code to display messagebox

ScriptManager.RegisterStartupScript(this, this.GetType(), "alertscipt", "alert('Recorded Updated Succesfully')", true);

ScriptManager.RegisterStartupScript(UpdatePanel1, typeof(string), "alertscipt", "alert('Recorded Updated Succesfully')", true);
Posted
Updated 1-Aug-13 0:15am
v2

1 solution

Hi,

You are right, this happens when calling javascript alert from server side.

You can do one thing, create your own popup using any available controls like jquery or modelpopupextender control in ajax control toolkit. This is better option.

second option is use pagemethod or jquery json method to call your insert method. and in success return function, call alert message.
 
Share this answer
 

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