public static void UpdateTracker(Page pParent, string sModule, Guid gID, string sName) { // 08/21/2005 Paul. This function is also called after a user clicks Duplicate. // In this scenerio, the gID will be NULL, so don't do anything. if (!Sql.IsEmptyGuid(gID)) { SqlProcs.spTRACKER_Update(Security.USER_ID, sModule, gID, sName); if (pParent != null) { _controls.Header ctlHeader = pParent.FindControl("ctlHeader") as _controls.Header; if (ctlHeader != null) { _controls.LastViewed ctlLastViewed = ctlHeader.FindControl("ctlLastViewed") as _controls.LastViewed; if (ctlLastViewed != null) { ctlLastViewed.Refresh(); } } } } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.Load += new System.EventHandler(this.Page_Load); ctlHeader = Page.FindControl("ctlHeader") as Header; }