compadre....mi codigo completo es :
Código asp:
Ver original<%@ Language=VBScript %>
<% Response.addHeader " ", "no-cache" %>
<% Response.CacheControl = "Private" %>
<% Response.Expires=0 %>
<%
if Not IsEmpty(Request("rut")) then
rut = Request("rut")
end if
session("rut") =9999-9
set Cnn=Server.CreateObject("ADODB.Connection")
set rs=Server.CreateObject("ADODB.Recordset")
Cnn.Open Session("cnx")
strSQL = "select * from FACPVTA where rut='" & rut & "' "
set rs = Cnn.Execute(strSQL)
cnn.Execute(strSQL)
If Not rs.EOF then
rut1 = rs.Fields("RUT")
session("rut") = rs.fields ("RUT")
razon = rs.Fields("RAZON")
fecha_actual=date()
else
session("rut") =9999-9
end if
%>
<html>
<meta http-equiv="Expires" content="0">
<meta http-equiv="cache-control" content="no-store">
<head>
<title>Consulta de Facturas</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
<!--
body,td,th {
color: #FFFFFF;
}
body {
background-image: url(images/2.jpg);
}
-->
</style></head>
<body onLoad="document.frmClientes.rut.focus();" >
<SCRIPT LANGUAGE="JAVASCRIPT">
function validar(form)
{
var error = "POR FAVOR, ANTES DE ENVIAR EL FORMULARIO, DEBE COMPLETAR LOS SIGUIENTES CAMPOS:\n\n";
var a = ""
if (form.rut.value == "") { a += "RUT \n"; }
if (form.razon.value == "") { a += "RAZON SOCIAL\n"; }
if (form.folio.value == "") { a += "FOLIO FACTURA\n"; }
if (form.orden.value == "") { a += "Nº PEDIDO\n"; }
if (a != "") { alert(error + a); return true; }
insertar()
}
function insertar()
{
document.frmClientes.action='insert_clientes.asp?rut='+ document.frmClientes.rut.value+'&razon='+document.frmClientes.razon.value +'&folio='+document.frmClientes.folio.value +'&fecha='+document.frmClientes.fecha.value +'&orden='+ document.frmClientes.orden.value;
document.frmClientes.method="POST";
document.frmClientes.submit();
}
</SCRIPT>
<form name="frmClientes" method="post" action="facturas_final.asp" autocomplete = "off">
<table width="971" border="0" cellpadding="2" cellspacing="2">
<tr>
<td width="120" height="32"> Rut </td>
<%if session("rut") <>9999-9 then%>
<td width="250"> Razon Social</td>
<td width="120">Factura N°:</td>
<td width="120">Fecha:</td>
<td width="202"> N° Pedido </td>
<%end if %>
<tr>
<td width="120" ><input name="rut" value="<%=rut%>"> </td>
<%if session("rut") <>9999-9 then%>
<td width="250"><input name="razon" value="<%=razon%>" size=50></td>
<td width="120"><input name="folio" value="<%=folio%>" size=20 ></td>
<td width="120"><input name="fecha" value="<%=fecha_actual%>" readonly size=20 ></td>
<td width="202"><input name="orden" value="<%=orden%>" size=20></td>
<%end if %>
<tr>
<td colspan="2" align=left>
<p>
<input name="submit" type="submit" value="Buscar">
</td>
<%if session("rut") <>9999-9 then%>
<td colspan="2" align=left>
<input type="button" value="Terminar" onClick="validar(this.form)">
</td>
<%end if %>
</tr>
</table>
</FORM>
</body>
</html>
y me dice error de "el objeto no acepta esta propiedad o metodo"...linea 49
y esa es la de:
body {
background-image: url(images/2.jpg);
}
o sea extraño el error.....que podra ser ??