your code have Response.Redirect after set picture to imgLocationMap. how you would expect imgLocationMap reload being?
On Wed, Jan 20, 2010 at 3:50 PM, Yogesh Dige <[email protected]> wrote: > Hi all > > i am trying to upload a image file and showing that file in the pic > box > the file is getting uploaded properlly but the it is not showing and > refreshing the image in pic box > the code what i used is as follows > > Please help me out > > string sLocMap = > flUplLocationMap.PostedFile.FileName; > string filename = Path.GetFileName > (flUplLocationMap.FileName); > string sExtension = filename.Substring > (filename.LastIndexOf(".")); > string sUploadFileName = MaxId.ToString() + "_" + > txtVenueName.Text +"_LocMap"+ sExtension; > flUplLocationMap.SaveAs(Server.MapPath("~/Images/ > RoomImages/") + sUploadFileName); > sLocationMap = (Server.MapPath("~/Images/ > RoomImages/") + sUploadFileName); > clsdb.writeLog("sLocationMap " + sLocationMap); > imgLocationMap.ImageUrl = "http:// > 192.168.4.14:8080/MM/images/RoomImages/" + sUploadFileName; > Response.Redirect("RoomDetails.aspx",true); >
