I am presently running IIS that comes with Windows XP professional. I have Visual Web Developer 2005 Express edition, and running ASP.Net 2.0.
I wanted to add a page counter to my various pages on my home page. In my search on how to accomplish this, I have learned that ASP.Net 2.0 has a site counters API. Further, in atleast one online web article, and in the book "ASP.NET v. 2.0 The Beta Version" (the Microsoft .net Development series) there is discussion on setting up page counters.
There is mention of the "countclicks" property for hyperlinks, along with the "countergroup" and "countername" properties. (For an example, I found this online article:http://www.devx.com/asp/Article/21975)
Here's the thing. When I put a hyperlink control on my webpage, I see no such properties. None.
Where is that property? How do I enable my hyperlink control (and adrotator control) so that I can set that up?) I keep reading about how ASP.Net 2.0 has a site counter and page counter API, but I have no idea how to get to it or set it up.
Further, I had also read in the above mentioned book that the web.config file needs to have site counters enabled. I ended up putting something like this in my web.config file:
<!--
Site and page counters
-->
<siteCounters enabled="true">
<pageCounters enabled="true">
<pagesToCount trackPageUrl="true">
<add path="/" />
</pagesToCount>
</pageCounters>
</siteCounters>
</system.web>
I thought this would enable the "countclicks", etc. properties. It has not. I still do not see the properties.
I realize I could probably write my own page counter object, however, if ASP.Net 2.0 is supposed to provide this service to make my job as a programmer easier, I would like to be utilize the service and API call rather than reinventing the wheel.
I have the following questions I need answered:
Where are the "countclicks", "countername", "countergroup" properties?
How do I enable them?
What do I need to do to be able to see them?
How do I set up my web.config file for site and page counters?
What am I missing or not have set up correctly that I am not seeing these properties?
Thank you very much.
Hello. If i'm not mistaken, these features were removed from beta 2 and will not make it into the final release.Hello,
As Luis said that has been removed.Take a look here for more details.
Move towards Beta 2.
Thank you to the both of you very very much. It's nice to know I didn't bang my head against the wall for that long. hehe..
I have gone ahead and implemented my own page counter class. It's very simple. As of this writing, I have to add functionality of taking care of page reloads, postbacks, and cut down on all around duplicates.
Again, Thanks! =)
0 comments:
Post a Comment