Note that there are some explanatory texts on larger screens.

plurals
  1. POIssue while enabling hyperlinks in master page from content page
    primarykey
    data
    text
    <p>I had written code to Enable and disable hyperlinks on master page from the content page. Every thing is working fine and the hyperlinks are getting disabled also after calling the <code>DisableHyperlinkInMasterPage</code> Method. When i am calling the <code>EnableHyperlinkInMasterPage</code> method still the hyperlinks are not working. If we are leaving that page , then i found that the hyperlinks starts working. My issue is after calling the <code>EnableHyperlinkInMasterPage</code> method , without leaving the page the hyperlinks are still disabled and not working and after leaving the page it getting enabled . Please help me that how i fix this issue.I debug the code and not found any error on <code>EnableHyperlinkInMasterPage</code> method.</p> <pre><code>private void DisableHyperlinkInMasterPage() { AssociateMaster mymaster = (AssociateMaster)Page.Master; HyperLink home = (HyperLink)mymaster.FindControl("Home"); home.Enabled = false; HyperLink profile = (HyperLink)mymaster.FindControl("ProfileLink"); profile.Enabled = false; HyperLink report = (HyperLink)mymaster.FindControl("Report"); report.Enabled = false; HyperLink signout = (HyperLink)mymaster.FindControl("SignOut"); signout.Enabled = false; } private void EnableHyperlinkInMasterPage() { AssociateMaster mymaster = (AssociateMaster)Page.Master; HyperLink home = (HyperLink)mymaster.FindControl("Home"); home.Enabled = true; HyperLink profile = (HyperLink)mymaster.FindControl("ProfileLink"); profile.Enabled = true; HyperLink report = (HyperLink)mymaster.FindControl("Report"); report.Enabled = true; HyperLink signout = (HyperLink)mymaster.FindControl("SignOut"); signout.Enabled = true; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload