hello, i'm trying to save the path of the file i have uploaded using "FileUpload" control in the database. but i couldn't till now .how should i specify the path in the "cmd.parameters.addwithvalue" field?
hoping you can help,thanks in advance.
cmd = new SqlCommand("db_vid", con);
cmd.Connection = con;
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@video",FileUpload1.HasFile.ToString() );
FileUpload1.SaveAs(Server.MapPath(".") + FileUpload1.FileName);