HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...DNN 4.5.3 Question about DotNetNuke.UI.Skins.Skin.AddModuleMessageDNN 4.5.3 Question about DotNetNuke.UI.Skins.Skin.AddModuleMessage
Previous
 
Next
New Post
2/6/2008 7:12 AM
 

Your code looks pretty straightforward.  Have you tried debugging your module?


These are my personal opinions and don't necessarily represent the views and opinions of DotNetNuke Corporation.
Will Strohl
Media Module Team Lead, User Groups Team Lead
Sales Engineer, DotNetNuke Corporation

DotNetNuke Blog | Find a DNN User Group | Media Module
Twitter: @WillStrohl LinkedIn: Will Strohl on LinkedIn

 
New Post
2/6/2008 10:18 AM
 

I have debugged it and noticed that when it gets to Library\Components\Skins\Skin.vb, line 673, 'MessagePlaceHolder' Is Nothing, so the message doesn't get added... See code below.

Is the MessagePlaceHolder something I have to add to my module? If so, how do I do that? 



Public Shared Sub AddModuleMessage(ByVal objPortalModuleBase As Entities.Modules.PortalModuleBase, ByVal Heading As String, ByVal Message As String, ByVal objModuleMessageType As UI.Skins.Controls.ModuleMessage.ModuleMessageType)
If Not objPortalModuleBase Is Nothing Then
If Message <> "" Then
Dim MessagePlaceHolder As PlaceHolder = CType(objPortalModuleBase.Parent.FindControl("MessagePlaceHolder"), PlaceHolder)
If Not MessagePlaceHolder Is Nothing Then
MessagePlaceHolder.Visible = True
Dim objModuleMessage As UI.Skins.Controls.ModuleMessage
objModuleMessage = GetModuleMessageControl(Heading, Message, objModuleMessageType)
MessagePlaceHolder.Controls.Add(objModuleMessage)
'CType(objPortalModuleBase.Page, CDefault).ScrollToControl(MessagePlaceHolder.Parent) 'scroll to error message
End If
End If
End If
End Sub
 
New Post
2/6/2008 10:33 AM
 

No.  The DNN core does that for you.


These are my personal opinions and don't necessarily represent the views and opinions of DotNetNuke Corporation.
Will Strohl
Media Module Team Lead, User Groups Team Lead
Sales Engineer, DotNetNuke Corporation

DotNetNuke Blog | Find a DNN User Group | Media Module
Twitter: @WillStrohl LinkedIn: Will Strohl on LinkedIn

 
Previous
 
Next
HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...DNN 4.5.3 Question about DotNetNuke.UI.Skins.Skin.AddModuleMessageDNN 4.5.3 Question about DotNetNuke.UI.Skins.Skin.AddModuleMessage


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.