What is the use of Eval()
in ASP.NET?
While binding a databound control, you can evaluate a field of the row in your data source with eval() function.
For example you can add a column to your gridview like that :
And alternatively, this is the way with eval :
It seems a little bit complex, but it's flexible, because you can set any property of the control with the eval() function :