using MyWebSite.CONTROL; namespace MyWebSite { public partial class _Default : System.Web.UI.Page { Navigation Navy; private void Create_MainTable() { Navy = (Navigation)LoadControl("~/CONTROL/Navigation.ascx"); Navy.BtnHello.OnClientClick += new EventHandler(BtnHello_Click); MainPanelOnMySite.Controls.Add(Navy); } protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { this.Create_MainTable(); } } protected void BtnHello_Click(object sender, EventArgs e) { Navy.BtnHello.Text = "HELLO WORLD"; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)