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  |  

telerik -- supercharge your DNN websites
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
 


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

 


Intura Vision / Intura Enterprise
Point-of-Sale and business management applications targeted towards quick service, fast casual and delivery-based restaurant concepts.
www.intura.com
Dnaxp.Net
Dnaxp.Net offers a comprehensive base of information, resources, and support for DotNetNuke.
www.dnaxp.net
DNNMasters - modules, consulting, development
DNNMasters developers are involved in DNN development since DNN 1.0.9 and today we offer a broad range of DNN related products and services including custom development of modules, help with ing third party modules for specific needs, general DNN technical support and administrative services.
www.dnnmasters.com

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