Error when assigning a boolean value
<p>I am getting an error while assigning a value.</p>

<p>My code is:</p>

<pre><code>    protected bool ValidateProfile()
    {
       bool blnFirstName = false;
       bool blnLastName = false;
       bool blnEMail = false;

      //(error on line below: "The left-hand side of an assignment must be a variable, property or indexer")
       ValidateProfile() = false;


   if txtFName != ""
      blnFName = true;

   if txtLName != ""
      blnLName = true;

   if txtEMail != ""
      blnEMail = true;

   if (blnFName) &amp;&amp; (blnLName) &amp;&amp; (blnEMail))
     ValidateProfile = true;

    }
</code></pre>

<p>How do I assign a boolean value to ValidateProfile ?</p>

<p>Thanks</p>
