protected void OnSaveClick(object sender, EventArgs e) { ProfileNotification profileNotification = PhMessaging.FindControl("PNO") as ProfileNotification; if (profileNotification != null) { profileNotification.Save(); } }
protected void Page_Load(object sender, EventArgs e) { if (CustomizationSection.CachedInstance.Modules["Alerts"].Enabled) { ProfileNotification profileNotification = this.LoadControl("~/UserControls/Dashboard/ProfileNotification.ascx") as ProfileNotification; profileNotification.ID = "PNO"; PhMessaging.Controls.Add(profileNotification); } }