Ejemplo n.º 1
0
 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();
                 }
             }
         }
     }
 }
Ejemplo n.º 2
0
 /// <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;
 }