473,400 Members | 2,163 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,400 software developers and data experts.

Databound AjaxControlToolKit Accordion Control: How to access Controls


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="procStudyProcedureMasterViewSPByMod alityID"
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="procStudyProcedureMasterViewSPByMod alityID"
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>

Jul 20 '07 #1
1 7093
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.
Jul 20 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Nathan Sokalski | last post by:
I am trying to start using the AjaxControlToolkit. I followed all the instructions on the following page: http://ajax.asp.net/ajaxtoolkit/Walkthrough/Setup.aspx The only thing I did...
1
by: noneya22 | last post by:
I have an accordion control with a dynamically generated asp.net checkbox server-side control in each accordion pane. On postback I loop through all of the controls on the page, and I never find...
7
by: srilakshmim | last post by:
Hello I want to create Accordion (Ajax Control Tool Kit). My Code is as follows protected void Page_Load(object sender, EventArgs e) { try { Accordion...
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: rsdev | last post by:
Hi, I am new to implementing Asynchronous javascript in asp.net (or any framework) and have come across a problem. In a user control I have an accordion with a nested updatepanel, the trigger...
0
by: axxon | last post by:
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...
0
by: rcon | last post by:
I'm creating a user control to prompt for crystal reports parameters. The individual controls work fine, and the over all control works fine too. However, I'm not really that experienced in the...
0
by: =?Utf-8?B?Q29kZVJhem9y?= | last post by:
I have an accordion AJAXToolkit control. It works okay. However, I want to work it so that, each pane in the accordion will contain some controls. And those controls will have validation...
3
by: Allen Chen [MSFT] | last post by:
Hi Richard, Quote from Richard================================================== However I also want to be able to remove the panes. I have tried to include this, but find that when I first...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.