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

HomeHomeDevelopment and...Development and...Open Core Testi...Open Core Testi... Response.Redirect(EditUrl("MyControl")) does not work on DNN 6 beta 1 Response.Redirect(EditUrl("MyControl")) does not work on DNN 6 beta 1
Previous
 
Next
New Post
7/5/2011 1:01 PM
 
The issue here is that EditUrl now contains logic to enable popups.

So - the fix made was to disable popups by default for 3rd party modules., so that your existing code will work correctly.  

However this means that your existing code will not work with popups.

The "fix" to your code would be that rather than "postback" and then redirect to a url using EditUrl, you would render a hyperlink in the markup with its href set to the url created by EditUrl.

This is actually a better practice - regardless of popups - as the user will now click a link which goes straight to the page (one request), rather than clicking a link which posts back to the same page and then redirects the browser to the new page (two requests).




Charles Nurse
Chief Architect
Evoq Content Team Lead,
DNN Corp.

Want to contribute to the Platform project? - See here
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
 
New Post
7/5/2011 1:24 PM
 
OK. I see. Thanks for clarifying.
However, the code where I've seen this problem is just a very common "asp:LinkButton" or "dnn:CommandButton", with the classic "Return" functionality (private void cmdReturn_Click(Object sender, EventArgs e)).
AFAIK, even on the DNN core (version 6), it's plenty of things like this. They will work fine, as far as they are not on a popup, or they are just a 1st level popup.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Open Core Testi...Open Core Testi... Response.Redirect(EditUrl("MyControl")) does not work on DNN 6 beta 1 Response.Redirect(EditUrl("MyControl")) does not work on DNN 6 beta 1


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