I used this code: OnClientClick="DisableLink(this);"
This is the JS function:
function DisableLink(obj) {
obj.disabled = 1;
obj.style.visibility = "hidden";
obj.style.display = "none";
}
obj.disabled = 1;
obj.style.visibility = "hidden";
obj.style.display = "none";
}