Problem with fieldname dot notation
Hello,
I'm trying to pass a parameter with the value of a datafield whose name contains a dot and in datagrid in VS Designer doesn't read it. The code I'm trying to run is the following:
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<asp:Label><a href="wmpho-details.aspx?id=<%# DataBinder.Eval(Container.DataItem, "Identifier.systemid") %>&title=<%# DataBinder.Eval(Container.DataItem, "Wmpho.Type") %>"><%# DataBinder.Eval(Container.DataItem, "title" ) %></a>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
The error I'm gettingi is this:
Exception Details: System.Web.HttpException: DataBinder.Eval: 'System.Data.DataRowView' does not contain a property with the name Identifier.
Source Error:
Line 18: <asp:TemplateColumn>
Line 19: <ItemTemplate>
Line 20: <asp:Label><a href="wmpho-details.aspx?id=<%# DataBinder.Eval(Container.DataItem, "Identifier.systemid") %>&title=<%# DataBinder.Eval(Container.DataItem, "Wmpho.Type") %>"><%# DataBinder.Eval(Container.DataItem, "title" ) %></a>
Line 21: </asp:Label>
Line 22: </ItemTemplate>
Source File: c:\inetpub\wwwroot\wmpho2\webformwmphotest.aspx Line: 20
Any idea how I can try tell VS that that's a field name please?
Many thanks
|