Click here to Skip to main content
13,042,819 members (75,262 online)
Click here to Skip to main content


24 bookmarked
Posted 16 Oct 2009

How to Create an Event for a User Control

, 16 Oct 2009
Article on how to create a user defined event for a user control
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctrlCalculator.ascx.cs" Inherits="ctrlCalculator" %>
    Enter value 1: <asp:TextBox ID="txtValue1" runat="server"></asp:TextBox><br />
    Enter value 2: <asp:TextBox ID="txtValue2" runat="server"></asp:TextBox><br /><br />
    <asp:Button ID="btnPerformOperation" Text="Calculate" runat="server" onclick="btnPerformOperation_Click" />

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.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Web Developer
United Arab Emirates United Arab Emirates
Faraz is working as a Senior Software Engineer for a company located in Sharjah, UAE. He likes developing new applications with the latest technologies. Mostly reponsible for web applications using Microsoft.Net. He has done MCPD so far. Other than work play guitars, sing and play PSP.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170713.1 | Last Updated 16 Oct 2009
Article Copyright 2009 by farazsk11
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid