Products

Solutions

Resources

Partners

Community

About

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...Building ExtensionsBuilding ExtensionsModulesModules"Normal" user cannot open popup"Normal" user cannot open popup
Previous
 
Next
New Post
2/3/2017 8:31 AM
 

Hi,

In a module that I am testing on DNN 9 I have an issue that is quite mysterious to me. A (non-Admin) user should be able to open a popup and change data for certain ("his") records. This worked fine in DNN 7.4.2, but in DNN 9 I get an "The page cannot be displayed" error message.

The code that should open the popup is:

         Response.Redirect(EditUrl(), false);
Context.ApplicationInstance.CompleteRequest();

When I debug the code there is no error inside these commands, but somewhen later "search.ascx" is loaded and when stepping thru this, code execution stops here

<script type="text/javascript">
    $(function() {
        if (typeof dnn != "undefined" && typeof dnn.searchSkinObject != "undefined") {
            var searchSkinObject = new dnn.searchSkinObject({
                delayTriggerAutoSearch : <%= AutoSearchDelayInMilliSecond.ToString() %>,
                minCharRequiredTriggerAutoSearch : <%= MinCharRequired.ToString() %>,
                searchType: '<%= SearchType %>',
                enableWildSearch: <%= EnableWildSearch.ToString().ToLowerInvariant() %>,
                cultureCode: '<%= CultureCode %>',
                portalId: <%= PortalId %>
                }
            );
            searchSkinObject.init();
            
            <% if (!UseDropDownList)
               { %>
            // attach classic search
            var siteBtn = $('#<%= SiteRadioButton.ClientID %>');
            var webBtn = $('#<%= WebRadioButton.ClientID %>');
            var clickHandler = function() {
                if (siteBtn.is(':checked')) searchSkinObject.settings.searchType = 'S';
                else searchSkinObject.settings.searchType = 'W';
            };
            siteBtn.on('change', clickHandler);
            webBtn.on('change', clickHandler);
            
            <% }
               else
               { %>

               // attach dropdown search
            if (typeof dnn.initDropdownSearch != 'undefined') {
                dnn.initDropdownSearch(searchSkinObject);
            }
            
            <% } %>
        }
    });
</script>

and the error is displayed.

The error does not happen when an admin user is doing that. The popup also appears for every user when trying to login.

I tried to comment out the second line, replace the second line by

         Response.End();

and replace the second parameter in the first line to true - any combination of this, it did not change the behaviour.

Any ideas?

Happy DNNing!
Michael

 


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
2/3/2017 6:36 PM
 
the issue has been reported before, but I am not sure, whether it has been logged into the public issue tracker yet.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/6/2017 11:31 AM
 
Thanks, Sebastian.

As I could not find it in the tracker, I logged it:

https://dnntracker.atlassian.net/brow...

Happy DNNing!
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModules"Normal" user cannot open popup"Normal" user cannot open popup


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