(#56) Roles in MVC | Authorization in MVC | mvc tutorial for beginners in .net c# | MVC By Nitish

  Рет қаралды 103,649

WebGentle

WebGentle

Күн бұрын

Пікірлер: 73
@AlmutasimAlmazidi
@AlmutasimAlmazidi 5 жыл бұрын
Even I don't understand your language but it was quit good for more by following logical steps .. Thank you . I hope to repeat this explanation in English
@kishorelunavath6019
@kishorelunavath6019 Жыл бұрын
This Video is incomplete once you see this. 19:45
@derveshpasha1002
@derveshpasha1002 3 жыл бұрын
Agar user registration complete hone pe confirmation view pa jana ho tu phir confirmation action result ka attribute allow anonymous set krna ho ga k authorise.
@Uzair_Anwar2299
@Uzair_Anwar2299 4 жыл бұрын
how we can assign roles dynamically ???
@emailtoswapneel
@emailtoswapneel 4 жыл бұрын
yes, I would like to know, How can it dynamically? Please make full video on it..
@rajeshjoisy1958
@rajeshjoisy1958 5 жыл бұрын
tried exact same code do we need to make changes to the account controller?
@SAADBILAL1
@SAADBILAL1 5 жыл бұрын
Please help to remove this error Could not load type 'WebRoleProvider'.
@hrushipedia
@hrushipedia 2 жыл бұрын
how do you make it so that when you have multiple softs in your soft roll; you arent interfereing with another soft like accidentally
@manishsenapati4613
@manishsenapati4613 3 жыл бұрын
Thank you for making MVC easy for entry-level professionals.
@flick--spadegaming9617
@flick--spadegaming9617 2 жыл бұрын
edmx update nahi hota im using mysql workbench is there any alternative besides deleting the whole edmx file and doing it again ? i am tired of creating new projects everytime i add a new table in db
@AlejandroGuerrerowarrior
@AlejandroGuerrerowarrior 4 жыл бұрын
Hi, Thanks for the tutorial. How can I use the Roles into Layout, to filter option in the menu?? Regards
@pcerrorsandsolutions3438
@pcerrorsandsolutions3438 2 жыл бұрын
Best video 👍👍 JazakAllah I was searching for it for many days
@WebGentle
@WebGentle 2 жыл бұрын
Thank you for your words. I love to hear your feedback on LinkedIn where you can tag my profile www.linkedin.com/in/meettonitish
@NePhoosStAr
@NePhoosStAr 2 жыл бұрын
how to redirect to access denied page after a role which doesnt have authrozition for action tries to call the action
@mohdnasirhussain1
@mohdnasirhussain1 6 жыл бұрын
ab yaha role based mai aapne khud se coding type krkey bataya hai to total achey se samaj mai aa gya hai ye topic bs aise hi chaiye
@WebGentle
@WebGentle 6 жыл бұрын
Good. sikhte rahiye
@rohanawasare7101
@rohanawasare7101 4 жыл бұрын
@@WebGentle sir, please isme OverrideAuthorizeAttribute wala concept bhi explain kar dijiye
@samarthgoel5313
@samarthgoel5313 3 жыл бұрын
Hello Nitish How can we do role based auth with the help of 1 table
@Shivam0111-vx8gd
@Shivam0111-vx8gd 10 ай бұрын
Using identity table
@firozrangrez2260
@firozrangrez2260 4 жыл бұрын
sir can you tell me Why we have created the role Table ??
@rajeshjoisy1958
@rajeshjoisy1958 5 жыл бұрын
Keep getting redirected to index page after selecting edit or delete ?
@NaveenKumar-mr6xi
@NaveenKumar-mr6xi 5 жыл бұрын
hi can u please explain open id connect and oauth2 basic terminology
@sagaraggarwal4176
@sagaraggarwal4176 4 жыл бұрын
For those who are not able to make it work, You all can implement this code. Change the words in double quotes with your project file names. public override string[] GetRolesForUser(string username) { var db = new "DatabaseEntityName"(); var user = db."UserTableName".FirstOrDefault(u => u."NameInTable"== username); var userRoles = from ur in user."RoleTableName" from r in db."RoleTableName" where ur."Id in User Table"== r."Id in Role Table" select r.Role; if (userRoles != null) return userRoles.ToArray(); else return new string[] { }; ; } public override bool IsUserInRole(string username, string roleName) { var db = new "DatabaseEntityName"(); User user = db."UserTableName".FirstOrDefault(u => u."NameInTable"== username); var roles = from ur in user."RoleTableName" from r in db."RoleTableName" where ur."Id in User Table"== r."Id in Role Table" select r.Role; if (user != null) return roles.Any(r => r.Equals(roleName, StringComparison.CurrentCultureIgnoreCase)); else return false; }
@annierizvi2625
@annierizvi2625 3 жыл бұрын
Hii anyone please help me .. I am unable to bind grid based on date filter through js
@abdul6104
@abdul6104 4 жыл бұрын
Sir, Please help me where i am doing wrong, When i apply authorize filter attribute its raising following security exception, when i remove it working fine. An unhandled exception of type 'System.AccessViolationException' occurred in Unknown Module. ------------------------------------------------Start Codes-------------------- List controller code: [Authorize(Roles="Admin")] public ActionResult Index() { using (var db = new webgentleEntities()) { return View(db.Employee.ToList()); } } My code like : web.config: WebRoleProvider.cs code for getting roles on basis of username, I am returning here hardcoded: public override string[] GetRolesForUser(string username) { string[] str = { "Admin" }; return str; }
@mangeshchoudhari7190
@mangeshchoudhari7190 6 жыл бұрын
Is it incomplete video??
@ashwinipawar2157
@ashwinipawar2157 3 жыл бұрын
Im not able to find Video No 55
@sibeshghosh2004
@sibeshghosh2004 4 жыл бұрын
Sir this video is very useful one,it helps me lot. But I think this is incomplete, video is finished before you explain any operation with role.
@SAADBILAL1
@SAADBILAL1 5 жыл бұрын
sir ye error aa raha ha please help Could not load type 'WebRoleProvider'.
@rajeev5999
@rajeev5999 4 жыл бұрын
Sir can you please make videos on asp MVC small demo project.
@surendrarahangdale9806
@surendrarahangdale9806 5 жыл бұрын
Sir plz tell me how to write query to get a user roles by ado.net connection
@RafikulHasanSara
@RafikulHasanSara 5 жыл бұрын
How to set from database . Not hard code
@MajidAli-dm2ld
@MajidAli-dm2ld 4 жыл бұрын
Kindly provide the complete video plzz
@aftabahmad3584
@aftabahmad3584 5 жыл бұрын
Mr. Nitish, your video very helpful thanks, can you make claim base authentication of login, register and logout not for google or face book authentication. i need internally login.
@aaat317
@aaat317 5 жыл бұрын
docs.microsoft.com/en-us/aspnet/ mvc/overview/security/create-an-aspnet-mvc-5-app-with-facebook-and-google-oauth2-and-openid-sign-on
@sunilsingh-tk9br
@sunilsingh-tk9br 6 жыл бұрын
Linq with lambda exp. ka use karke bataye. Specially when you are using joins
@WebGentle
@WebGentle 6 жыл бұрын
I will create a complete tutorial on linq soon.
@rohitmunde3170
@rohitmunde3170 3 жыл бұрын
He saved his project using cntrl + s almost 1 million times
@WebGentle
@WebGentle 3 жыл бұрын
😃😃😃
@Azur999
@Azur999 2 жыл бұрын
broken link :c
@pratikyadav2861
@pratikyadav2861 Жыл бұрын
Very helpful ❤❤
@Uzair_Anwar2299
@Uzair_Anwar2299 4 жыл бұрын
admin apna login kry. or ksi specfic user ko role assign kr dye. kh wo kuch specfic operation perform kr skta hai
@talhafarrukh677
@talhafarrukh677 3 жыл бұрын
why hard code role table
@vinodkus1
@vinodkus1 4 жыл бұрын
Sir your video is not ended properly, I think it is incomplete. Please check
@bipinkunjilwar6083
@bipinkunjilwar6083 5 жыл бұрын
Very nice tutorial... Please create more videos...
@Witty_Mind
@Witty_Mind 6 жыл бұрын
first of all thanks for this valuable series ...i 'am following your mvc tutorials from part 1 till now . I have question "how to assign role to new user at time of creating user that it is admin or normal user ?". Ans me please.........
@WebGentle
@WebGentle 6 жыл бұрын
It depends on the behavior of the application. - Sometime you may have multiple application one for user and another for admin (ex -Internal portal). - You may have an app which can be used to assign roles (An admin can set roles from some other application.) - Or in some cases, the user can choose his role during signup. etc...
@royalrajput9567
@royalrajput9567 5 жыл бұрын
I also have same question.. if you got answer or any other video in which roles are assigned to user at sign up then please reply... I need it badly
@emailtoswapneel
@emailtoswapneel 4 жыл бұрын
I would like to know, How can it dynamically? Please make full video on it..
@balkishan2k11
@balkishan2k11 5 жыл бұрын
Video is awesome but after roles created the video ended can you please upload complete video.
@AliKhan-ui7in
@AliKhan-ui7in 6 жыл бұрын
incomplete video ??????????
@narendarsingh4672
@narendarsingh4672 6 жыл бұрын
thanks sir
@rushikesh3532
@rushikesh3532 2 жыл бұрын
please make api and mvc seperate
@AnandKAsiwal
@AnandKAsiwal 5 жыл бұрын
Aapke source code me do file User And Role file h but video me aapne khi pr bataya nhi And Role Based Authority work nhi kr rhi h.
@royalrajput9567
@royalrajput9567 5 жыл бұрын
User.cs class file isse pahle wale video me create kia tha.. #54 no tutorial video me.. to ek bar wo video dekh lo aap
@PratyushJha19
@PratyushJha19 3 жыл бұрын
This video is incomplete... I guess. If it is, please resolve it. By the way nice explanation its easily understandable
@amitkishor7338
@amitkishor7338 6 жыл бұрын
App sa request hai Without entity framework k use karo mvc mai plz
@WebGentle
@WebGentle 6 жыл бұрын
Entity framework is the best ORM and widely used with MVC. You must learn Entity framework also.
@sunilsingh-tk9br
@sunilsingh-tk9br 6 жыл бұрын
Aap code first and migrations ka use karke table create kare .
@abdulhakimzeinu634
@abdulhakimzeinu634 5 жыл бұрын
thanks
@preetisharma1332
@preetisharma1332 5 жыл бұрын
Officeentities() kha se aia isme
@uazam00
@uazam00 5 жыл бұрын
officeentities apki db entity hai
@royalrajput9567
@royalrajput9567 5 жыл бұрын
#54 part me dekho ... Waha create kia h ye database
@ChefZubairKitchenUrdu
@ChefZubairKitchenUrdu 3 жыл бұрын
awesome
@shashiverma6043
@shashiverma6043 4 жыл бұрын
Thank u so much...
@rajivgupta240
@rajivgupta240 4 жыл бұрын
Sir real tym asp.net mvc ka project wala video banaiye
@uazam00
@uazam00 5 жыл бұрын
great
@alpersahin1410
@alpersahin1410 5 жыл бұрын
Thanks ver much
@User-Dotnet
@User-Dotnet 10 ай бұрын
Sir please tell me in English Language
@geragamo
@geragamo 4 жыл бұрын
what kind of **glish is this ?
@MajidAli-dm2ld
@MajidAli-dm2ld 4 жыл бұрын
Incomplete video
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН