Re: Shared (Static) Function and Subs

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Carlos Campos (carlos_at_(NoSpam)costarricense.cr)
Date: 03/03/04


Date: Wed, 3 Mar 2004 14:27:36 -0600

What??? I think that the public thing will not help.

When you have a shared property, this is a kind of global variable of all
instances of your object.

The "problem" you are having is the current behavior, if you connect from
different browser or different machines to your site, you are accesing your
only variable _i.... the variable is in the server, not in the browser...
and there is not a copy of your code for every person connected to your
server.

I think that you want to have a count of how many times a user request your
site....use the session variable to insert there your _i variable... and in
Global_Asax Session_Start set _i to 0 and in Session_End do what you want
with the final count....

Do not increment in the Begin_Request event, because there you dont have
access to the session object... you must increment it in the page....



Relevant Pages

  • Re: Got TCP/IP connection, but no file sharing!?
    ... No where can I find that having the Computer Browser Service ... and the server announces itself on the networking using the special ... and why doesn't a workgroup environment work the same ... server) generally acts as the master browser. ...
    (microsoft.public.windowsxp.network_web)
  • Re: =?ISO-8859-1?Q?Can=92t_see_a_compute?= =?ISO-8859-1?Q?r_in_the_network?=
    ... Find Computer Browser ... Find Server ... Find Workstation ... CONFIG and Browser and Sharedaccess are RUNNING. ...
    (microsoft.public.windowsxp.network_web)
  • Re: After setting up the network
    ... Find Computer Browser ... Find Server ... PsService v2.20 - Service information and configuration utility ... CPSServ Comprehensive Networking Services V1.10 - PERRINS2 ...
    (microsoft.public.windowsxp.network_web)
  • Re: FreeBSD 5.1, Cups problem
    ... Server Identity ... > # Classification: the classification level of the server. ... the default language if not specified by the browser. ... > # not advertised but you can still see printers on other hosts. ...
    (freebsd-questions)
  • Re: BROWSTAT: ...Could not connect to registry, error = 53 (New question)
    ... I have found that I can resolve this message situation by mapping a drive share to the Master Browser machine. ... Now name resolution uses Server Message Blocks or SMBs. ... use the same SMB transport, or they will have no connection (causing, among ... NetBT setting, is not consistently effective. ...
    (microsoft.public.windowsxp.network_web)