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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| 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? |
| Sponsored Links |
| |||
| 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 |
| |||
| 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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |