Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ramakrishna 12 posts 32 karma points
    Jul 08, 2010 @ 14:28
    Ramakrishna
    0

    acessing Umbraco:Item at server side

    <umbraco:Item field="Aboutustext" runat="server"></umbraco:Item>

     

    i added one filed on my template now i want to acessing that field at server side

    how can i access that field and i want to make visible=false

    please give me solution.

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Jul 08, 2010 @ 14:36
    Lee Kelleher
    1

    You can either, give the control an ID...

    <umbraco:Item field="Aboutustext" runat="server" ID="myItemControl"></umbraco:Item>

    ... and reference it in code:

    myItemControl.Visible = false;

    or just set the control's visibility, like so...

    <umbraco:Item field="Aboutustext" runat="server" Visible="false"></umbraco:Item>

    Cheers, Lee.

Please Sign in or register to post replies

Write your reply to:

Draft