protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow && e.Row.RowIndex != -1)
{
HyperLink lblAssetName = (HyperLink)e.Row.FindControl("lbAssetName");
lblAssetName.Attributes.Add("onclick ", "javascript:window.open('fixAssetMaintainNetwork.aspx?id=" + drv["AssetID"] + "&AssetTypeId=0103','noname','height=400,width=450,left=300, top=100,fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0');return(false)");
//这里我传的是dataset的参数
}
}
//前台 <asp:HyperLink ID="lbAssetName" runat="server" Target="_blank" style="cursor:hand;color:#003366" ></asp:HyperLink> <%--资产名称--%>
//前台控制 弹出是新窗口 及手型 及颜色