codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  How to Count hit web pages by users?  rajesh20k@gmail.com at 13:23 on Monday, May 08, 2006
 

Hi,
I am developing web based application in asp.net.Actually I need the best solution or any idea of my problem.
I maintain user login time; log out time and how many times WebPages hit by particular user. Let us assume user hits result.aspx page 20 times, so I have to store 20 in the database. There are several pages in my application.Is there any function or method available to track the events when user hit any webpage.
I have done like this for each page when post back property is false then I update or insert in the database. But .each time I hit the database when page first time loads which effects on performance.. If any body have some idea or developed such type of application. Please help me.

Regards,


rajesh


  Re: How to Count hit web pages by users?  JBelthoff at 14:35 on Tuesday, May 09, 2006
 

Why don't you use a session variable. You could also use a cookie but it would be more problematic.

Also, updating a database just for a single count is not that resource intensive. If you notice a degrade in performance than you probably have other things slowing it down.











CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Date script issues
•  perl script help needed
•  onChange issue
•  perl remote execution
•  Chat application
•  How to send multiple perameters in SOAP request.
•  Java code for Insert picture on the table in spreadsheet
•  Re: Problem with concatenation
•  how to genrates the crystal report by sending a id at runtime


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007