I played with a couple variations, couldn't get it to work.
Change the datatable's column names. You can do this without changing the
underlying database. If you are using a typed dataset, this is cake.
If not, it can still be done easily via the TableMapping property of your
data adapter. This let's you map a column in your database into something
named different in your datatable.
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"cobra300" <co******@discussions.microsoft.com> wrote in message
news:53**********************************@microsof t.com...
I have to bind a field whose name include parentheses to a label web
control
in ASP.NET 2.0 . When I write code as following:
<%# Eval("[MyColumnName(kg)]"%>
a exception will be thrown at runtime: "MyColumnName(kg is not a
DataColumn
or...". The field name is trimmed after ")".
Is anyone know how to reference to a field name with parentheses inside?