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

how close window after redirect

Help novice

I open new window using window.open(), then user click button in this window
and i create file and return it user using Response.Redirect(fileName). How
i can close the window after that?

Nov 19 '05 #1
3 4077
When you spawned the WIndow.Open, you should have given the child window a
name. From JavaScript (write out to the client on the page you redirect them
to), you can close a child window by name. I do not have a code sample, but a
google search on "Window.Close()" or "close child window" and "JavaScript"
should yield some tasty pages.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Volodymyr Lozovoy" wrote:
Help novice

I open new window using window.open(), then user click button in this window
and i create file and return it user using Response.Redirect(fileName). How
i can close the window after that?

Nov 19 '05 #2
self.close() or window.close()

--
-Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com

"Volodymyr Lozovoy" <vl******@mail.ru> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Help novice

I open new window using window.open(), then user click button in this window and i create file and return it user using Response.Redirect(fileName). How i can close the window after that?

Nov 19 '05 #3
I redirect to binary file (Excel file) not page.
I have the child page for download file. On click button Save i create file
and return it user, and after that i want close the child window.
Unfortunately i naven't found solution for this case yet.

"Cowboy (Gregory A. Beamer) - MVP" <No************@comcast.netNoSpamM>
сообщил/сообщила в новостях следующее:
news:BF**********************************@microsof t.com...
When you spawned the WIndow.Open, you should have given the child window a
name. From JavaScript (write out to the client on the page you redirect
them
to), you can close a child window by name. I do not have a code sample,
but a
google search on "Window.Close()" or "close child window" and "JavaScript"
should yield some tasty pages.


Nov 19 '05 #4

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

Similar topics

10
by: RonS | last post by:
Is there a way to close the present (active) window using PHP code?
1
by: Xing Rong | last post by:
I have an asp page to authenticate users by checking their uid and password: --------------------------------------- If (request("UID") = "user" and request("Password") = "pwd") then...
4
by: -DRB- | last post by:
Hi, I'm probably going to get harassed just for mentioning the unmentionable, but since I have if anyone could answer this question that would be much appreciated. As per the rather long...
5
by: GEL | last post by:
Hi, I want to open a new browser window, let the user use that window for several minutes, and when they close, I'd like to change the page displayed in the original window. According to...
2
by: RJN | last post by:
Hi I have a datagrid which has linkbutton as a template column. The Linkbutton is used to open new windows. I can open multiple windows at a time. On close of any of the child windows,(i.e, on...
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....
5
by: Saulot | last post by:
Hi, Facing a big problem. In my Default.aspx page, I open a connection with ma Sql Server DataBase through my objects framework (A "SetDefaultConnectionString" property which open my...
2
by: anil kumar via .NET 247 | last post by:
(Type your message here) hi, i am using save & cancel webform button my webpage to with somevalidations , when i am trying to save my content it is savedthat time i need a popup msg like ur 'data...
3
by: Todd Jaspers | last post by:
Hey guys, I've developed a C# Web Form using Visual Studio 2005. I can't quite figure out how to exit the form though??? On my form, I have a button which says "CLOSE". I'd like for someone to...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.