Response.write

Results 1 to 6 of 6

Thread: Response.write

  1. #1
    Nat Guest

    Default Response.write

    Response.Write ("&#060;a href=http://Firenze/Project/Images/ rs(""Filen"")&#062;")<BR><BR>Where "Filen" is a field for picture file name. For example, &#039Nil.gif&#039<BR><BR>This link should open the picture file "nil.gif". But it shows<BR><BR>Directory Listing Denied<BR>This Virtual Directory does not allow contents to be listed.<BR><BR><BR>How can I solve this problem?

  2. #2
    Join Date
    Dec 1969
    Posts
    309

    Default RE: Response.write

    Try this:<BR>response.write "&#060;A HREF=http://Firenze/Project/Images/" & rs("filen") & "&#062;"<BR><BR>That may work.

  3. #3
    Nat Guest

    Default Your Method Can't Work

    ADODB.Fields error &#039 800a0cc1&#039 <BR><BR>ADO could not find the object in the collection corresponding to the name or ordinal reference requested by the application. <BR><BR>

  4. #4
    tabby Guest

    Default RE: Response.write

    Try this... the response.write thingy has problems with "" within ""!!!<BR>:<BR>Response.Write ("&#060;a href=http://Firenze/Project/Images/ rs(&#039Filen&#039)&#062;")


  5. #5
    Join Date
    Dec 1969
    Posts
    309

    Default RE: Your Method Can't Work

    What a bummer. That error then appears to be that the fields in the query didn&#039t match what you were trying to extract. For example, if my code was:<BR>set RS = Conn.Execute("SELECT Surname from Staff")<BR>response.write "First Name is: " & RS("FirstName")<BR>======<BR>that would give me that same error i think. Also, if the object or connection was closed prior to RS being used, it would also give that same error.<BR><BR>If you are still having trouble, let me know and I&#039ll post my email address for you to send some code to.<BR><BR>Oh yeh, and watch out for those double quotes. ie. rs(""blah"")

  6. #6
    Nat Guest

    Default Thanks... Its working now.

    Sorrie.. Its my careless mistake, thanks for reminding me abt it. I&#039ve forgotten to Select Filen from the Database. Coz it was a last minute add in. <BR><BR>Thanks for your help.<BR>Cheers!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •