Currently I have following code for a hyperlink control which is added to a
TableCell.
HLink.Attributes.Add("onClick", _
"return confirm('Are you Sure you want to delete " & _
"selected items?');")
With this statement eventhough I disable the link and if it has been clciked
it shows above message.
Can you please help me build a statement which only shows this message when
the link is enabled.
"Marina" <so*****@nospam.com> wrote in message
news:uF**************@TK2MSFTNGP15.phx.gbl...
Yes, you can put any javascript code you want in there.
Or you can just a call a function that has already been defined, and let
it
contain all your logic.
"RA" <rc***************@storis.com> wrote in message
news:uZ**************@TK2MSFTNGP15.phx.gbl... Is it possible to add an attribute for onClick event with an if
condition.
For example. If button is enabled then popup a message "Button Enabled"
and if it is disabled popup message "Button disabled"?