YOu can dow following process:
For Master Page
aspx page
<div>
<asp:label id="lblName" text="BBB" runat="Server" xmlns:asp="#unknown"></asp:label>
<asp:linkbutton id="lnkbPostDetails" text="AAA" runat="Server" xmlns:asp="#unknown"></asp:linkbutton>
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server" xmlns:asp="#unknown">
</asp:contentplaceholder>
</div>
aspx.cs page
public partial class Master_test3_MasterPage : System.Web.UI.MasterPage
{
public LinkButton lnkbPostDetailsMS;
protected void Page_Init(object sender, EventArgs e)
{
lnkbPostDetailsMS = lnkbPostDetails;
}
protected void Page_Load(object sender, EventArgs e)
{
}
}
Content Page
Aspx.cs page
protected void Page_Load(object sender, EventArgs e)
{
Master_test3_MasterPage ms = (Master_test3_MasterPage)this.Master;
ms.lnkbPostDetailsMS.Visible = false;
}