Imagebutton click

S

Shailesh Patel

Hi,
I am using imagebutton menu on webpage for navigation.
Code adds OnClick attribute and when one clicks on it, redirects him to that
page. and the same menu appears. This time I want to disable click so it is
just a button without link.
How can I remove link so that it is not clickable when on that page?

Thank you in advance.

Shailesh
 
D

David R. Longnecker

ImageButtons have a property called Enabled. The Boolean False will "disable"
the button and you won't be able to click on it. Another useful tactic is
to style it as well to "gray" it out.

Style="filter: alpha(opacity=25);" provides a neat little washout of most
images when disabling them.

HTH.

-dl
 
S

Shailesh Patel

Great!
Worked.

Thank you.

Shailesh

David R. Longnecker said:
ImageButtons have a property called Enabled. The Boolean False will
"disable" the button and you won't be able to click on it. Another useful
tactic is to style it as well to "gray" it out.
Style="filter: alpha(opacity=25);" provides a neat little washout of most
images when disabling them.

HTH.

-dl
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top