Open popup aspx page

Discussion in 'ASP .Net Building Controls' started by Alessandro Rossi, Mar 1, 2004.

  1. Hi,
    I have a usercontrol with a button. In the button's click event I have to open an instance of an aspx page, passing some values to some public variables of the page.
    How can I call the instance of the right page?

    The code is the follow:

    //this is the webpage
    LookUpWebForm LUWF = new LookUpWebForm

    //these are the variables valued
    LUWF.TabellaDB = m_DBTable;
    LUWF.IDLookUp = ID;
    LUWF.PageSize = PageSize;

    i need to open the LookUpWebForm's aspx file in this way: BtnLookUp.Attributes.Add("onclick", "window.open('AreaITControls/LookUpWebForm.aspx');")

    but, in the LookUpWebForm's PageLoad event the variables are not setted.

    Thank you
    Alessandro Rossi
     
    Alessandro Rossi, Mar 1, 2004
    #1
    1. Advertising

  2. Alessandro Rossi

    Muckeypuck Guest

    > i need to open the LookUpWebForm's aspx file in this way:
    BtnLookUp.Attributes.Add("onclick",
    "window.open('AreaITControls/LookUpWebForm.aspx?Var1=Blah&Var=blah2');")

    "Alessandro Rossi" <> wrote in message
    news:...
    > Hi,
    > I have a usercontrol with a button. In the button's click event I have to

    open an instance of an aspx page, passing some values to some public
    variables of the page.
    > How can I call the instance of the right page?
    >
    > The code is the follow:
    >
    > //this is the webpage
    > LookUpWebForm LUWF = new LookUpWebForm
    >
    > //these are the variables valued
    > LUWF.TabellaDB = m_DBTable;
    > LUWF.IDLookUp = ID;
    > LUWF.PageSize = PageSize;
    >
    > i need to open the LookUpWebForm's aspx file in this way:

    BtnLookUp.Attributes.Add("onclick",
    "window.open('AreaITControls/LookUpWebForm.aspx');")
    >
    > but, in the LookUpWebForm's PageLoad event the variables are not setted.
    >
    > Thank you
    > Alessandro Rossi
     
    Muckeypuck, Mar 4, 2004
    #2
    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. Marco Antonio Montalvo Durán
    Replies:
    2
    Views:
    4,205
    Matt Morris
    Jan 23, 2004
  2. =?Utf-8?B?QWxlc3NhbmRybyBSb3NzaQ==?=

    Open popup aspx page

    =?Utf-8?B?QWxlc3NhbmRybyBSb3NzaQ==?=, Mar 1, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    4,647
    =?Utf-8?B?QWxlc3NhbmRybyBSb3NzaQ==?=
    Mar 1, 2004
  3. Valli
    Replies:
    3
    Views:
    853
    Maximiliano
    Nov 2, 2007
  4. Jens Peter Hansen
    Replies:
    7
    Views:
    578
    Randy Webb
    Jun 19, 2004
  5. Replies:
    2
    Views:
    487
Loading...

Share This Page