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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text Field and Response.Write

Status
Not open for further replies.

jesse123

Technical User
Apr 3, 2007
9
US
I want the value of my text field to be what ever my response data is.

How can I have:
Response.Write "File Uploaded: " & File.FileName & "<br>"

also appear in my text field?
<input name="Pic" type="text" value="">



 
Like so:
Code:
<input name="Pic" type="text" value="[!]<%=File.FileName%>[/!]">

Shorthand for Response.Write: <%= %>



[monkey][snake] <.
 
That's what I had and get this...

Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: ''
 
Show us your code. Monksnakes piece is syntactically correct (provided there is an object called File with a property called FileName). It's possible you have a mis-type somewhere or something along those lines that we wouldn't be able to see without seeing your code.

-T

 
I'm guessing you have

Code:
<input name="Pic" type="text" value="">

before declaring your object "file".

if so, move your text box below the asp code.

Cheers

Nick
 
sorry that was meant to be

Code:
<input name="Pic" type="text" value="<%=File.FileName%>">
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top