public event EventHandler SaveButtonClick; protected void ButtonSave_Click(object sender, EventArgs e) { if (SaveButtonClick != null) { SaveButtonClick(this, new EventArgs()); } }
Init
protected void AddressUserControl1_SaveButtonClick(object sender, EventArgs e) { } protected void Page_Init(object sender, EventArgs e) { AddressUserControl1.SaveButtonClick += this.AddressUserControl1_SaveButtonClick; }
CodeProject
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)