To disable a hyperlink define a hyperlink CSS class that looks disabled and then change the href property to navigate back to the top of the page.
Server-side, you'll also have to turn off the auto-postback of that element.
So, here's the CSS and JavaScript to make the hyperlink appear disabled, and navigate to page top:
The CSS:
.disabledLink
{
color: #333;
text-decoration : none;
cursor: default;
}
The javascript:
function disablelink(linkID)
{
var hlink = document.getElementById(linkID);
if(!hlink)
return;
hlink.href = "#";
hlink.className = "disableLink";
}
call the javascript function passing your Hyperlink Id