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.NavigateUrl =
""
;
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);