vcsharp
  • Posts: 77
  • Joined: 03/10/2017
I need to exclude Occupation field from registration page and also from Edit/View Profile pages.

How would I do this?
Sponsor
tha_watcha
  • Posts: 4067
  • Joined: 06/03/2010
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
  • Posts: 77
  • Joined: 03/10/2017
Great. Yes, that will work. Thanks.
Forum Jump  
  • You cannot post new topics in this forum.
  • You cannot reply to topics in this forum.
  • You cannot delete your posts in this forum.
  • You cannot edit your posts in this forum.
  • You cannot create polls in this forum.
  • You cannot vote in polls in this forum.

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