How to save submit .net control containing script/html contents
Posted on 2009-07-07
How can I save string data from a .net html control into a database using the stock html controls (textbox, textarea, etc)? The controls error out when I submit the page and the contents of the control contain html markup ( <br> tags, etc.). Ideally, I would like to be able to craft and save and HTML form and associated input controls from a webpage using a textarea or something like that. I understand why .NET does not allow this by default (for good reason), but is there a way around it using just stock .NET html controls. If not, does anyone know of a third party control (such as freetextbox) that can be made to allow this?
using asp.net 1.1