Stanton_Roux
asked on
How do I submit HTML from a text box
Hi There
I have a multiline textbox that I am want to use to save html in the db that will be diplayed later as a divs innerhtml.
When I submit my for I get a ASP.Net error saying that potetially usafe content has been submitted.
How do I save html as not to get this message.
I have a multiline textbox that I am want to use to save html in the db that will be diplayed later as a divs innerhtml.
When I submit my for I get a ASP.Net error saying that potetially usafe content has been submitted.
How do I save html as not to get this message.
// Insert code
SkinMan.Code =txtCode.Text;//failing here
m_contentManager.SaveSkins(SkinMan);
//display code
dvLinks.InnerHtml = skinman.Code;
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://tldp.org/HOWTO/Secure-Programs-HOWTO/cross-site-malicious-content.html
You need to use htmlencoding in asp.net to prevent this message