Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to resize to full aspx form?

Posted on 2007-12-03
2
802 Views
Last Modified: 2010-05-18
Hi,

I have problem with aspx form when shows. It does not show full screen.

Please help how to solve this problem.

Thank you.
0
Comment
Question by:emi_sastra
2 Comments
 
LVL 16

Accepted Solution

by:
Edwin_C earned 500 total points
ID: 20400781
Add the following javascript in your aspx file.

    <script type="text/javascript">
    <!--
 
    /*maximize window*/
      top.window.moveTo(0,0);
      if (document.all) {
            top.window.resizeTo(screen.availWidth,screen.availHeight);
      }
      else if (document.layers||document.getElementById) {
          if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
            top.window.outerHeight = screen.availHeight;
            top.window.outerWidth = screen.availWidth;
        }
    }
    //-->
    </script>
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 20401038
Thank you very much.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question