Query页面用:Server.Transfer("ReceiveMoneyEdit.aspx?ID=" + id.ToString());转到ReceiveMoneyEdit页面,在ReceiveMoneyEdit页面用一下代码获取Query页面的值
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
ReceiveMoney_Query query;
if (Context.Handler is ReceiveMoney_Query)
{
query = (ReceiveMoney_Query)Context.Handler;
ViewState["StrFilte"] = query.StrFilte;
ViewState["CurrentInfo"] = query.CurrentInfo;
}
}
}
{
if (!Page.IsPostBack)
{
ReceiveMoney_Query query;
if (Context.Handler is ReceiveMoney_Query)
{
query = (ReceiveMoney_Query)Context.Handler;
ViewState["StrFilte"] = query.StrFilte;
ViewState["CurrentInfo"] = query.CurrentInfo;
}
}
}