c# - data binding to html tag in asp.net -


I was just wondering if it would be possible to pair data using html code using DataBinder.Eval For example, with the runat = server attribute, I have to do something like this:

  & lt; A href = & lt;% # DataBinder.Eval (container.datetime, "file_name")%> Runat = "server" />   

But it does not work. Does it mean that I want to use the asp.net hyperlink control?

Cheers,

Stephen

Try it instead Do:

  & lt; A href = '& lt;% # Eval ("file_name")%> '& Gt; Link text goes here ... & lt; / A & gt;    

Comments