protected void Page_Load(object sender, EventArgs e) { string er = Convert.ToString(Session["ErrorRC"]); var sedes = cur.ListaSede(); if (er != "") { error = "RC"; } foreach (var item in sedes) { ddlSede.Items.Insert(Convert.ToInt32(item.IdSede), item.NombreSede.ToString()); } ddlSede.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { BLL.Seguridad seg = new BLL.Seguridad(); var sedes = cur.ListaSede(); foreach (var item in sedes) { ddlSede.Items.Insert(Convert.ToInt32(item.IdSede), item.NombreSede.ToString()); } ddlSede.DataBind(); String Datos = Request.QueryString["dat"]; //Datos = Datos.Replace("", "+"); //var count = Convert.ToString(Session["Inf"]); if (Datos != null /*&& count == "" || (Datos != null && count == "X")*/) { //if (count == "X") //{ // Session["Inf"] = "XY"; //} //else //{ // Session["Inf"] = "X"; //} var desc = Datos; desc = desc.Replace("Ɲ", "+"); desc = seg.Decriptar(desc); desc = desc.Replace("Ơ", " ").Replace("ƶ", "-"); var datD = desc.Split('ὣ'); txtCodigoCurso.Text = datD[1]; txtNombreCurso.Text = datD[6]; txtDuracion.Text = datD[2]; txtObjetivoCurso.Text = datD[7]; txtMaterial.Text = datD[4]; txtCertificacion.Text = datD[0]; txtInversion.Text = datD[3]; txtMetodologia.Text = datD[5]; //txtCodigoCurso.Enabled = false; ddlSede.SelectedIndex = Convert.ToInt32(datD[8]); } }