Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...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 5: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 10:11 PM
 

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


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
2/5/2008 10: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 (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
2/5/2008 10: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.


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
2/6/2008 9: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 DNN Platf...Using DNN Platf...Administration ...Administration ...DNN 4.5.3 Question about DotNetNuke.UI.Skins.Skin.AddModuleMessageDNN 4.5.3 Question about DotNetNuke.UI.Skins.Skin.AddModuleMessage


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out