我爱Aspx >> Asp.Net >> Session 详解span1.InnerHtml = "Session data updated! <P>Your session contains: <font color=red>" & \
Session("MySession").ToString() & "</font>"
End Sub
Sub CheckSession(sender As Object, eAs EventArgs)
If (Session("MySession")Is Nothing) Then
span1.InnerHtml = "NOTHING, SESSION DATA LOST!"
Else
span1.InnerHtml = "Your session contains: <font color=red>" & \
Session("MySession").ToString() & "</font>"
End If
End Sub
</script>
<formrunat="server"id="Form2">
<inputid="text1"type="text"runat="server"name="text1">
<inputtype="submit"runat="server"OnServerClick="Session_Add"
value="Add to Session State" id="Submit1"name="Submit1">
<inputtype="submit"runat="server"OnServerClick="CheckSession"
value="View Session State" id="Submit2"name="Submit2">
Ҷƪл˵?
背投广告代码[05-20]
ArrayList的使用方法[05-20]
ArrayList的使用方法[05-20]
使用 HttpContext.RewritePath[05-20]
使用 HttpContext.RewritePath[05-20]
在类中获取当前页面Page对象的引..[05-20]
在类中获取当前页面Page对象的引..[05-20]
C#实现控件数组[05-20]
web.config文件详解[05-20]
ASP.NET:Email Web Page[05-20]