title: How to create onclick event in .cs file for html <Input> Tag?
body: <p><strong>How to create onclick event in <code>.cs</code> file for asp.net c# for html  Tag ?</strong></p>
  
  <p>Example :-</p>
  
  <pre><code>&lt; input type="button" id="btnBeforeOk" value="Ok" name="btnBeforeOk" style="width: 90%;" /&gt;
  </code></pre>
  
  <p>I want to create an event in <code>.cs</code> file how we can do this ?</p>
  
  <h2>OR</h2>
  
  <pre><code>bool isEmail = Regex.IsMatch("nikunj@yahoo.com", @"\A(?:[a-z0-9!#$%&amp;'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&amp;'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[A-Z]{2}|asia|com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum|travel)\b)\Z", RegexOptions.IgnoreCase); 
  </code></pre>
  
  <p>The above bool isEmail i want to in <code>.aspx</code> page ?</p>