here is my fileupload project code
try it .. :)
protected void upload_Click(object sender, EventArgs e)
{
if (doctorfileupload.PostedFile != null)
{
string FileName = Path.GetFileName(doctorfileupload.PostedFile.FileName);
Session["filename"] = FileName;
string cont_name = "";
cont_name = doctorfileupload.FileName;
string path = Server.MapPath("~/BenImages/");
doctorfileupload.SaveAs(path + cont_name);
string FullPath = "~/BenImages/" + cont_name;
Session["pathname"] = FullPath;
imagedisplay.ImageUrl = FullPath;
}
}