>I have a repeating row and the last column is a button
that lets the user
> perform an action (in this case, they are able to create
a reply message).
> I
> want to deactivate the button in some cases, usually if
the row is from a
> user
> of a certain type, which I can determine from a
variable. Is there a way
> to
> deactive a button depending on a variable state?
What language? When you say 'button', do you mean
'hyperlink'?
ASP/VBSCRIPT:
<% If varSomeVariable = "this" Then %>
<a href="page.asp">Create a reply message</a>
<% ElseIf varSomeVariable = "that" or varSomeVariable =
"the other" Then %>
<p>Sorry, your variables are wrong!</p>
<% End If %>