protected void gvTeacherTaskList_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "ShowDetail") { } } protected void gvTeacherTaskList_DataBound(object sender, EventArgs e) { foreach (GridViewRow row in gvTeacherTaskList.Rows) { var btnShowDetail = row.FindControl("btnShowDetail") as Button; row.Attributes.Add("ondblclick", ClientScript.GetPostBackEventReference(btnShowDetail, null)); } }
原文地址:https://www.cnblogs.com/qiu18359243869/p/12164296.html
时间: 2024-10-07 23:36:59