Send Html content from browser to asp.net code behind

Mar 16 2012 2:43 AM
Hi Friends,

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:

A potentially dangerous Request.Form value was detected from the client (hdValue="<span style="color: ...").

Could any one please tell me how to send the html content form browser to asp.net code behind (after wards it can be saved in database)

please tell me if any other way...





Answers (4)