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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Debugging why AJAX is not workingDebugging why AJAX is not working
Previous
 
Next
New Post
9/30/2008 12:27 AM
 

I've run just about every last tip & trick I can lay my hands on to get Partial rendering to work, with no success.

I've tried

  1. web.config, with all the settings from release.config AND tried it with a web.config from a working non dnn ajax site
  2. not only is <supportspartialrendering>true</supportspartialrendering> set,  but in the database dbo.ModuleControls show true in the SupportsPartialRendering column for my module.
  3. I've tried both an asp:Panel, and used DotNetNuke.Framework.AJAX.WrapUpdatePanelControl(this.wrapperPanel, true);
    1. and I can see the html of the added updateprogress panel with graphic in the rendered HTML (but alas, everything was still a full page postback)
  4. I'm now trying Full blown asp:UpdatePanel's, but these dont work either

Here is a slice of the PageLoad routine

 

                    if (DotNetNuke.Framework.AJAX.IsInstalled() && DotNetNuke.Framework.AJAX.IsHostEnabled())
                    {
                        //DotNetNuke.Framework.AJAX.RegisterScriptManager();
                        //DotNetNuke.Framework.AJAX.WrapUpdatePanelControl(this.wrapperPanel, true);

                         ScriptManager scriptMgr = DotNetNuke.Framework.AJAX.ScriptManagerControl(this.Page) as ScriptManager;

                        scriptMgr.Scripts.Add(new ScriptReference("~/DesktopModules/DutyDays/Scripts/jquery-1.2.6.min.js"));
                        scriptMgr.Scripts.Add(new ScriptReference("~/DesktopModules/DutyDays/Scripts/controller.js"));

                        Debug.WriteLine(scriptMgr.SupportsPartialRendering);
                    }
                    else
                    {
                        throw new Exception("ajax is not installed ????!?!?!?!?!");
                    }

 

 Note the Debug.WriteLine.................this is always false

Help!

 

 
New Post
12/4/2008 6:44 AM
 

I have a very similar problem, although I don't get the error message, AJAX simply doesn't work - I get a full postback.

My problem is that a ScriptManager is NOT included in my page - When I click on ViewSource on a page and search for ScriptManager and it is not found.

I have also checked that we have the following DLL in the DNN application's BIN directory :
1. System.Web.Extension.DLL
2. AjaxControlToolKit.DLL

system.web.extenstion.dll also exists in the GAC on the web server

 

My module also has "Support Partial Rendering" set to on

Also, in host Settings "Enable AJAX" setting is checked. So no there is no loope hole.

I have even added the following code into the Page_Init of my module to try and bodge the AJAX

         Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
            'Initialise AJAX
            DotNetNuke.Framework.AJAX.RegisterScriptManager()

            'DEBUG CODE
            Dim scriptMgr As ScriptManager = CType(DotNetNuke.Framework.AJAX.ScriptManagerControl(Me.Page), ScriptManager)
            If scriptMgr IsNot Nothing Then
                Response.Write("scriptMgr.SupportsPartialRendering = " & scriptMgr.SupportsPartialRendering & "<br/>")
                If Not scriptMgr.SupportsPartialRendering Then
                    'Response.Write("Add Script Mgr" & "<br/>")
                    'AJAX.AddScriptManager(Me.Page)
                    'Response.Write("SET scriptMgr.SupportsPartialRendering = True" & "<br/>")
                    AJAX.SetScriptManagerProperty(Me.Page, "EnablePartialRendering", New Object() {True})
                    Response.Write("scriptMgr.AFTER SETTING - SupportsPartialRendering = " & scriptMgr.SupportsPartialRendering & "<br/>")
                End If
            Else
                Response.Write("scriptMgr DOES NOT EXIST!!!" & "<br/>")
            End If

        End Sub


I get the following responses on the page:

scriptMgr.SupportsPartialRendering = False
Add Script Mgr
SET scriptMgr.SupportsPartialRendering = True
scriptMgr.AFTER SETTING - SupportsPartialRendering = False

 

I have tried EVERYTHING I can think of, but just can't get AJAX working.

Any more suggestions?

 

ADDENDUM

We are running this site in a web farm with the source code on one server and IIS set-up on another.

We are running IIS6.

In the web.config file we have:

  • EnableWebFarmSupport key set to True
  • <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
  •       <!-- ASP.NET AJAX support -->
          <remove verb="*" path="*.asmx" />
          <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
          <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
          <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
  •     <handlers>
          <add name="AJAX_ScriptResourceHandler" path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv2.0" />
          <add name="AJAX_AppServiceHandler" path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv2.0" />
          <add name="AJAX_WebServiceHandler" path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv2.0" />
          <add name="LogoffHandler*" path="Logoff.aspx" verb="*" type="DotNetNuke.Services.Authentication.LogOffHandler, DotNetNuke" preCondition="integratedMode,runtimeVersionv2.0" />
          <add name="RSSJandler" path="RSS.aspx" verb="*" type="DotNetNuke.Services.Syndication.RssHandler, DotNetNuke" preCondition="integratedMode,runtimeVersionv2.0" />
          <add name="LinkClickHandler" path="LinkClick.aspx" verb="*" type="DotNetNuke.Services.FileSystem.FileServerHandler, DotNetNuke" preCondition="integratedMode,runtimeVersionv2.0" />
          <add name="CaptchaHandler" path="*.captcha.aspx" verb="*" type="DotNetNuke.UI.WebControls.CaptchaHandler, DotNetNuke" preCondition="integratedMode,runtimeVersionv2.0" />
        </handlers>

     

The System.Web.Extensions DLL is present in the GAC of the Web Server

So has anyone out there any ideas why AJAX still doesn't work?

Is it because of the web farm?

Has anyone got AJAX working on a web farm?

 

 


Blue & White hooped blood runs through my veins!
 
New Post
12/8/2008 5:46 AM
 

*** POP ***

Just to see if anyone has any suggestions????


Blue & White hooped blood runs through my veins!
 
New Post
12/9/2008 11:11 AM
 

Hey guys I'm just getting my hands into DNN but have you guys tried a :

<asp:ScriptManagerProxy

Cause you can't have multiple Script Managers on a page, I don't remember if it throws an error if you do, but the proxy allows ascx pages to use ajax while their parent page is also using ajax.

 
New Post
3/23/2009 12:25 PM
 

I have just found out why AJAX is not working on my sites.

There was a rogue setting in my web.config file:

<system.web>

    <xhtmlConformance mode="Legacy" />

</system.web>

Once I removed this, AJAX appears to be working OK. For more info on this, please read this blog entry from Scott Guthrie: weblogs.asp.net/scottgu/archive/2006/12/10/gotcha-don-t-use-xhtmlconformance-mode-legacy-with-asp-net-ajax.aspx

 


Blue & White hooped blood runs through my veins!
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Debugging why AJAX is not workingDebugging why AJAX is not working


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