title: Button.OnClientClick question
body: <p>I'm gonna post some more code to show exactly what I'm trying to do,
  I'm adding the button using programming code and not markup but the OnClick won't work (giving the following error:</p>
  
  <blockquote>
    <p>System.Web.UI.WebControls.Button.OnClick(System.EventArgs)' is inaccessible due to its protection level.</p>
  </blockquote>
  
  <pre><code>Button btnopslaan = new Button();
  btnopslaan.Text = "Opslaan";
  btnopslaan.ID = "btnOpslaan";
  btnopslaan.CssClass = ".opslaan";
  btnopslaan.Click += new EventHandler(btnopslaanClick);
  btnopslaan_arr[btn_count] = btnopslaan;
  add_button(btnopslaan);
  
  protected void btnopslaanClick(object sender, EventArgs e)
  {
     Debug.WriteLine("success");
  }
  </code></pre>
  
  <p>I just can't find out why this isn't working.</p>
  
  <p>Anyone who can help me out?</p>