From: SourceForge.net <no...@so...> - 2010-06-09 03:43:03
|
Bugs item #2135999, was opened at 2008-09-29 13:17 Message generated for change (Settings changed) made by afm_44 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=782464&aid=2135999&group_id=151897 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open >Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Updating controls with Fileuploads Initial Comment: 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 jo...@wh... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=782464&aid=2135999&group_id=151897 |