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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0AddModuleMessage does not display messageAddModuleMessage does not display message
Previous
 
Next
New Post
9/3/2009 7:06 PM
 

When I call "AddModuleMessage", a message is not displayed above the module. I am not in edit mode and have played with turning the container off and on.

This is my code:

UI.Skins.Skin.AddModuleMessage(Me, Services.Localization.Localization.GetString("MaxRegistrationReached.Text", Me.LocalResourceFile), DotNetNuke.UI.Skins.Controls.ModuleMessage.ModuleMessageType.YellowWarning)

Any ideas what would cause the message to be supressed?

Thanks.

 
New Post
9/3/2009 8:23 PM
 

There have been some issues with AddModuleMessage when "Supports Partial Rendering" has been enabled on the module control or you are making use of AJAX update panels. What version of DNN are you developing within and at what point in the page life-cycle are you calling AddModuleMessage?


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
9/5/2009 6:49 AM
 

Thanks for the quick reponse.

"Supports Partial Rendering" is unchecked for this control.

The DNN version is 4.8.2.

AddModuleMessage is called during the Page_Load event. As soon as AddModuleMessage is called, the subroutine is exited.

Any other ideas?

 
New Post
9/5/2009 5:13 PM
 

Here are a couple of other things to check:

1. You are calling the AddModuleMessage method from a module control (and not a child user control or .aspx page) and the module control inherits from PortalModuleBase.

2. You are certain that the Localization.GetString method is not returning an null or empty string.

3. You are not trying to display the message during an AJAX async postback or an ASP.Net 2 callback? The AddModuleMethod will not work except when called during a full postback.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0AddModuleMessage does not display messageAddModuleMessage does not display message


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