您的位置:首页 > 编程语言 > ASP

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

2016-04-24 22:24 465 查看
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"];

    }

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: