disabling links

Discussion in 'ASP General' started by Robert Smith, Jul 14, 2006.

  1. Robert Smith

    Robert Smith Guest

    Hello,
    I would like to know how to disable a link when a certain value is
    false.

    I have the following link.

    <br><a href="OrderProgress.asp" class="blueLink">Check Order
    Progress</a><br><br>

    I wish to disable the link if blnValidCustomer = false and enable it
    otherwise.
    Thanx in advance
    Robert
     
    Robert Smith, Jul 14, 2006
    #1
    1. Advertising

  2. Robert Smith wrote:
    > Hello,
    > I would like to know how to disable a link when a certain
    > value is false.
    >
    > I have the following link.
    >
    > <br><a href="OrderProgress.asp" class="blueLink">Check Order
    > Progress</a><br><br>
    >
    > I wish to disable the link if blnValidCustomer = false and enable it
    > otherwise.
    > Thanx in advance
    > Robert



    <br><a href="OrderProgress.asp" class="blueLink"
    disabled="<%=(Not blnValidCustomer)%>"
    >Check Order Progress</a><br><br>


    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"
     
    Bob Barrows [MVP], Jul 14, 2006
    #2
    1. Advertising

  3. Robert Smith

    Robert Smith Guest

    Thanx bob,
    That seems to do the trick.

    "Bob Barrows [MVP]" wrote:

    > Robert Smith wrote:
    > > Hello,
    > > I would like to know how to disable a link when a certain
    > > value is false.
    > >
    > > I have the following link.
    > >
    > > <br><a href="OrderProgress.asp" class="blueLink">Check Order
    > > Progress</a><br><br>
    > >
    > > I wish to disable the link if blnValidCustomer = false and enable it
    > > otherwise.
    > > Thanx in advance
    > > Robert

    >
    >
    > <br><a href="OrderProgress.asp" class="blueLink"
    > disabled="<%=(Not blnValidCustomer)%>"
    > >Check Order Progress</a><br><br>

    >
    > --
    > Microsoft MVP - ASP/ASP.NET
    > Please reply to the newsgroup. This email account is my spam trap so I
    > don't check it very often. If you must reply off-line, then remove the
    > "NO SPAM"
    >
    >
    >
     
    Robert Smith, Jul 14, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. www.westerncartooncards.ca

    Exchange Links < Western Cartoon Cards > Exchange Links

    www.westerncartooncards.ca, Jul 12, 2004, in forum: HTML
    Replies:
    2
    Views:
    1,251
    Toby Inkster
    Jul 12, 2004
  2. Sunfire
    Replies:
    0
    Views:
    367
    Sunfire
    Nov 16, 2007
  3. Wayne Erfling

    Disabling self links with MenuControl

    Wayne Erfling, Nov 7, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    112
    Wayne Erfling
    Nov 7, 2006
  4. Replies:
    5
    Views:
    140
    Howie
    Jun 19, 2005
  5. Terry

    Disabling links

    Terry, Sep 21, 2007, in forum: Javascript
    Replies:
    4
    Views:
    89
    Evertjan.
    Sep 22, 2007
Loading...

Share This Page