Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
How can I put attribute visible to asp control using :
<umbraco:Item field="pageId" runat="server" ></umbraco:Item>;
Something like:
<asp:Button ID-btnOpen" runat="server" visible="<umbraco:Item field="pageId" runat="server" ></umbraco:Item>==1055 ?true :false" />
Thanks,
kukuwka
Well I don't believe you can. You can however do what you're trying to do by putting this in your codebehind of the masterpage:
protected void Page_PreRender(object sender, EventArgs e)
{
btnOpen.Visible = Node.GetCurrent().Id == 1055 ? true : false;
}
Hope it does what you need?
-Claus
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to put attribute visible to asp control using "Item field"
Hi,
How can I put attribute visible to asp control using :
<umbraco:Item field="pageId" runat="server" ></umbraco:Item>;
Something like:
<asp:Button ID-btnOpen" runat="server" visible="<umbraco:Item field="pageId" runat="server" ></umbraco:Item>==1055 ?true :false" />
Thanks,
kukuwka
Well I don't believe you can. You can however do what you're trying to do by putting this in your codebehind of the masterpage:
protected void Page_PreRender(object sender, EventArgs e)
{
btnOpen.Visible = Node.GetCurrent().Id == 1055 ? true : false;
}
Hope it does what you need?
-Claus
is working on a reply...