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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Where is HtmlTextController in 4.8.4Where is HtmlTextController in 4.8.4
Previous
 
Next
New Post
10/24/2008 5:27 AM
 

Hi.

I am trying to add data to a HTML/Text controller programaticly. I have looked inside DesktopModules/HTML/EditHtml.ascx.vb, and here is the code:

DotNetNuke.Modules.HTML.HtmlTextController objHTML = new DotNetNuke.Modules.HTML.HtmlTextController();
DotNetNuke.Modules.HTML.HtmlTextInfo objText = new DotNetNuke.Modules.HTML.HtmlTextInfo();
// set content values (new module ID, encoded HTML, etc.)
objText.ModuleId = intModID;
objText.DeskTopHTML = Server.HtmlEncode("<h1>Hello World!</h1><p>Successful new module.</p>");
//objText.DesktopSummary = txtDesktopSummary.Text;
objText.CreatedByUser = Me.UserId;
// save the content
objHTML.AddHtmlText(objText);

I have added the DotNetNuke.dll to my project, and I cannot find the DotNetNuke.Modules.Html.dll, I have heard that it is incluced into the source now.

But when I try this, the HTML part of the namespace is not recognized. And the only namspace I can find is the DotNetNuke.Modules.HTMLEditorProvider, but I haven't been able to find any examples using this class, the HtmlEditorProvider.

So can anyone tell me how to accomplish something similar to the code above?

Best regards
Vidar

 
New Post
10/24/2008 6:13 AM
 

Text/HTML is a WSP module now, classes code resides inside /App_code/HTML folder.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/24/2008 6:45 AM
 

Does this mean I cannot access the methods for this module inside my project?

-vidar-

 
New Post
10/24/2008 6:52 AM
 

you should be able, like the Text/HTML module does itself


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/24/2008 6:59 AM
 

Aha, I see. Found it now.

But since my project is a Private Assembly, and I do not have a reference to that folder, do you know if there is a way to access this?

-vidar-

 

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Where is HtmlTextController in 4.8.4Where is HtmlTextController in 4.8.4


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