Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/11/2010, 16:34
Avatar de jaullo
jaullo
 
Fecha de Ingreso: abril-2009
Mensajes: 994
Antigüedad: 15 años
Puntos: 30
Respuesta: cargar grilla seleccionando con el dato seleccionado de un dropdownlist

Hola, algo asi

Código ASP:
Ver original
  1. SqlConnection sconn = new SqlConnection("my connecton");
  2.  
  3.          sconn.Open();
  4.  
  5.         DataTable dt = new DataTable();
  6.  
  7.         SqlDataAdapter da = new SqlDataAdapter("SELECT * FROM table where user='" + user +"'", sconn);
  8.  
  9.         da.Fill(dt);
  10.  
  11.  
  12.          GridView1.DataSource = dt;
  13.  
  14.         GridView1.DataBind();
  15.  
  16.          sconn.Close();
__________________
http://geekswithblogs.net/jaullo/Default.aspx
Si te he ayudado regalame Karma positivo!!!