[CLOSED] How to Allow Popups when i click Button in CodeBehind..

  1. #1

    [CLOSED] How to Allow Popups when i click Button in CodeBehind..

    hi all..

    Can any Body know how to Allow Popups when i click a button in code behind..

    Please Help me..

    Thanks In advance..
    Last edited by geoffrey.mcgill; Sep 21, 2010 at 3:47 PM. Reason: [CLOSED]
  2. #2
    Hello!

    Please clarify how exactly kind of popups do you need? What information should be there?
  3. #3
    Quote Originally Posted by Daniil View Post
    Hello!

    Please clarify how exactly kind of popups do you need? What information should be there?

    in one Screen i can place Print Button when i click print Button for Export(in PDF) Report it will ask for Popups Allowing.

    so what i want is when the page is Loading we can allow Popups automatically.

    So how it is Possible to Allow Popups using Code Behind..



    Thanks in Advance...
  4. #4
    Hello!

    Popup protection is a browser option.
    I'm not sure but it can be impossible to turn it off programmatically.

    I would suggest you to notice a user about this.

    It can look something like this.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.Net Example</title>
    </head>
    <body>
        <form runat="server">
        <ext:ResourceManager runat="server">
            <Listeners>
                <DocumentReady 
                    Handler="var w = window.open('','','height=100,width=100'); 
                            if (!w) { 
                                alert('Popups must be enabled');
                            }"/>    
            </Listeners>
        </ext:ResourceManager>
        </form>
    </body>
    </html>

Similar Threads

  1. [CLOSED] When button click, open the menu of button
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 22, 2012, 4:23 PM
  2. treepanel in CodeBehind on button click ?
    By caoit in forum 1.x Help
    Replies: 1
    Last Post: Apr 13, 2011, 1:03 PM
  3. Replies: 4
    Last Post: Nov 19, 2010, 1:39 PM
  4. Replies: 2
    Last Post: Oct 22, 2010, 11:04 AM
  5. Replies: 2
    Last Post: Feb 03, 2010, 10:18 AM

Posting Permissions