Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / March 2006

Tip: Looking for answers? Try searching our database.

window not closing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gurvar - 30 Mar 2006 00:09 GMT
Hi,
I'm using window.close() command in a pop box (YesNo.aspx) embedded in a ASP
button clcik command.
Its a pop up confirmation for Yes or No. If either of them is clicked the
window seems to get enlarged instead of closing after it does its function.
How can I get to close the window when I click the buttons. I tried
selfclose, but doesn't work either.
Thanks in advance.
MS - 30 Mar 2006 09:08 GMT
would you give the lines of code that u are adding to close the wirndow,....

> Hi,
> I'm using window.close() command in a pop box (YesNo.aspx) embedded in a
[quoted text clipped - 6 lines]
> selfclose, but doesn't work either.
> Thanks in advance.
gurvar - 30 Mar 2006 20:48 GMT
I'm having a problem while closing cofirmation box
(Yes or No box).
when I choose either of them window.close seem to
be not executing, instead the page is getting fully
enlarged.Where am I going wrong?
   
Page_Load()
Button1.Attributes.Add("onclick", "window.returnValue
=document.getElementById('txtValue').value;window.close();")
Button2.Attributes.Add("onclick", "window.close();")
End Sub

> would you give the lines of code that u are adding to close the wirndow,....
>
[quoted text clipped - 8 lines]
> > selfclose, but doesn't work either.
> > Thanks in advance.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.