Databound AjaxControlToolKit Accordion Control: How to access Controls

Databound AjaxControlToolKit Accordion Control: How to access Controls

Post by anjali.lou » Sat, 21 Jul 2007 17:19:35


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"
 
 
 

Databound AjaxControlToolKit Accordion Control: How to access Controls

Post by Matteo Mig » Sat, 21 Jul 2007 17:33:57

> Hi,
[CUT]

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

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

Matteo Migliore.