I am building an application in asp.net using C# where people have their own profiles, and if they want to see others profile they can, but they only have read permission; how to set all these read write permissions in Ms Sql?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
here is one way you can hide/show the controls based the user id on asp.net side.
Then there is no need to actually do the work on DB level since user does not have any ability to do that via UI.
pseudo code:
This is one way. You can refine the code above as per the need.
I will suggest you do it on your code level itself instead of DB because essentially you will be doing the same check if it were in a storedproc.