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...Open Core Testi...Open Core Testi...PortalModuleBase en control ascx dentro de otro ascxPortalModuleBase en control ascx dentro de otro ascx
Previous
 
Next
New Post
3/17/2011 10:43 AM
 
Hola a todos.

Tengo una duda muy grande con DNN y su clase PortalModuleBase.

He creado un control ascx el cual es llamado por medio del método.
Response.Redirect(DotNetNuke.Common.Globals.NavigateURL(TabId, "Control.ascx", "mid=" + ModuleId.ToString()));

Donde Control.ascx es el key del control ascx a invocar.

He creado otro control ascx el cual va dentro de este primer control ascx.

<@Control .................>    Control1
<@Register  TagPrefix="frm"  TagName="control2"  src="...........">    Registrar el control 2

<frm:control2 ..........>  Agregar al control1 el control2

Ambos controles heredan de PortalModuleBase.

Calss control1 : PortalModuleBase

Calss control2 : PortalModuleBase

Ahora, en el control1 aparecen asignadas las propiedades del PortalModuleBase tales como PortalId, UserId, TabId, etc...  Pero en control2 no aparecen asiganadas ninguna de esas propiedades, todas están con el valor de -1

Quiero saber como hacer para que un control ascx que este como control de otro ascx tome también los valores de las propiedades de la clase PortalModuleBase.
 
New Post
3/17/2011 1:51 PM
 
The Google Translate version:



Hello everyone.

I have a big doubt with DNN and PortalModuleBase class.

I created an ascx control which is called by the method.
Response.Redirect (DotNetNuke.Common.Globals.NavigateURL (TabID, "Control.ascx", "mid =" + ModuleId.ToString ()));

Where is the key Control.ascx ascx control to invoke.

I created another ascx control which goes into the first control ascx.

<@ Control Control1 .................>
<@ Register TagPrefix = "frm" TagName = "control2" src ="..........."> Control 2 Register

Add to control1 ..........>
Both controls inherit from PortalModuleBase.

Calss control1: PortalModuleBase

Calss control2: PortalModuleBase

Now, in the displayed control1 PortalModuleBase assigned properties such as portals, UserId, tabid, etc ... But asiganadas control2 not appear any of those properties, all are with the value of -1

I want to know how to have an ascx control this and control of another ascx take also the values ​​of the properties of the class PortalModuleBase.
 
New Post
3/17/2011 1:55 PM
 
Ivan,

Two questions:

Does this issue work in 5.6.x and not in 6.0?

Are you trying to embed a portal module inside another portal module? A control that derives from Portal Module Base meant to be loaded into the page by the skin. If it is embedded inside another control, the skin will not be aware of it and portal module specific bits will not be loaded correctly.
 
New Post
3/19/2011 1:49 AM
 
Just a reminder to Rule #6 for the forums.... 6. English language posting only, please.

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Open Core Testi...Open Core Testi...PortalModuleBase en control ascx dentro de otro ascxPortalModuleBase en control ascx dentro de otro ascx


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