Click here to Skip to main content
15,892,537 members
Articles / Web Development / ASP.NET

JavaScriptBuilder: JavaScript Handler Class for Custom Controls

Rate me:
Please Sign up or sign in to vote.
4.74/5 (39 votes)
2 Sep 200311 min read 184K   5.4K   109  
The conflict between maintenance and efficiency examined and resolved.
<%@ Register TagPrefix="cpccnt" Namespace="CP.WebControls" Assembly="CP.WebControls.ClickCounter" %>
<%@ Page language="c#" Codebehind="cctest.aspx.cs" AutoEventWireup="false" Inherits="ClickCounterTest.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>ClickCounter Test Page</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<cpccnt:ClickCounter id="ClickCounter1" runat="server" Width="326px" BackColor="#E0E0E0" BorderColor="Black"
				BorderWidth="3px" BorderStyle="Ridge"></cpccnt:ClickCounter>
		</form>
	</body>
</HTML>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United Kingdom United Kingdom
Paul lives in the heart of En a backwater village in the middle of England. Since writing his first Hello World on an Oric 1 in 1980, Paul has become a programming addict, got married and lost most of his hair (these events may or may not be related in any number of ways).

Since writing the above, Paul got divorced and moved to London. His hair never grew back.

Paul's ambition in life is to be the scary old guy whose house kids dare not approach except at halloween.

Comments and Discussions