Problem with AJAX and User Controls
Hi,
I am working with asp.net c#. While working with .aspx page the Ajax control(accordion) worked perfectly. But when i tried using it on Web user control .ascx the control didn't work. I hoping there is a work around this to make it work.
This is my source code for the control that is not working.
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="StartCourse1.ascx.cs" Inherits="LearningSource_Controls_StartCourse1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<style type="text/css">
.style1
{
width: 110%;
}
</style>
<ajaxToolkit:ToolkitScriptManager runat="server" ID="ScriptManager1" />
<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="" style="color:White">Simulation program</a></Header>
<Content>
Watch the
demonstration of the network simulation program named <span
style="font-weight: bold;">Cisco Packet Tracer v3.2 (do not use
the newer versions of the software in this module as they are much too
complex for our needs at this stage in the module).</span> <br>
</ajaxToolkit:AccordionPane></Panes></ajaxToolkit:Accordion>
Thanks for your help in advance. Regards