62,041
社区成员
发帖
与我相关
我的任务
分享
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string OID = GridView1.DataKeys[e.Row.RowIndex][0].ToString();
e.Row.Attributes.Add("onclick", "return skip(this,'" + OID + "')");
}
}
function skip(e, OID) {
var p = e.parentNode;
for (i = 0; i < p.rows.length; i++) {
p.rows[i].style.backgroundColor = "";
}
e.style.backgroundColor = "yellow";
window.parent.iframeRight.location.href = "ordDt.aspx?OID=" + OID;
return false;
}