Page 1 of 1

How is avoid pop-ups blocker in Page?

Posted: Sat Mar 15, 2008 2:47 am
by MARIMUTHU K
Hi Stimul Team,

Thanks for ur solution replay. Keep it up :kiss:

Now, We did render report and open separate page (ReportViewer use page) in Wep page using Javascritp openWindow().
But occur some pop-ups blocker.
How is avoid it? or other way of open New window in ReportViewer.

We are using open New window

private void OpenWindow(string scriptName, string url, string windowName, string windowFeature)
{
ClientScriptManager cs = Page.ClientScript;
StringBuilder strScript = new StringBuilder();
strScript.Append("");
strScript.Append("javascript:openWindow('" + url + "','" + windowName + "','" + windowFeature + "')");
strScript.Append("");

cs.RegisterClientScriptBlock(typeof(string), scriptName, strScript.ToString());
}

and use JavaScript



function openWindow(strUrl,windowName,size)
{
window.open(strUrl,windowName,size);
}




Please kindly provide solution in avoid pop-ups blocker.



Thanks in Advance,

How is avoid pop-ups blocker in Page?

Posted: Tue Mar 18, 2008 5:03 pm
by Edward
The best known and the simplest method to prevent blocking of the pop up window is to add an URL of your page to the list of exceptions of the pop up blocker engine.

But there are a couple of other ideas, how to try to achieve the result you were writing about:

http://www.dotnet247.com/247reference/m ... 89989.aspx

http://forums.asp.net/t/982118.aspx

Thank you.

How is avoid pop-ups blocker in Page?

Posted: Mon Mar 24, 2008 6:57 am
by MARIMUTHU K
Thanks for Urgent Help.


How is avoid pop-ups blocker in Page?

Posted: Tue Mar 25, 2008 8:39 am
by Edward
Let us know if any help is required.

Thank you.