BS项目中Server.Transfer如何在系统中传递变量值?

解决方案 »

  1.   

    Server.Transfer("index.aspx?di="+参数)
      

  2.   

    PageA.aspx.cspublic partial class PageA : System.Web.UI.Page
        {
            protected string sss;        protected void Page_Load(object sender, EventArgs e)
            {
                sss = "asdfghjkl";
                Server.Transfer("SiteB.aspx");
            }        public string getData()
            {
                return sss;
            }
        }PageB.aspx.cspublic partial class PageB : System.Web.UI.Page
        {
            protected void Page_Load(object sender, EventArgs e)
            {
                PageA page = this.PreviousPage as PageA;
                Response.Write(page.getData());
            }
        }
      

  3.   

    Server.Transfer("PageB.aspx");
    上面的忘了改过来了
      

  4.   

    http://zhidao.baidu.com/question/5453145.html
    http://hi.baidu.com/skyjoy2006/blog/item/7431c30706d559cc7b89472f.html