How to use Eval() with a column name that contains a dot(.)?

前端 未结 4 851
长情又很酷
长情又很酷 2021-01-05 05:20

In my SQL Server table there is a column slno. (yes, it contains a dot) that is working fine in SQL Server. However, <%#Eval(\"slno.\")%> is

4条回答
  •  花落未央
    2021-01-05 05:33

    I Used DataBinder.GetPropertyValue() as it follows:

    DataBinder.GetPropertyValue(Container.DataItem, "Name of my Fields with(Parentheses)") 
    

    and Worked like a Charm on a ASP.NET VB Project.

提交回复
热议问题