niyasfairose
asked on
HTMLeditorextender encoding html during postback
Hi ,
I have an HTMLEditorExtender control in my page. But during postbacks, whatever the formatting and image, it encodes as HTML.
But I succeed half in giving the following in prerender event
txtEmailBody.Text = HttpUtility.HtmlDecode(txt EmailBody. Text);
But the image I uploaded as a preview, did not get decoded.
Any Help?
I have an HTMLEditorExtender control in my page. But during postbacks, whatever the formatting and image, it encodes as HTML.
But I succeed half in giving the following in prerender event
txtEmailBody.Text = HttpUtility.HtmlDecode(txt
But the image I uploaded as a preview, did not get decoded.
Any Help?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you want to produce an image tag with an incorrectly encoded url.
you have to write the html code yourself.
you have to write the html code yourself.
ASKER
Sorry, the actual thing is , the image is decoded but the image preview in Htmleditorextender is gone. How to set the image preview again in htmleditorextender
ASKER
Server.HtmlDecode(txtEmail
and
HttpUtility.HtmlDecode(txt
but the image is not decoded yet