Groups | Blog | Home
all groups > asp.net building controls > march 2006 >

asp.net building controls : window not closing



gurvar
3/29/2006 3:09:02 PM
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.
MS
3/30/2006 12:00:00 AM
would you give the lines of code that u are adding to close the wirndow,....

[quoted text, click to view]

gurvar
3/30/2006 11:48:02 AM
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


[quoted text, click to view]
AddThis Social Bookmark Button