This popular script is found in almost all sites in ASP, used to count visitors assets (present at the time), is on our website.
The code should be used in the file Global.asa. Must not be enclosed in <% and%> must be unique and that has within it. (Well, not unique, but playing with Global.asa not recommend it).
Here’s the code that goes into the Global.asa
<script language=vbscript runat=server>
Sub Application_OnStart
Application("Active") = 0
End Sub
Sub Application_OnEnd
End Sub
Sub Session_OnStart
Application.Lock
Application("Active") = Application("Active") + 1
Application.Unlock
End Sub
Sub Session_OnEnd
Application.Lock
Application("Active") = Application("Active") - 1
Application.Unlock
End Sub
</script>
And to show the information which the Global.asa, or to show active users as I did in my example, they should put the following on the page displaying the data:
<P>There are currently <%=Application("Active")%> user's on our site</P>
ASP.NET Maker : Generate the asymmetric multiprocessing system. Net 2. 0 writes the script from the database
ASP.NET Maker is a powerful yet easy-to-use ASP.NET code generator for ASP.NET 2.0. It can create a full set of ASP.NET 2.0 pages quickly from Microsoft Access, Microsoft SQL Server, MySQL, Oracle and other ODBC data sources. You can instantly create Web sites that allow users to view, edit, search, add and delete records on the Web.
ASP.NET Maker offers numerous useful features, including 3-Tier Architecture, ASP.NET AJAX, Extended Quick Search, Drill-down Master/Detail, Advanced Security, User Registration System, Custom View, Report, Export, File.
PHPMaker is the powerful automation equipment which can generate all matching of PHP directly from the database of MySQL, (because of Windows). Using PHPMaker, in order to compile because the user searches at once, in order to add, it makes that you see, possible, deleting the record of the net data type everything of MySQL, including BLOB, ENUM and set can draw up the web sight which it supports.
ASPMaker: Generate the asymmetric multiprocessing system from the database.
ASPMaker the asymmetric multiprocessing system (the be active server page) is the powerful automation equipment which can generate all matching directly from the database of the Microsoft access or data source which supports the noise. Using ASPMaker, at once the user looks at the record of the net, compiles, searches, adds, can draw up the web sight which makes that it deletes possible.
JSPMaker: JSP is generated directly from MySQL or Oracle.
JSPMaker however JSP (the page of JavaServer) being powerful draws up all matching directly from MySQL or Oracle, is the cord/code generator which it is easy to use.
XML/XSLT Maker: The lattice of DHTML and dynamic XML/XSLT draw up the web sight which it has made be based
As for XMLMaker the lattice of DHTML for the general user and dynamic XML/XSLT for the developer of time it is the cord/code generator which cannot draw up the web sight which it has made be based. The lattice of DHTML is the WEB based lattice part which is based on conduct and XML/XSLT of DHTML, but that the lattice is used, knowledges of XML/XSLT/DHTML is not required.
CFMMaker: Generate the template of CFM from the database.
CFMMaker however CFM (the template of ColdFusion) being powerful draws up all matching directly from your data source, is the cord/code generator which it is easy to use. The database which is supported makes a noise and or connection characteristic Microsoft of ODBC access, the Microsoft SQL server, includes Oracle or the database.
Bio: I am Venu Thomas, Software Engineer, Pro-Blogger, Mac and Windows User & Web Addicted. I live in Cochin, Kerala, INDIA. I have done programs in ASP.Net, C#, VB.Net, Java, Javascript, PHP, ASP, SQL, VC++, VB , ORACLE, AppleScript, ect ..