How to make a DotNetNuke 6 PopUp Window
Sep
8
Written by:
9/8/2011 10:38 PM
DotNetNuke has a new ability to show PopUp's much more easily! You can make entire modules work in a single popup or extend module functionality and usability.
There are few different ways to show a PopUp window in DNN. It really depends upon how you want to execute it. Each 3 are very simple once you understand how to use the methods.
Server Redirect
string redirectUrl = UrlUtils.PopUpUrl(redirectUrl, this, PortalSettings, false, true);
Response.Redirect(redirectUrl);
Hyperlinks
HyperLink myLink = new HyperLink();
myLink.Text = "Click to make a PopUp";
myLink.Attributes.Add("onclick","return" + UrlUtils.PopUpUrl(myLink.NavigateUrl, this, PortalSettings, true, false));
Action Controls
string redirectUrl = this.ModuleContext.NavigateUrl(tabId, controlKey, false, new string[] {});
Response.Redirect(redirectUrl);
I found this blog article very helpful initially.