两个.aspx 页面传值 Request.QueryString["NAME"]

1.aspx.cs

 

protected void HouseManagement(object source, DataListCommandEventArgs e)

    {
            string url;
            url = "HouseUpdate.aspx?houseCode=1“;
            Response.Redirect(url);
        }

    }

 

HouseUpdate.aspx.cs

public partial class Item_HouseUpdate : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        lblHouseCode.Text = Request.QueryString["houseCode"];
    }
}

 

posted @ 2016-04-24 22:25  预立科技  阅读(19)  评论(0编辑  收藏  举报