visual studio 2015 has pre-built user registration/login page, need make "admin" account has access admin page within web app enter in data stored database. dont know begin add account , give write access. happen have knowledge on pre-built registration , add admin user , give them ability view unique page not let else view it?
for vs 2015 - in case of asp.net web page, can use user id , role during page load. if access right not valid, return error page.
in case of asp.net mvc, can define custom attribute using actionfilterattribute
in controller class actionresult
of view.
pre-built registration works both web form , mvc templates provided in vs 2015. more information - please check aspnetusers table in sql database created.
please read more details here
Comments
Post a Comment