keep JavaScript array variable during post-back
<p>How can I keep the values of ;ctrlIDhdnImageSourceArrayJs,ctrlIDhdnElementsArayJsHidden  during a web page life-cycle...  </p>

<pre><code>"&lt;script language = javascript&gt;
                                            debugger;
                                            var ctrlIDhdnImageSourceArrayJs     = '" + this.hdnImageSourceArrayJs.ClientID + @"';
                                            var ctrlIDhdnElementsArayJsHidden   = '" + this.hdnElementsArayJsHidden.ClientID + @"';
                                            var loaderF = function getImagesData()
                                            {

                                                var fieldNamesList=[" + fieldNames + @"];
                                                return KrediKartUtils.LoadImagesData('0','" + KrediKartiRow.Row.SmartPenFormNo + @"',fieldNamesList,LoadImagesDataCallBack);        
                                            };


                                            function LoadImagesDataCallBack()
                                            {
                                                    if(images.length &gt; 0) 
                                                    {
                                                        var numImages = 10; /*10 ar 10 ar göster*/
                                                        while(images.length &gt; 0 &amp;&amp; numImages-- &gt; 0)
                                                        {
                                                            document.getElementById(elements.shift()).src =images.shift();

                                                        }
                                                       /* setTimeout(fetchImages, 1000); *//*1sn de bir*/
                                                    LoadImagesDataCallBack();
                                                    }

                                            }
                                            if('False' == '" + Page.IsPostBack.ToString() + @"')
                                            {

                                              var images=[" + imageSourceArrayJs + @"];
                                              var elements=[" + elementsArayJs + @"];  
                                              document.getElementById(ctrlIDhdnImageSourceArrayJs).value="""+imageSourceArrayJs+@""";
                                              document.getElementById(ctrlIDhdnElementsArayJsHidden).value="""+elementsArayJs+@""";  
                                              window.onload = loaderF;                                  
                                            }else{
                                                var images=[document.getElementById(ctrlIDhdnImageSourceArrayJs).value];
                                                var elements=[document.getElementById(ctrlIDhdnElementsArayJsHidden).value];                         
                                               LoadImagesDataCallBack();
                                            }

                                            &lt;/script&gt;";
</code></pre>
