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

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -