This code is in the .cs file for a C# .aspx file. When trying to submit data to SQL Server 2005 on the bnSubmit_Click event the System.NullReferenceException is generated.

The source error: points to the content.Insert method as seen in the above code. I know this is generated because I'm trying to use a reference variable who's value is Nothing/null. However, there are cases where the data from at least one of the TextBox's is going to be empty and I don't need any data sent to that particular record in the table.