Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

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" %>
<div>
    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" />
</div>

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

farazsk11
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.

| Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 16 Oct 2009
Article Copyright 2009 by farazsk11
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid