protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { string OrderID = e.Row.Cells[1].Text; string _jsEdit = "showModalDialog('default2.aspx?id=" + OrderID + "'
,null,'dialogWidth=650px;dialogHeight=500px;help:no;status:no')"; e.Row.Attributes.Add("onclick", _jsEdit); } }