473,494 Members | 2,266 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Ending an application

I am working on my first web app. What is the proper way to end the
application and close the aspx page?

Any help is greatly appreciated.
Nov 18 '05 #1
4 1854
Greg,

Web applications operate in a disconnected environment. Therefore, there
is no such thing as ending the application as there is when writing a
Windows application.

Jim Cheshire, MCSE, MCSD [MSFT]
Developer Support
ASP.NET
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
From: "Greg Smith" <gj*@umn.edu>
Subject: Ending an application
Date: Wed, 19 Nov 2003 07:19:21 -0600
Lines: 6
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <u$**************@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: pc110-115.ahc.umn.edu 160.94.110.115
Path: cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!cpmsftng xa06.phx.gbl!TK2MSFTNGP08.
phx.gbl!TK2MSFTNGP11.phx.gblXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:191213
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

I am working on my first web app. What is the proper way to end the
application and close the aspx page?

Any help is greatly appreciated.


Nov 18 '05 #2
Isn't there a way to close a page?

"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:TU**************@cpmsftngxa07.phx.gbl...
Greg,

Web applications operate in a disconnected environment. Therefore, there
is no such thing as ending the application as there is when writing a
Windows application.

Jim Cheshire, MCSE, MCSD [MSFT]
Developer Support
ASP.NET
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
From: "Greg Smith" <gj*@umn.edu>
Subject: Ending an application
Date: Wed, 19 Nov 2003 07:19:21 -0600
Lines: 6
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <u$**************@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: pc110-115.ahc.umn.edu 160.94.110.115
Path:

cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!cpmsftng xa06.phx.gbl!TK2MSFTNGP08. phx.gbl!TK2MSFTNGP11.phx.gbl
Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:191213X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

I am working on my first web app. What is the proper way to end the
application and close the aspx page?

Any help is greatly appreciated.

Nov 18 '05 #3
You could call HttpResponse.End but this will not close the browser window

From the MSDN page, End does the following...

Sends all currently buffered output to the client, stops execution of
the page,
and raises the Application_EndRequest event.

If you want to actually close the window and bail, you could try writing out
a javascript block to the browser that calls window.close() but even that
probably won't work the way you want. (Unless I misunderstand what you're
asking.)

--
----------------------------------------------------------------
Peter Provost
Weblog: http://www.peterprovost.org/
----------------------------------------------------------------

"Greg Smith" <gj*@umn.edu> wrote in message
news:u$****************@TK2MSFTNGP11.phx.gbl...
I am working on my first web app. What is the proper way to end the
application and close the aspx page?

Any help is greatly appreciated.

Nov 18 '05 #4
Greg,

You can close a page, but you'll need to do that in client script.

Jim Cheshire, MCSE, MCSD [MSFT]
Developer Support
ASP.NET
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
From: "Greg Smith" <gj*@umn.edu>
References: <u$**************@TK2MSFTNGP11.phx.gbl> <TU**************@cpmsftngxa07.phx.gbl>Subject: Re: Ending an application
Date: Wed, 19 Nov 2003 11:12:25 -0600
Lines: 47
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <ue**************@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: pc110-115.ahc.umn.edu 160.94.110.115
Path: cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08
phx.gbl!tk2msftngp13.phx.gblXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:191296
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Isn't there a way to close a page?

"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:TU**************@cpmsftngxa07.phx.gbl...
Greg,

Web applications operate in a disconnected environment. Therefore, there
is no such thing as ending the application as there is when writing a
Windows application.

Jim Cheshire, MCSE, MCSD [MSFT]
Developer Support
ASP.NET
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
>From: "Greg Smith" <gj*@umn.edu>
>Subject: Ending an application
>Date: Wed, 19 Nov 2003 07:19:21 -0600
>Lines: 6
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <u$**************@TK2MSFTNGP11.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet
>NNTP-Posting-Host: pc110-115.ahc.umn.edu 160.94.110.115
>Path:

cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!cpmsftn gxa06.phx.gbl!TK2MSFTNGP08

Nov 18 '05 #5

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

Similar topics

1
1478
by: Travis | last post by:
I have encountered a problem with ending any program I build with VB.net and was hopeing someone might have an answer. This is a simple example of the code that will cause an error: In a...
22
2267
by: Jim Hubbard | last post by:
I am reposting a portion of a thread that I am involved in under a new topic because it seems that there are still people that believe the whole "DLL Hell" myth. I hope I can shed some light on...
7
1259
by: Shanli RICHEZ | last post by:
I'm using ASP.NET and quite a lot of object in memory instead of a database. The question is that I tried to save the data, serialize them in a XML file to save them when the application is...
1
3934
by: Ricky | last post by:
I'm trying to run a program directly from the web. It's working perfectly, but a simple "End" statement or "Application.Exit" do not work for me and I get permission errors. How can I end a...
27
2045
by: cj | last post by:
I run this program and to exit click the X in the upper right corner. But apparently it isn't really ending the program. If I return to VB and make changes then try to rebuild the app it says the...
10
10015
by: morangolds | last post by:
Hi, I've been having a problem with C++ Windows Forms apps not "ending" when you close the form window. I've searched about this problem all over the place and most searches have lead me to...
2
1397
by: barry.edmund.wright | last post by:
Hi All, I want to build a Find Statement on the fly. The code below starting with 'This Code Works! is fine but as I said I want to build the Me!cboSelect1 & "=" & rs(Me!cboSelect1) portion of...
34
2693
by: Umesh | last post by:
I want to extract a string abc*xyz from a text file. * indicates arbitrary no. of characters. I'm only able to do it when the string has definite no. of characters or the string length is...
4
5463
by: Geethu03 | last post by:
Hi I have a Tomcat 5.5 version and Run many applications using this. One of My Application is upload a file to mysql database, its works fine. My new application is update a file with some...
0
7119
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
6873
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
7367
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4889
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
4579
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
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
644
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
285
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.