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...Getting StartedGetting StartedCanCan't get the dnn 6 popup to pop using a server side code.
Previous
 
Next
New Post
7/28/2011 5:47 AM
 
My senario is like this. I'm working on a cinema module in which there are view movie, edit movie and settings control. when I used to work in dnn5.x, In my viewmoive control I was using a dnn:CommandButton to fire an edit command. On the code behind if the fired event form the grid is an edit i will use response.redirect method to redirect to  the edit control. So, what I'm looking for is I just wanna keep using the dnn:commandbutton and the edit command that it's firing on the codebehind. with this in mind, when the edit command fires I just wanna make the popup to pop and show the edit form for that specific item from the code behind. Anyways, to do that.....?
Plz help me asap as I've to deliver the full module in 2weeks.
N.B: I'm using dnn:CommandButton and a server side code
 
New Post
7/28/2011 8:48 AM
 
The popup feature in dnn600 is based on a client side javascript call - as such it needs to be triggered from a client side onClick action.

To make this work you would need to change the way your module works a bit.

this is the basic structure of how the call needs to look:

<a onclick="return dnnModal.show('path to your module.aspx&amp;popUp=true',/*showReturn*/true,600,950)" href="path to your module.aspx">Login</a>

the url u pass to this module needs to point to your module with a mid= and/or ctl= parameter  - that will ensure that ONLY the module and not any other modules on the page are loaded into the popup.

Alternatively - for example this is a sample of how the HTML module Edit Content action causes the edit content to open in a popup window.

<a href=" if(dnnModal.show('http://dnn600.local/AppleSkin/tabid/102/ctl/Edit/mid/444/Default.aspx?popUp=true',/*showReturn*/true,550,950)){__doPostBack('dnn$ctr444$ctl00$actionMenu$ctlactionMenu','3')};">Edit Content</a>

wESTA
 
New Post
4/27/2012 5:23 AM
 

Update: I've fixed the issue by enabling the popup in the module extensions for that control.  It pops as it should now.

Hi,

I can't get a popup to show using the following VB.NET code:

Dim url As String = "http://localhost/mymarketinghub/MemberDashboard/MySnippets.aspx"

            SnippetsButton.Attributes.Add("onclick", "return " + UrlUtils.PopUpUrl(url, Me, portalSettings, True, False))

Nothing happens at all and there are no errors when I debug.

Can you help?


 
New Post
4/30/2012 5:38 AM
 

HI

Have you tried to use NavigateUrl method in order to get the correct url. For example :

Globals.NavigateURL("popupkey", "mid=" + this.ModuleId) where popupkey is the key name of my module control page (view type).

 

Thanks
Sibabrata
Mindfire Solutions

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedCanCan't get the dnn 6 popup to pop using a server side code.


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