Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1469 connectés 

  FORUM HardWare.fr
  Programmation
  ASP

  [ASP] fileexists probleme

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[ASP] fileexists probleme

n°581421
scaldan
...
Posté le 02-12-2003 à 14:27:49  profilanswer
 

voici ma page. bon le fileexists ne trouve pas mon fichier par contre quand je fais un response.redirect(fichier) il trouve le fichier. de plus je voudrais savoir comment je peux ouvrir mon fichier dans une nouvelle fenetre
 
merci  
 
<html>
<head>
<title>Selection Client</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<body>
<%  dim fso
critere = request.querystring("critere" )
lot = request.querystring("lot" )
chaine = critere & lot
ch = "/pdf/" & chaine & ".pdf"
set fso = Server.CreateObject("Scripting.FileSystemObject" )
cheminVirtuel = Request.ServerVariables ("PATH_INFO" )
cheminPhysique = Server.MapPath (cheminVirtuel)
chemin = left(cheminVirtuel,InStrRev(cheminVirtuel,"/" )-1)
fichier = chemin & ch
response.write(fichier)
if fso.FileExists(fichier)=true Then
Response.Redirect(fichier)
else
Response.Redirect("erreur.html" )
end if
set fso=nothing  
%>
</body>
 
</html>

mood
Publicité
Posté le 02-12-2003 à 14:27:49  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  ASP

  [ASP] fileexists probleme

 

Sujets relatifs
probleme d'upload[ASP]nouvelle fenetre + execution automatique d'une fonction
Probleme calculProbleme en asp
probleme avec les session [RESOLU]Probleme avec PI ...
Probleme d'uploadproblème de connexion à la base mySQL
[C++][OGL] Problème de compil' avec GLUTJ'ai un problème avec easyphp 1.7 (syntaxe php)
Plus de sujets relatifs à : [ASP] fileexists probleme


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR