I'm trying to close and application using C# and ASP.NET. I've tried system.windows.forms.application.exit() but it just refreshes the screen. I tried Environment.Exit(0) but that just ended the application and returned an error in the browser. Please help anyway you can!! Thanks!
Blaine Tuisee
0
Newbie Poster
Recommended Answers
Jump to PostHi,
Try this code tha use JavaScript.
<html> <head> <title>Test</title> </head> <body> <form> <input type="button" onclick="self.close();" value="Close" /> </form> </body> </html>
Regards,
Camilo
Jump to PostWhat are you trying to do? It sounds like you want to clear the session variables? The application will reinitialize itself after you call close if the client requests any more data.
Jump to PostWhat do you need exactly?
Jump to PostWhat do you need exactly?
This thread is a year old, we've been had :(
All 14 Replies
camilojvarona
0
Junior Poster in Training
Blaine Tuisee
0
Newbie Poster
sknake
1,622
Senior Poster
Featured Poster
Ramy Mahrous
401
Postaholic
Featured Poster
sknake
1,622
Senior Poster
Featured Poster
Blaine Tuisee
0
Newbie Poster
Blaine Tuisee
0
Newbie Poster
Ramy Mahrous
401
Postaholic
Featured Poster
kvprajapati
1,826
Posting Genius
Team Colleague
Blaine Tuisee
0
Newbie Poster
sknake
1,622
Senior Poster
Featured Poster
RogR
0
Newbie Poster
kvprajapati
1,826
Posting Genius
Team Colleague
RogR
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.