public Tiempo() { InitializeComponent(); try { //variable local String country; //mostramos los pasises obtenidos del WebService de Country webServicePais = new WSpaises.country(); dataSetPais = new DataSet(); sortedListPais = new SortedList(); pais = webServicePais.GetCountries(); dataSetPais.ReadXml(new System.IO.StringReader(pais)); for (int i = 0; i < dataSetPais.Tables[0].Rows.Count; i++) { country = dataSetPais.Tables[0].Rows[i][0].ToString(); sortedListPais.Add(country, country); } ComboPaises.DataSource = sortedListPais.GetValueList(); ComboPaises.Show(); //creamos una tabla que guardara los datos de la temperatura tablaTiempo = new DataTable(); tablaTiempo.Columns.Add(new DataColumn("Temperatura")); tablaTiempo.Columns.Add(new DataColumn("Presion")); tablaTiempo.Columns.Add(new DataColumn("Viento")); tablaTiempo.Columns.Add(new DataColumn("Visibilidad")); tablaTiempo.Columns.Add(new DataColumn("Humedad Relativa")); tablaTiempo.Columns.Add(new DataColumn("Fecha/Hora")); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
protected void BtnClick(object sender, EventArgs e) { lbApellido.InnerHtml = "- " + txtapellido.GetValorCaja(); lbNombre.InnerText = "- " + txtNombre.GetValorCaja(); lbCuit.InnerText = "- " + txtCuit.GetValorCuit(); lbEdad.InnerHtml = "- " + txtEdad.GetValorEdad(); lbSexo.InnerHtml = "- " + RadioButtonSex.GetValorRadio(); lbPais.InnerHtml = "- " + ComboPaises.GetValorCombo(); lbHijos.InnerHtml = "- " + RangoHijosMenores.GetValorHijos(); }
protected void Button1_Click(object sender, EventArgs e) { if (Page.IsValid) { Session["nombre"] = nom.GetValorCaja(); Session["apellido"] = apellido.GetValorCaja(); Session["dni"] = txtdni.GetValorCaja(); Session["domicilio"] = txtdomicilio.GetValorCaja(); Session["nacionalidad"] = ComboPaises.GetValorCombo(); Session["sexo"] = RadioButtonSex.GetValorRadio(); Session["fecha"] = Fecha.GetFec(); } Response.Redirect("estudios.aspx"); }