Click here to Skip to main content
15,896,359 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello sir,
when data is submitted i have to shoow message box or pop up to user and i am using this script the problem is that when this box is open parent page is not displayed and i have to show parent page as a disable form.my script is at code behind
C#
ClientScript.RegisterClientScriptBlock(this.GetType(), "btn", "<script type = 'text/javascript'>alert('Data has been submitted successfully..');'height=700,width=1200' </script>");





thanks in advance
Posted
Updated 7-Oct-13 22:41pm
v3
Comments
Anurag Sinha V 8-Oct-13 4:28am    
How is the above script called??

1 solution

You need to use ClientScript.RegisterStartupScript instead of ClientScript.RegisterClientScriptBlock. Below is code snippet

ClientScript.RegisterStartupScript(this.GetType(), "btn", "<script type = 'text/javascript'>alert('Data has been submitted successfully..');'height=700,width=1200' </script>");
 
Share this answer
 
v4

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