能吗? 就用.NET里面能用的方法和属性这些东西!

解决方案 »

  1.   

    能在asp.net里面输出一段javascript语句如果在page页里的话
    this.RegisterStartupScript("test","<script>open('index.aspx','_blank');</script>");在控件里面this.page.RegisterStartupScript("test","<script>open('index.aspx','_blank');</script>");
      

  2.   

    可以考虑脱壳啊,在index.aspx页面中进行判断,如果是transfer过来的页面,就用windows.open() 重新打开一下。不过这样显得有点多余。呵呵·
      

  3.   

    你讲的这二个方法都是不可以实现的。要么在客户端打开窗口
    response.write("<script>window.open('a.aspx')</script>")
      

  4.   

    this.page.RegisterStartupScript("test","<script>open('index.aspx','_blank');</script>");
    可以
    response.write("<script>window.open('a.aspx')</script>")
    更没有问题
      

  5.   

    greystar 大叔  好啊
    greystar注意Response    "R" 要大写
      

  6.   

    在你要的是不可能实现的Request.Redirect是重新定位,怎么可以弹出窗体呢?
    必须用 greystar(greystar) ( ) 的方法.
    Response.write("<script>window.open('index.aspx')</script>")
      

  7.   

    Response.Write(@"<script language=JavaScript>window.open('index.aspx');</script>");
      

  8.   

    差点忘记了一件大事,我是一个子页面,嵌套在主页面下面的,就是一个iframe框架,这个框架里面有个button,一点这个button就弹出一个新的窗口,而不是仍然在这个iframe框架中出新页面,呵呵
    晕,好像我没表达清楚,晕到,多谢大家!
      

  9.   

    Compiler Error Message: BC30648: String constants must end with a double quote.response.write("<script>window.open('a.aspx')</script>")这句不能编译通过呀
      

  10.   

    你需要把最后一句response.write("<script>window.open('a.aspx')</script>")
    哪个</script>分开写
      

  11.   

    string url1="..."; //by c#Response.Write("<script language='javascript'>window.open("+url1+")</script>");
      

  12.   

    response.write("<script>window.open('a.aspx');</script>")
      

  13.   

    Compiler Error Message: BC30648: String constants must end with a double quote.还是不行呀,怪了!我到底是那里错了呢?
      

  14.   

    <%@ Page Language="VB" %><Script Runat="Server">Sub btButton_click(s As Object,e As EventArgs) Response.write("<script>window.open('a.aspx');</script>")
      
    End Sub上面是我的代码,到底是那里错了呢,编译就提示这个:Compiler Error Message: BC30648: String constants must end with a double quote.
      

  15.   

    Response.write("<script>window.open('a.aspx');</"+"script>");注意script块的开闭
      

  16.   

    Response.write("<script>window.open('a.aspx');</"+"script>");用这句话可以了,原来要把</script>里面的"/"给分开呀,谢谢呀!
      

  17.   

    try:
    Response.Write("<script language=jscript>window.open('a.aspx');</script>")