[CLOSED] Problem setting window icon

  1. #1

    [CLOSED] Problem setting window icon

    I'm trying to set a window's icon interactively, and I am not doing something correctly. Here is the code:

        protected void responseWindowOpen(string responseText,bool errorFlag)
        {
            lblResponse.Html = responseText;
            if (errorFlag)
            {
            }
            else
            {
            }
            if (errorFlag)
            {
                wndResponse.BodyStyle = "padding: 6px; background-color: #fff;color: #f22;";
                wndResponse.Icon = Coolite.Ext.Web.Icon.Error;
                wndResponse.Title = "ERROR ENCOUNTERED";
            }
            else
            {
                wndResponse.BodyStyle = "padding: 6px; background-color: #fff;";
                wndResponse.Icon = Coolite.Ext.Web.Icon.Accept;
                wndResponse.Title = "Message";
            }
            wndResponse.Show();
        }
    <ext:Window runat="server" ID="wndResponse" Modal="true" Center&#111;nload="true" Width="350" Height="150" Show&#111;nload="false" BodyStyle="padding: 6px; background-color: #fff;" Icon="Accept" >
        <Body>
            <ext:Label ID="lblResponse" runat="server" AutoHeight="true" AutoWidth="true" />
        </Body>
    </ext:Window>
    There is no program error thrown. The icon simply does not show.

    Thanks.
  2. #2

    RE: [CLOSED] Problem setting window icon

    Hi SFritsche,

    Your code appears correct. Can you make a full .aspx sample demonstrating how to reproduce the problem?


    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] Problem setting window icon

    Hi,

    If you call responseWindowOpen during AjaxEvent then you need to register icon during first Page_Load
    if(!Ext.IsAjaxRequest){ScriptManager1.RegisterIcon(Icon.Accept);}
  4. #4

    RE: [CLOSED] Problem setting window icon

    Vlad,

    Your suggestion solved the issue. The icons show up now on the window. Thanks.

    -Steve

Similar Threads

  1. [CLOSED] setting Ext.Net.Icon from config file in codebehind
    By ecko in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jan 18, 2012, 2:56 AM
  2. [CLOSED] Setting IconCls property of a SelectBox does not show icon
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 22, 2011, 11:47 PM
  3. [CLOSED] [1.0] setting famfamfam Icon from client side
    By webclouder in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 19, 2010, 11:03 AM
  4. [CLOSED] Error setting the combo icon
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 05, 2010, 4:12 PM
  5. [CLOSED] Setting window size to fit browsers "client area"
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 03, 2008, 9:59 AM

Posting Permissions