ASP.NET Window - How to open Window at center of screen?

Solution: Call client-side screenCenter() after Open() function

*Note: This function will guarantee that Window will be at center position everytime it is called. This function does not help to maintain Window center position when browser is resized. You may need to call function again to re-center.

Click "Open" to open Window

 


Java Script
function myWindowOpen()
{
      myWindow.Open();
      myWindow.screenCenter();
}

"I'd just like to thank you for the awesome work that your team has done in creating all of the ASP.NET tools. They are easy to work with and are the best that I have found."

Roy Williams

Random testimonial   All testimonials