Boolean Visible Property problem
From: John South (jsouth_at_cix.co.uk)
Date: 04/23/04
- Next message: Miha Markic [MVP C#]: "Re: OleDb: DataSets versus ExecuteNonQuery(), ExecuteReader()"
- Previous message: jonathan: "Collections of Collections in C#"
- Next in thread: Dmitriy Lapshin [C# / .NET MVP]: "Re: Boolean Visible Property problem"
- Reply: Dmitriy Lapshin [C# / .NET MVP]: "Re: Boolean Visible Property problem"
- Reply: Ignacio Machin \( .NET/ C# MVP \): "Re: Boolean Visible Property problem"
- Messages sorted by: [ date ] [ thread ]
Date: 23 Apr 2004 03:15:52 -0700
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
- Next message: Miha Markic [MVP C#]: "Re: OleDb: DataSets versus ExecuteNonQuery(), ExecuteReader()"
- Previous message: jonathan: "Collections of Collections in C#"
- Next in thread: Dmitriy Lapshin [C# / .NET MVP]: "Re: Boolean Visible Property problem"
- Reply: Dmitriy Lapshin [C# / .NET MVP]: "Re: Boolean Visible Property problem"
- Reply: Ignacio Machin \( .NET/ C# MVP \): "Re: Boolean Visible Property problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|