Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File System Object and a dynamic link...

Status
Not open for further replies.

Andrewthebeginner

Programmer
Jul 10, 2002
5
CA
have this FSO script that has a dynamic name in the link to see if the
file exists:
Code:
<%
Set fsoObject = CreateObject(&quot;Scripting.FileSystemObject&quot;)
if fsoObject.FileExists(Server.Mappath(&quot;scans\[B]*DYNAMIC
LINK*[/B]\specs\prebidform.pdf&quot;)) Then
Response.Write(&quot;<script language=&quot;&quot;Javascript&quot;&quot; type=&quot;&quot;text/javascript&quot;&quot;>&quot; &
vbcrlf)
Response.Write(&quot;function beginDownload() {&quot; & vbcrlf)
Response.Write(&quot;     newlocation = &quot;&quot;\scans\[B]*DYNAMIC
LINK*[/B]\specs\prebidform.pdf&quot;&quot;)) ;&quot; & vbcrlf)

......more and more....

Else
Response.Write(&quot;<script language=&quot;&quot;Javascript&quot;&quot;>&quot; & vbcrlf)
Response.Write(&quot;alert('Forms not Provided by Tendering Authority')&quot; &
vbcrlf)
Response.Write(&quot;</script>&quot; & vbcrlf)
End If
%>

Where it says DYNAMIC LINK, I need to fit in

& (form.Fields.Item(&quot;ProjectID&quot;).Value) &
I don' know if that is correct though.

which was: <%=(form.Fields.Item(&quot;ProjectID&quot;).Value)%>


Thanks alot for any help or clues.

- Andrew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top