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 StartedMy discovery.My discovery.
Previous
 
Next
New Post
3/22/2011 4:24 PM
 

Versión of Google Traductor.

Hi, me again.

I am using DNN version 5.6.0 (459)

This happens: I have a user control (ascx) Control1 and let's call this class inherits PortalModuleBase DNN, which has access to different properties like DNN ModuleId, PortalId, TabId, PortalSettings, etc ...

Now, in Control1 want to add another user control, let's call Control2 also inherits from PortalModuleBase to access their properties.

Classs Control1 : PortalModuleBase


Properties:

- ModuleId = 524
- PortalId = 1
- PortalSettings = {PortalSettings}
- UserId = 26
- UserInfo = {UserInfo}
- PortalAlias = {PortalAlias}
- etc....

Classs Control2 : PortalModuleBase


Properties:

- ModuleId = -1
- PortalId = -1
- PortalSettings = null
- UserId = -1
- UserInfo = null
- PortalAlias = null
- etc....

As you can see these is what happens, the container Control1 Control2 and both inherit from PortalModuleBase, but Control1 are assigned values ​​in the properties while Control2 not, for example Control1.ModuleId = 524 while Control2.ModuleId =- 1 even when they are in the same module, and I want to know is how to have all the properties that are inherited from PortalModuleBase that are loaded into Control1 Control2 are also charged.

Until now I could do to fix this was assigned to the property ModuleConfiguration of Control2 Control1 the same property in the Page_Load event.

Classs Control1 : PortalModuleBase

protected void Page_Load(object sender, EventArgs e)
{
    Control2.ModuleConfiguration = this.ModuleConfiguration;
}

Classs Control2 : PortalModuleBase


Properties:

- ModuleId = 524
- PortalId = 1
- PortalSettings = {PortalSettings}
- UserId = 26
- UserInfo = {UserInfo}
- PortalAlias = {PortalAlias}
- etc....


Thus take control Control2 Control1 control properties.

 
New Post
5/16/2011 4:34 PM
 
Hey, Ivan:
Today I ran into the same problem and found your post. Man, you saved me a lot of time. Thanks.

Han
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedMy discovery.My discovery.


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