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.0UpdatePanelPopupExtenderUpdatePanelPopupExtender
Previous
 
Next
New Post
6/29/2007 10:20 AM
 

Hello everyone,

I have made a custom module with a gridview on it. This gridview has a TemplateField with an ImageButton in it and some other fields. The gridview is wrapped in an UpdatePanel (UP1).
Below this updatepanel (in the .ascx) I have an UpdatePanelPopupExtender (From the Flan.Controls) and a updatepanel wrapping the content for the UPPE:

<cc1:UpdatePanelPopupExtender ID="uppe1" runat="server" TargetControlID="UpdatePanel2" AutoPostBack="true" OnClose="uppe1_Close" OffsetX="0" OffsetY="0" CalloutColor="blue" CalloutBorderColor="Black" />div style="display: none;">
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<contenttemplate>
<!--Some content, e.g. a <table-->
</contenttemplate>
<triggers>
<asp:AsyncPostBackTrigger ControlID="gvActive" EventName="SelectedIndexChanged"></asp:AsyncPostBackTrigger>
</triggers>
</asp:UpdatePanel>&nbsp;</div>


In my Gridview1_RowCommand() event handler, I have some code getting the CommandArgument from the ImageButton from the corresponding row, and then displaying the details of the item clicked.

I actually have this scenario working on my developing machine, but somehow, when I upload it to the actual page I get an error outside the module, when I click the ImageButton, saying:

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

I can reproduce this error on my dev. machine by logging on as host, switching from Edit to View mode (using the Control Panel) and clicking the ImageButton. The same error then occurs. However, when I am in Edit mode, it does not. And when I am logged in as a Standard user, it doesn't either. I have tried setting a breakpoint in the GridView_RowCommand() sub, but it seems it never gets this far.

Any thoughts and help is greatly appreciated.
/Jacob

 
New Post
6/30/2007 12:43 PM
 

I've solved it myself. I browsed around the forums a bit, and read the thread "Common Module Development errors.." in this forum. And me, who thought my problem wasn't common.

As it turned out, it is/was a cache problem - apparently when developing with Ajax, the module's cache time setting always has to be 0.

I hope it can help someone else, who runs into the same error.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0UpdatePanelPopupExtenderUpdatePanelPopupExtender


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