I am trying to extend asp.net membership sytem but I have to admit
that I have not much experience for it so need a bit guidance.
I created registration form using usercontrol and added some fields
for collectiong more extra data like phone number as (Textbox), work
type as (ListBox).
I also created Member Type and added some property phone number as
(textstring), work type as (Dropdown Multiple), also added property to
web.config file.
After successfully creating user, I am able to see phone number on
admin backend but not Work Type.
My question is;
1) Is this the right approach to collect user data using usercontrol?
If it is, how is work type displayed after creating user on admin
backend?
2) Is there better way to collect extra data from user and save it to
umbraco on member section?
Yup, I think Dan's right, may have to store the value rather than the text of the selected item from the dropdown. Should also check how values are stored when working with a 'Dropdown multiple' (it might be comma separated...)
I tried what you suggested but I am getting still the same result. Also where can I find the information how values are stored when working with 'dropdown multiple' Dirk?
Depends on the "dropdown" variant, and sometimes the data stored in the db is different then data stored in the published xml. So, best place to start looking at is the cmsPropertyData table which holds the value of the property on your document when editing/saving it, and have a look at the umbraco.config file in the /App_Data folder (or /data folder - depends on web.config settings) and check how the value is stored in there.
I checked cmsPropertyData and confirmed that 'work type" has been successfully saved into database. The Problem is on members section of admin backend, work type property is not displayed at all.
Dirk, Do you have any idea what might cause the empty list?
I also added a property to a member type and that property uses data type with prevalues. I can successfully see the values on frontend but the problem is that after selecting a value or values from the list and creating user, selected values on admin backend are not selected.
I created a dropdown list multiple data type as nvarchar for worktype and that work type has prevalues as same as listbox. How can I save user selection from listbox into worktype property so I can see it on admin section of member selected?
How to save custom property into Member Type?
Hi all,
I am trying to extend asp.net membership sytem but I have to admit that I have not much experience for it so need a bit guidance.
I created registration form using usercontrol and added some fields for collectiong more extra data like phone number as (Textbox), work type as (ListBox).
I also created Member Type and added some property phone number as (textstring), work type as (Dropdown Multiple), also added property to web.config file.
After successfully creating user, I am able to see phone number on admin backend but not Work Type.
My question is;
1) Is this the right approach to collect user data using usercontrol? If it is, how is work type displayed after creating user on admin backend?
2) Is there better way to collect extra data from user and save it to umbraco on member section?
Here is my code;
Thanx,
ds
Hi ds,
A quick thing to try would be:
Any joy?
Yup, I think Dan's right, may have to store the value rather than the text of the selected item from the dropdown. Should also check how values are stored when working with a 'Dropdown multiple' (it might be comma separated...)
Cheers,
/Dirk
Hi Dan, Dirk
I tried what you suggested but I am getting still the same result. Also where can I find the information how values are stored when working with 'dropdown multiple' Dirk?
Depends on the "dropdown" variant, and sometimes the data stored in the db is different then data stored in the published xml. So, best place to start looking at is the cmsPropertyData table which holds the value of the property on your document when editing/saving it, and have a look at the umbraco.config file in the /App_Data folder (or /data folder - depends on web.config settings) and check how the value is stored in there.
Hope this helps.
Regards,
/Dirk
I checked cmsPropertyData and confirmed that 'work type" has been successfully saved into database. The Problem is on members section of admin backend, work type property is not displayed at all.
Dirk, Do you have any idea what might cause the empty list?
I also added a property to a member type and that property uses data type with prevalues. I can successfully see the values on frontend but the problem is that after selecting a value or values from the list and creating user, selected values on admin backend are not selected.
Hope to give me some feedback,
thanx
would have to look into this, currently don't have a clue why it's not displaying in the backend
cheers,
/Dirk
Dirk,
That code snippet in the following works as expected except profile["worktype"] line.
I created a dropdown list multiple data type as nvarchar for worktype and that work type has prevalues as same as listbox. How can I save user selection from listbox into worktype property so I can see it on admin section of member selected?
Thanx
is working on a reply...