Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/08/2002, 08:03
haven
 
Fecha de Ingreso: febrero-2002
Ubicación: Navarra
Mensajes: 701
Antigüedad: 23 años, 3 meses
Puntos: 2
Se puede hacer esto???

Código:
 <%dim URL
URL="http://www.maestrosdelweb.com"
if URL="ASP" then
%>La página contiene la palabra ASP<%else%>
no contiene esa palabra
<%end if%>
o habría que emplear este código
Código:
 'dim HTTP
'set HTTP=Server.CreateObject("Microsoft.XMLHTTP")
 

'HTTP.open "GET", "www.maestrosdelweb.com" , False
'HTTP.Send
 
'if HTTP.statusText="OK" then
'     Response.write HTTP.ResponseText
'   else
'     Response.write "Error obteniendo Página " & HTTP.statustext
'end if
La idea sería contener un página web dentro de una variable y una vez hecho esto hacer un if diciendole que si esa variable contiene la palabra ASP entonces que muestre el texto "La direccion contiene el texto ASP"
¿Se podría hacer esto? y lo más importante ¿Cómo?
Un saludo