Maximize ASP.Net Web Form

  • Thread starter Thread starter Empire City
  • Start date Start date
E

Empire City

How can I set the initial state of an ASP.Net web form to maximum or does
this have to be done with JavaScript or DHTML? Preferable through a property
but if not through code, or both ways.
 
How can I set the initial state of an ASP.Net web form to maximum or
does this have to be done with JavaScript or DHTML?

Yes, initial browser window appearance is set by the clients preferences and
what not. This means that you must use JavaScript to set it. You can do it
like this:

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

Hope that helps,
-JG
 
window.open('page.aspx', 'channelmode = yes'....) or fullscreen=yes

This opens up *another* window... it doens't change the size or position of
the *current* window.

-JG
 
If you need to resize the window after the load, then you would need to use
the OP response, otherwise before you load the page, you can use maximize.
 
Back
Top