我使用下面的代码设置点击LinkButton
但不调用事件,当我点击链接按钮时,它隐藏了
LinkButton lnk = new LinkButton();
lnk.Text = "....";
lnk.Click+=new EventHandler(lnk_Click);
pnl.Controls.Add(lnk); // pnl is Panel in GridView's cell
//event
protected void lnk_Click(object sender, EventArgs e)
{
//...
}