ViewState跨页传值

1.relCarStyle2页面赋值

            ViewState["CarTypeExceptList"] = this.CommonCarStyleIDs;

2.其它页面

            relCarStyle2 xxx = (relCarStyle2)Context.Handler;
            List<Guid> d = (List<Guid>)xxx.PublicViewState["CarTypeExceptList"];

原文地址:https://www.cnblogs.com/futao/p/2574518.html