Upload image to server using C#/.NET and storing filename in DB
问题 I'm currently using the following snippet to insert data into a table in my database. It works great. But, I want to start adding filename data and not sure how to proceed. I have the following: // Create command comm = new SqlCommand( "INSERT INTO Entries (Title, Description) " + "VALUES (@Title, @Description)", conn); // Add command parameters comm.Parameters.Add("@Description", System.Data.SqlDbType.Text); comm.Parameters["@Description"].Value = descriptionTextBox.Text; comm.Parameters.Add