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.0AJAX Control ToolkitAJAX Control Toolkit
Previous
 
Next
New Post
6/14/2008 8:50 AM
 

I created a dnn module with a Repeater that contains an UpdatePanel control with ChildrenAsTriggers enable.  This works fine until I click the button inside any of the update panels.

This is the error:

Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request.

Need help on this one.

Thanks in Advance
Virgil

 
New Post
6/14/2008 10:16 AM
 

theres a large number of ways this can happen (see http://www.google.co.uk/search?hl=en&q=Page+cannot+be+null.+Please+ensure+that+this+operation+is+being+performed+in+the+context+of+an+ASP.NET+request.&meta= ) for some examples. I'd suggest it might be a good idea to disable the updatepanel as it often then shows the "real" error. To do this set EnablePartialRendering="false" on the scriptmanager control - if you're using the automatic scriptmanager injection in dotnetnuke you'll have to set this in your page_init of the module.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/15/2008 4:32 AM
 

Thanks for the reply,

I have tried disabling the EnablePartialRendering and error is gone but the server event is not triggered and the ajax functionality no longer works.

Any idea?

Thanks

 
New Post
6/15/2008 8:41 AM
 

disabling partial rendering disables the ajax, which allows you to better debug your code. If the server event is not triggered, it's because your code is incorrect for some reason i.e. the button you're pressing may not be a server control (or have runat=server), or you may not have the server event wired up correctly (if using vb.net), or may not have a delegate defined for the event (c#).

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
7/2/2008 5:26 AM
 

I have not find any solution for this issue for weeks now....

I have done some testing and find out that this only hapens when I add the the custom control(with updatepanel) inside a repeater.

Any Suggestion?

Thanks

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0AJAX Control ToolkitAJAX Control Toolkit


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