Exemplo n.º 1
0
        public void UpdateUserData()
        {
            if (UserInfo.UserID >= 0 && !DisableUserInfo) // only save this to DB if it's a registered user.  We don;t want robots creating records in DB.
            {
                UInfo.UserId         = UserInfo.UserID;
                UInfo.TabId          = TabId;
                UInfo.SkinSrc        = Globals.QueryStringEncode(Utils.RequestQueryStringParam(Context, "SkinSrc"));
                UInfo.EntityTypeCode = EntityTypeCode;
                UInfo.CtrlTypeCode   = CtrlTypeCode;

                // set these returns independantly, to allow return to previous pages & ajax called over paging.
                //UInfo.RtnSelUrl = EditUrl("itemid", ItemId, CtrlTypeCode);
                //UInfo.RtnUrl = EditUrl("itemid", ItemId, CtrlTypeCode);
                //UInfo.FromItemId = ItemId;

                if (CtrlSearch.Visible)
                {
                    UInfo.SearchGenXml = GenXmlFunctions.GetGenXml(CtrlSearch);
                }
                UInfo.Save();
            }
        }