PDA

View Full Version : What is wrong with my code synatx?


ccooper309155
07-02-2009, 05:45 PM
Using ASP VB.

I am trying to create session variable based on a URL with a dynamic item number.


<% Session("MyAdd")= "../products/product_detail_X.asp?ItemNumber=(rs_Stock.Fields.I tem("ItemNumber").Value)" %>

This doesn't work. I'm tired and can't think straight.

What's wrong?

Thanks.

xag
07-06-2009, 06:14 AM
hm why are you trying to pass the page address and value. Just try passing ItemNumber as in
Session("MyAdd") = "(rs_Stock.Fields.Item("ItemNumber).Value)"

Ray Borduin
07-06-2009, 08:28 AM
<%
Session("MyAdd")= "../products/product_detail_X.asp?ItemNumber=" & (rs_Stock.Fields.I tem("ItemNumber").Value)

%>