Maximize ASP.Net Web Form

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Empire City

    Maximize ASP.Net Web Form

    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.



  • Juan Gabriel Del Cid

    #2
    Re: Maximize ASP.Net Web Form

    > How can I set the initial state of an ASP.Net web form to maximum or[color=blue]
    > does this have to be done with JavaScript or DHTML?[/color]

    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="javas cript">
    window.moveTo(0 ,0);
    window.resizeTo (screen.availWi dth, screen.availHei ght);
    </script>

    Hope that helps,
    -JG


    Comment

    • Alvin Bruney

      #3
      Re: Maximize ASP.Net Web Form

      window.open('pa ge.aspx', 'channelmode = yes'....) or fullscreen=yes

      --


      -----------
      Got TidBits?
      Get it here: www.networkip.net/tidbits
      "Juan Gabriel Del Cid" <jdelcid@atrevi do.nospam.net> wrote in message
      news:OtAJ5X5mDH A.2312@TK2MSFTN GP12.phx.gbl...[color=blue][color=green]
      > > 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?[/color]
      >
      > Yes, initial browser window appearance is set by the clients preferences[/color]
      and[color=blue]
      > what not. This means that you must use JavaScript to set it. You can do it
      > like this:
      >
      > <script language="javas cript">
      > window.moveTo(0 ,0);
      > window.resizeTo (screen.availWi dth, screen.availHei ght);
      > </script>
      >
      > Hope that helps,
      > -JG
      >
      >[/color]


      Comment

      • Juan Gabriel Del Cid

        #4
        Re: Maximize ASP.Net Web Form

        > window.open('pa ge.aspx', 'channelmode = yes'....) or fullscreen=yes

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

        -JG


        Comment

        • Alvin Bruney

          #5
          Re: Maximize ASP.Net Web Form

          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.

          --


          -----------
          Got TidBits?
          Get it here: www.networkip.net/tidbits
          "Juan Gabriel Del Cid" <jdelcid@atrevi do.nospam.net> wrote in message
          news:#F5VCpDnDH A.744@tk2msftng p13.phx.gbl...[color=blue][color=green]
          > > window.open('pa ge.aspx', 'channelmode = yes'....) or fullscreen=yes[/color]
          >
          > This opens up *another* window... it doens't change the size or position[/color]
          of[color=blue]
          > the *current* window.
          >
          > -JG
          >
          >[/color]


          Comment

          Working...