p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 2.0 Professional (http://p2p.wrox.com/forumdisplay.php?f=215)
-   -   Alert for popup blocker in C# (http://p2p.wrox.com/showthread.php?t=73837)

abhishekkashyap27 April 9th, 2009 09:14 AM

Alert for popup blocker in C#
Hi All, i have a very specific problem. I am opening a new window while clicking on print button. I want to give alert - "Please turn off the popup blocker' whenever the popup is blocked. How can i do this in c#. My application is a web application and i have developed it using c#.

code -


protectedvoid btnPrint_Click(object sender, EventArgs e)
Empno =
ScriptManager.RegisterStartupScript(this, GetType(), "open", "popupWin=window.open('LT_Application_New_Claim_Print.aspx?Mode=" + "PRINT" + "&Empno=" + Empno + "&Balance=" + txtBalance.Text + "&AdvanceClaimed=" + txtAdvPaid.Text + "&ApplnNo=" + hdnApplnNo.Value + "&PageType=" + hdnPageType.Value + "&Location=" + Session["LocCode"].ToString() + "&AppnType=" + hdnAppnType.Value+ "','LTA', 'height=400, width=980,scrollbars=yes, resizable=yes');", true);

How can i throw alert through c#


All times are GMT -4. The time now is 01:55 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.