Boolean Visible Property problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: John South (jsouth_at_cix.co.uk)
Date: 04/23/04


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



Relevant Pages

  • Re: Cgi and file access
    ... boolean exist_file; ... int main ... Note that you call exist_filebefore you emit any HTML ... of the html will be valid HTTP headers. ...
    (comp.lang.c)
  • Re: How you can - write
    ... I can post in HTML if I ... Plus the typical HTML poster sets his font size to about 8 or so, ... I'm one of those people stuck on dial-up, ...
    (misc.rural)
  • Re: Code to check for HTML messages being sent
    ... Private Sub myItem_Send(Cancel As Boolean) ... MsgBox "have a great day!" ... is it possible to edit the HTML code of the message using VBA? ...
    (microsoft.public.outlook.program_vba)
  • Re: Modal Dialog cannot be brought to the front
    ... Have you tried using SetForegroundWindow() and/or BringWindowToTop? ... I've been stuck with a bugt. ... I want to show a dialog from my html page ...
    (microsoft.public.vc.mfc)
  • Modal Dialog cannot be brought to the front
    ... I've been stuck with a bugt. ... I want to show a dialog from my html page ... which was implemented by a onclick vbscipt on a table row like below. ...
    (microsoft.public.vc.mfc)