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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUsing Popup To Show A CustomPage...Using Popup To Show A CustomPage...
Previous
 
Next
New Post
9/29/2011 6:09 PM
 
I must say...I have never had so much trouble finding information on how to accomplish something as I have the DNN Framework. I hope that someone here can fill in the gaps of knowledge.

I am trying to display a page I created in my Module using the new DNN 6.0 Popup box. I have the View.ascx, Edit.ascx, and Settings.ascx. What I did was created another controlpage and called it ProviderOptions_List.ascx.  I am trying to get that new controlpage I created to "Popup" when the user clicks a button within the Edit.ascx controlpage. But try as I might I can't seem to figure out how to do that.

Further Info on what I am trying to accomplish:
     I am trying to create a "Provider" record, and each provider has associated in it's record eight "lists". These lists are comma delimited. I have eight BUTTONs on the Edit.ascx controlpage that when clicked, should popup a window with a DNNDualList control showing the list of available items, and the list of already assigned items for the list that was selected. The use then can move across the items between the lists and submit the changes. Then (IDK how to do this part yet since I am stuck) I need to send the updated comma delimited list back to the Edit.ascx page so it can place it within the proper field so the use can then save the record and exit back to the View.ascx controlpage.

Hope that wasn't too confusing.  Please help!

Ben Santiago, MCP Certified & A+ Certified
Programmer Analyst
(SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet)
 
New Post
9/29/2011 7:06 PM
 
To get a page to function like a popup you need to add some additional code to module that configures the button as a popup action.

Basically u need to add an ONCLICK attribute to any button you want to function as a popup.

MyBUTTON.Attributes.Add("onclick", "return " + UrlUtils.PopUpUrl(url, this, PortalSettings, true, false, popupHeight, popupWidth));

Westa

 
New Post
9/29/2011 7:24 PM
 
Ok, now...how do I build the URL parameter?

strRedirectURL = ResolveUrl(Me.TemplateSourceDirectory & "/ProviderOptions_List.ascx")
OR
strRedirectURL = NavigateURL(TabId, "ProviderOptions_List")
OR
strRedirectURL = EditUrl("ProviderOptions_List")

OR something else I haven't yet discovered?

Ben Santiago, MCP Certified & A+ Certified
Programmer Analyst
(SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet)
 
New Post
10/3/2011 8:11 AM
 
Can anyone help me here? I still cannot get my custom controlpage to show in a popup form.

Help!

Ben Santiago, MCP Certified & A+ Certified
Programmer Analyst
(SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet)
 
New Post
10/3/2011 10:08 AM
 
I've tried so many URL encoding variations without success. The popup box appears then immediatly closes.

My Current Code:
strRedirectURL = EditUrl("ProviderOptions_List")
Me.cmdTrainings.Attributes.Add("OnClick", strRedirectURL)

I also added a [moduleControl] section to my .dnn file and I set the [supportsPopUps] to True

I don't know what else to try...

Ben Santiago, MCP Certified & A+ Certified
Programmer Analyst
(SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet)
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUsing Popup To Show A CustomPage...Using Popup To Show A CustomPage...


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