473,378 Members | 1,407 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

dynamic accordion inside a tabPanel

6
hi, I am having a huge problem here!
the scenario is i am trying to create dynamic accordion Panes to a accordion control inside a tab panel in a content page. It works just fine in a regular webform page which does not use a master page. but if i try to add dynamic accordion panes to a accordion inside a tab panel, it stops working. but I hav tested i can use static accordion panes jsut fine.

here is my code:

//////////// tab /////////////////
<ajaxToolkit:TabPanel runat="server" ID="TabPanel1" HeaderText="Logoff">
<ContentTemplate>
<ajaxToolkit:Accordion ID="MyAccordion" runat="server" SelectedIndex="0"
HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected"
ContentCssClass="accordionContent" FadeTransitions="false" FramesPerSecond="40"
TransitionDuration="250" AutoSize="None" RequireOpenedPane="false" SuppressHeaderPostbacks="true">
<Panes>

<ajaxToolkit:AccordionPane ID="AccordionPane1" runat="server">
<Header><a href="" class="accordionLink">Log Off </a></Header>
<Content>
<asp:LinkButton ID="logoff" runat="server" OnClick="logoff_Click">Log Off Admin</asp:LinkButton>&nbsp;
<ajaxToolkit:ConfirmButtonExtender ID="LogOffConfirmButton" runat="server" TargetControlID="logoff" ConfirmText="Are you sure you want to log off ?">
</ajaxToolkit:ConfirmButtonExtender>
</Content>
</ajaxToolkit:AccordionPane>
</Panes>
</ajaxToolkit:Accordion>
</ContentTemplate>
</ajaxToolkit:TabPanel>

thisone works just fine....since the accordion pane there is static! but when i try to add it dynamically..they do not show up
/////////////////////////////////////////////////
protected void loglff()
{
AccordionPane logoffPane = new AccordionPane();
logoffPane.HeaderContainer.Controls.Add(new LiteralControl("logoff"));
LinkButton l = new LinkButton();
l.Text = "logoff";
logoffPane.ContentContainer.Controls.Add(l);

MyAccordion.Panes.Add(logoffPane);
}

////////////////
any help wil b much appreciated...
thank you in advance!
Aug 5 '07 #1
0 4430

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Bob Rock | last post by:
Hello, is there a way to turn off dynamic help from displaying when clicking F1??? Every time I call help on a word the external MSDN opens up (just as I want) BUT also the dynamic pane inside...
4
by: pizzy | last post by:
INTRO: I tried to clean it up for easy reading. I hope I didn't make any mistakes. PROBLEM: WOW, this is some crazy sh!t. I can't get my checkbox (see "TAGSELECTED") to print my textboxes (see...
5
by: pizzy | last post by:
I am having a problem with the last results. I can't seem to be able to get the input2A and input3A to appear. I don't seem to have a problem with the show and hide after a number is entered and...
0
by: skm376 | last post by:
I am a little confused as to how I need to allocate memory for a dynamic array inside a struct. Here is the struct that I am using: typedef struct command_t *commandPtr; typedef struct...
3
by: srilakshmim | last post by:
Hello I want to create Accordion (Ajax Control Tool Kit)dynamically. My Code is as follows Code: ( cpp ) protected void Page_Load(object sender, EventArgs e) { try ...
0
by: nbancajas | last post by:
hello everyone, i need some help regarding my python code. it is a medical plotter/display program with wxagg backend. it reads 3 kinds of data from a text file: ecg, heart rate, and oxygen...
1
by: cdmsenthil | last post by:
I have an Infragistics UltrawebGrid . Each Row in the grid is attached to a context menu using Infragistics CSOM Upon click on the menu, I am creating an Iframe dynamically which points to...
0
by: Giorgio | last post by:
Hi, I've an accordion inside a Datalist, i've bind the datalist with my objectdatasource and i want inside the Accordion to access the datasource, like : <cc1:AccordionPane...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.