Exemplo n.º 1
0
        /// <summary>
        /// /// Handle loading of client state
        /// </summary>
        /// <param name="sender">sender</param>
        /// <param name="e">args</param>
        private void IdentifierInputBoxExtender_ClientStateValuesLoaded(object sender, EventArgs e)
        {
            if (this.ClientState != null)
            {
                JavaScriptSerializer jss = new JavaScriptSerializer();

                // May need to create one...
                // jss.RegisterConverters(new JavaScriptConverter[] { new IdentifierJavascriptConverter() });

                this.state = jss.Deserialize <IdentifierInputClientState>(ClientState);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Default Constructor
 /// </summary>
 public IdentifierInputBoxExtender()
 {
     this.EnableClientState = true;
     this.state = new IdentifierInputClientState();
     this.ClientStateValuesLoaded += new EventHandler(this.IdentifierInputBoxExtender_ClientStateValuesLoaded);
 }
Exemplo n.º 3
0
        /// <summary>
        /// /// Handle loading of client state
        /// </summary>
        /// <param name="sender">sender</param>
        /// <param name="e">args</param>
        private void IdentifierInputBoxExtender_ClientStateValuesLoaded(object sender, EventArgs e)
        {
            if (this.ClientState != null)
            {
                JavaScriptSerializer jss = new JavaScriptSerializer();

                // May need to create one...
                // jss.RegisterConverters(new JavaScriptConverter[] { new IdentifierJavascriptConverter() });

                this.state = jss.Deserialize<IdentifierInputClientState>(ClientState);
            }
        }
Exemplo n.º 4
0
 /// <summary>
 /// Default Constructor
 /// </summary>
 public IdentifierInputBoxExtender()
 {
     this.EnableClientState        = true;
     this.state                    = new IdentifierInputClientState();
     this.ClientStateValuesLoaded += new EventHandler(this.IdentifierInputBoxExtender_ClientStateValuesLoaded);
 }