How to Call a Bool Function on Button Click Event
<p>I am trying to call a bool type function from button click but facing error </p>

<pre><code>"mybtn_Click(object, System.EventArgs)' has the wrong return type"
</code></pre>

<p>I need to return false bcoz I am working on a modal popup and after function completion popup getting closed.</p>

<p>My function is :- </p>

<pre><code>protected bool btnforgotpwd_Click(object sender, EventArgs e)
{
   //code
   return false;
}
</code></pre>