asp.net - Accesing data from Roles into gridview -
is possible retrieve user details grid view, roles assigned through administrator website? there other way so?
you can achieve same kind of thing making column of roles in database , extracting value of role during time of login.
now can store role in kind of variables cookies ,sessions etc , performing following check in masterpage
if(session[role]==null) { response.redirect("home.aspx"); } else if(session[role]!="user") { response.redirect("home.aspx"); }
Comments
Post a Comment