Hi
I'm new to asp.net and c# and I've got stuck on an apparently simple
problem:
I'm trying to make a HyperLink dynamically visible/invisible.
This is the HTML:
<asp:HyperLink Runat="server" Text="Back"
NavigateUrl='HeadingList.aspx' Visible='<%=isNotTop()%>' />
This is the in the .cs file:
public string isNotTop()
{
return ("false");
}
I get the error message:
<%=isNotTop()%> is not a valid value for Boolean.
I've tried getting isNotTop() to return a boolean but it doesn't help.
I've done something similar within a DataList using <%#...%> and it's
worked OK.
Can someone guide me in the right direction here?
Cheers
John South
Pangbourne UK