Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

VS2012 cannot detect a control placed inside of an Accordion Content Template

$
0
0

Hi,

I have an ASP.NET Page that has two AJAX Accordion's on the page. Inside of the Accordion Template I have placed a button (or a label or a grid or anything) inside of the Content template.

My problem is that in my code-behind, the designer is not detecting the changes and regenerating my designer file.  I can place the same control outside of my accordion and the designer re-generates correctly.

Any ideas what is going on here?

<ajax:Accordion ID="accordionSubject" runat="server" SelectedIndex="0"
HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected"
ContentCssClass="accordionContent" FadeTransitions="false" FramesPerSecond="40"
OnItemDataBound="accordionSubject_ItemDataBound"
TransitionDuration="250" AutoSize="Fill" RequireOpenedPane="false" SuppressHeaderPostbacks="true">
<HeaderTemplate><b><%#DataBinder.Eval(Container.DataItem, "Name")%></b></HeaderTemplate>
<ContentTemplate>
<asp:Button ID="btnTest" runat="server" Text="Button" />
<br />
<table style="width:100%">
<tr>
<td>
<asp:GridView ID="gvSubjects" runat="server"
AutoGenerateColumns="True"
GridLines="None" Width="80%" CellPadding="5">

</asp:GridView>
</td>
</tr>
</table>
</ContentTemplate>
</ajax:Accordion>

Thanks - Greg.


Viewing all articles
Browse latest Browse all 5678

Trending Articles