请问如何在code-behindl里面写链接到另一各网页的代码??
比如我click一个button,他能链接到另一个网页。
先谢了!

解决方案 »

  1.   

    Response.Redirect("..\\main.aspx");
      

  2.   

    在此按钮的单击事件里面,写如下代码
    string myurl = "xxxx.aspx";
    this.Response.Redirect(myurl);
    this.Response.End();这样就可以链接到另外一个页面了
      

  3.   

    Response.Write("<script language='javascript'>");
    Response.Write("window.open(\"manage/manage.aspx\");");
    Response.Write("</script>");
      

  4.   

    submit.Attributes.Add("onclick","window.open(\"manage/manage.aspx\");");
      

  5.   

    Response.Redirect(要跳转的网页地址);
      

  6.   

    submit.Attributes.Add("onclick","window.open(\"manage/manage.aspx\");");同意这种的..一些东西没有必要让它回发数据..而应该直接在客户端处理掉
      

  7.   

    response.redirect和server.transfer都可以连接到另一页面,他们的具体区别和用法可以参考msdn