<asp:LinkButton id="link" runat="server" text="RnTheJob" xmlns:asp="#unknown" OnClientClick="return ToggleEnable(this);"
command = "lnk_Click" commandArgument="<%# Eval("val")%>" />
and write a JavaScript function,
function ToggleEnable(src)
{
var result = confirm('Are you sure you want to update this task?');
src.disabled = result;
return result;
}
You can remove the
return false
statement if you want it to Postback.