Posted on: 11/17/2012 12:48:31 AM | Views : 394

I am trying to create a variable on an ASP page without using code behind.  So I use the tags <% %>  but when I try to pass a value into my variable using the <%# Eval(" ") %> It thinks the closing tag is the end of the first open tag.  How do I use the eval command to pass database fields within ASP code? 
I am basically trying to store the value of the stock of an item into a variable and do if statments on it to determine if I should display "In Stock" or "Out of Stock"  Here is the code I have so far...
<% Dim InStock As Integer InStock = <%# Eval("Stock")%> %>



...

Go to the complete details ...