title: OnClick is not working when i do OnClientClick="function(); return false"
body: <p>i have 5 asp:buttons that i want to change css class on when i click them so they are "marked". I do this with javascript and it works fine. But i also want to store a variable in code behind with the onClick.</p>
  
  <p>My problem is, when i click my asp:button it refresh the page. I solved this with ;return false after my OnClientClick. BUT when i have return false, the buttons OnClick doesnt fire. So i need help with getting these both things to work at same time:</p>
  
  <ul>
  <li>Page not refreshing when pressing asp:button, same time as</li>
  <li>OnClick needs to fire also.</li>
  </ul>
  
  <p>html</p>
  
  <pre><code>&lt;asp:Button ID="Button1" runat="server" Text="1" OnClick="button1_Click" OnClientClick="change_select(this); return false;" CssClass="button black"/&gt;
  </code></pre>
  
  <p>javascript</p>
  
  <pre><code>function change_select(objs) {
  
      $('.darkgray').removeClass('darkgray').addClass('black');
      objs.className = "button darkgray";
  </code></pre>
  
  <p>}</p>
  
  <p>code behind</p>
  
  <pre><code>    int[] answerArray = new int[28];
      int answer = 0;
      int currentQ = 0;
   protected void button1_Click(object sender, EventArgs e)
      {         
              answer = 1;        
      }
  protected void buttonNext_Click(object sender, EventArgs e)
      {
              answerArray[currentQ] = answer;
              currentQ++;  
      }
  </code></pre>