BlockUI to block links and submit buttons

BlockUI to block links and submit buttons

Hi,

I'm trying to use the BlockUI plugin on links and submit buttons in my asp.Net application.

The links all have the class of activityButton so I've tried
  1. $(".activityButton").block({message:null})
The links look like they have been blocked but it's still possible to click the links and they work.  Some are using the asp.net javascript:__dopostBack function and others are normal links to another page.

Doing the same on a submit button has no affect on the button at all as in it looks the same and is still clickable.

Is it possible to use BlockUI with links and buttons?

Cheers,
Mike