Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/09/2008, 16:08
RYOO
 
Fecha de Ingreso: septiembre-2008
Mensajes: 1
Antigüedad: 15 años, 8 meses
Puntos: 0
Exclamación Pasar datos de grid a bd sql

KE HAY AMIGOS... AQUÍ CON UNA MOLESTIA EN ASP.NET_2005 CON SQL_2005, ESTOY HACIENDO UN PROGRAMA DE ALTAS, BAJAS Y CAMBIOS... Y YA ME QUEDÓ USANDO TEXTXBOX'S PERO AHORA QUIERO MOSTRARLOS EN UN GRIDVIEW Y QUE EN EL MISMO GRIDVIEW SE ACTUALICEN Y POR MEDIO DE UN BOTÓN SE GUARDEN LOS CAMBIOS Y NO PUEDO ...

AQUI LES ADJUNTO EL CÓDIGO ESPERANDO PUEDAN APOYARME...

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

If (Page.IsPostBack <> True) Then


Dim conexion As New SqlConnection
Dim conString As String
conString = "Data Source=SERVER\SQLEXPRESS; Initial Catalog=
ALUMNOS; Integrated Security=True"

conexion.ConnectionString = conString
conexion.Open()


Dim comando As New SqlCommand("con", conexion)
Dim Dato As New DataSet
Dim adaptador As New SqlDataAdapter(comando)
comando.CommandType = CommandType.StoredProcedure
adaptador.Fill(Dato)
dg.DataSource = Dato

dg.DataBind()
conexion.Close()




End If
End Sub





TNK'S