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  |  

PortalWebHosting
  Ads  
OnyakTech
 


  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...  Extend It! ( Pr...  How do you get the HTML entered in the DNN TextEditor control?
Previous Previous
 
Next Next
New Post 5/26/2006 8:05 AM
User is offline Andrew Hawes
57 posts
www.fish4him.net
10th Ranked


How do you get the HTML entered in the DNN TextEditor control? 

Ok, I know this has to be simple, but I'm just not finding what I need. I added a DNN TextEditor control to my module. It works great, but now I want to get the HTML that the control produces. From looking at other source files it seems as though I would just look at the .Text property. But that does not contain what I typed into the control. What am I doing wrong? How do you get what the user entered into the control?

Thanks

 
New Post 5/30/2006 10:24 AM
User is offline Andrew Hawes
57 posts
www.fish4him.net
10th Ranked


Re: How do you get the HTML entered in the DNN TextEditor control? 
Anyone? anyone?
 
New Post 5/30/2006 11:35 AM
User is offline Dwayne Baldwin
520 posts
8th Ranked




Re: How do you get the HTML entered in the DNN TextEditor control? 

Right out of DNN LiIbrary Controls/TextEditor.vb - Basic values are text/html/raw or rich text...

'Gets/Sets the Text of the control

Public Property Text() As String

Get

If optView.SelectedItem.Value = "BASIC" Then

Select Case optRender.SelectedItem.Value

Case "T"

Text = Encode(formatHtml(txtDesktopHTML.Text))

Case "R"

Text = txtDesktopHTML.Text

Case Else

Text = Encode(txtDesktopHTML.Text)

End Select

Else

Text = Encode(RichTextEditor.Text)

End If

End Get

I hope this is of some help to you.


Dwayne J. Baldwin
 
New Post 5/30/2006 3:34 PM
User is offline Andrew Hawes
57 posts
www.fish4him.net
10th Ranked


Re: How do you get the HTML entered in the DNN TextEditor control? 

Thanks, but I'm still having a problem.

If I have the basic editor selected, then the .Text property does contain the correct text, but as soon as I change to Rich Text editor the .Text property of the DNN TextEditor control is cleared out/blank. What am I doing wrong?

Here is the code on my ASCX:

<dnn:texteditor id="txtHTML" runat="server" width="100%" height="300"></dnn:texteditor>

Now here is the code I am using in my Page_Load just to see what is stored in the txtHTML control.

lblDebug.Text = txtHTML.Text

No matter what I do, I can't get anything to display when I have the control in RichText mode.

????

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  How do you get the HTML entered in the DNN TextEditor control?
 


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.

 


Web Development and Strategy Firm
The Risdall Interactive Agency s websites, strategies, branding, & promotion in digital space.
www.Risdall.net/
Windsor Management Group
Fund Accounting Software for K12 Education.
Infinitevisions.com
Convert Visitors to Customers
In order to bring value to your users, we must first understand them. VIVIDSITES will help you build a custom web application and interactive marketing tools that your users will thank you for. We marry high-end creative with head banging technology to entertain and convert visitors into paying customers. Call 314.514.0505 or visit us at http://www.vividsites.com to find out how.
- V I V I D S I T E S -

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