Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
143
WebImageViewer in WebAsyncRefreshPanel
posted

Hi

I'm using the webimageviewer to my web application. I take the Selection example from your Samples Browser, work fine. After that, i put the control into a warp panel, the code to populate with the images is:

 

        protected void LlenaSlideShow()
        {

            WebImageViewer1.Items.Clear();

            ConsultaAnexosFAC caf = new ConsultaAnexosFAC();

            DataSet ds = caf.ListarAnexos("connectionString", ddlCategoria.SelectedValue, txtBuscar.Text, "1");

            caf = null;

            if (ds != null && ds.Tables[0].Rows.Count > 0)
            {
                foreach (DataRow dr in ds.Tables[0].Rows)
                {
                    ImageItem img = new ImageItem(dr["RUT"].ToString() + ".jpg", dr["APELLIDOS"].ToString() + ", " + dr["NOMBRE"].ToString(), dr["APELLIDOS"].ToString() + ", " + dr["NOMBRE"].ToString());
                    img.Key = dr["RUT"].ToString() + ".jpg";
                    WebImageViewer1.Items.Add(img);
                }
            }

            WebImageViewer1.DataBind();

        }

 

i call this method in the Page_Load and still working fine, i call this method from a button control, which is the TriggerControlID to the warp panel. When i click this button, the webimageviewer clear the collection of images, but dont show the new collection.

 

I hope you can help me

 

Regards 

Parents Reply Children
No Data