Hola amigos:
tengo el siguiente problema, Ingreso un rut y valido que este bien ingresado ocupando onblur, eso me funciona perfecto, pero el problema lo tengo al momento de buscar en la base de datos, me sale que no lo encuentra, este es el codigo:
<td width="30%"><input name="xSC_Rut" align=right onBlur="valrut(this);" size=11 maxlength=11 style="text-align:right" value="<%=xSC_Rut%>"></td>
<%
Dim Rst_M_Proveedores
Dim Rst_M_Proveedores_numRows
Set Rst_M_Proveedores = Server.CreateObject("ADODB.Recordset")
Rst_M_Proveedores.ActiveConnection = MM_ChileCompras_STRING
Rst_M_Proveedores.Source = "SELECT * FROM M_Proveedores WHERE trim(Mpv_Rut)='" & TRIM(xSC_Rut) & "'"
Rst_M_Proveedores.CursorType = 0
Rst_M_Proveedores.CursorLocation = 2
Rst_M_Proveedores.LockType = 1
Rst_M_Proveedores.Open()
if not Rst_M_Proveedores.eof then
xSC_RazonSocial = Rst_M_Proveedores("Mpv_Empresa")
xSC_Direccion = Rst_M_Proveedores("Mpv_Direccion")
xSC_Comuna = Rst_M_Proveedores("Mpv_Comuna")
xSC_Fono = Rst_M_Proveedores("Mpv_Telefonos")
xSC_Fax = Rst_M_Proveedores("Mpv_Fax")
end if
response.write(xrut)
response.write(xSC_RazonSocial)
response.write(Rst_M_Proveedores.eof)
gracias