<asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Eval("ID") %>'>生成JS代码</asp:LinkButton>
这是我自己在gridview里面定义的一个里linkbutton控件,请问怎么给他加后台事件,就是当点击他的时候执行后台代码
怎么做啊?
这是我自己在gridview里面定义的一个里linkbutton控件,请问怎么给他加后台事件,就是当点击他的时候执行后台代码
怎么做啊?
protected void gv_Linkman_RowUpdating(object sender, GridViewUpdateEventArgs e)
{}protected void gv_Linkman_RowDeleting(object sender, GridViewDeleteEventArgs e)
{}protected void gv_Linkman_RowEditing(object sender, GridViewEditEventArgs e)
{
gv_Linkman.EditIndex = e.NewEditIndex;
gv_Linkman.DataSource = SW.BS.Facade.FPriceInfo.GetAllDataInfo();
gv_Linkman.DataBind();
}
protected void gv_Linkman_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
{
gv_Linkman.EditIndex = -1;
gv_Linkman.DataSource = SW.BS.Facade.FPriceInfo.GetAllDataInfo();
gv_Linkman.DataBind();
}在剩下的自己套用把!!!