Author: Sashkanz | Posted on: 8/14/2010 4:10:48 PM | Views : 277

My code works fine when running it on my pc, but when I uploading it to the server, I always get the same error, I can't delete file I have just assigned into imageurl.
However I able to delete it before using Image1.ImageUrl = sOldFileName; Somehow the server doesn't release sOldFileName after assignment it into imageurl.
Here is the code, it's a pop up that gets the a variable from another page as a QueryString.
The image blocks on the page load, before clicking the btnCrop_Click button.
 
public partial class PrivewWindow : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string sOldFileName = Request.QueryString["FileUpload1"]; sOldFileName = "images/images/" + sOldFileName + ".jpg"; Image1.ImageUrl = sOldFileName; } ...

Go to the complete details ...