472,985 Members | 2,568 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Closing Web Application Window

Hi,

I'm currently creating a web application in C#. I looking to close the
window when a certain procedure is run (i.e. close Internet Explorer
that the webpage is in). I'm having difficulty finding the code to do
this. Any help would be appreciated.

Thanks

Simon

Feb 8 '06 #1
7 6096
You will have to use a client technology (javascript) to close the browser
window.

<script language="javascript">

window.close();

</script>

--

Derek Davis
dd******@gmail.com

"accyboy1981" <ac*********@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Hi,

I'm currently creating a web application in C#. I looking to close the
window when a certain procedure is run (i.e. close Internet Explorer
that the webpage is in). I'm having difficulty finding the code to do
this. Any help would be appreciated.

Thanks

Simon

Feb 8 '06 #2
You need to provide some more details.

are you wanting to close a popup window or the main window that your
app is being run in? have you looked at javascript and the associated
asp.net functions that are available to add javascript to the header of
each request? this might give you what you need. without more info its
hard to help.

Feb 8 '06 #3
You need to provide some more details.

are you wanting to close a popup window or the main window that your
app is being run in? have you looked at javascript and the associated
asp.net functions that are available to add javascript to the header of
each request? this might give you what you need. without more info its
hard to help.

Feb 8 '06 #4
You need to provide some more details.

are you wanting to close a popup window or the main window that your
app is being run in? have you looked at javascript and the associated
asp.net functions that are available to add javascript to the header of
each request? this might give you what you need. without more info its
hard to help.

Feb 8 '06 #5
Are you talking about closing the window from client side script or
server side?

Feb 8 '06 #6
You need to provide some more details.

are you wanting to close a popup window or the main window that your
app is being run in? have you looked at javascript and the associated
asp.net functions that are available to add javascript to the header of
each request? this might give you what you need. without more info its
hard to help.

Feb 8 '06 #7
Hi,

Basically what the webpage does is display a table with the data
populated from a database. The user can change the values of the data.
To do this they click on the data that they want to change. This in
turn opens a new window which contain a form. Here the user changes the
data and clicks the update button. Once this button is pressed the
database is updated and the window is closed and the original windows
that contains the data is refreshed with the new data that has been
entered. Currently when the update button is pressed it updates the
database but does not close the window or refreshes the other page.
Hope this info help.

Thanks in advance

Simon

Feb 9 '06 #8

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

Similar topics

10
by: Tom Szabo | last post by:
Is there an event when that triggers when the window is closing.... I am talking about when the user clicks on the cross on the right top corner of the window!!!
4
by: Max Dupenois | last post by:
I've seen numerous articles with similair (similar sp?) titles to this in my search.. unfortunately none of them seem to contain what i want, (or if they do i need someone to point out my stupidity...
5
by: Ron L | last post by:
I have an MDI application with a number of child windows. In each child window I am catching the Closing event and having the child window decide if it should set cancel to true. The intent here...
2
by: Ron L | last post by:
I have an MDI application which opens a number of child windows, each of which could have data in a state that needs to be saved. Each child window catches its Closing event and cancels it if the...
1
by: Chris Bruce | last post by:
In my application I need a way to distiguish between the following events: 1. When a user closes an MDI child window. 2. When the user closes the MDI parent window which subsequently closes the...
6
by: Gary Miller | last post by:
Does anyone know how to detect a modeless form on closing by the form that invoked the modeless form? form.Show();
1
by: Chirag Malvi | last post by:
hello all, I am developing the web application using ASP.net and VS.2003 IDE. here is the situation which i want to implement. 1) User is browsing some webform. I want to trap this event....
2
by: chris in grimsby | last post by:
MDIChild Window Closing event not raised when MDI Parent is in a class library! Intructions to recreate problem: 1. Create a ClassLibrary project 2. Add an MDIParent form and a form that will...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
11
by: Simon van Beek | last post by:
Dear reader, By opening an application I get always the main Access window with the closing cross in the above right corner. Is there a possibility to make this closing cross invisible? ...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.