Solved

click asp button to close window

Posted on 2004-03-25
5
632 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
Comment Utility
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
Comment Utility
<input type="button" value="process is complete" name="B1"  id="click" onclick='javascript:window.close()'></td>
0
 

Expert Comment

by:steven10
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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 information …
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now