Spaces and ASP.NET

Gertie

Active member
Joined
May 8, 2003
Messages
25
Location
Belgium
I have a Access database, and i have a query in it that contains a field No for the Customers: Customer.No in the query. And it contains Service Item.No in the same way because the No is identical.

I also have a datagrid in which id like to include the field Service Item.No but the lines


Line 116: <asp:TemplateColumn Visible="false">
Line 117: <ItemTemplate>
Line 118: <asp:Label id="P_id" text=<%# DataBinder.Eval(Container.DataItem,"[Service Item.No]")%> runat="server">
Line 119: </asp:Label>
Line 120: </ItemTemplate>

seems to fail on line 118 the because of the . in it?
Can someone help?
thanks a lot, Greetz,

:p :p
 
Prob Solved!

No sweat guys,

Everyone looking here, thx for the effort.

Ive made my select different with AS to create a better name for the difficult fields.

select [Service Item.No] AS SINo from table
then its easy to use with SINo as fieldname!

see you later,

Greetz
 
Gertie,
to use "." or "-" or other special characters in fieldnames is in my eyes :o :mad: .
I would never ever do this. Even if its allowed. Also take care for reserved words.
You see what problems can raise and Im sure all of us can give some examples where we experienced similar problems with that.
:D ;)
 
Back
Top