473,326 Members | 2,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Open popup aspx page

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
Nov 18 '05 #1
2 2131
Pass parameters to page by QueryString collection like:
window.open("MyPage.aspx?param1=value1&param2=valu e2...)

in this page you can access this params by:

string param1 = Request.QueryString["param1"];
....
HTH
"Alessandro Rossi" <an*******@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
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

Nov 18 '05 #2
I wouldn't pass parameters in a quesrystring because I've long parameters, and so, I was asking if there is a way to create an instance of an aspx page, and open via javascript this instance with public variables valued..

Thank yo
Alessandro Ross

----- Anatoly wrote: ----

Pass parameters to page by QueryString collection like
window.open("MyPage.aspx?param1=value1&param2=valu e2...

in this page you can access this params by

string param1 = Request.QueryString["param1"]
...
HT
"Alessandro Rossi" <an*******@discussions.microsoft.com> wrote in messag
news:49**********************************@microsof t.com..
Hi
I have a usercontrol with a button. In the button's click event I have t open an instance of an aspx page, passing some values to some publi
variables of the page How can I call the instance of the right page
The code is the follow
//this is the webpag

LookUpWebForm LUWF = new LookUpWebFor
//these are the variables value

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 yo

Alessandro Ross


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: ldan | last post by:
Hi everybody, I would not consider myself an expert in javascript - but so far whatever I know, helped me reaching my goals. Recently I started to experience a lot of javascript errors related...
2
by: yatharth | last post by:
I am facing a problem ,the situation is like this. I have a home page named "Index.html" ,on which there is login link,when i click on the login link the login popup opens and user enter the...
7
by: theyas | last post by:
How can I get my code to NOT display two "Open/Save/Cancel/More Info" dialog boxes when using the "Response.WriteFile" method to download a file to IE I've asked about this before and didn't get a...
2
by: moondaddy | last post by:
I want to open a popup from a hyperlink on an aspx page and show it just as a small information window with a message in it. I don't want any toolbars, or favorites window (if the user had their...
1
by: Jorge Ponte | last post by:
hi I have a Web User Control (ascx) - lets call it "My_WUC" - in a Web form. In that WUC I want have a textbox and a button. I want to click on the button and open a popup (I use javascript for...
3
by: Aaron | last post by:
I am having a little difficulty with a relatively simple task. I have a parent webform. I have a javascript attribute added to a button to open a new window when clicked. The user fills in a...
7
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
11
by: Dave | last post by:
For some reason, the below lines only work on select machines. All machines are running IE6. IE SP's and OS's vary. When it doesn't work, default.aspx (the page that this code is in) opens and...
2
by: Valli | last post by:
Hi, I have an htm page which transfers to another aspx page(Default.aspx). I need to open the aspx page in another window(just as popup). How can I set target property here? Can anyone help...
16
by: CreativeMind | last post by:
hi, i have a page calendar.aspx which returns selected date i.e window.returnValue=selectedDate; window.close(); it works fine with IE but not for Firefox. i tried...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.