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 )

13268 put(a) pogledan, 4 odgovor(a) 26.7.2013. 9:12:38Kreirao(la) mev9669
mev9669

mev9669

26.7.2013. 9:12:38
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?
Ovaj sadržaj još nije ocijenjen. 
515 Reputacija 67 Ukupno objava
kpeulic

kpeulic

26.7.2013. 9:59:55
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.
Ovaj sadržaj još nije ocijenjen. 
1849 Reputacija 181 Ukupno objava
mev9669

mev9669

29.7.2013. 8:33:06
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?
Ovaj sadržaj još nije ocijenjen. 
515 Reputacija 67 Ukupno objava
kpeulic

kpeulic

29.7.2013. 9:23:10
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)
    {
         
    }
}
Ovaj sadržaj još nije ocijenjen. 
1849 Reputacija 181 Ukupno objava