Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 26, 2012 03:23 AM by BU XI - MSFT
Member
3 Points
20 Posts
Apr 24, 2012 06:20 AM|LINK
I want to test how to databind an accordion control. I am not familiar with this.
I'm hoping there's someone who used it this way before... kind of like how I use gridviews...
i appreciate your help.
<act:Accordion runat="server" ID="accAbout" ContentCssClass="accContent" HeaderCssClass="accHeader" OnItemCreated="accAbout_ItemCreated" > <HeaderTemplate><asp:Label ID="lblSample" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ABT_NAME")%>'></asp:Label></HeaderTemplate> <ContentTemplate><asp:Label ID="lblSampleCont" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ABT_CONTENTS")%>'></asp:Label></ContentTemplate> </act:Accordion>
---------------------------------------------------------------------------------------------------
c#:
protected void Page_Load(object sender, EventArgs e) { if(!IsPostBack) { DataTable controls = PROSettings.GetPageControls("ABOUT"); //returns a datatable accAbout.DataSource = controls; accAbout.DataBind(); } }
Accordion ajax
Apr 24, 2012 10:40 PM|LINK
please cancel this issue. Thanks.
All-Star
22367 Points
2704 Posts
Microsoft
Apr 26, 2012 03:23 AM|LINK
Hello
If you've resolved this issue, it is more than welcome to share your experience with us. It would be useful for a lot of others who are seeking similar issues.
oOTEZOo
Member
3 Points
20 Posts
Databound AJAX Accordion control not showing up
Apr 24, 2012 06:20 AM|LINK
protected void Page_Load(object sender, EventArgs e) { if(!IsPostBack) { DataTable controls = PROSettings.GetPageControls("ABOUT"); //returns a datatable accAbout.DataSource = controls; accAbout.DataBind(); } }Accordion ajax
oOTEZOo
Member
3 Points
20 Posts
Re: Databound AJAX Accordion control not showing up
Apr 24, 2012 10:40 PM|LINK
please cancel this issue. Thanks.
BU XI - MSFT
All-Star
22367 Points
2704 Posts
Microsoft
Re: Databound AJAX Accordion control not showing up
Apr 26, 2012 03:23 AM|LINK
Hello
If you've resolved this issue, it is more than welcome to share your experience with us. It would be useful for a lot of others who are seeking similar issues.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework