Forum


HomeHomePremiumPremiumDevelopmentDevelopmentDisplay Edit.ascx in it's own pageDisplay Edit.ascx in it's own page
Previous
 
Next
New Post
8/4/2014 11:19 AM
 

Hello Scott,

I would like to display an Edit.ascx control in the same window as the page that it links from instead of having it as a popup window.
Just to make the most of the screen.

I'm just wondering the best way to do this.

I was planning to put the Edit.ascx in say an Edit.aspx page and then change the navigateUrl and target of the lnkEdit Hyperlink control in the view.ascx to load the page directly.. But then I assume I will be missing whatever DNN does when it loads the control, I assume it puts it inside a page and does some initialisation. 

I would also need an Exit button in the Edit.ascx to return to the original page containing the View.

Just wondering if there's a better way to do this in DNN?

I realise it's possible to turn off 'popups' but I would like the Edit.ascx in it's own page.

Best Regards,

Steve

 
New Post
8/5/2014 4:16 AM
 

Steve,

My Module View & Navigation tutorial covers the techniques for doing this.  Watch parts 3,4 and 5.

http://www.dnnhero.com/Premium/Tutori...

 
New Post
8/5/2014 4:18 AM
 

Further to my original question  . . . 

I've been foraging around and discovered the dnnModal function in  dnnModalPopup.js has a parameter, isMaximized.

I've tried stuff like this but to no avail I'm afraid:

string[] Params = new string[] { "isMaximized=true", "tid=" + this.ModuleId.ToString()};

lnkEdit.NavigateUrl = EditUrl(string.Empty, string.Empty, "Edit", Params);

I guess that would be a step in the right direction if it worked, would still need to remove the top and bottom space, that looks like it's hard coded in the script.

But I'd really prefer to use the full screen width and height, i.e. no browser menu, toolbars etc. 

Best Regards,

Steve

 
New Post
8/5/2014 5:00 AM
 

Hi Scott,

OK great and thanks, I will take a look now.

I really must pay more attention :-)

Steve

 
New Post
8/5/2014 6:04 AM
 

Steve,

Not a problem.  Let me know which technique worked for you or if you have any other questions.

 
Previous
 
Next
HomeHomePremiumPremiumDevelopmentDevelopmentDisplay Edit.ascx in it's own pageDisplay Edit.ascx in it's own page



Try FREE
30 days money back guaranteed