Some simple Javascript will take care of that for you.
 
<script language="Javascript">
 
function closeWin()
{
    window.close();
}
 
</script>
 
...
 
<input type="button" onClick="closeWin();">
 
Thank you,
Ryan Olshan
     Website - http://www.StrongTypes.com <http://www.strongtypes.com/> 
     <Rolog> - http://blogs.dirteam.com/blogs/ryan/
 

  _____  

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Asheesh S
Parihar
Sent: Friday, December 02, 2005 1:26 AM
To: 'AspNetAnyQuestionIsOk'; 'C_Sharp_World'; 'csharp'; 'CSharpNET';
'c-sharp-programming'; 'dotnetsig'; 'Microsofts_C_Sharp';
'visual_studio_dotnet'
Subject: [AspNetAnyQuestionIsOk] Unable to Close Popup window using ASP.Net


I am having problem to Close popup window in ASP.Net (code behind is C#). I
have an aspx page (say page A), through this page I open an aspx popup page
(page B). A button is available on Page B, when I click on button then it
downloads Page A data (after performing some operations on page B) in to
Excel/ Doc file. Then 'File Download' window comes with three option Open/
Save/Cancel Excel/ Doc file. Here I can choose any options out of these
three. After choose any option I want to close page B. Please let me know
how I can close the page B.



Regards,

Asheesh



[Non-text portions of this message have been removed]




SPONSORED LINKS 
Basic
<http://groups.yahoo.com/gads?t=ms&k=Basic+programming+language&w1=Basic+pro
gramming+language&w2=Computer+programming+languages&w3=Programming+languages
&w4=Java+programming+language&c=4&s=126&.sig=bnac3LCZpttb3c9FvbVU-A>
programming language    Computer
<http://groups.yahoo.com/gads?t=ms&k=Computer+programming+languages&w1=Basic
+programming+language&w2=Computer+programming+languages&w3=Programming+langu
ages&w4=Java+programming+language&c=4&s=126&.sig=1Czd2hKCO9_u4KVZQperFQ>
programming languages   Programming
<http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Basic+programm
ing+language&w2=Computer+programming+languages&w3=Programming+languages&w4=J
ava+programming+language&c=4&s=126&.sig=TyHGCjod4YOKITrSq1xccQ> languages

Java
<http://groups.yahoo.com/gads?t=ms&k=Java+programming+language&w1=Basic+prog
ramming+language&w2=Computer+programming+languages&w3=Programming+languages&
w4=Java+programming+language&c=4&s=126&.sig=PZAexF9LyXpKb3HDJSlB1g>
programming language    

  _____  

YAHOO! GROUPS LINKS 


        
*        Visit your group "AspNetAnyQuestionIsOk
<http://groups.yahoo.com/group/AspNetAnyQuestionIsOk> " on the web.
  

*        To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
e> 
  

*        Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> . 


  _____  




[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to