By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,501 Members | 2,681 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,501 IT Pros & Developers. It's quick & easy.

disabling links

P: n/a
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
Jul 14 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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"
Jul 14 '06 #2

P: n/a
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"
Jul 14 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.