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);
}
}
转载于:https://www.cnblogs.com/Soper/archive/2013/04/08/3007159.html
相关资源:yii2中结合gridview如何使用modal弹窗实例代码详解