Set Start Page to max size

G

google

I'm obviously new to asp.net. so how do you set the window size to 100%
of the start page. everytime i open up my default.aspx, it's not the
maximum size.

pls help

thanks in advance
 
D

Dimitri Glazkov

It is possible using client-side script, such as this:

Page.RegisterStartupScript("PrintPage","<script
language=\"javascript\">window.moveTo(0,0);window.resizeTo(screen.availWidth,
screen.availHeight);</script>");

However, you have to consider the user experience aspect of the software
that you are writing. Remember, you are operating in the Web world. How
often do you see a Web site do what you are trying to accomplish? And if you
do, how annoyed do you get with this Web site?

:DG<
 
G

google

thanks for the reply.

i thought there's something in visual studio .net that will do the
trick. it's just that only when run my web app in my VS that this
happens.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top