Close window by itself
-
I simply want to process sql statement from the background by opening a popup window. After the process I want to close the window by itself w/o any interaction from the user. I added this code in the code behind but it ask for questions "Do you want to close the window?" I don't want confirmation.
Response.Write("<script language='javascript'> { self.close() }</script>");
Thanks
Dabsukol
-
I simply want to process sql statement from the background by opening a popup window. After the process I want to close the window by itself w/o any interaction from the user. I added this code in the code behind but it ask for questions "Do you want to close the window?" I don't want confirmation.
Response.Write("<script language='javascript'> { self.close() }</script>");
Thanks
Dabsukol
A quick Google search[^] gave me a few ideas. I didn't try it but maybe this[^] should do the trick.
Luis Alonso Ramos Intelectix Chihuahua, Mexico My Blog!
-
I simply want to process sql statement from the background by opening a popup window. After the process I want to close the window by itself w/o any interaction from the user. I added this code in the code behind but it ask for questions "Do you want to close the window?" I don't want confirmation.
Response.Write("<script language='javascript'> { self.close() }</script>");
Thanks
Dabsukol
this.Close();
Usually works for me, at least this is the command I always put in the close buttons. Also,
self
is VB iirc, not C#. In C# you need to usethis
.