protected void updatecompany_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection("xyz..."); con.Open(); string filepath = Server.MapPath("~/CompanyLogo/" + strFileName); string path = "~/CompanyLogo/" + strFileName; string str = "UPDATE Table1 set CompanyLogo='" + path +"' where CompanyID=" + Convert.ToInt16(Request.QueryString["CompanyID"].ToString()); SqlCommand cmd = new SqlCommand(str, con); cmd.ExecuteNonQuery(); con.Close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)