Hi
Try to add
runat="server"
properties in dynamically created link button.
or try this
LinkButton lnk = new LinkButton();
lnk.ID = "lnk";
lnk.Text = "click here";
lnk.Click += new EventHandler(lnk_Click);
or try this
LinkButton lb = new LinkButton();
lb.ID = "LinkButton1";
lb.Click += test;
lb.Text = "testtext";
protected void test(object sender, EventArgs e)
{
}
Regards
Aravind