Author: rajeevinime | Posted on: 8/4/2010 7:03:55 AM | Views : 309

while uploading the file on the local host it works fine.but the same coding does not work on the webserver. is there anything to do with the foldr read and write permissions.i m using the server.map for finding the path of the browsed file. 
 

 protected void btnLogin_Click(object sender, EventArgs e)
    {
        try
        {
   string fold = "images";
   string Name = FileUpload1.FileName;
   sring path = Server.MapPath("~" + "/" + fold + "/" + Name);
   FileUpload1.SaveAs(path);
   Image1.ImageUrl = Server.MapPath("~" + "/" + fold + "/" + Name);
        }
    &nb ...

Go to the complete details ...