S
stephen
Hi all,
I have a itemtemplate in a DataGrid and it works fine on VB .NET but the
same does not work in C#
<asp:Templatecolumn HeaderText="EVID" ItemStyle-HorizontalAlign="Left">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "EVID").ToString() %>
<asp:HyperLink runat="server" id="myLink" text="View..." NavigateUrl='<%#
"default.aspx?id=" & Container.DataItem("EVID") %>' /> <---happens here
</ItemTemplate>
</asp:Templatecolumn>
what am i missing?
I get this error: (IN C#)
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.
Compiler Error Message: CS0019: Operator '&' cannot be applied to operands
of type 'string' and 'object'
Thanks,
Stephen
I have a itemtemplate in a DataGrid and it works fine on VB .NET but the
same does not work in C#
<asp:Templatecolumn HeaderText="EVID" ItemStyle-HorizontalAlign="Left">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "EVID").ToString() %>
<asp:HyperLink runat="server" id="myLink" text="View..." NavigateUrl='<%#
"default.aspx?id=" & Container.DataItem("EVID") %>' /> <---happens here
</ItemTemplate>
</asp:Templatecolumn>
what am i missing?
I get this error: (IN C#)
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.
Compiler Error Message: CS0019: Operator '&' cannot be applied to operands
of type 'string' and 'object'
Thanks,
Stephen