CHAPTER 7 ?– USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 1) 133
To see this control in action, you will create a simple page with an Accordion control
that has three sections each containing four lines of text. First, you drag and drop an
Accordion control on a new AJAX-enabled .aspx page. As always, remember to have
already added the ScriptManager control to the page when working with any of the
control extenders in the AJAX Control Toolkit if the created web application project
or web site was not AJAX enabled. Set the FramesPerSecond property to 30 and the
TransitionDuration to 100 ms. Within the Accordion control, first create a
tag
followed by three tags with the corresponding text within the
tag as shown in the following code snippet:
FadeTransitions="true" FramesPerSecond="30"
TransitionDuration="100" AutoSize="None">
Item 1
Item 2
Item 3
Item 4
.
Pages:
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210