Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...How to open a popup window from my ascx moduleHow to open a popup window from my ascx module
Previous
 
Next
New Post
1/31/2011 6:40 PM
 
I'm developing a dnn module and I used a template for this.
I have my module.ascx and I want to open a popup window. How would I do this?

I tried these from my code behind but it doesn't work:
1. ScriptManager.RegisterClientScriptBlock(this.Parent, this.Parent.GetType(), "showPopup", "window.open('http://www.google.com')", true );
2. Response.Write("<script>window.open('" + url + "');</script>");

I'm calling the popup window during an imagebutton onclick and I need to process some arguments.
 
New Post
1/31/2011 8:11 PM
 
Ooops. My popup blocker in chrome is turned on and Chrome doesn't even alert me that it's blocking the popup. It's all good now. The problem now is I can't open my aspx from the DNN module. It looks like it can't interpret the aspx even though it's on the same level of the control. How would I got about it. It's just an aspx page used as a popup for image preview.
 
New Post
1/31/2011 8:27 PM
 
This call works fine: Response.Write(" "); but this call does not: Response.Write(" "); It cannot reference a physical file on the Module Directory.
 
New Post
1/31/2011 9:13 PM
 
This call works fine: Response.Write("http://www.google.com"); but this call does not: Response.Write("ImagePreview.aspx"); It cannot reference a physical file on the Module Directory.
 
New Post
1/31/2011 9:44 PM
 
sigh... I've been playing around NavigateUrl but it looks like this is used for friendly URLs. I just want to call my own aspx page... Really need some help on this one.

private string GetImagePreviewUrl()
{
//DotNetNuke.Common.Globals.NavigateURL(333;
TabController tabController = new TabController();
TabInfo tabInfo = tabController.GetTabByName("ImagePreview.aspx", PortalId);
return DotNetNuke.Common.Globals.NavigateURL(tabInfo.TabID);
}
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...How to open a popup window from my ascx moduleHow to open a popup window from my ascx module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out