Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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 i'd 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

Posted

Prob Solved!

 

No sweat guys,

 

Everyone looking here, thx for the effort.

 

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

 

select [service Item.No] AS SINo from table

then it's easy to use with SINo as fieldname!

 

see you later,

 

Greetz

Posted

Gertie,

to use "." or "-" or other special characters in fieldnames is in my eyes :o :mad: .

I would never ever do this. Even if it's allowed. Also take care for reserved words.

You see what problems can raise and I'm sure all of us can give some examples where we experienced similar problems with that.

:D ;)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...