关于js弹出模式窗体后刷新副页面的问题
page1.aspx页面gridview内一个按钮事件方法代码如下:
StringBuilder sb = new StringBuilder();
sb.Append("<script language='javascript'>");
if (dttax.Rows.Count > 0)
{
string type = dttax.Rows[0]["Spare_one"].ToString();
switch (type)
{
case "A1":
if (Convert.ToDecimal(dttax.Rows[0]["one"]) > 0)
sb.Append("window.open('2A+.aspx?oid=1')");
else
sb.Append("window.open('2A.aspx?oid=1')");
break;
case "A2":
if (Convert.ToDecimal(dttax.Rows[0]["one"]) > 0)
sb.Append("window.open('2A+2.aspx?oid=1')");
else
sb.Append("window.open('2A2.aspx?oid=1')");
break;
case "B1":
sb.Append("window.open('B.aspx?oid1')");
break;
case "B2":
sb.Append("window.open('B2.aspx?oid=1')");
break;
default:
break;
}
}
else
{