This question is locked. New answers and comments are not allowed.
I am using Telerik MVC Extensions Upload control for uploading an Image. An Image tag is used with "src" property "ControllerName/actionName". Code is below:
on upload i change the binary data of the image in session object with newly uploaded image and on "displayTempSuccess
" method i change the image source. In all the browsers the new image is getting displayed but in IE 9.
I monitored the server calls, in all browsers the /Recipe/GetImage call is firing for second time but IE 9.
@(Html.Telerik().Upload() .Name("attachments") .Multiple(false) .ShowFileList(false) .ClientEvents(events => events .OnSuccess(@<text> function(e) {displayTempSuccess(e);}</text>) .OnUpload(@<text>function (e){ telerikUpload(e)}</text>) ) .Async(async => async.Save("Save", "Recipe") .AutoUpload(true)) )" method i change the image source. In all the browsers the new image is getting displayed but in IE 9.
I monitored the server calls, in all browsers the /Recipe/GetImage call is firing for second time but IE 9.
function displayTempSuccess(e) { $('#yourImageId').removeAttr("src"); $('#yourImageId').attr('src', '../Recipe/GetImage'); }