(#57) Role based Menu in MVC 5 | mvc tutorial for beginners in .net c# | MVC By Nitish

  Рет қаралды 41,411

WebGentle

WebGentle

Күн бұрын

Пікірлер: 53
@abdulkadirkhan8479
@abdulkadirkhan8479 6 жыл бұрын
Thank u so much i was so confused in role ..but u cleared sir love so much may god bless u
@shubhammaini3921
@shubhammaini3921 2 жыл бұрын
what if I have to create a custom roles then what I have to do in that case by creating a roles table using code first approach
@EnGamology
@EnGamology 3 жыл бұрын
Is it possible in .net core mvc. If yes then how. Please share link to video
@kjeevan100
@kjeevan100 Жыл бұрын
Awesome. You have done a excellent job. I am facing a problem though. It works on my work laptop well. When I deploy it on the DEV server I get the error "The entity type User is not part of the model for the current context". Any idea how to xix the issue ?
@viveknikate2768
@viveknikate2768 2 жыл бұрын
Thanks for this nice tutorials sir..🙏🙏 God bless you😊
@WebGentle
@WebGentle 2 жыл бұрын
Thank you for your words.
@viru27490
@viru27490 5 жыл бұрын
Dynamic role use kar sakte he ????
@loni9467
@loni9467 Жыл бұрын
is that a non-core mvc?
@sabya9106
@sabya9106 3 жыл бұрын
From where does the value for user.identity property come from? When are they populated?
@abhisheksawant13
@abhisheksawant13 4 жыл бұрын
Nice Explaination, Covers Basic to advance functionality.
@WebGentle
@WebGentle 4 жыл бұрын
Glad you liked it
@raghavgupta7579
@raghavgupta7579 3 жыл бұрын
Hii bro aapka work kkr rha h ye code..mera nhi kr rha aap ek baar review kr skte h mera code mene same yhe banya h fir bhe work nhi kr rha
@ferhatsayginer1526
@ferhatsayginer1526 4 жыл бұрын
Hello I am doing the application but in this part " Line 105: " "This method cannot be called during the application's initialization phase." I get an error. How can I fix.
@jemschaudhary5922
@jemschaudhary5922 Жыл бұрын
Great video! Thanks for that. I am using the same code to verify the role: User.IsInRole("admin") - but I am still getting false there. Can you share what might cause this problem? Do I need to add anything in middleware (program.cs)? Or that is happening because of - I inserted the role manually in the database?
@jemschaudhary5922
@jemschaudhary5922 Жыл бұрын
Also it is working for checking controller [Authorise(Roles="Admin")]. But only User.IsInRole("admin") not working.
@WebGentle
@WebGentle Жыл бұрын
Its hard to comment without looking at the code. But here are few things you can try 1. Make sure you have added the role in all the tables. AspNetRoles, AspNetUserRoles 2. After making the db changes make sure to logout and login again
@jemschaudhary5922
@jemschaudhary5922 Жыл бұрын
Maybe there is something in the application configuration somewhere from which the application configures that: this project has claim for role. (because I generated role from the application, something got created somewhere.) In case of working with mysql, I inserted those records from PhpMyAdmin interface. Therefore, that whatever should get created in somewhere got not created.
@jemschaudhary5922
@jemschaudhary5922 Жыл бұрын
* Sorry about somewheres and somethings. I dont know the location and I couldn't track that. The best possible names are somewhere and something. Also, thanks for your time for reviewing these comments!
@kaling_108
@kaling_108 4 жыл бұрын
Sir jab me admin se login karta hun tab v create ka link nehni aa raha he .. Aur wo index wala edit option disable to ho raha he lekin admin string pass karne se v nehni aa raha he.
@RohitKumar-kc1co
@RohitKumar-kc1co 6 жыл бұрын
Actually sir i am fresher in mvc but now this time i am felling very happy your video is tooooo good..
@WebGentle
@WebGentle 6 жыл бұрын
Keep learning Rohit.
@RohitKumar-kc1co
@RohitKumar-kc1co 6 жыл бұрын
Sir I am facing one problem validation error when I save or update delete pls give me soln..
@WebGentle
@WebGentle 6 жыл бұрын
What is the error?
@RohitKumar-kc1co
@RohitKumar-kc1co 6 жыл бұрын
System.Data.Entity.Validation.DbEntityValidationException: 'Validation failed for one or more entities. See 'EntityValidationErrors' property for more details.'
@prasadsawant97
@prasadsawant97 4 жыл бұрын
@@RohitKumar-kc1co stackoverflow.com/questions/7795300/validation-failed-for-one-or-more-entities-see-entityvalidationerrors-propert
@muhammadimran5730
@muhammadimran5730 5 жыл бұрын
sir RoleProvider inherit kr rhy same mein b ase hi kr rha but auto resolve krny wala option b nh arha .plz help me
@SushantNilajkar
@SushantNilajkar 6 жыл бұрын
How can we achieve role based authorization for Windows authentication type
@amolkalbhor2580
@amolkalbhor2580 6 жыл бұрын
After Authentication and authorization can you please upload some videos on MVC 5 with angularjs 5.
@ashvinfofandi107
@ashvinfofandi107 5 жыл бұрын
How to work with dynamic role?if admin want to create new role with new rights for each forms and moduels and assign to user.
@prasadsawant97
@prasadsawant97 4 жыл бұрын
with additional code
@facttv4405
@facttv4405 Жыл бұрын
code is not working, authencation is false thats why tabs which is inside the condition on main layout are not showing after login for all users admin as well.
@surendrarahangdale9806
@surendrarahangdale9806 6 жыл бұрын
Love you bro...it's really great video and explaination...
@narendarsingh4672
@narendarsingh4672 6 жыл бұрын
Great Sir,I am grateful to you.
@veerkunwarsingh9632
@veerkunwarsingh9632 8 ай бұрын
Jab mai nav bar ka menu if statement me daal rha hu to wo show hi nhi kr rha hai login krne k badh v nhi .....to kya problem ho skti hai kya koi help kr skte hai ?
@maheshbishtful
@maheshbishtful 5 жыл бұрын
Very nice, great job and Please add Web Api series with identity framework for token based authentication.
@kiritpatel1998
@kiritpatel1998 3 жыл бұрын
very useful work by you
@SayabAhmed
@SayabAhmed 6 жыл бұрын
Sir ek html template Ko kaisa use kare asp.net ma... And please yea bataye ek template use karka ek e-commerce website kaisa banayenga. Please do it Sir
@waqasjavaid9274
@waqasjavaid9274 4 жыл бұрын
zaberdast yaaar. many many thanks
@insafmohammad83
@insafmohammad83 6 жыл бұрын
Nicely explained. Thanks bro
@semikolon4229
@semikolon4229 2 жыл бұрын
Thanks a lot.
@shamsanaz194
@shamsanaz194 6 жыл бұрын
Doing great job boss.
@rayganmudberry375
@rayganmudberry375 5 жыл бұрын
thanks for the videos series. make make mvc core with sample project. thank you
@nandchavan9980
@nandchavan9980 5 жыл бұрын
Thank you sir, this is very useful
@sanjayjha9367
@sanjayjha9367 6 жыл бұрын
Very helpful video sir jee
@tekeshbisen7735
@tekeshbisen7735 6 жыл бұрын
Thanks Nitesh, you did very well. but would be better if you will not discuss very basic about c#, just focus on MVC.
@User-Dotnet
@User-Dotnet 10 ай бұрын
Sir your Explanation is Good but make it in English aswell Iam from south India.
@WebGentle
@WebGentle 10 ай бұрын
This tutorial in hindi but you can watch my other tutorials which are in English language only. We will make most of the content in English only in future.
@User-Dotnet
@User-Dotnet 10 ай бұрын
@@WebGentle OK Thank You Sir🙏
@narendarsingh4672
@narendarsingh4672 6 жыл бұрын
thanks sir
@amolkalbhor2580
@amolkalbhor2580 6 жыл бұрын
very nice..
@jayakumar2927
@jayakumar2927 3 жыл бұрын
Source code
@jercho68
@jercho68 4 жыл бұрын
indio te amo
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
ASP.NET MVC - How To Implement Role Based Authorization
1:05:28
Digital TechJoint
Рет қаралды 72 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.