Results 1 to 4 of 4

Thread: Counter

  1. #1

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    Counter

    Is it wise with ASP to implement your own counter?

    I mean in the Page_Load event I can increment a value of a field in a table by 1 each tims the page is loaded. (except if IsPostBack is True)

    Thanks,
    Don't anthropomorphize computers -- they hate it

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    I dont see why not.

  3. #3

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950
    I'm just thinking what if there is 100 people accessing the web site at the same time and there's 100 update calls to the database. Won't that slow down the loading of the web page?

    Thanks,
    Don't anthropomorphize computers -- they hate it

  4. #4
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    You could store it in Cache and register a delegate callback to fire when the item is about to be removed and then write it to the db. You could also store it in the application state bag.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width