Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/07/2011, 11:58
chamuco11
 
Fecha de Ingreso: agosto-2010
Ubicación: Rincon de Romos
Mensajes: 16
Antigüedad: 14 años, 7 meses
Puntos: 0
Información Dropdownlist y texbox

Tengo este codigo para que al momento de seleccionar el dropdown list me llene el combo box pero al momento de ejecutar me salen el dropdownlist y textbox pero sin datos cual seria el problema.
public partial class employes : System.Web.UI.Page
{
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
Biomedica_historialModel.Biomedica_historialEntida des Entidad;
Entidad = new Biomedica_historialModel.Biomedica_historialEntida des();
DropDownList1.DataSource = Entidad.biomedica_hist;
DropDownList1.DataValueField = "id";
DropDownList1.DataValueField = "No_serie";
TextBox1.Text = Convert.ToString(DropDownList1.SelectedValue);


}
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
Biomedica_historialModel.Biomedica_historialEntida des Entidad;
Entidad = new Biomedica_historialModel.Biomedica_historialEntida des();
DropDownList1.DataSource = Entidad.biomedica_hist;
DropDownList1.DataValueField = "id";
DropDownList1.DataValueField = "No_serie";
TextBox1.Text = Convert.ToString(DropDownList1.SelectedValue);
}




}