Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Counting Views for an ASP.net Page
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Counting Views for an ASP.net Page

 Post Reply Post Reply Page  <123>
Author
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2004 at 3:57pm

I added <%@ Import Namespace="System.Diagnostics" %> to the top of my web page. I also added the three lines of debugging code. But I am not completely sure about how to do what you said: Almost forgot:
run the altered script via. Debug start in VS.NET and paste the text in the 'Output' frame into here,

I have never created a VS.net page. I still have a lot to learn about ASP.net.

 



Edited by Misty
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2004 at 4:43pm

The screen shot below shows how you open in debug mode:

http://www.devjunkies.com/examples/debug.jpg

Back to Top
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2004 at 11:46pm

Mart, I couldn't see it clearly. It looked something like:

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2004 at 5:29am
Probably because your using IE, hover your mouse around the bottom right corner then press the expand icon that pops up
Back to Top
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2004 at 2:23pm

I was able to see the image clearly after clicking on the icon to expand the picture. I hate to say this, but I don't have Visual Studio .Net installed on my computer. I just never purchased it. I use Dreamweaver or Microsoft Interdev 6.0 to edit my ASP.Net code. I jusy wish that I could figure out why it is adding 2 to the views instead of 1.

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2004 at 3:01pm
Oh, ok, just change debug.writeline to response.write and paste in the first few lines of view source
Back to Top
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2004 at 3:08pm

I change it to response.write. Here are the results that I got:

PageLoadPageLoadPostbackBindDataListPageLoadPageLoadPostback BindDataList

Here's what I have in my code now:

Response.write("PageLoad")

Response.write("PageLoadPostback")

Response.write("BindDataList")

Is this what I was supposed to get for the results?

Back to Top
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Posted: 01 November 2004 at 2:00am

I don't think that it was supposed to show the results above. I just wish I knew why it was adding 2 to the views instead of 1. Did I use Response.write the correct way?

Back to Top
 Post Reply Post Reply Page  <123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.