Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 2nd, 2008, 08:01 PM
Registered User
 
Join Date: Sep 2008
Location: Ho Chi Minh, , Vietnam.
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 ?
Thank....

Reply With Quote
  #2 (permalink)  
Old October 2nd, 2008, 08:57 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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.

-Peter
compiledthoughts.com
Reply With Quote
  #3 (permalink)  
Old October 2nd, 2008, 09:08 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 03:53 PM.


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