Getting Value from databound control in desgn mode

  • Thread starter Thread starter Remco
  • Start date Start date
R

Remco

Hello,

I know that in a databound control I can render the value of a certain field
with the syntax <%#Eval("PROD_NAME")%>.
But how do I, in design mode (not in code behind), display something
depending on the value of a field.

<Gridview control....>

<ItemTemplate>
<%If #Eval("PROD_STOCK_SIZE") > 0 then %>
...display some text....
<%End if%>

</ItemTemplate>

</Gridview control...>

This doen't work, what is the workaround?

Kind regards

Remco
 
don't know vb, in c# its:

<%# ((int) Eval("PROD_STOCK_SIZE")) > 0 ? "string 1" : "" %>

-- bruce (sqlwork.com)
 
Back
Top