• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 246
  • Last Modified:

value of recordset field in string

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...

thx,
A
0
headbump
Asked:
headbump
1 Solution
 
WMIFCommented:
<%
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.
0
 
Carl TawnSystems and Integration DeveloperCommented:
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.
0
 
headbumpAuthor Commented:
Carl,

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

thx,
A
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now