InitializeComponent()中如何识别gridview列中的控件,急!!
下面代码中如何添加我再gridvied列中LinkButton呢,如何写,救济啊
private void InitializeComponent()
{
this.btn_upload.Click += new System.EventHandler(this.btn_upload_Click);
this.Button2.Click += new System.EventHandler(this.Button2_Click);
this.DataGrid1.ItemCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_ItemCommand);
this.Load += new System.EventHandler(this.Page_Load);
}
------解决方案--------------------
类似
http://dotnet.aspx.cc/file/Add-confirm-dialog-with-ButtonField-Column-of-GridView.aspx
http://dotnet.aspx.cc/ArticleSearch.aspx?keyword=%E7%A1%AE%E8%AE%A4&filter=1