title: Default Value or Binding Property in SQL Server Express not Working
body: <p>I almost done my code, but i have a problem with default value or binding in SQL.</p>
  
  <p>Here is my database :</p>
  
  <ul>
  <li>*Date_Contact DateTime* (with default value of <code>getdate()</code>)</li>
  <li><code>Readed, Status bit</code> (with default value of <code>0</code>)</li>
  </ul>
  
  <p>All of them are nullable.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>protected void btnSendMess_Click(object sender, EventArgs e)
  {
      try {
          ContactUs contact_us = new ContactUs();
          contact_us.FullName = txtName.Text;
          contact_us.Email = txtEmail.Text;
          contact_us.Subject = txtSubject.Text;
          contact_us.Message = memoMess.Text;
          db.ContactUs.InsertOnSubmit(contact_us);
          db.SubmitChanges();
          lblNotice.Text = "Your message sent successfully! Thank you";
      }
      catch (Exception) {
          Response.Write("Error! Check your message again");
      }
  }
  </code></pre>
  
  <p>When I check in database, <code>Date_Contact</code>, <code>Readed</code> and <code>Status</code> are <code>NULL</code>... what's wrong in my code?</p>