..


Sponsored Links

In ASP.NET I can count users connected to my site?

How to use the ASP Global.asa file, ASP.NET uses the Global.asax file. The procedure is the same: Enter the following code in the Global.asax file:

<script language="VB" runat="server">
Sub Application_OnStart
Application ("users") = 0
End Sub
Sub Session_OnStart
Application ("users") = 1 +
End Sub
Sub Session_OnEnd
Application ("users") -= 1
End Sub
</ Script>

and call on a page. aspx like this:

Private Sub Page_Load (sender As Object, e As EventArgs)
Response.Write ("Connected users:" >
End Sub

In the same category ...
E-Learning
ASP (Advanced) ASP (Advanced)
Full course for creating dynamic Web sites. From 39 €.
ASP.NET (Course) ASP.NET (Course)
Full course for building Web applications from 49 €.
SQL and Database (Course) SQL and Database (Course)
Create and manage relational databases. From 39 €.
Sponsored Links