I am dynamically creating a link button and attaching a event to it. But its not invoking event. I am not clear. Could anybody help me please. my code is - protected void check() { d = test(); int r = d.Tables["House_hold"].Rows.Count; for (int i = 0; i < r; i++) { LinkButton lnk = new LinkButton(); lnk.ID = "lnk"; lnk.Text = "LinkButton"; lnk.Text = d.Tables["House_hold"].Rows[6].ToString() + "<br /><br />"; lnk.Attributes.Add("runat", "server"); lnk.Click += new System.EventHandler(Lnkbut_Click); Panel1.Controls.Add(lnk); } void Lnkbut_Click(object sender, EventArgs e) { Label1.Text = "hello"; Response.Write(e.ToString()); Response.Write("hello"); } }