value of recordset field in string

Posted on 2006-05-10
Last Modified: 2011-09-20
Hi all,

I'm not sure I've got this coded correctly...I'm trying to use ASP Upload and set the upload directory dynamically...I've got:

Set Upload = Server.CreateObject("Persits.Upload")
Upload.ProgressID = Request.QueryString("PID")
Count = Upload.SaveVirtual("upload_preview/<%(rsCustomer.Fields.Item("strCustomerFolder").Value)%>")

Is that right? I'm getting an Internal Server Error (I'm testing on an external host) and don't know if I've got this written wrong or whether it's another problem...

Question by:headbump
    LVL 22

    Accepted Solution

    Set Upload = Server.CreateObject("Persits.Upload")
    Upload.ProgressID = Request.QueryString("PID")
    Count = Upload.SaveVirtual("upload_preview/" & rsCustomer.Fields.Item("strCustomerFolder").Value)

    you are already in the <% %> brackets, you cant put more.  you need to concatinate the strings together instead.
    LVL 52

    Expert Comment

    by:Carl Tawn
    Just for future reference: Internal Server Error is a generic error. If you go into "Internet Options" (assuming you're using IE), onto the "Advanced" tab and uncheck the "Show friendly HTTP error messages" option. Then in future the browser will report the actual error that occured.

    Author Comment


    Thanks, I did that and sho nuff, things are better.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
    I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now