YAFLogo

vcsharp
  • vcsharp
  • 88.4% (Honored)
  • YAF Commander Topic Starter
5 years ago
I need to exclude Occupation field from registration page and also from Edit/View Profile pages.

How would I do this?
Sponsor

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
5 years ago
Originally Posted by: vcsharp 

I need to exclude Occupation field from registration page and also from Edit/View Profile pages.

How would I do this?



The easiest way would be to use set the Visible attribute to false for example modify the page controls/EditUserProfile.ascx

    <tr runat="server" Visible="false">
        <td class="postheader">
            <YAF:LocalizedLabel ID="LocalizedLabel3" runat="server" LocalizedPage="CP_EDITPROFILE"
                LocalizedTag="OCCUPATION" />
        </td>
        <td class="post">
            <asp:TextBox ID="Occupation" runat="server" CssClass="edit" />
        </td>
    </tr>

in that case you render the table row as control and set the visible attribute to false
vcsharp
  • vcsharp
  • 88.4% (Honored)
  • YAF Commander Topic Starter
5 years ago
Great. Yes, that will work. Thanks.
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button