Note that there are some explanatory texts on larger screens.

plurals
  1. POhiding a link in asp.net
    primarykey
    data
    text
    <p>in the following master.cs code.....</p> <pre><code>public partial class Default : System.Web.UI.MasterPage { protected void Page_Load(object sender, EventArgs e) { BasePage page = (BasePage)Page; if (page.CurrentUser != null) { lblCurrentUser.Text = "&lt;strong&gt;" + page.CurrentUser.FullName + "&lt;/strong&gt; - " + page.CurrentUser.CompanyName; if ((Session["CCFUser"] != null) &amp;&amp; (bool.Parse(Session["CCFUser"].ToString()) == true)) { ctrlLinkBar.AddLink("Issues Management", "AllIssues.aspx"); } else { if (true) ctrlLinkBar.AddLink("Home", "Default.aspx"); if (page.CurrentUser.Permissions.Issues()) ctrlLinkBar.AddLink("Issues Management", "AllIssues.aspx"); if (page.CurrentUser.Permissions.Time()) ctrlLinkBar.AddLink("Time Management", "TimeEntryForm.aspx"); if (page.CurrentUser.Permissions.Time()) ctrlLinkBar.AddLink("Time Filter", "TimeFilter.aspx"); if (page.CurrentUser.Permissions.SVN() &amp;&amp; !(this.Page is _Default)) ctrlLinkBar.AddLink("SVN", "SVN.aspx"); if (true) ctrlLinkBar.AddLink("Profile", "ChangePassword.aspx"); if (page.CurrentUser.Permissions.Administration()) ctrlLinkBar.AddLink("Administration", "Administration.aspx"); } } else lnkLogout.Visible = false; } protected void lnkLogout_Click(object sender, EventArgs e) { Session.Abandon(); FormsAuthentication.SignOut(); Response.Redirect("Login.aspx"); } } </code></pre> <p>i need to hide the link "Time Filter" so it doesnt appear on any of the web content forms. It doesnt have an id so i cannot caste it. How do I go about hiding it then?</p>
    singulars
    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.
 

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