MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Terms and Conditions on register  (Mono Support )

Viewed 12490 time(s), 4 post(s) 7/26/2013 9:12:38 AMby mev9669
mev9669

mev9669

7/26/2013 9:12:38 AM
Hi,

I can see that the database has a table for terms and conditions. But How can I add accept terms and conditions policy on the user register form?
This content has not been rated yet. 
515 Reputation 67 Total posts
kpeulic

kpeulic

7/26/2013 9:59:55 AM
Currently we don't have the control which save terms and conditions to the database.

You can to develop your own solution. On the Github you can find couple samples how you can create your custom WebPart.
This content has not been rated yet. 
1849 Reputation 181 Total posts
mev9669

mev9669

7/29/2013 8:33:06 AM
Looking at the article http://www.mono-software.com/Mono/Pages/Discussion/dtopic/fk_vqV39EUaRG56KATl6gQ/How-to-have-a-custom-register-page/?pageno=1&dmsgId=7H3rPEnUG0qv46IHAMLtXA#Post7H3rPEnUG0qv46IHAMLtXA

Can you please explain the following?

7. To execute your custom code you need to attach to some of the exposed events: 

AccountCreating
AccountCreated
AccountCreation
CompletedAccount
UpdatingAccount
UpdatedAccount
UpdateCompleted

How do i expose these methods?
This content has not been rated yet. 
515 Reputation 67 Total posts
kpeulic

kpeulic

7/29/2013 9:23:10 AM
Here is the way how you can do it for the "AccountCreating", on the same way you can do it for all of them:

public partial class WebUserControl1 : MonoSoftware.MonoX.ModuleGallery.MembershipEditor
{
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        this.AccountCreating += new System.ComponentModel.CancelEventHandler(WebUserControl1_AccountCreating);
    }
 
    void WebUserControl1_AccountCreating(object sender, System.ComponentModel.CancelEventArgs e)
    {
        throw new NotImplementedException();
    }
 
 
    protected void Page_Load(object sender, EventArgs e)
    {
         
    }
}
This content has not been rated yet. 
1849 Reputation 181 Total posts