Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Affordable ASP.NET Hosting Service
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
The best choice for your web site host, email hosting, and domain registration.
 


  Sponsors  

Meet Our Sponsors

SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  DNN 4.5.3 Question about DotNetNuke.UI.Skins.Skin.AddModuleMessage
Previous Previous
 
Next Next
New Post 2/6/2008 6:12 AM
User is offline Will Strohl
1280 posts
www.strohlsitedesign.com/
6th Ranked


Re: DNN 4.5.3 Question about DotNetNuke.UI.Skins.Skin.AddModuleMessage 

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


Will LinkedIn profile
StrohlSiteDesign.com | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
New Post 2/6/2008 9:18 AM
User is offline Tigris7
163 posts
9th Ranked


and noticed that when it gets Re: DNN 4.5.3 Question about DotNetNuke.UI.Skins.Skin.AddModuleMessage 

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 9:33 AM
User is offline Will Strohl
1280 posts
www.strohlsitedesign.com/
6th Ranked


Re: and noticed that when it gets Re: DNN 4.5.3 Question about DotNetNuke.UI.Skins.Skin.AddModuleMessage 

No.  The DNN core does that for you.


Will LinkedIn profile
StrohlSiteDesign.com | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  DNN 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.

 


CrystalTech
CrystalTech Web Hosting™ provides first-class service and support. Our value-packed ASP.NET plans offer DNN installation, SQL 2005 and up to 100 domain names starting at only $16.95 per month!
CrystalTech.com
DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult
DocuPeak Business Process Management RAD
Comprehensive enterprise and government process management. Forms, documents, indexing, workflow, views, content intelligence, capture, etc. Point and click rapid application development.
www.Webiplex.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP