Hi all,
I try to use Container.DataI tem() in my DataGrid's ItemTemplate.
Somewhere it works fine.
eg.<input type=checkbox id='cb_select_< %# Container.DataI tem("TAG_ID")
%>' value='<%# Container.DataI tem("TAG_NAME") %>'>
but somewhere the server returns the expression was wrong.
<asp:ImageButto n id="IB_Edit<%# Container.DataI tem("TAG_ID") %>"
runat="server" ImageUrl="../Image/edit_image.gif"
CommandName="TO _EDIT"></asp:ImageButton >
or
<asp:ImageButto n id="IB_Edit" runat="server" ImageUrl="../Image/
edit_image.gif" OnClientClick=" alert('<%# Container.DataI tem("TAG_ID")
%>');" CommandName="TO _EDIT"></asp:ImageButton >
Does anyone can tell me what situation i can use this method and what
i can't?
I would appreciate any help on this.
Thank you!