Developer forum

Forum » Development » dw:UserSelector

dw:UserSelector

Ola Eriksson
Reply

Hi
I'am trying to use the dw:UserSelector in a custom module. But I' can't figure out how to capture the 
values from the user, back end when saving in Admin.
Is it possible to use the dw:UserSelector in a scenario like this?

Regards 

Ola

 


Replies

 
Arker Soe
Reply

I am also having that point where i created the user group selection control and no clue to catch the data back. any support here?

 
Nicolai Høeg Pedersen
Reply

Show your code (aspx + codebehind), and we can help. But first, look for your self...:

It should be VERY simple - you insert the control, it has a field with a name, and you can pick up the data when posted using the request. Use the developer tools in the browser to see what gets submitted.

 
Arker Soe
Reply

there is a hidden input created and it holds the group ids i added with comas. do you mean that?

 

 
Arker Soe
Reply

I just added the control let's say

<dw:UserSelector runat="server" ID="usergroups" show="Groups"></dw:UserSelector>

and in aspx.cs

usergroups.groups= properties["usergroups"].ToString();// it doesn't make sense so i declare usergroupshidden coz i see the hidden input in inspect. but then ..

usergroups.groups= properties["usergroupshidden"].ToString();// this just hold group ids but won't assign to UserSelector control for reload

 

You must be logged in to post in the forum