User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 403,519 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,814 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser: Programming Forums
Views: 685 | Replies: 1
Reply
Join Date: Jun 2008
Posts: 5
Reputation: Blaine Tuisee is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Blaine Tuisee's Avatar
Blaine Tuisee Blaine Tuisee is offline Offline
Newbie Poster

Close application Using C# and ASP.NET

  #1  
Jul 16th, 2008
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!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2008
Posts: 89
Reputation: camilojvarona is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 9
camilojvarona camilojvarona is offline Offline
Junior Poster in Training

Re: Close application Using C# and ASP.NET

  #2  
Jul 16th, 2008
Hi,

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
Last edited by Tekmaven : Jul 17th, 2008 at 4:23 am. Reason: Code tags
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C# Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C# Forum

All times are GMT -4. The time now is 1:08 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC