Click here to Skip to main content
15,900,646 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
We using Ajax Accordion Pane in web form. We binding Ajax accordion pane with Dataset when user press Go button.

Aspx Code

ASP.NET
<cc1:Accordion ID="accRcvDetails"  runat="server" SelectedIndex="-1" ContentCssClass="accordion-content" RequireOpenedPane="false" HeaderCssClass="accordion-header"
                                HeaderSelectedCssClass="accordionSelected">


HTML
<HeaderTemplate>
  </HeaderTemplate>


There is few textbox and grid in Accordion pane.

When User press Go button i displaying accordion.

ASPX for GO.

ASP.NET
<asp:Button ID="btnGo" CssClass="searchbutton" runat="server" Text="Go" />

In .CS we binding AJAx accordion.
C#
public void btnGo_Click(object sender, EventArgs e)
     {
         accRcvDetails.DataSource = dsDetailsForModel.Tables[0].DefaultView;
         accRcvDetails.DataBind();
         accRcvDetails.Visible = true;

     }

The above Code works great. but when we click GO button again all the value coming correct in dataset but we not able to bind accordion. We have some required validator in grid also getting failed. Please guide me.
Posted
Updated 10-Nov-14 21:06pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900