TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Seshadri M
NA
69
17.7k
Need to create roles in Authorization in C#
Sep 25 2017 2:28 AM
Student Access the Exam grades
Staff can access student Exam grades
SuperAdmin can access ( CRUD on Exam grades).
In web config.
<authentication mode="window">
</authentication>
<authorization>
<allow roles="Student,Staff,SuperAdmin"/>
<deny user="*"/>
</authorization>
// I need to created the Student, staff,SuperAdmin
in Code behind page
if( User.IsInRole("Student"))
{
// Access the exam grades
}
else if( User.IsInRole("Staff"))
{
// Access the student grades
}
else if( User.IsInRole ("SuperAdmin"))
{
//Access for insert,update, delete of Exam grades
}
I need to created role of Student, Staff, SuperAdmin
Reply
Answers (
2
)
How do i map table from database to already existing excel
how to create form 16B in come tax in asp.net c#