![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
29/06/2005, 08:35
|
![Avatar de splinter](http://static.forosdelweb.com/customavatars/avatar68237_1.gif) | | | Fecha de Ingreso: junio-2004 Ubicación: Misantla,Ver.Mexico
Mensajes: 181
Antigüedad: 20 años, 7 meses Puntos: 0 | |
Usando un SP y un reader
...
...
oComando.Parameters.Add("@opc", SqlDbType.Int) : oComando.Parameters.Item("@opc").Value = opc
oComando.Parameters.Add("@param1", SqlDbType.Char, 12) : oComando.Parameters.Item("@param1").Value = Param1.ToString
oComando.Parameters.Add("@param2", SqlDbType.Char, 12) : oComando.Parameters.Item("@param2").Value = Param2.ToString
MyDR = oComando.ExecuteReader
ElGrid.DataSource = MyDR
ElGrid.DataBind() 'LLENAR EL GRID |