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...Getting StartedGetting StartedError when trying to load the edit.ascx controlError when trying to load the edit.ascx control
Previous
 
Next
New Post
10/24/2013 7:45 AM
 

Hi again,

 

I can now make it work when popups are enabled by the following line in my page_load event using client side scripting.

     this.ASPxButton1.ClientSideEvents.Click = "function(s, e) {" +
                        EditUrl(string.Empty, string.Empty, "Edit", "tid=0") + "}";

however if I turn "supports popups" off in the module definition this code does nothing obviously because it reverts to a web url which is useless in a click event.

Is it possible to detect in a module whether "supports popups" is enabled or rather how can I make the button work regardless of whether popups are enabled or not?

 

 

 
New Post
10/28/2013 7:33 AM
 

Anyone?

I've been stuck on this problem for 5 days! :-)

 
New Post
10/29/2013 10:40 AM
 
6 days now.

If it goes on for much longer I will have to ditch DNN. I cannot believe this is a problem that there is no answer for.
 
New Post
10/30/2013 12:58 PM
 
Still no answer to the problem. If I have popups enabled for the edit page the EditURL method returns a javascript method for use client side. It I turn popups off it returns the standard server side URL for use with Response.Redirect(). What I can't figure out it how to tell if popups are enabled or disabled for a page and how to handle loading an edit control that works for both popups enabled and disabled.

I can't believe no one has encountered this. I am using DNN 7.1.2.
 
New Post
10/30/2013 8:50 PM
 

Core Popups have been a big mess since they were first added to the system.  Most people I know avoid using them - there are many threads that discuss the weird issues that they cause in different environments.

However - that said - modules that need to be able to render INSIDE a popup require different code in BUTTONS to ensure that they work correctly as you have discovered.

If you want to KNOW if the page that is currently being rendered is inside a popup - you need to test the querystring  for popUp=true.

            Boolean isActivePopup = false;
            if (!string.IsNullOrEmpty(Request.QueryString["popUp"]))
            {
                String myPopup = Request.QueryString["popUp"];
                if (myPopup == "true")
                {
                    isActivePopup = true;
                }
            } 

if isActivePopup is true - then you can set the button to work from inside a popup.

Westa

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedError when trying to load the edit.ascx controlError when trying to load the edit.ascx control


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