private void DisableHyperlinkInMasterPage()
{
AssociateMaster mymaster = (AssociateMaster)Page.Master;
HyperLink home = (HyperLink)mymaster.FindControl("Home");
HyperLink profile = (HyperLink)mymaster.FindControl("ProfileLink");
HyperLink report = (HyperLink)mymaster.FindControl("Report");
HyperLink signout = (HyperLink)mymaster.FindControl("SignOut");
home.NavigateUrl= string.Empty;
profile.NavigateUrl= string.Empty;
report.NavigateUrl= string.Empty;
signout.NavigateUrl= string.Empty;
}
private void EnableHyperlinkInMasterPage()
{
AssociateMaster mymaster = (AssociateMaster)Page.Master;
HyperLink home = (HyperLink)mymaster.FindControl("Home");
HyperLink profile = (HyperLink)mymaster.FindControl("ProfileLink");
HyperLink report = (HyperLink)mymaster.FindControl("Report");
HyperLink signout = (HyperLink)mymaster.FindControl("SignOut");
home.NavigateUrl= "your_url";
profile.NavigateUrl= "your_url";
report.NavigateUrl= "your_url";
signout.NavigateUrl= "your_url";
}
It works. Certified & Tested! :)
Hope it helps.