Add a Role to a user in ASP.NET web Form
Posted on 2009-07-13
I have on a ASP.NET web form, 1 Grid views
userGV and one List box roleLB
After bounding both of them into membership data,
i want on a button click event to add the role selected in the listbox to the user selected in the grid view.
so i wrote :
and i got this error :
Unable to cast object of type 'System.String' to type 'System.String'.
How can i achieve this,
and how can i tell the user who is adding the ROles, for instance that a Role has already been assigned to the following user
i am using VB