Welcome Guest! To enable all features please Login or Register.
Options
View
Go to last post Go to first unread
Offline vcsharp  
#1 Posted : 12 November 2017 15:22:53(UTC)
vcsharp


Rank: YAF Commander

Reputation:

Joined: 03/10/2017(UTC)
Posts: 75
Man
India

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

How would I do this?

Edited by user 13 November 2017 18:18:21(UTC)  | Reason: Not specified

Sponsor
Offline tha_watcha  
#2 Posted : 13 November 2017 18:11:30(UTC)
tha_watcha


Rank: YAF.NET Project Lead

Reputation:

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(UTC)
Posts: 3,923
Germany

Thanks: 73 times
Was thanked: 1190 time(s) in 1020 post(s)
Originally Posted by: vcsharp Go to Quoted Post
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

Code:
    <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
thanks 1 user thanked tha_watcha for this useful post.
vcsharp on 13/11/2017(UTC)
Offline vcsharp  
#3 Posted : 13 November 2017 18:17:14(UTC)
vcsharp


Rank: YAF Commander

Reputation:

Joined: 03/10/2017(UTC)
Posts: 75
Man
India

Thanks: 24 times
Great. Yes, that will work. Thanks.
Rss Feed  Atom Feed
Users browsing this topic
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.

Notification

Icon
Error