Gridview

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Cindy Lee

    Gridview

    I have a template field, and i want to use the bound value in a c# function.
    ct_id is the vound value I want to encode, but I don't know how to put that
    into c# function.

    <%= Utils.EncodeId( ct_id,20) %>

    This is how I get my bound field.
    <%# Eval("ct_name") %>

    but <%= Utils.EncodeId( <%# Eval("ct_name") %>, 20) % doesn't work.

    Is there a better way to put this in the template field?


Working...