0

Can you people explain me how this eval() works..

'<%# Eval("Value") %>'

i'm unable to understand how does it bind the data .. For example in this article how does it get path the path file?

http://www.aspsnippets.com/Articles/Download-Files-from-GridView-using-LinkButton-Click-Event-in-ASPNet-using-C-and-VBNet.aspx

max_code
  • 307
  • 3
  • 14
  • The important code there is in the codebehind: `GridView1.DataSource = files; GridView1.DataBind();` Once bound, you can use `Eval()` to get each value from your set of data. – Zerkey Oct 23 '13 at 02:17
  • "files" here contains filename and filepath rite ? im confused on how CommandArgument = '<%# Eval("Value") %>' is getting only the file path .. ? – max_code Oct 23 '13 at 21:28

1 Answers1

1

Review following link

http://msdn.microsoft.com/en-us/library/4hx47hfe.aspx

public static Object Eval(
    Object container,
    string expression
)
Monika
  • 2,172
  • 15
  • 24