Casual Articles
#1 in Business Subscribe Email Print

You are here: Home > Internet and Businesses Online > Web Development > Simple C# Page Hit Counter

Tags

  • organize
  • snippet
  • visitor
  • suggest using
  • visitor remains

  • Links

  • Being Led by the Spirit??¦Tapping into Your Intuition
  • Home Buyers, Does Your Agent Work For You?
  • The 6 Fundamentals of Six Sigma Training
  • Casual Articles - Simple C# Page Hit Counter

    Business Plan - Critical to Success
    A business plan is a must. The process of creating one forces you to organize your dreams and goals into a specific strategy. It brings forth issues you may have forgotten – maybe not thought of at all yet. It helps organize your efforts and focus them on the ultimate goal: Success.The business plan is a solid, non-negotiable tool to measure progress. It actually simplifies your life. Why? It removes the emotion from decision ma
    code requires only a minimal amount of knowledge of the .NET environment, and of course your website should be hosted on a windows server with the .NET environment.

    This code can be copied and pasted in the footer area of any .aspx file

    How SEO Goes Hand in Hand with Website Translation
    Understanding the power of the internet and its influence on marketing strategy is the first step towards the realization of the importance and requisiteness of website translation to reach not just the native language market but the global market as well.In today’s world, most people are using the internet to find information and gain access to resources they both normally cannot access or would require some travel and effort to acqui
    If you have or are interested in developing your own website, there probably will come a time when you want to get a general idea of how many times your website is being visited. There are more elaborate ways to do this of course, some developers refer you to reading the server logs, others will suggest using a third party product and implementing it's code within your own website.

    For the rest of you who would rather just get a general idea if your personal website is getting roughly 10 hits per day or 1000, this little code snippet will help get you on your way. I have developed elaborate site analysis applications that provide statistics on what pages are being viewed, how long the visitor remains at that specific page, what browser they are using, who referred them to the website to begin with as well as what their I.P address is and the list goes on. For the sake of this article though, we'll be using the k.i.s.s method.

    The level of this code requires only a minimal amount of knowledge of the .NET environment, and of course your website should be hosted on a windows server with the .NET environment.

    This code can be copied and pasted in the footer area of any .aspx file i

    Postcard Printing - Are they In or Out?
    Postcards are valuably known as a material that represents a business. It conveys a message that makes clients turn their heads even without the existence of a personal representative.With the tight competition foreseen at present it is daunted whether it is effective to make use of postcards. Are they really valuable tool to have for marketing, promotions and advertising? Is Postcard printing in or out?Competition is really har
    pers refer you to reading the server logs, others will suggest using a third party product and implementing it's code within your own website.

    For the rest of you who would rather just get a general idea if your personal website is getting roughly 10 hits per day or 1000, this little code snippet will help get you on your way. I have developed elaborate site analysis applications that provide statistics on what pages are being viewed, how long the visitor remains at that specific page, what browser they are using, who referred them to the website to begin with as well as what their I.P address is and the list goes on. For the sake of this article though, we'll be using the k.i.s.s method.

    The level of this code requires only a minimal amount of knowledge of the .NET environment, and of course your website should be hosted on a windows server with the .NET environment.

    This code can be copied and pasted in the footer area of any .aspx file

    How to Use Latent Semantic Indexing (LSI) to Improve Your Web Writing Results
    If you write anything for the Internet, especially "SEO" (search engine optimization) copywriting, and you're not using LSI, you're behind the times -- and your competition.Because Google and other search engines are using LSI to decide the relevance of your words to your subject matter. This obviously determines how much traffic you can expect from search engine results.If you're still using old-fashioned keyword density analys
    ng roughly 10 hits per day or 1000, this little code snippet will help get you on your way. I have developed elaborate site analysis applications that provide statistics on what pages are being viewed, how long the visitor remains at that specific page, what browser they are using, who referred them to the website to begin with as well as what their I.P address is and the list goes on. For the sake of this article though, we'll be using the k.i.s.s method.

    The level of this code requires only a minimal amount of knowledge of the .NET environment, and of course your website should be hosted on a windows server with the .NET environment.

    This code can be copied and pasted in the footer area of any .aspx file

    Advertising Balloons: The Five W's
    The effectiveness of advertising balloons is topped only by the relatively new phenomenon of advertising wrapping. Wrapping, which consists of printing advertising on thin material and literally wrapping it around an object to turn it into a billboard, is extremely costly. Advertising balloons, on the other hand, are extremely affordable. Here, then, is the Who, What, When, Where, and Why of advertising inflatables. Who: Advertisin
    ific page, what browser they are using, who referred them to the website to begin with as well as what their I.P address is and the list goes on. For the sake of this article though, we'll be using the k.i.s.s method.

    The level of this code requires only a minimal amount of knowledge of the .NET environment, and of course your website should be hosted on a windows server with the .NET environment.

    This code can be copied and pasted in the footer area of any .aspx file

    Free Targeted Internet Traffic
    Let others help with your marketing efforts. You can have strangers pass your site to others and span the globe with viral marketing. Create viral marketing with a free e-book or inviting email, it is powerful and free. To start a viral marketing campaign that grows exponentially and without effort send a witty or clever joke, picture, or poem to people in your address book. If enjoyed the recipient will pass it on to those in their list and
    code requires only a minimal amount of knowledge of the .NET environment, and of course your website should be hosted on a windows server with the .NET environment.

    This code can be copied and pasted in the footer area of any .aspx file in your website. Generally, you would put it in the footer of the home page, or at least that's a good place to start.

    The first thing you'll want to do is create an empty text file, call it counter.txt and save it to your root directory. The next step is even easier, copy and paste the code below into your .aspx file and save it. Be sure to import the system.IO class into your page something like this

    <%@ import namespace="System.IO" %>

    < script runat="server" > public string counter() {

    StreamReader re = File.OpenText(Server.MapPath("counter.txt"));

    string input = null;

    string mycounter = "";

    while ((input = re.ReadLine()) != null)

    {

    mycounter = mycounter + input;

    }

    re.Close();

    int myInt = int.Parse(mycounter);

    myInt = myInt + 1;

    TextWriter tw = new StreamWriter(Server.MapPath("counter.txt"));

    tw.WriteLine(Convert.ToString(myInt));

    tw.Close();

    HTTP = HTML link (for blogs, profiles,phorums):
    <a href="http://www.casualarticles.com/article/86571/casualarticles-Simple-C-Page-Hit-Counter.html">Simple C# Page Hit Counter</a>

    BB link (for phorums):
    [url=http://www.casualarticles.com/article/86571/casualarticles-Simple-C-Page-Hit-Counter.html]Simple C# Page Hit Counter[/url]

    Related Articles:

    Post-Katrina Role Of Property Insurers Threaten Consumers Nationwide

    Building An Income Empire with Affiliate Programs

    Internet Marketing - The Top 3 Ways To Make Money With Internet Marketing

    Bookmark it: del.icio.us digg.com reddit.com netvouz.com google.com yahoo.com technorati.com furl.net bloglines.com socialdust.com ma.gnolia.com newsvine.com slashdot.org simpy.com shadows.com blinklist.com