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