Hi folks,
Got a bit of code in an ascx
<%@ Control Language="VB" Inherits="DESD.Modules.EmploymentListing.EmploymentListView"
CodeFile="EmploymentListView.ascx.vb" AutoEventWireup="false" Explicit="True" %>
<%@ Register TagPrefix="dnn" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>
<asp:LinkButton CssClass="CommandButton" ID="cmdDelete" resourcekey="cmdDelete" runat="server"
BorderStyle="none" Text="Delete" CausesValidation="False" Visible="<%#IsEditable%>"></asp:LinkButton>
<asp:HyperLink ID="cmdEdit"
Visible="<%#IsEditable %>" runat="server">
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/edit.gif" AlternateText="Edit"
Visible="<%#IsEditable %>" resourcekey="Edit" /></asp:HyperLink>
<asp:Label runat="server" ID="lblContent"></asp:Label>
<br />
<asp:Label ID="lblTest" runat="server" text="What? "/><% If IsEditable Then%>Hello<%End If%>
Ideas on what I can do to correct this or how I got in this state?
In the case of the Delete and Edit links the items are visible regardless of being logged in or not.
That last line of code using the Label will add Hello when logged in, or otherwise nothing when not, just a little thing to see what IsEditable is doing.
Just in case it might have some impact on the above, I get to the page that the code runs on via this line of code in the primary control
Response.Redirect(NavigateURL(TabId, "ListingDetails", "Mid=" & ModuleId.ToString, "JobID", JobId.ToString))
it is run through am ItemCommand event against a grid.