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
745
Urgent...How to Hide a standard Panel which is in WebAsyncRefreshPanel
posted

Hi to All.......

My query is, I had a standard Panel named as Panel1 which contains an aspbutton... this panel1 is in

WebAsyncRefreshPanel. I want to hide the panel1 once the button was clicked. And i am using Infragistics7 and i dont want use upgrade version

help me urgently........

Regards

Nagaraju

  • 24497
    Suggested Answer
    posted

    Hi Nagaraju,

    I assume that you want to hide your panel on server by Panel1.Visible=false. Below is example:

    aspx:
    <igmisc:WebAsyncRefreshPanel ID="WARP1" runat="server">
         <asp:Panel ID="Panel1" runat="server">
            <asp:Button ID="Button2" runat="server" Text="Button" onclick="Button2_Click" />
         </asp:Panel>
    </igmisc:WebAsyncRefreshPanel>

    aspx.cs:

    protected void Button2_Click(object sender,EventArgs e)
    {
      this.Panel1.Visible = false;
    }