B
Bob
Hi,
The user has to enter text in a textbox. He also must be able to enter html
code like <a href="..."> or <b>... </b>. But also possibly the characters <
(lesst than) and > (greater than). The page has its ValidateRequest="false".
The problem is that the textbox automatically removes the < and the > and
the text between (e.g. <this will be erased> does not appear on the page).
One possibility is this:
txt = TextBox1.Text
txt = txt.Replace("<", "<")
This works: the < and > are now visible on the page, but then, the html tags
doesn't work anymore: i get e.g. <a href="..."> on the page, but it's not
clickable anymore.
So my problem is: how to get at the same time for the same textbox the
non-html codes < and > together with the html codes?
Thanks for help.
Bob
The user has to enter text in a textbox. He also must be able to enter html
code like <a href="..."> or <b>... </b>. But also possibly the characters <
(lesst than) and > (greater than). The page has its ValidateRequest="false".
The problem is that the textbox automatically removes the < and the > and
the text between (e.g. <this will be erased> does not appear on the page).
One possibility is this:
txt = TextBox1.Text
txt = txt.Replace("<", "<")
This works: the < and > are now visible on the page, but then, the html tags
doesn't work anymore: i get e.g. <a href="..."> on the page, but it's not
clickable anymore.
So my problem is: how to get at the same time for the same textbox the
non-html codes < and > together with the html codes?
Thanks for help.
Bob