title: how to check null values using if condition in C#
body: <p>i have multiple conditions in my IF statement but only the second one works in other words the null values is not detected.  i know the fields are blank or null but it is not detecting it.  The email is fired only if keep the 2nd condition and remove the first one but i want to check both conditions before i sent the email out.  thanks    here is my code</p>
  
  <pre><code>string k = gr.Cells[9].Text;
  DateTime strExpectedSubDate = DateTime.Parse(gr.Cells[3].Text);
  DateTime strDate = DateTime.Now.Date;
  
  if (k == null &amp;&amp; strExpectedSubDate &lt; strDate)
  {
      send email();
  </code></pre>