I have a gridview that looks something like this:
<TemplateColumn>
<ItemTemplate>
<a href='<%#Eval("FilePathUrl")%>'>FileName</a>
</ItemTemplate>
<ItemTemplate>
<a href='<%#Eval(sysUtilities.GetFilePath("FilePathLocation") & "FilePathUrl")%>'>FileDateTime</a>
</ItemTemplate>
</TemplateColumn>
The file is located at sysUtilities.GetFilePath("FilePathLocation")
sysUtilities is a class in the App_Code folder
GetFilePath is method
I need help with the syntax
How can I display the file’s date time created in the gridView (by that I mean what is the correct syntax for):
<a href='<%#Eval(sysUtilities.GetFilePath("FilePathLocation") & "FilePathUrl")%>'>FileDateTime</a>
try this: