/// <summary> /// Puts a user instance of a user-implemented state manager in an ASP.NET session. /// </summary> /// <remarks>Implement StateManager in your application if you are handling state manually. This method allows you to /// put an instance of your state manager into an ASP.NET session.</remarks> /// <param name="sm">Instance of class derived from StateManager.</param> public static void PutStateManagerInSession(StateManager sm) { HttpContext.Current.Session[GetKey(StateManager.StateManagerKey)] = sm; }
/// <summary> /// Method to prepare parameters used by the StateManager. /// </summary> /// <param name="sm">The StateManager object which contains an IDictionary to hold parameters.</param> /// <remarks>You can override this method to change parameters values but you need to synchronize with your own web application. /// </remarks> public virtual void PrepareStateManagerParamsDictionary(StateManager sm) { if(sm != null) { sm.ParamsDictionary[StateManager.ActiveMapAliasKey] = MapAlias; } }