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

closing my own aspx page

I have a page named PickWindow.aspx that was instantiated from another aspx
page but by a javascript function Window.open that opened it as a popup
window. Once a button is hit in PickWindow I want to make it go away (just
as if the user closed the window). How can I kill my own aspx page?

it would be something like me.close or page.close but, of course, that does
not work.

thanks,
T
Mar 10 '06 #1
2 1341
Tina when you say a button is hit in PickWindow what do you mean?
Do you mean any button or a button which means to close the window?
Javascript window.close() method would do that
patrick

"Tina" <ti**********@nospammeexcite.com> wrote in message
news:uf****************@TK2MSFTNGP14.phx.gbl...
I have a page named PickWindow.aspx that was instantiated from another aspx
page but by a javascript function Window.open that opened it as a popup
window. Once a button is hit in PickWindow I want to make it go away (just
as if the user closed the window). How can I kill my own aspx page?

it would be something like me.close or page.close but, of course, that
does not work.

thanks,
T

Mar 10 '06 #2
Yes the Javascript window.close works fine. I guess I was looking to do it
from the server code but this seems to do he trick.
thanks,
T
"Patrick.O.Ige" <na********@hotmail.com> wrote in message
news:Oy**************@TK2MSFTNGP09.phx.gbl...
Tina when you say a button is hit in PickWindow what do you mean?
Do you mean any button or a button which means to close the window?
Javascript window.close() method would do that
patrick

"Tina" <ti**********@nospammeexcite.com> wrote in message
news:uf****************@TK2MSFTNGP14.phx.gbl...
I have a page named PickWindow.aspx that was instantiated from another
aspx page but by a javascript function Window.open that opened it as a
popup window. Once a button is hit in PickWindow I want to make it go
away (just as if the user closed the window). How can I kill my own aspx
page?

it would be something like me.close or page.close but, of course, that
does not work.

thanks,
T


Mar 10 '06 #3

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

Similar topics

5
by: Russell | last post by:
Hi all, I have a web page(a) that has a link to another web page(b). Now, on the page load event of web page(b), I am doing the following: Response.redirect("./test.pdf") This pdf, if the...
5
by: WhiskyRomeo | last post by:
I am using the following code to open another .aspx page function viewCart() { window.open('ShoppingCart.aspx') } The above function is attacked to the onClick event of a button. However,...
2
by: BusyBoy | last post by:
Hi All I am using two aspx pages The first aspx page loads the second page in a popup window. The second aspx page has no html and I change its content type to download a particular file. ...
1
by: Garg | last post by:
Hi, I am facing a problem while trying to close a window that I've opened in a frame. I am using javascript to close my current popup window. I have written the following line of code on click...
4
by: jack | last post by:
I have created a form which generates an excel file from the dataset and is working fine. The only problem is after the excel is generated the blank page still exist on the screen. I tried a lot...
1
by: =?Utf-8?B?Q2hyaXNB?= | last post by:
Two questions: 1. I have several asp.net pages that initiate a file download, via Response.WriteFile(). This works fine, except that it leaves the original page up. These pages are generally...
2
by: ting ting | last post by:
I am using the ASP.net 2.0 and When I load a page, it will auto pop up the Reminder page by following showModalDialog Javascript. It worked fine for the first time, after I amended some data and...
3
by: Mike Hofer | last post by:
Okay, here's the situation: we want to be able to display ASPX pages in an UpdatePanel. The reasons for this are performance related. The site in development uses *lots* of modal popups from some...
3
by: svibuk | last post by:
i have page1.aspx with a grid and ADD button when i click ADD page2.aspx opens in a new window when new records an be added when i save the record it gets added to database as well as page2.aspx...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.