Wrap your Eval call:
Markup: <asp:LinkButton id=”whatever” runat=”server” Visible=’’<%# ShowHideLink(Eval(“Storage”)) %>
Code-Behind:
protected bool ShowHideLink(object obj)
{
bool result = false;
//cast obj to whatever datatype it is
int numOfProducts = (int)obj;
//do some evaluating
if(numOfProducts > 10) //whatever your biz logic is
{
result = true;
}
return result;
}
reference: https://stackoverflow.com/questions/1530704/how-to-use-evalx-value-in-listview