Open popup aspx page

  • Thread starter Alessandro Rossi
  • Start date
A

Alessandro Rossi

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
 
M

Muckeypuck

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 said:
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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,082
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top