Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
WeImageButton inside WARP with WebDialogWindow not working when page refreshed
posted

hello

I am using WebDialogWindow with update panel.if i refresh the page ,the WebImageButton inside the updatepanel is not working.what is the reason

  • 28407
    posted

    HI,

     I can't reproduce your issue.

     I created sample application wiith a UpdatePanel with a ImageButton and Label inside. I also dropped a WDW onto the form.  Upon Asycn Refresh caused by the ImageButton, the ImageButton kept functioning.

    Here is my code behind:

     using System;
    using System.Data;
    using System.Configuration;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;

    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void WebImageButton1_Click(object sender, Infragistics.WebUI.WebDataInput.ButtonEventArgs e)
        {
            Label1.Text = DateTime.Now.ToLongTimeString();
        }
    }

    Here is my Aspx page:

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

    <%@ Register Assembly="Infragistics2.WebUI.WebDataInput.v8.3, Version=8.3.20083.2039, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
        Namespace="Infragistics.WebUI.WebDataInput" TagPrefix="igtxt" %>
    <%@ Register Assembly="Infragistics2.Web.v8.3, Version=8.3.20083.2039, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
        Namespace="Infragistics.Web.UI.LayoutControls" TagPrefix="ig" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server" />
            <div>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <igtxt:WebImageButton ID="WebImageButton1" runat="server" OnClick="WebImageButton1_Click">
                        </igtxt:WebImageButton>
                        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                    </ContentTemplate>
                </asp:UpdatePanel>
                <ig:WebDialogWindow ID="WebDialogWindow1" runat="server" Height="300px" Width="400px">
                </ig:WebDialogWindow>
            </div>
        </form>
    </body>
    </html>