I need a message board for one of my current projects. The user should only see text boxes for the message title and the body. However, the table that the user is writing to has seven properties. The ID is being added just fine, but the other four are being weird.

When I set the field visible properties to True and leave the fields blank, the code adds everything just fine. But I want them False... and when I do that, they don't set anything. Any solutions?

Here's the code that adds the information.
vb Code:
  1. Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
  2.  
  3.         Dim txtDate As TextBox = DetailsView1.FindControl("TextBox6")
  4.         txtDate.Text = System.DateTime.Now
  5.  
  6.         Dim txtPostedBy As TextBox = DetailsView1.FindControl("TextBox2")
  7.         txtPostedBy.Text = Membership.GetUser.UserName.ToString
  8.  
  9.         Dim txtMod As TextBox = DetailsView1.FindControl("TextBox3")
  10.         txtMod.Text = System.DateTime.Now
  11.  
  12.         Dim txtModBy As TextBox = DetailsView1.FindControl("TextBox1")
  13.         txtModBy.Text = Membership.GetUser.UserName.ToString
  14.  
  15.         DetailsView1.InsertItem(False)
  16.         Response.Redirect("~/msgboard.aspx")
  17.  
  18.     End Sub