So having an error when I select my button in the gridview. Was told to use the gridview row command which I have, keep getting an error about the App_Data subdirectory.
protected void gvUnlock_RowCommand(object sender, GridViewCommandEventArgs e)
{
String userName = e.CommandArgument.ToString();
MembershipUser usr = Membership.GetUser("userName");
if ((usr != null) && (usr.IsLockedOut))
{
usr.UnlockUser();
gvUlockLevypayer.DataBind();
}
}
Do I need to add another if statement in below the method creation to state if the button has been selected?