Author: tareshjha | Posted on: 6/10/2008 5:29:43 AM | Views : 1075

Hi all,

           I want to assign role to user programmaticaly who have not logged in ... means suppose a admin know that how many user staff not assigned to role.

than admin want to assign (add to user role) to specific role.  for code below  admin assigning roles those user who have logged in .i am unable to do this .

plz help.

Thanks.

my codebehind is......
if (lbxAvailableRoles.SelectedIndex != -1)
{

string selectedRole = lbxAvailableRoles.SelectedValue;
if (!Roles.IsUserInRole(selectedRole))
{

Go to the complete details ...