Membership Provider with own profile but without coding C#
I am using the membership provider to make user login to a protected section of the site. This works like a charm. With only the default asp:login-control (without code behind !!) this is working perfectly. asp:LoginStatus shows if somebody is logged in and asp:ChangePassword is working.
This all without any codebehind, so far so good :-)
Now my question:
How to make a "My profile" page? My goal is to use the standard user in umbraco and modify its datatype. But in the datatypes, I cannot find anything to modify there..
I would like to have that users can add some kind profile about themselves like: - address, city - brand of the car they drive - telephone number
What is the best practice for this? I prefer to do this without database changes and code-behind. So my guess is to make document-types for storing the data. But I am not sure this would be wise. Is creating a database table and usercontrols with codebehind for this better practice?
If you go to the Members section you will see that members have MemberTypes just like Documents have DocumentTypes. So you can add properties to your members the same way you would with a document.
However, I don't think that these properties will automagically show up in any standard asp control, so you would probably need to do some coding to enable the member to edit these properties himself.
For the record, I don't know of any ASP.NET components which allow for the editing of membership properties. I've tried to find some (which were to be used in the blog post) but was unable to
Membership Provider with own profile but without coding C#
I am using the membership provider to make user login to a protected section of the site. This works like a charm. With only the default asp:login-control (without code behind !!) this is working perfectly. asp:LoginStatus shows if somebody is logged in and asp:ChangePassword is working.
This all without any codebehind, so far so good :-)
Now my question:
How to make a "My profile" page?
My goal is to use the standard user in umbraco and modify its datatype. But in the datatypes, I cannot find anything to modify there..
I would like to have that users can add some kind profile about themselves like:
- address, city
- brand of the car they drive
- telephone number
What is the best practice for this? I prefer to do this without database changes and code-behind. So my guess is to make document-types for storing the data. But I am not sure this would be wise. Is creating a database table and usercontrols with codebehind for this better practice?
Any input is welcome.
Nico
Nico.
If you go to the Members section you will see that members have MemberTypes just like Documents have DocumentTypes. So you can add properties to your members the same way you would with a document.
However, I don't think that these properties will automagically show up in any standard asp control, so you would probably need to do some coding to enable the member to edit these properties himself.
I think Aarons post adresses this issue:
http://www.aaron-powell.com/blog/july-2009/umbraco-member-profiles.aspx
Yes yes yes... this was exactly the info I need. Thanks a lot Morten !! I
Actually I searched for this info in the wiki; there is a bit on memberships but not on this specific point.
The the blog of Aaron is very valuable, I should search the known blogs next time too :-)
Nico
For the record, I don't know of any ASP.NET components which allow for the editing of membership properties. I've tried to find some (which were to be used in the blog post) but was unable to
is working on a reply...