Hello,
I have a performance issue with edit.ascx in a module I'm developing.
If I display the control in a modal popup window it takes around 15-20 seconds to display, if i display it 'in place' it displays almost instantly.
Has anyone else experienced slow performance when displaying edit.ascx using a popup window?
I use the EditURL function to generate the URL to display the popup, I'm not doing anything special there but please see my code below.
One possible way to overcome the slow performance could be to display the edit.ascx control in it's own aspx page, but I can't figure out how to do that without losing the DNN context. Now I mean just the control in a page, I don't want to display it within the edit theme (skin) page as that will display other controls as well. I've watched Scott's excellent video series (parts 3 to 5) on navigation:
http://www.dnnhero.com/Premium/Tutorial/ArticleID/206/Module-View-Navigation-in-DNN-Part-3-6
But I still can't see how to achieve this. Can anyone please give me some pointers?
Best Regards,
Steve
Code to display popup window
----------------------------
//Add the moduleId as a parameter
string[] Params = new string[] { "mid=" + this.ModuleId.ToString() };
lnkEdit.NavigateUrl = EditUrl(string.Empty, string.Empty, "Edit", Params);";
String generated from EditUrl:
"javascript:dnnModal.show('http://somecompanyname.me/Home/ctl/Edit/mid/1735/tid/2319?popUp=true',/*showReturn*/false,550,950,true,'');"