Last post Apr 19, 2011 10:36 AM by Kiran Tailor
Oct 11, 2006 08:57 AM|sandeep_suryawanshi|LINK
in one my application i want to show content of html page without showing of its tag.
dim str as string
then i want on textbox only show asdf not display tag.
It is possible on page using response.write()
but i want it on textbox so i can edit the content of html.
how it is possible.
Plz help me Thanks in advance
Oct 11, 2006 09:12 AM|Jasson_King|LINK
You would need to create a custom textbox which can show complex HTML content to do that. Or, you could use WebBrowser control instead.
Oct 11, 2006 09:17 AM|satish_nagdev|LINK
check this might be useful for you.
http://www.standardio.org/article.aspx?id=193 - there's mistake i think instead of htmldecode htmlencode is used.
play around i think you should get the answere.
Oct 11, 2006 11:56 AM|sandeep_suryawanshi|LINK
Thanks for reply. Its very easy to write html content on page using response.write() method.
But i want to edit the html content, so it is not possible on page control for that purpose it is only textbox useful.
So sir plz send me sample code how to display html content on textbox without html tag.
Sandeep R. Suryawanshi
Oct 11, 2006 12:50 PM|satish_nagdev|LINK
you can write this way
text1.text = Server.HtmlDecode(your html text)
Oct 11, 2006 02:13 PM|mounir|LINK
in textBox you can't display without tag.
you must display use any other control for exemple : label.
then with this control (label) you can test your code it will be functionnal without Server.HtmlDecode
May 09, 2009 04:29 AM|rahulmandhare1|LINK
May 09, 2009 04:39 AM|venkatu2005|LINK
.how to show html formatted text in textbox?
Its not possible to show the html content in Textbox unless you have to use some thirdparty controls like
Freetextbox, FCKEditor.net , TinyMCE Editor control
May 09, 2009 04:48 AM|smartymca|LINK
Have u tried encoded format
May 09, 2009 11:46 AM|rahulmandhare1|LINK
actually i solved this problem.I wanted to show some text with HTML tags in textbox.buts with encoding it shows only text,HTML tags are not applied.For Label control HTML tags works properly.Textbox is multiline and label control is Not multiline.So i made
Label control Multiline and its work like Textbox with proper HTML Format.Below is the code:
Label lbl=new Label();
lblread.Text = lbl.Text.Replace(
// control multilene[:D]
Now u can use label as a rich textbox in asp.net
reply me email@example.com
Now my label shows particular text in bold format also as multiline.Check it.
Apr 19, 2011 10:36 AM|Kiran Tailor|LINK
The best way is to display html content in ajax htmleditor only. The thing you need to do is override htmleditor's FillTopToolbar() and FillBottomToolbar() with no HtmlEditor.ToolbarButton.
I have done that and working fine for me.