I am creating an imagebutton dynamically and I am pointing the imageurl to the image handler.this imagebutton is in a for loop and so the images should be displayed dynamically based on query string.\[code\] img.ImageUrl = "TopicImageHandler.ashx?threadCode=" + i.ToString();\[/code\]The code in my Topic image handler is as follows.\[code\]public void ProcessRequest(HttpContext context){ context.Response.Cache.SetCacheability(HttpCacheability.NoCache); string threadCode = Convert.ToString(context.Request.QueryString["threadCode"]); int thread = Convert.ToInt32(threadCode); string postedTimeAsString = HttpContext.Current.Session["postedTime"].ToString(); DateTime postedTime = Convert.ToDateTime(postedTimeAsString); byte[] image = Objects.GetImageForPostedTopic(thread,HttpContext.Current.Session["topicOwner"].ToString(),postedTime); context.Response.ContentType = "image/jpeg"; context.Response.BinaryWrite(image);}public bool IsReusable{ get { return true; }}\[/code\]But the image which id being displayed is the last image of the corresponding loop index and all the images are overwritten with this image.Am I missing something?