SubSession_Add(senderAsObject,eAsEventArgs)Session("My..." />
您的位置首页生活小窍门

asp中如何使用session

asp中如何使用session

举个例子,希望对你有帮信胡助Sub Session_Add(sender As Object, e As EventArgs)Session("MySession") = text1.Valuespan1.InnerHtml = "Session data updated!

Your session contains: " & \Session("MySession").ToString() & ""End SubSub CheckSession(sender As Object, eAs EventArgs) 清裂 If (Session("MySession")Is Nothing) Thenspan1.InnerHtml = "NOTHING, SESSION DATA LOST!"  Elsespan1.InnerHtml = "Your session contains: " & \Session("MySession").ToString() & "答坦闭"End IfEnd Sub