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.0How to use ajax.asp.net in dnn 4.3.5?How to use ajax.asp.net in dnn 4.3.5?
Previous
 
Next
New Post
11/13/2006 4:11 AM
 

Hi,

I am trying to take advantage of ajax.asp.net (beta 2) in dnn framework but I encountered a problem.

I added a Scriptmanager, and a botton within a UpdatePanel, in a View page. When I clicked the button, the whole page refreshed. I noticed that the link of the button was " __doPostBack('dnn$ctr376$ViewBlogTest$btnFilter','')", and suspected that dnn framework took over the event, the framework then refreshed the page.

Can anyone help me?

 

Thanks a lot!

 
New Post
11/13/2006 10:00 AM
 
Make sure your environment is setup properly.

In the /bin directory you should have AtlasControlToolkit.dll, AjaxExtensionsToolbox.dll, Microsoft.Web.Extensions.dll (technically for Update Panel you only need Microsoft.Web.Extensions but you might as well setup it all up at once)

From the Atlas downloads, copy the ScriptLibrary folder to the root of your site.  This should contain Release and Debug folders and have six files each (MicrosoftAjax.js, MicrosoftAjaxRuntime.js, MicrosoftAjaxWebForms.js, PreviewDragDrop.js, PreviewGlitz.js, PreviewScript.js) 

Lastly, your web.config should enable the Atlas Framework (as if you had created an Atlas Website).

Items in RED should be added or updated.

     <section name="profiles" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke" />
   </sectionGroup>

   <sectionGroup name="microsoft.web" type="Microsoft.Web.Configuration.MicrosoftWebSectionGroup">
     <section name="converters" type="Microsoft.Web.Configuration.ConvertersSection"/>
   </sectionGroup>
</configSections>
<microsoft.web>
   <converters>
     <add type="Microsoft.Web.Script.Serialization.Converters.DataSetConverter"/>
     <add type="Microsoft.Web.Script.Serialization.Converters.DataRowConverter"/>
     <add type="Microsoft.Web.Script.Serialization.Converters.DataTableConverter"/>
   </converters>
</microsoft.web>
<connectionStrings>

 

<httpHandlers>
   <!-- This is for FTB 3.0 support -->
   <add verb="GET" path="FtbWebResource.axd" type="FreeTextBoxControls.AssemblyResourceHandler, FreeTextBox" />

   <!-- This is for Atlas Support -->
   <add verb="*" path="*.asmx" type="Microsoft.Web.Services.ScriptHandlerFactory" validate="false" />

 

     <add namespace="DotNetNuke.Entities.Tabs" />
   </namespaces>
   <controls>
     <add namespace="Microsoft.Web.UI" assembly="Microsoft.Web.Atlas" tagPrefix="Atlas"/>
     <add namespace="Microsoft.Web.UI.Controls" assembly="Microsoft.Web.Atlas" tagPrefix="Atlas"/>
     <add namespace="AtlasControlToolkit" assembly="AtlasControlToolkit" tagPrefix="Atlas"/>
   </controls>

</pages>
<xhtmlConformance mode="Transitional" />

 

Here's a working example of an Update Panel.

http://www.netqconsulting.com/CodeSamples/Atlas/UpdatePanel/tabid/152/Default.aspx

 
New Post
11/13/2006 8:02 PM
 

It worked!

Thanks a lot, professorcw1.

 
New Post
12/11/2006 11:56 AM
 
Okay - this seems to work for the most part but I am still having a bit of a problem - I put a timer in the update panel to update a label with the time (testing) but it only runs once - maybe the timer is destroyed or something - what might the deal be there?

Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
New Post
12/14/2006 11:47 AM
 

You ROCK!  Thanks dude!  Had the same problem, tried your solution, works now.  I copied over the web.config settings that VS gives you when you start a new Atlas project, thinking it would work.  Like the above user, I could get an ASPX page doing AJAX working fine, but inside the user control for a module no go.  So I went back to the original web.config, and added your settings and bingo!  Works.  Thanks!  Now, to find out why it works....

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How to use ajax.asp.net in dnn 4.3.5?How to use ajax.asp.net in dnn 4.3.5?


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