Hi,
I have an site upgraded to 8.4 and am having problems with a custom module.
I would appreciate any help here.
My main view is a search which allows people to get results from a database and passes them to the search results view which handles displaying them.
If I just response.redirect to the view using : string redirectUrl = ModuleContext.EditUrl("mid", this.ModuleId.ToString(), "SearchResults"); it all all works nicely.
However I have been asked to display the results in a pop up so am trying all sorts to get this to work, the site does have pop ups enabled and the module has the module definition for SearchResults does support popups.
When I the following code:
string redirectURL = ModuleContext.NavigateUrl(this.TabId, "SearchResults", false, "mid=" + this.ModuleId);
string popUpURL = "dnnModal.show('http://localhost:54729/tpintranet/Telephone-Directory/ctl/SearchResults/mid/425?popUp=true',/*showReturn*/true,300,650,false,'')";
I get the below url for popUpURL :
dnnModal.show('http://localhost:54729/tpintranet/Telephone-Directory/ctl/SearchResults/mid/425/mid/425?popUp=true',/*showReturn*/false,300,650,true,'')
So from here I have tried both the below, Response.Redirect just errors and the page just refreshes for the ClientScript.RegisterStartupScript :
Response.Redirect(popUpURL, false);
page.ClientScript.RegisterStartupScript(GetType(), "popupscript", popUpURL, true);
If anyone can help me out and let me know what I have missed or if I have done anything wrong I would be grateful.