Working with jquery popup in dotnetnuke 6 modules

For example:

View.ascx(View Page)

——————–

View.ascx.cx

————

lkbButton.Attributes.Add(“onclick”, “return ” + UrlUtils.PopUpUrl(Globals.NavigateURL(“popupkey”, “mid=” + this.ModuleId), this, PortalSettings, true, false, 390, 670));

Above example description: Let say my custom module is having 2 view page. In default view page I am having one link button and on clicking of this link button i wants to open another view page as popup.

So 2nd view page is having key as “popupkey”.

I have added 2nd view page url of my module to the client click of link button.

PopUpUrl:

“PopUpUrl” is a method of UrlUtils class present in DotNetNuke.Common.Utilities namespace. Prototype of PopUpUrl method is as below:

PopUpUrl(string url, Control control, PortalSettings portalSettings,bool onClickEvent,bool responseRedirct,int windowHeight, int windowWidth)

For more dnn api methods or options you can check below link:

http://www.dotnetnuke.com/Resources/Blogs/EntryId/3118/Tips-on-how-to-make-your-Module-Popup-Friendly.aspx

150 150 Burnignorance | Where Minds Meet And Sparks Fly!