Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Change Page Size on Page Load

Author  Topic 

bubberz
Constraint Violating Yak Guru

289 Posts

Posted - 2005-08-30 : 12:05:35
I am opening a page from a hyperlink, and want to set it's dimensions to 400x400, and put it in the middle of the page.

I know I'll probably have to do this with javascript, but how? Can it be done in Page_Load?

Thanks!

AjarnMark
SQL Slashing Gunting Master

3246 Posts

Posted - 2005-08-30 : 13:50:22
The easiest way to do this is to use JavaScript code that actually processes the opening of the new window. Then, in the window.open you can pass it sizing information. A little Google goes a long way.

---------------------------
EmeraldCityDomains.com
Go to Top of Page

bubberz
Constraint Violating Yak Guru

289 Posts

Posted - 2005-09-02 : 13:00:12
Thanks Ajarn. That's what I ended up doing.
Go to Top of Page
   

- Advertisement -