PDA

Click to See Complete Forum and Search --> : Problem........


rammy
Feb 27th, 2001, 01:08 AM
Hi,

Im working on allowing the users to upload files to the server using ASP. Im using


<input type="file" name="fName">


to allow the users to select the file.

If the user has already uploaded a file, I want to display the name of the uploaded file. Im storing the uploaded filename in a variable.

My problem is


<input type="file" name="fName" value="<%Response.Write strPhoto%>">



is not working. Any ideas why???

Thanx.

Feb 27th, 2001, 04:25 AM
Try Response.write(strPhoto)

rammy
Feb 27th, 2001, 10:01 PM
Marcel,

That doesnt work either. But when I view the source of the page the value is there.


<input type="file" name="fName" value="D:\INETPIN\back.gif">


Any ideas??? Is it not possible to set the value property directly???

Thanx.