473,508 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

close window in server code?

I have a sub-window. When I click 'OK' I want to:
post back to to my server code, persist some data and close the sub-window.

I don't know how to close the subwindow in server code.

Marcel
Nov 18 '05 #1
3 1786
reply back with simple HTML
<html>
<body>
window.close();
</body>
</html>
If this is a window that was opened by window.open then it will be closed
without prompt.

George.

"Marcel Balcarek" <ma*************@REM-OVEMEtoxicall.com> wrote in message
news:Of**************@TK2MSFTNGP12.phx.gbl...
I have a sub-window. When I click 'OK' I want to:
post back to to my server code, persist some data and close the sub-window.
I don't know how to close the subwindow in server code.

Marcel

Nov 18 '05 #2
Thanks George,

But how do I send this code from the server using code behind?
Do I use the response object? a Write method?
I am unclear about how this code is to replace the normally generated client
HTML.

Marcel
"George Ter-Saakov" <no****@hotmail.com> wrote in message
news:uM**************@TK2MSFTNGP12.phx.gbl...
reply back with simple HTML
<html>
<body>
window.close();
</body>
</html>
If this is a window that was opened by window.open then it will be closed
without prompt.

George.

"Marcel Balcarek" <ma*************@REM-OVEMEtoxicall.com> wrote in message
news:Of**************@TK2MSFTNGP12.phx.gbl...
I have a sub-window. When I click 'OK' I want to:
post back to to my server code, persist some data and close the

sub-window.

I don't know how to close the subwindow in server code.

Marcel


Nov 18 '05 #3
Not sure that i understood your problem.
How do you output any HTML to the browser.
Exactly the same way you can output that particular HTML.

Use Response.Write or just put that HTML code into aspx file.

George.
"Marcel Balcarek" <ma*************@REM-OVEMEtoxicall.com> wrote in message
news:O5*************@TK2MSFTNGP10.phx.gbl...
Thanks George,

But how do I send this code from the server using code behind?
Do I use the response object? a Write method?
I am unclear about how this code is to replace the normally generated client HTML.

Marcel
"George Ter-Saakov" <no****@hotmail.com> wrote in message
news:uM**************@TK2MSFTNGP12.phx.gbl...
reply back with simple HTML
<html>
<body>
window.close();
</body>
</html>
If this is a window that was opened by window.open then it will be closed without prompt.

George.

"Marcel Balcarek" <ma*************@REM-OVEMEtoxicall.com> wrote in message news:Of**************@TK2MSFTNGP12.phx.gbl...
I have a sub-window. When I click 'OK' I want to:
post back to to my server code, persist some data and close the

sub-window.

I don't know how to close the subwindow in server code.

Marcel



Nov 18 '05 #4

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

Similar topics

1
6936
by: dibyendu_k | last post by:
Hi, There is a problem i cant solve regarding Internet Explorer 5.5. It is regarding the Print Dialog Box. From a webpage if I open a popup window (window.open()) containing buttons Print and...
4
34831
by: GrantS | last post by:
I am having a problem closing a popup window opened modally. When I try to close the window (when the user hits save button and the data has been processed), the Popup window opens as a full screen...
7
2584
by: Drew Berkemeyer | last post by:
Hello, We have an application that we have written using ASP.NET. On one of our pages we open a popup window using javascript. The popup window has a save and a cancel button. Both of them are...
14
2756
by: Paul | last post by:
Hi I have 2 functions in java script, one opens a second window-this works, the other is supposed to close this second window, does not seem to be working. Just wondering if anyone had any ideas....
4
1907
by: louise raisbeck | last post by:
I have this scenario (simplified) function addnewdata () { check for partial match already in db for information entered by user if (partialmatch succeeds) { open new window aspx page (using...
5
3069
by: lindanr | last post by:
In ASP.NET 2005 I have an onblur="window.close()" javascript event in the <body> tag. When I click on the window's scrollbar, the window closes. The same code works fine in ASP.NET 2003. Any...
11
4912
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...
9
4646
by: Stan B | last post by:
I create a popup window by calling window.showModalDialog Popup window has Ok button with this code attached: === string Script = "<script language=JavaScript>" + "{" + "window.close();" +...
2
6740
by: kurt sune | last post by:
Hello, I have a weird problem, I hope someone can explain this for me. I have a webpage using masterpage. In it I create a popup window using this code: Dim js As String = "<script...
0
7114
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
7321
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
7377
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...
1
7034
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5045
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1544
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.