日期:2014-05-20  浏览次数:20463 次

ASP.NET中执行javascript打开新窗口的问题

为什么如下语句能使用,能正确执行.如下
Response.Write( " <script   language=javascript> window.open( 'repair.aspx?UN= "+usernumber+ "&SID= "+serviceID+ " ') </script> ");


而加上参数后就不能执行了呢?如下

Response.Write( " <script   language=javascript> window.open( 'repair.aspx?UN= "+usernumber+ "&SID= "+serviceID+ " ', 'toolbar=no,status=no ') </script> ");

------解决方案--------------------
Response.Write( " <script language=javascript> window.open( 'repair.aspx?UN= "+usernumber+ "&SID= "+serviceID+ " ',’’, 'toolbar=no,status=no ') </script> ");
这样看看!