当前位置: 代码迷 >> ASP.NET >> InitializeComponent()中怎么识别gridview列中的控件,
  详细解决方案

InitializeComponent()中怎么识别gridview列中的控件,

热度:7958   发布时间:2013-02-25 00:00:00.0
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