问题描述
GridView1_RowDataBound1在这里写LinkButtonglbt=newLinkButton();glbt.Text=e.Row.Cells[1].Text;e.Row.Cells[1].Controls.AddAt(0,glbt);glbt.CommandName="gridlist";然后在GridView1_RowCommand里面写if(e.CommandName=="gridlist"){操作~~~~~~~}protectedvoidglbt_Click(objectsender,EventArgse){操作~~~~~}为什么点linkbutton没有任何响应。
时间: 2024-12-03 23:17:41