Closing Web Application Window

  • Thread starter Thread starter accyboy1981
  • Start date Start date
A

accyboy1981

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
 
You will have to use a client technology (javascript) to close the browser
window.

<script language="javascript">

window.close();

</script>
 
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.
 
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.
 
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.
 
Are you talking about closing the window from client side script or
server side?
 
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.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top