Sign In  |  Register
 
 DotNetNuke Powered!
DotNetNuke Support Forums

AddLocalizedModuleMessage

Rate this topic:

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

AuthorMessages
tigris7
Posts:18



03/25/2008 10:02 AM  

While performig some custom functionality in admin/security/signin.ascx.vb, I am able to utilize method 'AddModuleMessage' in 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, 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

John Mitchell
Posts:2755



03/26/2008 12:24 PM  
Is your code being loaded as an actual module, or is it a part of some other code-behind or class library?
tigris7
Posts:18



03/26/2008 12:59 PM  

I am editing admin/security/signin.ascx.vb to look for a querystring parameter. If it is found and if some checks are passed, I redirect the user to the profile page where I simply want to display a module message that asks them to ensure the displayed email is correct.

I think the issue is that in admin/users/profile.acsx.vb there exists no 'MessagePlaceHolder' so Library\Components\Skins\Skin.vb, line 673 is 'Nothing'.

I tried adding a place holder to the profile page but still get the same result.

I think the skin is somehow supposed to find it or handle it. I am lost in this regard cause I don't understand how the skin works or how it is supposed to find the placeholder, but it does in admin/security/signin.ascx (where I don't see a message placeholder)

I hope I am making myself clear enough. All I want to do is use a message in admin/users/profile.acsx

Thanks for any insight,

Frank

John Mitchell
Posts:2755



03/26/2008 3:27 PM  
Right, the MessagePlaceHolder is added to the page when a Module is injected into the Skin.

The reason you don't see it on the Profile page is because that is an "Admin" module ( a module that uses ctl=modulename)

To add a message to that page you can use Skin.AddPageMessage
tigris7
Posts:18



03/26/2008 3:30 PM  
Really... wow, didn't know anything about the 'Skin.AddPageMessage'. Will try it out and let you know. Thanks!!
Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

Forums >DotNetNuke Support >General-DNN-Help > AddLocalizedModuleMessage



ActiveForums 3.7
Visit our Store for great DotNetNuke Modules and Skins
DNNMasters Sitemap/Google Sitemap 3.0

Item codeSM3-01
Price$29.00
Product Information 
DotNetNuke CSS NavMenu 3.3 (Developers)

Item codeCSSNM33DEV
Base Price$149.00
Product Information 
Snapsis PageBlaster 3.3.1 for DotNetNuke - Professional Edition

AuthorJohn Mitchell
Base Price$79.00
Product Information 
XDAkuna (Web 2.0 CSS XHTML Skin)

Item codeXDAkuna
AuthorNina Meiers
Price$49.00
Product Information