Submitting Web Form data from one ASP.NET page to anotherhttp://www.stardeveloper.com/articles/display.html?article=2003061901&page=1

解决方案 »

  1.   

    现在我还想控制form中的target属性,在.aspx.cs中怎么控制.aspx页面中的东西呀?
      

  2.   

    其实不需要设置action的值,那样比较麻烦
    你可以直接在button的click事件中写代码,来动态控制,转向什么页面~
    如下: private void Button1_Click(object sender, System.EventArgs e)
    {
    if(条件1)
    {
    Response.Redirect("b.aspx");
    }
    if(条件2)
    {
    Response.Redirect("c.aspx");
    }
                               ...
    }
      

  3.   

    其实我主要是想找到form中的target属性,随时变化target属性