Posted on: 3/7/2013 10:46:50 AM | Views : 356

Hi I have a gridview that lists all the user's on my system that have been locked out.  The gridview contains a column with a button that admin staff can select and it will unlock the user, however i've ran into difficulty and it isn't working.  For the back end code would I need to use the gridview row command or a method for the button?  Im currently using the row command, getting the user id and saving it as a username and then using the Membership usr = Membership.GetUser(userName) etc, checking if the user is locked out and using the usr.Unlock() then rebinding the gridview, is this correct?
 
When I go down my code to test it is Membership usr = Membership.GetUser("userName") that is causing the error "Access denied creating App_Data subdirectory".
...

Go to the complete details ...