1:ViewState传值 ViewState["key"] = "value"; <%=ViewState["key"] %> 2:声明变量为protect public 转载于:https://www.cnblogs.com/zhushangwei/p/3754377.html