vcsharp
  •  vcsharp
  • 88.4% (Honored)
  • YAF Commander Topic Starter
2017-11-12T14:22:53Z
I need to exclude Occupation field from registration page and also from Edit/View Profile pages.

How would I do this?
Sponsor
tha_watcha
2017-11-13T17:11:30Z
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

UserPostedImage
vcsharp
  •  vcsharp
  • 88.4% (Honored)
  • YAF Commander Topic Starter
2017-11-13T17:17:14Z
Great. Yes, that will work. Thanks.

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

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved