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

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -