Populate dropdownlist and Listbox from Member Data for editing on frontend
I created a member section where logged in members could change its profile information but I stuck at how I can retrieve back those saved values on frontend for editing.
The code snippet below is for creating user but I do not know how to retrieved back those saved values.
Thanks for the info you supplied. I will have a look at it. In code behind, how can I get member property data from either dropdownlist or listbox custom data type on backend and populate either dropdownlist or listbox with user selection on frontend? Thats where I stuck at actually.
and that picture below is from frontend. Logged in user should see their profile information like in the above but I can get only values not user selection.
Are you saying that you want to get member data (JobDescription for example) for a member in the drop down on your front end (Ahsap Malzeme for example?)
Populate dropdownlist and Listbox from Member Data for editing on frontend
I created a member section where logged in members could change its profile information but I stuck at how I can retrieve back those saved values on frontend for editing.
The code snippet below is for creating user but I do not know how to retrieved back those saved values.
Any help much appreciated
Any idea?
Hey ds,
You can access the member properties using umbraco.library:GetMember()
In xslt see here for an example
http://our.umbraco.org/forum/developers/xslt/15177-Can't-Access-Member-Properties-(Using-452)
Or in c# look here
http://our.umbraco.org/forum/developers/xslt/2644-Access-a-custom-member-property-in-XSLT
Rich
Hi Rich,
Thanks for the info you supplied. I will have a look at it. In code behind, how can I get member property data from either dropdownlist or listbox custom data type on backend and populate either dropdownlist or listbox with user selection on frontend? Thats where I stuck at actually.
HI Ds,
Sorry, I'm a little confused about what you are trying to do?
Could you please explain a little further, screenshots are often helpful too.
Rich
Rich,
Following is from backend in member section
and that picture below is from frontend. Logged in user should see their profile information like in the above but I can get only values not user selection.
Hope this time I have made myself clear.
Sorry I'm still a little confused.
Are you saying that you want to get member data (JobDescription for example) for a member in the drop down on your front end (Ahsap Malzeme for example?)
Rich
That is right, Rich.
Like Ahsap Malzeme and Akvaryum-Hayvan Bakm ve Malzemeleri should be seen as selected on frontend as well.
Did you have any chance to look at my little problem, Rich?
Rich, Can you point me to right direction on this issue?
Hi,
I think you just need to set the Selected Value of your ListBox, right?
ie, lbJobDescription.SelectedValue = mp.JobDescription;
-Tom
Hi Tom,
The problem is to populate dropdown or listbox with the selected value like shown above in my previous posts
is working on a reply...