try
{
String path = Server.MapPath("CenterVideoUpload/");
if (FileUpload1.HasFile)
{
FileUpload1.PostedFile.SaveAs(path +
FileUpload1.FileName);
string imagepath = "/CenterVideoUpload/" + FileUpload1.FileName;
SqlCommand cmd = new SqlCommand("insert into CvideoUpload values('" + TextBox1.Text + "','" + TextBox2.Text + "','" + TextBox3.Text + "','" + imagepath + "','" + Session["Name"] + "','" + Session["Date"] + "')", Centcon);
Centcon.Open();
cmd.ExecuteNonQuery();
Centcon.Close();
Label5.Text = "File uploaded";
}
else
{
Label5.Text = "no file uploaded";
}
}
catch (Exception E)
{
Label5.Text = E.Message.ToString();
}
Error:-webpage not available