Page.RegisterStartupScript("key1","<script>opener.window.location.href=opener.window.location+'&file=path';window.close();</script>");
这样执行正常,但如果path是个变量呢,要怎么写呢?
我试过这样写也不能执行:
string path=".......";
Page.RegisterStartupScript("key1","<script>opener.window.location.href=opener.window.location+'&file='+path;window.close();</script>");
要怎么解决呢?