protected void Page_Load(object sender, EventArgs e) { Hashtable State = (Hashtable)HttpRuntime.Cache[Session.SessionID]; if (State == null || State.Count <= 2) { Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "timeOut('../Default.aspx');", true); return; } if (!IsPostBack) { AmazonS3 S3 = new AmazonS3(); ArrayList images = S3.GetAppImageArchiveUrls(State); images.Sort(); ImageList.Items.Clear(); foreach (string url in images) { string name = url.Substring(url.LastIndexOf("/") + 1); ImageList.Items.Add(new RadComboBoxItem(name, url)); } } }