void gridView_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string id = DataBinder.Eval(e.Row.DataItem, "id").ToString();
e.Row.Attributes.Add("style", "cursor:pointer");
e.Row.Attributes.Add("onclick", string.Format("test('{0}',this)", id)); //调用前台的test
}
}
相关文章:
-
2021-07-19
-
2022-12-23
-
2022-12-23
-
2022-03-13
-
2021-10-20
-
2022-12-23
-
2022-12-23
猜你喜欢
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2021-09-17
-
2021-12-20
相关资源
-
下载
2023-01-20
-
下载
2021-06-05
-
下载
2021-06-05