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  |  

Vote for DotNetNuke as your choice for winner of this year's PackT Open Source CMS Award
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  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

Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
 


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/5/2008 1:17 PM
User is offline Tigris7
165 posts
9th Ranked


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

If I follow the tutorial at http://www.adefwebserver.com/DotNetNukeHELP/DNN_ShowMeThePages/

should I be able to add the code below and have it work? Cause it doesn't. Any suggestions?Skin.AddModuleMessage(this, "EmailSuccess", DotNetNuke.UI.Skins.Controls.ModuleMessage.ModuleMessageType.GreenSuccess);

DotNetNuke.UI.Skins.

 
New Post 2/5/2008 6:11 PM
User is offline Will Strohl
1331 posts
Orlando.DotNetNukeUG.Net/
6th Ranked




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

When you say "it doesn't work", do you see anything happen at all?


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/5/2008 6:32 PM
User is offline William Severance
742 posts
www.wesnetdesigns.com
7th Ranked






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

If you have wrapped the module control in an AJAX UpdatePanel or have enabled "Supports Partial Rendering" in the module's definitions, I don't believe that the module message will be shown - at least I havn't been able to get it to work either.


Bill, WESNet Designs
 
New Post 2/5/2008 6:50 PM
User is offline Will Strohl
1331 posts
Orlando.DotNetNukeUG.Net/
6th Ranked




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

Good catch!  That is absolutely true.  AJAX will not allow you to use that feature, and no errors/warnings will tell you about it.  You would need to add your own label inside the UpdatePanel to accomplish this.


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 5:42 AM
User is offline Tigris7
165 posts
9th Ranked


Re: DNN 4.5.3 Question about DotNetNuke.UI.Skins.Skin.AddModuleMessage 
Thanks for the response. I have done neither...it is not wrapped in an AJAX Panel and Partial Rendering is not checked in the definition. What I am trying to do is simple. Grab form values, generate an email, and give a response message. The email is sent but no message is displayed after clicking the button. I know I can use a label, but I had hoped to keep the message uniform with the portal. Below is the code for the button click:

protected void btnSubmit_Click(object sender, EventArgs e)

{

if (Page.IsValid)

{

fname = tbFname.Text;

lname = tbLname.Text;

addr1 = tbAddr1.Text;

addr2 = tbAddr2.Text;

city = tbCity.Text;

state = ddlState.SelectedValue.ToString();

postalcode = tbPcode.Text;

territory = tbTerr.Text;

country = ddlCountry.SelectedValue.ToString();

phone = tbTelephone.Text;

email = tbEmail.Text;

account = tbAcct.Text;

StringBuilder sb = new StringBuilder();

sb.Append("The following client requests to be added to the portal

");

sb.Append(fname + " " + lname + "
");

sb.Append(addr1 + "
" + addr2+ "
" + city + "
" + state + "
");

sb.Append(postalcode + "
" + territory + "
" + country + "
" + phone);

sb.Append("
" + email+ "
" + account);

String ReturnMsg = Mail.SendMail(email, "my@email.com", "", tbSubject.Text, sb.ToString(), "", "html", "", "", "", "");

if (ReturnMsg == "")

{

DotNetNuke.UI.Skins.Skin.AddModuleMessage(this, "EmailSuccess", DotNetNuke.UI.Skins.Controls.ModuleMessage.ModuleMessageType.GreenSuccess);

}

else

{

DotNetNuke.UI.Skins.Skin.AddModuleMessage(this, DotNetNuke.Services.Localization.Localization.GetString("EmailFailure", this.LocalResourceFile) + ReturnMsg, DotNetNuke.UI.Skins.Controls.ModuleMessage.ModuleMessageType.RedError);

}

}

}






 
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.

 


DotNetNuke Hosting Provider UK
UK leading DotNetNuke Hosting provider. Owned and operated by a Microsoft Gold Certified Partner.
www.DNN-Portals.co.uk
Alliance Systems & Programming Inc
Alliance is not just our name... it's how we do business. We partner with our clients, learning their business processes and standards and then applying our expertise to help them improve their workflow and profitability.
www.Alliancesys.com
Customer Connect
Customer Connect provides cutting edge solutions that deliver sales, marketing and customer service results.
www.customer-connect.com

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