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)); } }
时间: 2024-11-05 11:34:29