Hi i have this code which is for inserting image into image folder and insert path into database by username.but my code is'nt right am having this error:
Server Error in '/' Application. Incorrect syntax near the keyword 'where'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Incorrect syntax near the keyword 'where'. Source Error: Line 51: cmd.Parameters.AddWithValue("@ImagePath", "Uploaded_Images/" + filename); Line 52: cmd.Parameters.AddWithValue("@UserName", this.User.Identity.Name); Line 53: cmd.ExecuteNonQuery(); Line 54: //Close dbconnection Line 55: con.Close(); code:

protected void btnupload_C ...

Go to the complete details ...