经常会遇到gridview绑定多个参数,头都大,简单点
protected void GridViewRowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string url = "openNewWindow('ProductSell.aspx?id=" + e.Row.Cells[0].Text + "," + e.Row.Cells[4].Text + ",0')";
btnSell.Attributes.Add("onclick", url);
}
}