我想我的网页重定向(就是跳转到另外一个页面)
因为我不懂.net,所以用asp的语句写了
但是错了,请问如何改。错误代码如下
Compilation Error 
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 
Compiler Error Message: BC30800: Method arguments must be enclosed in parentheses.
Source Error:Line 1:  <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
Line 2:  <% response.redirect "index.asp" %>Source File: F:\ngszzx\News\index2.aspx    Line: 2 

解决方案 »

  1.   

    Server.Transfer("Target.aspx")
    Response.Redirect("Target.aspx")
    Response.Write("<script>window.open('Target.aspx');</script>")
    用得最多吧..
      

  2.   

    因为 asp.net支持 <%  ...  %>这样的呈现函数
    所以:
    <scrtipt runat=server>
       response.redirect("index.asp");
    </script>
    ================================================================
    此帖通过csdn小助手回复。
        CSDN小助手是使用vb.net编写的CSDN论坛脱机“外挂”,她能够在
    脱离IE的情况下使用Csdn论坛。程序只加载最核心的数据,所以显示更
    快,产生的流量更小。    下载地址:http://qqwwee.com/csdn.rar
    ================================================================
      

  3.   

    Page.RegisterStartupScript("aaa",@"<script language='javaScript'> window.open('aaa.aspx');</script>")你把你熟悉的asp,js,vbs写到@后就行了.