Hello,
I tried to make a copy of the mentioned webpart by copying manually the following files:
\CMSWebParts\Membership\Profile\MyProfile.ascx(.cs)
\CMSModules\Membership\Controls\MyProfile.ascx(.cs)
and updated the references in the ascx files where it was necessary (e.g. to the copy of the files):
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="~/CMSWebParts/Membership/Profile/MyProfile2.ascx.cs" Inherits="CMSWebParts_Membership_Profile_MyProfile2" %>
<%@ Register Src="~/CMSModules/Membership/Controls/MyProfile2.ascx" TagName="MyProfile2" TagPrefix="cms" %>
<asp:Label ID="lblError" CssClass="ErrorLabel" runat="server" Visible="false" EnableViewState="false" />
<asp:PlaceHolder id="plcContent" runat="server">
<cms:MyProfile2 ID="myProfile" runat="server" />
</asp:PlaceHolder>
After I registered the webpart in
CMS Site Manager I was able to place it on the page without problems.
You can create a new event according to some
guide on the net as this approach is the same on every .NET application. You can trigger the event from the "editProfileForm_OnBeforeSave()" method in the
MyProfile.ascx.cs file in the Controls folder which is called after the "OK" button is clicked.
Best regards,
Boris Pocatko