Solved

click asp button to close window

Posted on 2004-03-25
5
639 Views
Last Modified: 2012-06-21
Hi there, I've got a asp page that automatically runs a asp script and then show a button thats says "process is complete", and when people click that button it is suppose to close the window.

How can I do that??

<input type="button" value="process is complete" name="B1"  id="click" onclick= .....></td>

thanks
0
Comment
Question by:weetniks
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 33

Accepted Solution

by:
sajuks earned 40 total points
ID: 10675669
In the opening page:

<script>
window.open("win_op.html");
</script>

in the win_op.html (whatever you choose to name the page):
<input type="button" value="process is complete" name="B1"  id="click" onclick= "self.close()">

0
 
LVL 1

Expert Comment

by:Brandwood
ID: 10675726
<input type="button" value="process is complete" name="B1"  id="click" onclick='javascript:window.close()'></td>
0
 

Expert Comment

by:steven10
ID: 11644108
You embed the asp button within html code as follow:

<a href="#" onClick="javascript:window.close();"><asp:Button id="btnCancel" runat="server" Visible=true CssClass="button1"></asp:Button></a>

this work great in case of closing window
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question