Hi,
I am trying to upload a image in a column for a specific person from a page and it's give me this error

Object reference not set to an instance of an object.
This is the cs file :
var fu = FileUpload1.FileName; var sc = new SqlConnection(WebConfigurationManager.ConnectionStrings["userConnectionString"].ConnectionString);] var cmd = new SqlCommand("UPDATE design_Quotes SET Design=" + fu + ",Designpath=" + "../images1/" + fu + " WHERE Id='" + u.Id + "'", sc); It's showing error line this
var cmd = new SqlCommand("UPDATE Digitizing_Quotes SET Design=" + fu + ",Designpath=" + "../images1/" + fu + " WHERE Id='" + u.Id + "'", sc); ...

Go to the complete details ...