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
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  DNN 4.5.3 - AddLocalizedModuleMessage
Previous Previous
 
Next Next
New Post 3/25/2008 10:16 AM
User is offline Tigris7
165 posts
9th Ranked


DNN 4.5.3 - AddLocalizedModuleMessage 

 While performing some custom functionality in admin/security/signin.ascx.vb, I am able to utilize method 'AddModuleMessage' in the PrivateMethods section.

However, when attempting more custom functionality in admin/users/profile.acsx.vb, if I import DotNetNuke.UI.Skins.Controls.ModuleMessage and then copy and paste the PrivateMethods section from signin.acsx.vb into profile.acsx.vb, the customized message never appears.

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...

I have asked this elsewhere but with no good answer yet

(see http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/108/threadid/202839/scope/posts/threadpage/2/Default.aspx)

Thanks in advance for any help,

Frank

 
New Post 3/25/2008 11:48 AM
User is offline Tigris7
165 posts
9th Ranked


Anyone?Re: DNN 4.5.3 - AddLocalizedModuleMessage 

Anyone?...

 
New Post 3/25/2008 12:15 PM
User is offline Brandon Haynes
701 posts
brandonhaynes.org
7th Ranked


Re: DNN 4.5.3 - AddLocalizedModuleMessage 

Hi Frank,

As you notice, the AddModuleMessage method is looking for a MessagePlaceHolder asp:placeholder servercontrol.  This placeholder must exist in a very specific location (as I recall it must be in the controls collection of the callee's parent, but I may be mistaken).  If the placeholder is not located, the AddModuleMessage call fails silently.  Certainly not the best way of doing things, eh?

So, to solve your problem you're going to need to add a asp:placeholder servercontrol with ID MessagePlaceHolder in the control you are modifying.  Look for this control in the signin.ascx markup and add it to your profile.ascx control.

As this is a bit of a kludge, you might consider opening up a support ticket in Gemini suggesting some improvements.  First on the list would be to not fail silently!

Hope this helps,

Brandon


Brandon Haynes
BrandonHaynes.org
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  DNN 4.5.3 - AddLocalizedModuleMessage
 


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.

 


Expressnet - DotNetNuke Hosting
Expressnet provide premium quality ASP.NET Web Hosting. We specialise in Windows based products including ASP.NET and Microsoft SQL Server. We offer fantastic value packages for DotNetNuke hosting. We also offer free asp.net web hosting
www.expressnet.com.au
Softech Development, Inc.
We help your business work smarter with DotNetNuke. Whether you need a new implementation, a custom module or skin for an existing implementation, or integration with your business processes, Softech has the experience and expertise to make it happen.
www.softechdevelopment.com
Module Development by Engage Software
Specializing in custom module development, training and skinning.
www.engagesoftware.com

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