IT Community - Software Programming, Web Development and Technical Support

how to assign html Content to RichText as a Normal Text?

This is a discussion on how to assign html Content to RichText as a Normal Text? within the ASP and ASP.NET Programming forums, part of the Web Development category; hi, I m retrieving html content from DB and i want to assign to the editor window.But if i ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 03-07-2008, 09:01 PM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile how to assign html Content to RichText as a Normal Text?

hi,
I m retrieving html content from DB and i want to assign to the editor window.But if i do this i cant able to assign becoz we can assign normal text and then only we can format the text in editor... Any other way to assign this?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-08-2008, 02:00 AM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 332
KiruthikaSambandam is on a distinguished road
Default Re: how to assign html Content to RichText as a Normal Text?

hi

U can use this function

private string StripTags(string HTML)
{
// Removes tags from passed HTML
System.Text.RegularExpressions.Regex objRegEx = new System.Text.RegularExpressions.Regex("<[^>]*>");

return objRegEx.Replace(HTML, "");
}

Thanks
KiruthikaSambandam
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-10-2008, 02:46 AM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: how to assign html Content to RichText as a Normal Text?

Hi kiruthika,
Thanks....
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-10-2008, 03:15 AM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: how to assign html Content to RichText as a Normal Text?

Hi,
U can do it in this way also.
If u r retrieving data from DB,store it in a variable.
var elem=document.getElementById("messageTextBox").val ue;
elem.style.display=false;


now u pass the 'elem' value to richTextEditor.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to do wordwrap the HTML content using javascript? ramkumaraol PHP Programming 9 11-22-2007 07:12 AM
how to assign info to a blank array? S.Vinothkumar Ruby 2 11-20-2007 02:48 AM
How to do wordwrap the HTML content using javascript? ramkumaraol PHP Programming 0 11-14-2007 04:01 AM
How to convert the Normal PDF to protected PDF in Asp.net?(i.e user should save the p bluesky ASP and ASP.NET Programming 0 07-16-2007 12:27 AM
How to create html from the content of the textbox? Balasubramanian.S C# Programming 4 03-29-2007 08:30 AM


All times are GMT -7. The time now is 08:39 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0