我在gridview中有一个linkbutton,我想单击代码背后的事件,但它不工作。Linkbutton事件处理程序不在Gridview中工作
当我点击LinkButton的回发工作,但它没有达到内部 “txt_SARTLI_FORMAT_Click” 代码。(对不起我的ENG)
//我的网
<cc1:xGrid ID="XGrid_Kolonlar" runat="server"
Width="100%"
...
OnRowDataBound="XGrid_Kolonlar_RowDataBound">
// CS
protected void XGrid_Kolonlar_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
...
...
txt_SARTLI_FORMAT.ID = "btn_SartliFormat";
txt_SARTLI_FORMAT.Text = SARTLI_FORMAT != "" ? "Göster" : "Yeni";
txt_SARTLI_FORMAT.CommandArgument = SARTLI_FORMAT;
txt_SARTLI_FORMAT.Click += new EventHandler(txt_SARTLI_FORMAT_Click);
}
}
void txt_SARTLI_FORMAT_Click(object sender, EventArgs e)
{
... (this codes dont work)
}
thx我设置onclick手动 – Mennan 2012-03-22 21:29:39