ASP.NET Popup Windows

Discussion in 'ASP .Net Security' started by Mario, Oct 17, 2005.

  1. Mario

    Mario Guest

    Need help with creating a popup windwo in ASP.NET when I load a page?

    This is what I have so far

    <SCRIPT language="javascript">
    function OpenWindow()
    {
    var x =
    window.open('MRFilingStatus.aspx','FS','width=425,height=200,resizeable=yes,menubar=0,toolbar=0')
    x.focus
    }
    </SCRIPT>

    Then in my body tag I have "onload=OpenWindow"
    <body MS_POSITIONING="GridLayout" onload="OpenWindw" leftmargin="0"
    topmargin="0">
    Mario, Oct 17, 2005
    #1
    1. Advertising

  2. First, please avoid posting the same question in different places. You'll
    get the same answer from different people, and often they'll end up
    conflicting, or they'll confuse you. In some cases they might even open up
    a wormhole in the time space continuum which might collapse upon itself.
    :-(

    <SCRIPT language="javascript">
    function OpenWindow()
    {
    var x =
    window.open('MRFilingStatus.aspx','FS','width=425,height=200,resizeable=yes,menubar=0,toolbar=0');
    }
    </SCRIPT>

    <body MS_POSITIONING="GridLayout" onload="OpenWindow();" leftmargin="0"
    topmargin="0">


    That should work.

    S.M. Altaf
    [MVP - VB]

    --------------------------------------------------------------------------------
    All that glitters has a high refractive index.
    www.mendhak.com


    "Mario" <> wrote in message
    news:n7_4f.13237$...
    > Need help with creating a popup windwo in ASP.NET when I load a page?
    >
    > This is what I have so far
    >
    > <SCRIPT language="javascript">
    > function OpenWindow()
    > {
    > var x =
    > window.open('MRFilingStatus.aspx','FS','width=425,height=200,resizeable=yes,menubar=0,toolbar=0')
    > x.focus
    > }
    > </SCRIPT>
    >
    > Then in my body tag I have "onload=OpenWindow"
    > <body MS_POSITIONING="GridLayout" onload="OpenWindw" leftmargin="0"
    > topmargin="0">
    >
    >
    >
    S.M. Altaf [MVP], Oct 19, 2005
    #2
    1. Advertising

  3. Mario

    Scott M. Guest

    You must include the parenthesis in the function call as they are part of
    the function's name.


    "Mario" <> wrote in message
    news:n7_4f.13237$...
    > Need help with creating a popup windwo in ASP.NET when I load a page?
    >
    > This is what I have so far
    >
    > <SCRIPT language="javascript">
    > function OpenWindow()
    > {
    > var x =
    > window.open('MRFilingStatus.aspx','FS','width=425,height=200,resizeable=yes,menubar=0,toolbar=0')
    > x.focus
    > }
    > </SCRIPT>
    >
    > Then in my body tag I have "onload=OpenWindow"
    > <body MS_POSITIONING="GridLayout" onload="OpenWindw" leftmargin="0"
    > topmargin="0">
    >
    >
    >
    Scott M., Oct 20, 2005
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Sm9obiBXYWxrZXI=?=

    Popup Window Popup Timing

    =?Utf-8?B?Sm9obiBXYWxrZXI=?=, Nov 4, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    830
    =?Utf-8?B?Sm9obiBXYWxrZXI=?=
    Nov 4, 2005
  2. dapkniht
    Replies:
    1
    Views:
    1,319
    Eliyahu Goldin
    Mar 8, 2006
  3. Rajesh
    Replies:
    0
    Views:
    517
    Rajesh
    Jul 31, 2007
  4. Urs Gubler
    Replies:
    0
    Views:
    141
    Urs Gubler
    Jul 2, 2003
  5. Jens Peter Hansen
    Replies:
    7
    Views:
    499
    Randy Webb
    Jun 19, 2004
Loading...

Share This Page