HighTechTalks DotNet Forums  

Open popup aspx page

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss Open popup aspx page in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Alessandro Rossi
 
Posts: n/a

Default Open popup aspx page - 03-01-2004 , 04:36 AM






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

Reply With Quote
  #2  
Old   
Muckeypuck
 
Posts: n/a

Default Re: Open popup aspx page - 03-03-2004 , 07:47 PM






Quote:
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" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
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.
Quote:
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');")
Quote:
but, in the LookUpWebForm's PageLoad event the variables are not setted.

Thank you
Alessandro Rossi



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.