s= browser.FileName.ToString() ; //photoid.ImageUrl = s; photoid1.Src = s; if ((this.browser.PostedFile != null) && (this.browser.PostedFile.ContentLength > 0)) { FileName = System.IO.Path.GetFileName(browser.PostedFile.FileName); //SaveLocation = Server.MapPath("PhotoId")+"\\" + FileName; SaveLocation ="D:\\Sagar\\Bulk Transportation\\Bulk Transportation\\PhotoId\\"+ FileName; this.browser.PostedFile.SaveAs(SaveLocation); //photoid.ImageUrl = SaveLocation;//this.browser.PostedFile.FileName; //photoid1.Src = SaveLocation; } btnloadimage.Text = "Save Image"; if (s != "") { browser.Visible = false; btnloadimage.Text = "Load Photo"; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)