ASP.NET(vb.net) Session.Count() - Session Object - Session.Count() : Gets the number of Session
ShotDev Focus:
- ASP.NET(vb.net) Session.Count() - Session Object
Example
AspNetSessionCount.aspx
<%@ Page Language="VB" %>
<script runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
Session("Name") = "Mr.Weerachai Nukitram"
Session("NickName") = "Mr.Win"
Me.lblText.Text = Session.Count()
End Sub
</script>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form runat="server">
<asp:Label id="lblText" runat="server"></asp:Label>
</form>
</body>
</html>
Screenshot

