HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...DNN 4.5.3 Question about DotNetNuke.UI.Skins.Skin.AddModuleMessageDNN 4.5.3 Question about DotNetNuke.UI.Skins.Skin.AddModuleMessage
Previous
 
Next
New Post
2/5/2008 1:17 PM
 

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
 

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


These are my personal opinions and don't necessarily represent the views and opinions of DotNetNuke Corporation.
Will Strohl
Media Module Team Lead, User Groups Team Lead
Sales Engineer, DotNetNuke Corporation

DotNetNuke Blog | Find a DNN User Group | Media Module
Twitter: @WillStrohl LinkedIn: Will Strohl on LinkedIn

 
New Post
2/5/2008 6:32 PM
 

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
Team Lead - DotNetNuke Gallery Module Project
Extensions Forge Projects - UserExport, ContentDeJour, ePrayer and ImageEditorControl
 
New Post
2/5/2008 6:50 PM
 

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.


These are my personal opinions and don't necessarily represent the views and opinions of DotNetNuke Corporation.
Will Strohl
Media Module Team Lead, User Groups Team Lead
Sales Engineer, DotNetNuke Corporation

DotNetNuke Blog | Find a DNN User Group | Media Module
Twitter: @WillStrohl LinkedIn: Will Strohl on LinkedIn

 
New Post
2/6/2008 5:42 AM
 
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
 
Next
HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...DNN 4.5.3 Question about DotNetNuke.UI.Skins.Skin.AddModuleMessageDNN 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.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.