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.0Timeouts using AjaxTimeouts using Ajax
Previous
 
Next
New Post
10/25/2009 10:00 PM
 

I'm having trouble with Ajax timeouts after 45 seconds. This is the default timeout for an asynchronous postback, but for the life of me I haven't been able to make the postback last over 45 seconds before it times out. Do you guys have any suggestions fo rme?

The problem stems from having online payments enabled on our site. When the payment processor takes longer than 45 seconds, there is a timeout and the user doesn't know if the payment went through or not.

I really need help on this. Thanks guys.

 
New Post
10/25/2009 10:14 PM
 

Try using this code in the OnInit event of the module:

AJAX

.RegisterScriptManager();
ScriptManager

.GetCurrent(Page).AsyncPostBackTimeout = 600;

 
New Post
10/26/2009 11:57 AM
 

I've tried testing this and it still doesn't show my modal popup for > 45 seconds. Do you have any other suggestions?  In my on_init sub, I have also tried things like


If DotNetNuke.Framework.AJAX.IsInstalled Then

Me.Page, "AsyncPostBackTimeout", New Object() {240})

Me.Page).AsyncPostBackTimeout = 240

Dim ts As New System.TimeSpan(0, 4, 0)Me.Page.AsyncTimeout = ts

End If

 

 

I've intentionally messed up a connection string so that my modal popup will display for as long as possible. No matter what I do, the async postback doesn't last for more than 45 seconds. I've also tried adding an asynctimeout property to the page directive in the default.aspx page with no luck (viewing the source of the page doesn't have the @page directive in there either for some reason). I've also tried adding an entry to the web.config

Am I missing something?

  

<pages validateRequest="false" enableview_stateMac="true" enableEventValidation="false" asyncTimeout="240" enableSessionState="true">
   <controls>
    <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
   </controls>
   <namespaces>
    <add namespace="System.ComponentModel"/>
    
   </namespaces>
  </pages>

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Timeouts using AjaxTimeouts using Ajax


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