The page consists linkbutton and its method:\[code\]protected void LinkButton_Click(Object sender, EventArgs e) { TableRow tr = new TableRow(); TableCell tc = new TableCell(); Button b = new Button(); b.Text = "x"; b.CommandArgument = "someargument"; b.Click +=new EventHandler(this.b_Click); tc.Controls.Add(b); tc.Width = 30; tr.Controls.Add(tc); Table.Rows.Add(tr); }\[/code\]And method:\[code\] protected void b_Click(object sender, EventArgs e) { ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "UpdateCom", "alert('ok');return false;", true); string id = (sender as Button).CommandArgument; // other operations... }\[/code\]First by clicking linkbutton I create button inside table and then when I click button the b_Click method doesn't work. I even do not see javascript alert instead just page updating is occuring.What is a problem?Note that if I do operations inside LinkButtonClick in pageLoad method, everything is OK, button is created and b_click also works when clicking this button.