- status: open --> open-accepted
I am using the fileupload control which once an image is upload then updates a repeater to show the new image along with any existing images. As part of the repeater is a anthem:button with the following Command attributes:
CommandArgument='<%# DataBinder.Eval(Container.DataItem, "FullImage") %>' CommandName="removeimage"
This used to work fine in .Net 1.1 but I have now upgraded the project to .Net 2.0 and the WebForm_DoPostBackWithOptions code generated by .Net 2.0 causes problems with Anthem when using the IOFrame for the file upload. Basically the WebForm_DoPostBackWithOptions code looks like this as the reponseText in the Anthem.js
onclick=\"javascript:Anthem_FireCallBackEvent(this,event,'vehicleImages$currentImages$ctl01$test','',true,'','','',true,null,null,null,true,true);return false;WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("vehicleImages$currentImages$ctl01$test", "", true, "", "", false, false))\"
Notice the lack of backslashes in the function. Ideally the double quotes should be replaced with single quotes. To add to this the server side version of this response looks like this
onclick=\\\"javascript:Anthem_FireCallBackEvent(this,event,'vehicleImages$currentImages$ctl01$removeImage','',true,'','','',true,null,nu
ll,null,true,true);return false;WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("vehicleImages$currentImages$ctl01$removeImage", "", true, "", "", false, false))\\\"
So I'd recommend that within the Anthem.Manager class a replace such as:
response = response.Replace("quot;", "'");
be added to the IOFrame response. (Line 2171).
My email address is john@white-agency.co.uk