Dynamically created button not firing Click event
<p>I am creating dynamic controls, in that one control is a button.
i used the following code to add the button control.</p>

<pre><code>            Button btnContinue = new Button();
            btnContinue.Attributes.Add("class", "button");
            btnContinue.ID = "btnContinue";
            btnContinue.Text = "Continue";
            btnContinue.CausesValidation = false;
            btnContinue.Click += new EventHandler(btnContinue_Click);                
            lineAdd.Controls.Add(btnContinue);
</code></pre>

<p>And the button click event as below.</p>

<pre><code>protected void btnContinue_Click(object sender, EventArgs e)
{
    ...
}
</code></pre>

<p>This event is not firing. Any idea why this is not firing the event. Please correct me if i am wrong.</p>

<p>Thanks in Advance.</p>
