Ver Mensaje Individual
  #5 (permalink)  
Antiguo 20/04/2005, 04:03
Scho
 
Fecha de Ingreso: marzo-2004
Ubicación: Valencia
Mensajes: 367
Antigüedad: 20 años, 2 meses
Puntos: 1
Prueba esto
Código:
Dim comando As SqlCommand = conn.createcommand
Try
conn.open()
Catch ex As Exception
Response.Write(ex.Message.ToString)
End Try
comando.CommandType = CommandType.Text
comando.CommandText = "select * from clientes WHERE usuario= +usuario"
Dim oda As SqlDataAdapter
Dim ods As DataSet
oda = New SqlDataAdapter(comando)
ods = New DataSet
oda.Fill(ods, "clientes")
If ods.Tables("clientes").Rows.Count > 0 Then
mensaje.Text = "El nombre de usuario ya existe"
End If
Saludos