title: How to know that a void runs?
body: <p>want to ask about void type, so I could know that it works or no</p>
  
  <p>in PHP i could have a condition like this:</p>
  
  <pre><code>if(mysql_query($query))
  { bla bla }
  else
  { print error }
  </code></pre>
  
  <p>how to do like that on ASP.NET?</p>
  
  <p>i'm trying like this:</p>
  
  <pre><code>if (k.EditPassword(username.Text, oldPassTxt.Text, newPassTxt.Text) == true )
  {
  Response.Redirect("sample.aspx");
  }
  else
  { print error }
  </code></pre>
  
  <p>but of course, it cannot be like that, because void isn't boolean</p>