hi everyone
Ive been having the below problem for a few days,
I'm Using Dnn version 06.01.03 and the dotnet framework 3.5
First : this is my code :
<%@ Control Language="C#" Inherits="YourCompany.Modules.testajax.Viewtestajax"
AutoEventWireup="true" CodeBehind="Viewtestajax.ascx.cs" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><style type="text/css">
.accordion {
width: 400px;
margin-right: 131px;
margin-bottom: 0px;
}
.accordionHeader {
border: 1px solid #2F4F4F;
color: white;
background-color: #2E4d7B;
font-family: Arial, Sans-Serif;
font-size: 12px;
font-weight: bold;
padding: 5px;
margin-top: 5px;
cursor: pointer;
}
.accordionHeaderSelected {
border: 1px solid #2F4F4F;
color: white;
background-color: #5078B3;
font-family: Arial, Sans-Serif;
font-size: 12px;
font-weight: bold;
padding: 5px;
margin-top: 5px;
cursor: pointer;
}
.accordionContent {
background-color: #D3DEEF;
border: 1px dashed #2F4F4F;
border-top: none;
padding: 19px;
padding-top: 10px;
}
</style>
<title>Simple Accordion</title></head>
<body>
<div>
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
</div>
<asp:Accordion
ID="Accordion1"
CssClass="accordion"
HeaderCssClass="accordionHeader"
HeaderSelectedCssClass="accordionHeaderSelected"
ContentCssClass="accordionContent"
runat="server" FadeTransitions="True" Width="614px" ForeColor="#000099"
Height="96px" SuppressHeaderPostbacks="True" TransitionDuration="300">
<Panes>
<asp:AccordionPane ID="AccordionPane1" runat="server">
<Header> first section</Header>
<Content>
details of first section
</Content>
</asp:AccordionPane>
<asp:AccordionPane ID="AccordionPane2" runat="server">
<Header>Second Section</Header>
<Content>
details of second section
</Content>
</asp:AccordionPane>
<asp:AccordionPane ID="AccordionPane3" runat="server">
<Header>Third Section</Header>
<Content>
details of Third section
</Content>
</asp:AccordionPane>
</Panes>
</asp:Accordion>
</body>
</html>
when i writing this Code this Exception is appear
i tried this in behind code:
protected void Page_Load(object sender, System.EventArgs e)
{
if (DotNetNuke.Framework.AJAX.IsInstalled())
{
DotNetNuke.Framework.AJAX.RegisterScriptManager();
DotNetNuke.Framework.AJAX.AddScriptManager(this.Page);
}}
and same problem !!
i tried this code :
protected void Page_Load(object sender, System.EventArgs e)
{
AjaxControlToolkit.ToolkitScriptManager cnt = new AjaxControlToolkit.ToolkitScriptManager();
this.Control.Controls.Add(cnt);
}
and i have the same problem
When I removed the ScriptManger (<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager> )
and the code in Codebehinde and the FORM tag
the page is work fine and the Accordion Control is appear BUT WITHOUT any animiations (I cant change the Panes or drop down it)
Pleas Help me
thanks