Last post Nov 15, 2016 04:32 AM by wowmayur_11
Aug 26, 2016 12:32 PM|wowmayur_11|LINK
I am inserting an image into textbox and saving into database it is working perfectly but when I am trying to load date in text box cross 'x' image is shown.
before insert html '<img src="/QuestionImage/B1811B39125237C66EBF3B61CA424213.png">'
after load html '<img src="&amp;#x2F;QuestionImage&amp;#x2F;B1811B39125237C66EBF3B61CA424213&amp;#x2E;png">'
I am using latest ajaxcontroltoolkit Verson 22.214.171.124
Aug 29, 2016 10:33 AM|Yohann Lu|LINK
According to your description , I found your image URL is incorrect format when after reload your page. So, I suspect the url value is incorrect when you save the picture into the database.
I suggest you can check your application as the following options.
1. Check URL value, whether contained some useless char when you save image in database;
2. I use the function of Server.HtmlDecode to escape the url , remove useless char , then translate url , it will show correctly.
string ff = Server.HtmlDecode("&#x2F;QuestionImage&#x2F;B1811B39125237C66EBF3B61CA424213&#x2E;png");
Aug 30, 2016 10:56 AM|wowmayur_11|LINK
Thank for reply
You are missing img tag.
Value is store in database after encoding.
value is return by htmleditorextender is '<img src="&amp;#x2F;QuestionImage&amp;#x2F;B1811B39125237C66EBF3B61CA424213&amp;#x2E;png">'
to store in database I am performing Server.HtmlEncode(txtText.Text)
and to display txtText.Text=Server.HtmlDecode(value).
Aug 31, 2016 02:46 PMemail@example.com|LINK
According to your description , As far as I know this issue is appearing when you save the URL of an image in the database , maybe caused by messy code happened in translate code . you can try to reset the charset to UTF-8 or others . if it doesn't solve
your problem , please give me more detail code .
Sep 03, 2016 10:55 AM|wowmayur_11|LINK
Thank for reply.
not working same problem.
// to display save value
for now there is only image in text box.
Nov 15, 2016 04:32 AM|wowmayur_11|LINK
I have try online on below link
when I upload Image I am able to see the image when I click on submit content then I image is not visible.
Before any suggestion please try it thank.