title: How to dynamically add AutoPostBack = true to button in ASP.NET C#
body: <p>I have the following code. My question is how can I dynamically add the autopostback property to the button?</p>
  
  <pre><code>Button button = new Button();
  button.ID = "Button" + i;
  button.Text = "Save";
  button.Click += SaveButton_Click;
  PlaceHolder1.Controls.Add(button);
  </code></pre>
  
  <p>Something like this <code>button.autoPostBack = true;</code></p>