Iam using iframe control to enter some data and to format the data to bold,italic etc....
and i want to store the formatted data in the database for that i want to store the html content of the iframe control instead of data, so that the text will be saved with all it's formats(bold, italic,textcolor etc....)
So to access the innerHtml of the iframe in asp.net code behind i have assigned the iframe innerhtml to asp:HiddenField using javascript and posted back the page but it is giving error like bellow:
SenthilkumarPosted Mar 16, 2012, 3:20 AM
Hope this will you to fix the issue.
If this post helps you to fix then mark it as "Accepted Answer"
Pramod Kumar NandagiriPosted Mar 17, 2012, 9:25 AM
i got same problem if i try to encode the large amount of data using javascript, then i tried u r solution and it has worked fine...
thank u very much...
Pramod Kumar NandagiriPosted Mar 16, 2012, 10:43 AM
I have encoded the text in iframe contorl and assigned it to the
this time no error has come and i decoded the value of
Thank you for u r replies, i didn't try u provided ways now..
chirag pandyaPosted Mar 16, 2012, 3:12 AM
Please check following link you will get your answer.
http://www.codeproject.com/Tips/297679/A-potentially-dangerous-Request-Form-value-was-det