Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 2nd, 2008, 08:01 PM
Registered User
Join Date: Sep 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to count the number of access the webpage ?

I have 2 pages of website : login.aspx and Upload.aspx
Assume that there are 2 students : A and B
If student A login successfully , he reaches page upload.aspx .In this page there is a label whose content is you reach this page 1 time .
After that , he closes this page and login again , and the label content is you reach this page 2 times

Meanwhile student B login successfully , he reaches page upload.aspx .In this page the label's content is you reach this page 1 time

How could I do that ?

Old October 2nd, 2008, 08:57 PM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

Should this value be persisted regardless of a new browser session?
What do you mean by "closes the page"? You can't really close a page per se. You can close the browser however.

Please define the parameters of your requirement further.

Old October 2nd, 2008, 09:08 PM
Friend of Wrox
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts

Well, I think the fact that the count is supposed to carry across multiple logins would say to me that it must persist.

What's more interesting: If, after logging in, the student goes to some other page and then comes back to this same page--without logging out, without closing the browser--is that counted as another visit to the page? Or are we really supposed to be counting successful logins?

> Please define the parameters of your requirement further.

Or define them at all, really.

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to count the number of occurence of a string ? khb3283 C# 12 October 5th, 2008 11:10 PM
How to count number of parameters given in URL by alfiecrosby PHP How-To 1 April 23rd, 2008 01:57 AM
display count results and image in webpage carswelljr SQL Language 2 April 19th, 2007 09:44 AM
count the number of rows in the table crmpicco Javascript How-To 4 February 2nd, 2005 12:58 AM
count the TOTAL number of segments crmpicco Classic ASP Basics 2 February 1st, 2005 05:03 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.