Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Ajax ContolToolKit error in ScriptmangerAjax ContolToolKit error in Scriptmanger
Previous
 
Next
New Post
2/26/2012 6:28 AM
 

 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

 
New Post
3/7/2012 8:45 AM
 
You need to remove the toolscript manager in your markup like in your last change, and then add this in your page load:
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Try
                'For AJAX Support
                Dim _s As Telerik.Web.UI.RadScriptManager = CType(DotNetNuke.Framework.AJAX.GetScriptManager(Me.Page), Telerik.Web.UI.RadScriptManager)
                _s.EnableScriptCombine = False

            Catch ex As Exception
                'litMessage.Text = litMessage.Text + "
Outside " + ex.ToString() End Try End Sub
 
New Post
3/11/2012 4:39 AM
 

Thanks for you Cahd ,, but in this Case no All Ajax Controls is Worked !!!

My Accordion doesn't worked (no Animation ) and the CollapsiblePanelExtender too ,, and there isn't any Exception

I tried the  AnimationExtender and it Worked (^_^)  and this is the code

<asp:Panel ID="Message" runat="server"> 
    Pay attention to me! 
    </asp:Panel>
    <asp:LinkButton ID="lnkYellowFade" OnClientClick="return false;" runat="server">Play Animation</asp:LinkButton> 
    <asp:AnimationExtender ID="AnimationExtender1" TargetControlID="lnkYellowFade" runat="server"> 
    <Animations> 
        <OnClick> 
            <Sequence> 
            <Color  
                AnimationTarget="Message"  
                Duration="2"  
                Property="style"  
                PropertyKey="backgroundColor" 
                StartValue="#FFFF66"  
                EndValue="#246ACF" />  
            </Sequence> 
        </OnClick> 
    </Animations> 
    </asp:AnimationExtender> 

Can you get me the code of Accordion if it worked with you ,, or any Idea Please !!

Note ( I added the Telerik refrence that is in th Bin of Dotnetnuke )

thanx 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Ajax ContolToolKit error in ScriptmangerAjax ContolToolKit error in Scriptmanger


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out