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

How would I do this?
Topic Starter
  • vcsharp
  • Rank: YAF Commander
  • Reputation:
    Honored
    86%
  • Joined: 03/10/2017
  • Posts: 77
  •  Man  India
  • Thanks: 25 times
  • Was thanked: 1 time(s) in 1 post(s)
#2
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­čśĽocalizedLabel 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
  • tha_watcha
  • Rank: YAF.NET Project Lead
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.
  • Joined: 06/03/2010
  • Posts: 4,016
  •  Germany
  • Thanks: 73 times
  • Was thanked: 1211 time(s) in 1036 post(s)
#3
Great. Yes, that will work. Thanks.
Topic Starter
  • vcsharp
  • Rank: YAF Commander
  • Reputation:
    Honored
    86%
  • Joined: 03/10/2017
  • Posts: 77
  •  Man  India
  • Thanks: 25 times
  • Was thanked: 1 time(s) in 1 post(s)
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