Click here to Skip to main content
15,883,969 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello FRIENDS,

am working on asp.net c#

My requirement is i want to make the popup window in center of screen...
Presently it is displaying in the top of screen.

This is the code, that i have wrote for popup.

ScriptManager.RegisterStartupScript(this, this.GetType(), "RunCode", "javascript:alert('Record added Successfully');document.location.href="/KB/answers/Home.aspx";", true);

Please help me, how to display in the center of screen.

Thanks.
Posted

1 solution

 
Share this answer
 
Comments
[no name] 5-Sep-13 1:55am    
++++5

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