a.aspx页面的JS代码如下:
var result;
result = window.showModalDialog("B.aspx",'','dialogHeight:300px; dialogWidth:360px; center: yes; help: no;status:no');
if (result != 'undefined' && typeof(result)!='undefined')
{
     tb.value = result;} //这里就是取不到返回值
}B.aspx页面的代码如下:
string ary = "这里是传递的值";
Response.Write("<script language=javascript>");
Response.Write("window.result='" + ary.ToString() + "';");
Response.Write("window.close();");
Response.Write("</script>");我用的是VS2008.以前使用2003这样的方法都没有错,现在不知道为什么取不到值了..
那位帮帮忙..