Solved

click asp button to close window

Posted on 2004-03-25
5
635 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
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adding Datediff to staistics page 2 62
classic asp checkbox uncheck and check 2 69
ASP CDO - Limiting Connections 3 59
Html Table looping 4 25
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

860 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