Koolprasad solution is good according to your requirement and in additional you can do this :
set any status on page. if
lnkInbox_Click()
{
status=1;
}
else if()
{
}
according to that check the condition. and set link button visible = true or false.
if you have any doubt then feel free to ask...