Building a Page Counter (Image) Using JScript.Net
page 5 of 6
by Devarticles.com
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 28376/ 54

The JScript.Net Code, Part 3

Also, add the following namespaces to the namespace declarations at the beginning of the file:

[code="JScript"]

<%@ Import namespace="System.Drawing" %>
<%@ Import namespace="System.Drawing.Imaging" %>
<%@ Import namespace="System.Drawing.Drawing2D" %>

[/code]

And finally, replace "Response.Write(getCounter());" with "drawCounter();". Go back to your browser and refresh the page. You will see a graphical counter that increments when any new visitor comes to the page.


View Entire Article

User Comments

Title: Firefox :s   
Name: Remi
Date: 2007-04-07 9:04:44 AM
Comment:
Thnx!
Works great in IE! Only Firefox has some problems displaying the image. It just shows a range of weird characters :s.
Title: SPA   
Name: dheeraj Ahuja
Date: 2005-10-28 3:07:28 AM
Comment:
this is gud article and it helped me alot
now wht i want is to call a server side from client routine with refering any "src",
is there any way

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-03-29 8:38:27 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search