Home
  |   Login

How to make a DotNetNuke 6 PopUp Window

Sep 8

Written by:
9/8/2011 10:38 PM  RssIcon

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 = "http://www.repetti.net";
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. 





Your name:
Gravatar Preview
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Add Comment   Cancel 

Search

Minimize
Archive
<May 2012>
SunMonTueWedThuFriSat
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789
Monthly
Go