Hi, I am showing Tasks of employee,
I want to add an image which will be hidden and should be visible when task priority is high.
How to achieve this?
I added a template control to which I added an image control and a lable.
In aspx, i added code like this
I am getting error at the DataBinder.Eval line saying the "'System.Web.UI.WebControls.DataGridItem' does not contain a property with the name priority.'
But I am sure its in my view
thank you
I want to add an image which will be hidden and should be visible when task priority is high.
How to achieve this?
I added a template control to which I added an image control and a lable.
In aspx, i added code like this
Code:
<asp:TemplateColumn>
<ItemTemplate>
<asp:Image id="imgPriority" runat="server" Visible="False" ImageUrl="../images/high_priority.gif"></asp:Image>
<asp:Label id=lblPriority runat="server" Text='<%# DataBinder.Eval(Container, "priority") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
I am getting error at the DataBinder.Eval line saying the "'System.Web.UI.WebControls.DataGridItem' does not contain a property with the name priority.'
But I am sure its in my view
thank you