title: How to store array collection in asp.net viewstate
body: <p>i have a custom control i need to store the array collection in the view state. array collection is circular scales. How to proceed further ? </p>
  
  <pre><code>public class CircularGauge : WebControl
      {
  private CircularGaugeProperties model = new CircularGaugeProperties();
  
  private List&lt;CircularScales&gt; scales = new List&lt;CircularScales&gt;();
  [Browsable(true)]
          [Bindable(true)]
          [Category("Circular Gauge Properties")]
          [Description("Scale values")]
          [JsonProperty("scales")]
          [MergableProperty(false)]
          [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
          [PersistenceMode(PersistenceMode.InnerProperty)]
          public List&lt;CircularScales&gt; Scales
          {
              get
              {
                  if (scales == null)
                  {
                      scales = new List&lt;CircularScales&gt;();
                  }
                  return scales;
              }
          }
  }
  </code></pre>
  
  <p>where circular scales have array collection as inner properties.then how can i need to bind the properties in the Circularscales for viewstate maintenance.</p>