/// <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); } }
/// <summary> /// Default Constructor /// </summary> public IdentifierInputBoxExtender() { this.EnableClientState = true; this.state = new IdentifierInputClientState(); this.ClientStateValuesLoaded += new EventHandler(this.IdentifierInputBoxExtender_ClientStateValuesLoaded); }
/// <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); } }
/// <summary> /// Default Constructor /// </summary> public IdentifierInputBoxExtender() { this.EnableClientState = true; this.state = new IdentifierInputClientState(); this.ClientStateValuesLoaded += new EventHandler(this.IdentifierInputBoxExtender_ClientStateValuesLoaded); }