Databound AjaxControlToolKit Accordion Control: How to access Controls

A

anjali.lourda

Hi,
We are trying to use the accordion control from ajaxcontroltoolkit by
databinding to an sqldatasource.
The accordion binds to the datasource perfectly. However, We are not
able to access the controls or their values which were bound.
Please let me know which is the away to access that
Given below is the code. Please let me know if any further information
is required.
Regards,
Anjali



<form runat="server">
<ajaxToolkit:ToolkitScriptManager runat="server"
ID="ScriptManager1" />
<asp:Timer ID="Timer1" runat="server" EnableViewState=true
Enabled="true" Interval="20000" OnTick="SaveSPText">
</asp:Timer>
<div class="demoarea">
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
SelectCommand="procStudyProcedureMasterViewSPByModalityID"
SelectCommandType="StoredProcedure"
CancelSelectOnNullParameter="false" EnableViewState=True
ConnectionString="Data Source=PANTEQAPP\SQL2005;Initial
Catalog=IntelliPRA;User ID=TeleRadiology;Password=trIndia;Max Pool
Size=75000;Connect Timeout=60"
providerName="System.Data.SqlClient">
<SelectParameters>


<asp:parameter DefaultValue="21" Name="ModalityId"
Type="String" />

</SelectParameters>

</asp:SqlDataSource>
<asp:UpdatePanel ID="UpdatePanel1" runat="server"
RenderMode="Inline">

<ContentTemplate>

</ContentTemplate>
<Triggers>

</Triggers>
</asp:UpdatePanel>
<ajaxToolkit:Accordion ID="Accordion1" runat="Server"
SelectedIndex="0" HeaderCssClass="accordionHeader"
ContentCssClass="accordionContent" AutoSize="None"
EnableViewState="true" FadeTransitions="true" TransitionDuration="100"
FramesPerSecond="40" DataSourceID="SqlDataSource2">


<HeaderTemplate> <a href="" onclick="return false;"><%#
Eval("valuefield") %></a> </HeaderTemplate>

<ContentTemplate>
<FTB:FreeTextBox EnableViewState=true ID="FreeTextBox1" runat="server"
Text='<%# Eval("textfield")%>'>
</FTB:FreeTextBox>
<asp:Button ID="btnSave" runat="server" Text="Save" />
</ContentTemplate>
</ajaxToolkit:Accordion>

<form runat="server">
<ajaxToolkit:ToolkitScriptManager runat="server"
ID="ScriptManager1" />
<asp:Timer ID="Timer1" runat="server" EnableViewState=true
Enabled="true" Interval="20000" OnTick="SaveSPText">
</asp:Timer>
<div class="demoarea">
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
SelectCommand="procStudyProcedureMasterViewSPByModalityID"
SelectCommandType="StoredProcedure"
CancelSelectOnNullParameter="false" EnableViewState=True
ConnectionString="Data Source=PANTEQAPP\SQL2005;Initial
Catalog=IntelliPRA;User ID=TeleRadiology;Password=trIndia;Max Pool
Size=75000;Connect Timeout=60"
providerName="System.Data.SqlClient">
<SelectParameters>


<asp:parameter DefaultValue="21" Name="ModalityId"
Type="String" />

</SelectParameters>

</asp:SqlDataSource>
<asp:UpdatePanel ID="UpdatePanel1" runat="server"
RenderMode="Inline">

<ContentTemplate>

</ContentTemplate>
<Triggers>

</Triggers>
</asp:UpdatePanel>
<ajaxToolkit:Accordion ID="Accordion1" runat="Server"
SelectedIndex="0" HeaderCssClass="accordionHeader"
ContentCssClass="accordionContent" AutoSize="None"
EnableViewState="true" FadeTransitions="true" TransitionDuration="100"
FramesPerSecond="40" DataSourceID="SqlDataSource2">


<HeaderTemplate> <a href="" onclick="return false;"><%#
Eval("valuefield") %></a> </HeaderTemplate>

<ContentTemplate>
<FTB:FreeTextBox EnableViewState=true ID="FreeTextBox1" runat="server"
Text='<%# Eval("textfield")%>'>
</FTB:FreeTextBox>
<asp:Button ID="btnSave" runat="server" Text="Save" />
</ContentTemplate>
</ajaxToolkit:Accordion>
 
M

Matteo Migliore

Hi,
We are trying to use the accordion control from ajaxcontroltoolkit by
databinding to an sqldatasource.
[CUT]

Hi.
Here you are OT. This group speaks italian language.

Try on:
microsoft.public.dotnet.framework.aspnet

Matteo Migliore.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top