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

ASP.NET User Controls - Notify One Control Of Changes In Other Control

Rate me:
Please Sign up or sign in to vote.
4.39/5 (23 votes)
12 Mar 20026 min read 195.3K   2.6K   87  
A tutorial on how to use delegate model to notify one ASP.NET user control of changes in the other user control.
using System;

namespace ASPNet_App.Controls
{
	/// <summary>
	/// Summary description for BannerChangeEventArgs.
	/// </summary>
	public class BannerChangeEventArgs : EventArgs
	{
		private string m_strImgURL = "";
		private string m_strLinkURL = "";
		public BannerChangeEventArgs()
		{
			//
			// TODO: Add constructor logic here
			//
		}

		/// <summary>
		/// 
		/// </summary>
		public string ImageURL
		{
			get
			{
				return m_strImgURL;
			}
			set
			{
				m_strImgURL = value;
			}
		}

		/// <summary>
		/// 
		/// </summary>
		public string LinkURL
		{
			get
			{
				return m_strLinkURL;
			}
			set
			{
				m_strLinkURL = value;
			}
		}
	}
}

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 States United States
To learn more about us, Please visit us at http://www.netomatix.com

Comments and Discussions