protected void Page_Load(object sender, EventArgs e)
{
Image1.Visible = false;
}
protected void Button_Upload_Click(object sender, EventArgs e)
{
String str = "Pass the path wher you want to save the uploaded file
(For example : D:\\Visual studio\\Website\\FileUpload\\
Images\\)" + FileUpload1.FileName;
FileUpload1.SaveAs(str);
Image1.ImageUrl = "~//Images//" + FileUpload1.FileName;
Image1.Visible = true;
}
No comments:
Post a Comment