I have made a form, for creating nodes through Contour.
I want to be able to send html-data to a richtext editor on the node, but Contour stops me warning about dangerous values. Is there something I can do, to let it through?
That's probably because by default it's not possible to submit html and other code in forms when using .NET. It can be disabled but that opens up for possible exploits etc.
I think you should be able to use the HTML agility pack, which I think is already included in the /bin folder if I remember correctly. Try having a look at it here http://htmlagilitypack.codeplex.com/
Could you provide the error message just so I can be sure that the answer I provided is proper for solving the issue?
And now you know what to search for where you will get much more useful results in order to finding a solution if the html agility pack did not solve it already? :)
Sending HTML data through Contour form
I have made a form, for creating nodes through Contour.
I want to be able to send html-data to a richtext editor on the node, but Contour stops me warning about dangerous values. Is there something I can do, to let it through?
Hi Søren
That's probably because by default it's not possible to submit html and other code in forms when using .NET. It can be disabled but that opens up for possible exploits etc.
I think you should be able to use the HTML agility pack, which I think is already included in the /bin folder if I remember correctly. Try having a look at it here http://htmlagilitypack.codeplex.com/
Could you provide the error message just so I can be sure that the answer I provided is proper for solving the issue?
/Jan
Hi Jan
Thanks for your help.
I get this error message, it's in danish, but you should be able to understand it :)
Hi Søren
Ahh, ok - It's the error I suspected it would be. For none danes it's the "Potential dangerous request.form value was detected" - There is an old thread about it here as well http://our.umbraco.org/forum/using/ui-questions/12859-A-potentially-dangerous-RequestForm-value-was-detected
And now you know what to search for where you will get much more useful results in order to finding a solution if the html agility pack did not solve it already? :)
/Jan
Changing the web.config didn't work.
What can I do with Html Agility Pack?
is working on a reply...