Hi All
I wanted to restrict the user to view the data in cshtml based on logged user country .
Country field already existed in data base.and currently i am restricting the user based on the Role
How can i do this ?.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Madan ShekarRank #428 · 5.9K reputationPosted Jan 31, 2019, 2:03 AM EST
where ever you want restrict using this session value you can hide the view based on your custom conditions
Asma KhalidRank #160 · 14.7K reputationPosted Jan 31, 2019, 3:59 AM EST