U
usamaalam
Hello Everybody,
On the click of my server side button control, I am performing some server
side processing and then open a new browser window.
On the click of my server side button control, I am performing some server
side processing and then open a new browser window.
Code:
// Server Side Code, Database calls etc.
string js = "";
js += "<script>";
js += " window.open('" + url + "');";
js += " window.close();";
js += "</script>";
Page.RegisterStartupScript("",js);
The problem is the window is blocked by the Pop-up blocker. If I need not do
any server side processing, then I can use onClick event on a button to
directly open the window or use hyperlink, but in this case when I need to do
some processing and then open the window without letting the pop-up blocker
stop it.
Is there any way to do it?
Thanks.