Foros del Web » Programando para Internet » ASP Clásico »

k le pasa a esto...

Estas en el tema de k le pasa a esto... en el foro de ASP Clásico en Foros del Web. Alguien con nescape puede mirarme esta url http://www27.brinkster.com/yamsoft/db/usuarios.asp eske me da un error pero con iexporer solo me da error 500 i no se k ...
  #1 (permalink)  
Antiguo 08/02/2002, 12:59
 
Fecha de Ingreso: febrero-2002
Mensajes: 52
Antigüedad: 23 años, 3 meses
Puntos: 0
k le pasa a esto...

Alguien con nescape puede mirarme esta url

http://www27.brinkster.com/yamsoft/db/usuarios.asp

eske me da un error pero con iexporer solo me da error 500 i no se k falla... o si no os pondre el codigo...
  #2 (permalink)  
Antiguo 08/02/2002, 13:01
 
Fecha de Ingreso: febrero-2002
Mensajes: 52
Antigüedad: 23 años, 3 meses
Puntos: 0
Re: k le pasa a esto...

<pre>&lt;html&gt;

&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Language&quot; content=&quot;es&quot;&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1252&quot;&gt;
&lt;meta name=&quot;GENERATOR&quot; content=&quot;Microsoft FrontPage 4.0&quot;&gt;
&lt;meta name=&quot;ProgId&quot; content=&quot;FrontPage.Editor.Document&quot;&gt;
&lt;title&gt;Usuarios de YamSoft&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;%nid=request.querystring(&quot;id&quot;)
if nid=&quot;&quot; then
response.redirect &quot;usuarios.asp&quot;
end if
sqltxt=&quot;select * from id where codigof=&quot;&amp;nid
Set Conn = Server.CreateObject(&quot;ADODB.Connection&quot;)
Conn.Open(&quot;DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=&quot; &amp; Server.MapPath(&quot;usuarios.mdb&quot;))
set rs=createobject(&quot;ADODB.Recordset&quot;)
set rsr=createobject(&quot;ADODB.Recordset&quot;)
rs.open sqltxt,conn
if rs.eof then
response.redirect &quot;usuarios.asp&quot;
end if
usuarios=rs(&quot;id&quot;)
rs.close
sqltxt=&quot;select * from id where foro=&quot;&amp;nid
rs.open sqltxt,conn%&gt;

&lt;div align=&quot;center&quot;&gt;
&lt;center&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;732&quot; height=&quot;353&quot;&gt;
&lt;tr&gt;
&lt;td width=&quot;272&quot; height=&quot;51&quot; valign=&quot;top&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;defaul1.jpg&quot; width=&quot;250&quot; height=&quot;53&quot;&gt;&lt;/td&gt;
&lt;/center&gt;
&lt;td width=&quot;460&quot; height=&quot;51&quot; valign=&quot;top&quot;&gt;
&lt;p align=&quot;center&quot;&gt;&lt;font color=&quot;#FF0000&quot; size=&quot;3&quot; face=&quot;Verdana&quot;&gt;Usuarios
de YamSoft&lt;/font&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;center&gt;
&lt;tr&gt;
&lt;td width=&quot;732&quot; height=&quot;249&quot; valign=&quot;top&quot; colspan=&quot;2&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot; height=&quot;40&quot;&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; height=&quot;19&quot; valign=&quot;top&quot; colspan=&quot;5&quot;&gt;
&lt;p align=&quot;center&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Verdana&quot; color=&quot;#0066FF&quot;&gt;Busca
Usuarios: &lt;script language=&quot;JavaScript&quot;&gt;


var NS4 = (document.layers);
var IE4 = (document.all);

var win = window; // Con frames usar top.nombre.window;
var n = 0;

function findInPage(str) {

var txt, i, found;

if (str == &quot;&quot;)
return false;

// Find next occurance of the given string on the page, wrap around to the
</pre>
  #3 (permalink)  
Antiguo 08/02/2002, 13:02
 
Fecha de Ingreso: febrero-2002
Mensajes: 52
Antigüedad: 23 años, 3 meses
Puntos: 0
Re: k le pasa a esto...

<pre>if (NS4) {

// Look for match starting at the current point. If not found, rewind
// back to the first match.

if (!win.find(str))
while(win.find(str, false, true))
n++;
else
n++;

// If not found in either direction, give message.

if (n == 0)
alert(&quot;A escrito mal el nombre de Usuario o éste Usuario no existe.&quot;);
}

if (IE4) {
txt = win.document.body.createTextRange();

// Find the nth match from the top of the page.

for (i = 0; i &lt;= n &amp;&amp; (found = txt.findText(str)) != false; i++) {
txt.moveStart(&quot;character&quot;, 1);
txt.moveEnd(&quot;textedit&quot;);
}

// If found, mark it and scroll it into view.

if (found) {
txt.moveStart(&quot;character&quot;, -1);
txt.findText(str);
txt.select();
txt.scrollIntoView();
n++;
}

// Otherwise, start over at the top of the page and find first match.

else {
if (n &gt; 0) {
n = 0;
findInPage(str);
}

// Not found anywhere, give message.

else
alert(&quot;A escrito mal el nombre de Usuario o éste Usuario no existe.&quot;);
}
}

return false;
}

&lt;/script&gt;

&lt;form name=&quot;search&quot; onSubmit=&quot;return findInPage(this.string.value);&quot;&gt;
&lt;font size=&quot;2&quot;&gt;&lt;p align=&quot;center&quot;&gt;&lt;/font&gt;&lt;font size=&quot;3&quot;&gt;&lt;input name=&quot;string&quot; type=&quot;text&quot; size=&quot;15&quot;
onChange=&quot;n = 0;&quot; style=&quot;color: #3366CC; font-family: Verdana; font-size: 8 pt; font-weight: bold; border: 1 solid #0066FF&quot;&gt;&lt;/font&gt; &lt;input type=&quot;submit&quot; value=&quot;Buscar&quot; style=&quot;font-family: Verdana; font-size: 8 pt; color: #0066FF; font-weight: bold; background-color: #FFFFFF; border: 1 solid #0066FF&quot;&gt;&lt;input type=&quot;reset&quot; value=&quot;Borrar&quot; name=&quot;B1&quot; style=&quot;background-color: #FFFFFF; color: #0066FF; font-family: Verdana; font-size: 8 pt; font-weight: bold; border: 1 solid #0066FF&quot;&gt; &lt;/p&gt;
&lt;/form&gt;
&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width=&quot;21%&quot; height=&quot;17&quot; valign=&quot;top&quot; bgcolor=&quot;# </pre>
  #4 (permalink)  
Antiguo 08/02/2002, 13:04
 
Fecha de Ingreso: febrero-2002
Mensajes: 52
Antigüedad: 23 años, 3 meses
Puntos: 0
Re: k le pasa a esto...

<pre>99CCFF&quot;&gt;&lt;a href=&quot;perfil.asp?id=&lt;%=rs(&quot;id&quot;)% &gt;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;face.gif&quot; width=&quot;11&quot; height=&quot;15&quot;&gt;&lt;/a&gt;&lt;%=rs(&quot;usuario&quot;)%&gt;&lt;/td&gt;
&lt;td width=&quot;24%&quot; height=&quot;17&quot; valign=&quot;top&quot; bgcolor=&quot;#6699FF&quot;&gt;&lt;font size=&quot;2&quot; color=&quot;#000000&quot;&gt;País: &lt;img border=&quot;0&quot; src=&quot;&lt;%=rs(&quot;pais&quot;)%&gt;.gif&quot ;&gt;
&lt;/font&gt;&lt;/td&gt;
&lt;td width=&quot;24%&quot; height=&quot;17&quot; valign=&quot;top&quot; bgcolor=&quot;#99CCFF&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Verdana&quot;&gt;E-mail:&lt;/font&gt; &lt;%=rs(&quot;email&quot;)%&gt;&lt;/td&gt;
&lt;td width=&quot;17%&quot; height=&quot;17&quot; valign=&quot;top&quot; bgcolor=&quot;#6699FF&quot;&gt;&lt;a href=&quot;&lt;%=rs(&quot;nif&quot;)%&gt;&quot;&gt ;&lt;img border=&quot;0&quot; src=&quot;url.gif&quot; width=&quot;19&quot; height=&quot;13&quot;&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td width=&quot;14%&quot; height=&quot;17&quot; valign=&quot;top&quot; bgcolor=&quot;#99CCFF&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;font size=&quot;2&quot;&gt;Id:
&lt;%=rs(&quot;id&quot;)%&gt;
&lt;/font&gt;
&lt;%end if
rsr.close%&gt;&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;% rs.movenext
loop
rs.close
end if%&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width=&quot;274&quot; height=&quot;53&quot; valign=&quot;top&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Verdana&quot; color=&quot;#0066FF&quot;&gt;&lt;script language=&quot;JavaScript1.2&quot;&gt;

// ancho
var marqueewidth=150
// alto
var marqueeheight=80
// velocidad
var speed=1
// contenido
var marqueecontents='&lt;font face=&quot;Arial&quot;&gt;&lt;small&gt;Aquí se encuentran los usuarios de YamSoft, si tú a un no eres uno de nuestros usuarios registrate &lt;a href=&quot;registro.htm&quot;&gt;Registro&lt;/a&gt;.&lt;p&gt;&amp;nbsp;&lt;/p&gt;Ellos ya disfrutan de nuestros servicios, si te unes tú también tendrás estos recursos, el principal es WebMail ten tú correo desde YamSoft &lt;a href=&quot;webmail.htm&quot;&gt;WebMail&lt;/small&gt;&lt;/a&gt;&lt;/font&gt;'

if (document.all)
document.write('&lt;marquee direction=&quot;up&quot; scrollAmount='+speed+' style=&quot;width:'+marqueewidth+';height:'+marque eheight+'&quot;&gt;'+marqueecontents+'&lt;/marquee&gt;')

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout(&quot;window.onresize=regenerate&quot;, 450)
intializemarquee()
}
}

function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.w rite(marqueec </pre>
  #5 (permalink)  
Antiguo 08/02/2002, 13:05
 
Fecha de Ingreso: febrero-2002
Mensajes: 52
Antigüedad: 23 años, 3 meses
Puntos: 0
Re: k le pasa a esto...

perdon por dejar la tabla asin...
  #6 (permalink)  
Antiguo 09/02/2002, 02:39
Avatar de urjose  
Fecha de Ingreso: diciembre-2001
Mensajes: 5.286
Antigüedad: 23 años, 4 meses
Puntos: 1
Re: k le pasa a esto...

hola yampoo4 revise tu codigo con netscape y me sale esto...

Microsoft VBScript compilation error '800a03ea'

Syntax error

/yamsoft/db/usuarios.asp, line 121

Response.Write(rs('pais'))
------------------^


en realidad no revise todo tu codigo por que me dio un poco de flojera pero te puedo decir que debe ser asi

Response.Write(rs(&quot;pais&quot;))

o asi

Response.Write rs(&quot;pais&quot;)

saludos ;) :)



<embed src="http://www.autocar.com.mx/images/logo.swf" type="application/x-shockwave-flash" width="468" height="60" play="true" wmode="transparent" menu="false" loop="true">
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 11:53.