473,320 Members | 1,600 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,320 software developers and data experts.

How to open new window, postback, redirect

Hi,

I think I've figured out how to do what I need, but when learning new stuff,
there is always a nagging feeling that it is not the *right* way.

What I really want is to have a page with a link that pops-up a new window
(with javascript on the client side obviously), then postbacks to the server
to do some stuff, sets a few session variables, and then re-directs to a new
page that uses the session variables and populates the new window.

It appears from what I've tried and have been reading here and elsewhere
that it may not be directly possible to postback with a new window. It seems
that when you target a new window, the postback gets cancelled. I think this
alternative will work, but it seems kind of roundabout...

I can have the original page postback and do it's stuff, set the variables I
need and, upon return, I figure I could add javascript that runs after the
returning page loads to popup the new window and request my second page
(which reads the session variables and then does it's thing).

Is that the way to go about this or is there a much better way?

TIA,
Chuck
Nov 18 '05 #1
0 1574

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

Similar topics

6
by: lukeo | last post by:
I'm shelling out to an .asp (or htm) page from an application. I want to show this in a window without the address bar, etc... Is there a way I can redirect this page using javascript to a page...
4
by: margaret | last post by:
James suggested that I used window.open on the client side to open a new window. I created a test ASP app and can get it work fine. But now I'm trying to fix my real app, which is in ASP.NET. It...
3
by: eieed | last post by:
I have a web page that is designed to allow users to run crystal reports which are then exported into PDF formats. Currently, when the user clicks the "Submit" button there is some processing to...
2
by: KathyB | last post by:
Hi, In the pageload of my aspx file I have the following (in both not in postback and is postback)... btnList.Attributes.Add("onclick", "window.open('Scanned.aspx', 'Serial Numbers',...
3
by: ODB | last post by:
Okay what i need is to open af new browser windows with some link in, but i can't get the Response.Redirect to open af new window, and when i redirect to a new page in the same window and then hit...
0
by: Chuck Ritzke | last post by:
Hi, I think I've figured out how to do what I need, but when learning new stuff, there is always a nagging feeling that it is not the *right* way. What I really want is to have a page with a...
1
by: RJN | last post by:
Hi Sorry for posting again. I open a few pop-up windows from a main window. If session time out occurs in either the main window or the pop-up windows ,I redirect the user to login screen....
7
by: ACaunter | last post by:
Hi all, I'm having a little problem here.. my code is: Session("test") = Button46.Text Button46.Attributes.Add("Onclick", "opennewpage()") i have this code inside the button click, which means...
5
by: rockdale | last post by:
Hi, all: I have a linkbutton and I use javascript to open another webpage in a new window. I also want to set my session variable value when this linkbutton get clicked. These session variable...
3
by: Sean | last post by:
Basically how do I set "Target=_blank" on a url string and can it be used by any of the following Response.Redirect() Server.Transfer() PostBackURL on a link button. So far the ONLY way I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: 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: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.