Mono Support Terms and Conditions on register 

Viewed 13879 time(s), 4 post(s), 7/26/2013 9:12:38 AM - by mev9669
7/26/2013 9:12:38 AM
515 Reputation 67 Total posts

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?

1
7/26/2013 9:59:55 AM
1849 Reputation 181 Total posts

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.

2
7/29/2013 8:33:06 AM
515 Reputation 67 Total posts

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?

3
7/29/2013 9:23:10 AM
1849 Reputation 181 Total posts

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)
    {
         
    }
}

4
This is a demo site for MonoX. Please visit Mono Software for more info.