Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 9th, 2009, 09:14 AM
Authorized User
Join Date: May 2007
Location: Hyderabad, Andhra Pradesh, India.
Posts: 95
Thanks: 5
Thanked 0 Times in 0 Posts
Question 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 = Convert.ToInt16(Session["UserID"]);
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#


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Session tracking with google popup blocker dshamim Classic ASP Professional 0 December 20th, 2006 09:48 AM
ClientScript. : window.open -> Popup Blocker Issue AbrarNazeer ASP.NET 2.0 Professional 3 September 20th, 2006 09:59 AM
JavaScript : window.open -> Popup Blocker Issue AbrarNazeer Pro JSP 0 September 2nd, 2006 05:49 AM
PopUp blocker In C# VB.net nashnash ASP.NET 1.0 and 1.1 Professional 1 September 29th, 2004 03:53 AM
popup blinking alert in task bar when completed sirsyme Javascript 6 August 25th, 2003 01:24 AM

All times are GMT -4. The time now is 04:11 AM.

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