Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["NombreUsuario"] == null)
            {
                Response.Redirect("/Default.aspx");
            }

            proxy  = new webservice.webservice();
            proxy2 = new otrowebservice.otrowebservice();


            String estados = Convert.ToString(proxy.desplegarEstados());
            Array  est     = estados.Split(',');

            foreach (string item in est)
            {
                for (int i = 0; i < item.Length; i++)
                {
                    try
                    {
                        ListBox1.Items.Add(est.GetValue(i).ToString());
                    }
                    catch (Exception exx)
                    {
                        Console.WriteLine(exx);
                    }
                }
            }

            String lista2  = Convert.ToString(proxy2.CONOCIMIENTOSDISPONIBLES());
            Array  listus2 = lista2.Split(',');

            foreach (string item in listus2)
            {
                for (int j = 0; j < item.Length; j++)
                {
                    try
                    {
                        DropDownList1.Items.Add(listus2.GetValue(j).ToString());
                    }
                    catch (Exception exx)
                    {
                        Console.WriteLine(exx);
                    }
                }
            }

            String lista  = Convert.ToString(proxy2.LISTADOPARACALIFICAR());
            Array  listus = lista.Split(',');

            foreach (string item in listus)
            {
                for (int j = 0; j < item.Length; j++)
                {
                    try
                    {
                        DropDownList2.Items.Add(listus.GetValue(j).ToString());
                    }
                    catch (Exception exx)
                    {
                        Console.WriteLine(exx);
                    }
                }
            }
        }