Good I would like to help me I'm new to c # and I really do not know if it can be done in a DropDownList that combo is loaded with a database that fills but what I want is for you to select a value and automatically fill it my texbox as ajax is not used. I may close the question. If you could help me or an example please.
As a real Search Engine just show any value of the DropDownList
protected void dprTarea_SelectedIndexChanged(object sender, EventArgs e) { string oficinas = ""; oficinas = lblagencia.Text = Session["oficina"].ToString(); SqlConnection conn = new SqlConnection(); conn = new SqlConnection("server=172.16.1.124; database=DBProAuxQP_QA; user id=sa; password=SA123456789*;"); conn.Open(); string query = "select Fechacumplimiento from TTareasIngreso where descripcion='" + dprTarea.SelectedValue + "' "; SqlCommand cmd = new SqlCommand(query, conn); SqlDataReader dr = cmd.ExecuteReader(); if (dr.Read()) { TxtFechaPago.Text = dr["Fechacumplimiento"].ToString(); } }