0

AppState 值可以通过页面请求更改/存储,何时(Page_init?)以及它们如何更改?

//On some other page
Response.Redirect("mypage.aspx?ID=10")

//On Page_Load of myPage.aspx 
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)

Dim id = AppSate("ID").Value //id will equal 10
...
end sub
4

0 回答 0