Hello,
can anyone tell me where the files are uploaded using "FileUpload" Control.I have used the following code
protected void Button1_Click(object sender, EventArgs e)
{
cmd.Connection = con;
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@Path1",FileUpload1 );
Path1 = Server.MapPath("upload");
if (FileUpload1.PostedFile .FileName !=null && FileUpload1.PostedFile .ContentLength >0)
{
string filename = Path.GetFileName(FileUpload1.PostedFile.FileName);
string savetoupload = Path1 + "D:\\new" + filename;
Label1.Text = "file uploaded" + filename;
}
}
}
obviously the file isn't saved in D: either.