471,325 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 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 6024
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Ron L | last post: by
1 post views Thread by Chris Bruce | last post: by
6 posts views Thread by Gary Miller | last post: by
1 post views Thread by Chirag Malvi | last post: by
2 posts views Thread by chris in grimsby | last post: by

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.