A
Alex Maghen
Hi. In a DataGrid TemplateColumn, I'm trying to insert a data-binding
directive and I'm getting a Parse Error - "The server tag is not well
formed". The TemplateColumn Xml looks like:
<ASP:TemplateColumn
HeaderText="PA"
SortExpression="PersianAudio">
<ItemStyle HorizontalAlign="Left" Width="30px" />
<ItemTemplate>
<asp:Image id="PersianAudioIMG" runat="server"
AlternateText="Persian Audio"
ImageAlign="left"
ImageUrl="<%# Convert.ToInt32(DataBinder.Eval(Container.DataItem,
"ID")) %>" />
</ItemTemplate>
</ASP:TemplateColumn>
The error is in the spot where I insert the <%# ... %>. What am I doing
wrong???
Alex
directive and I'm getting a Parse Error - "The server tag is not well
formed". The TemplateColumn Xml looks like:
<ASP:TemplateColumn
HeaderText="PA"
SortExpression="PersianAudio">
<ItemStyle HorizontalAlign="Left" Width="30px" />
<ItemTemplate>
<asp:Image id="PersianAudioIMG" runat="server"
AlternateText="Persian Audio"
ImageAlign="left"
ImageUrl="<%# Convert.ToInt32(DataBinder.Eval(Container.DataItem,
"ID")) %>" />
</ItemTemplate>
</ASP:TemplateColumn>
The error is in the spot where I insert the <%# ... %>. What am I doing
wrong???
Alex