Mr Venkat - You're an excellent teacher who not only covers things from basic to advanced but also ensures that things are stacked properly to build a project. Just wondering if you're considering a tutorial covering Core, Angular and Micro services in one solution.
Hello Venkat sir, First of all thanks a ton for posting this series. It is simply awesome like your other series. I have been following this series and all of practical hands on were correct so far until I hit a roadblock here with this video. I tried to copy paste all code from your blog but still its not working. For me Dropdown is not showing Users and Roles options when I click on "Manage" dropdown. Any advise on what could be the problem? Thank you.
Hello Suresh - Can you please check the ASPNETCORE_ENVIRONMENT variable in launchSettings.json file. I have a feeling you might be missing the required jQuery or Boostrap jQuery files for the environment in which you are running. Can you please make sure this is not the case. Hope this helps. Would love to know what the actual issues.
@@alessandromaiorano2371 In my case I was using Bootstrap 3.x libraries and I ended up using a slightly different html for the dropdown. Check out www.w3schools.com/bootstrap/bootstrap_navbar.asp Hope that helps
Make sure you include AFTER your Jquery elements in the _Layout view. NOTE: This is NOT the same as the element that includes bootstrap, you need both.
Dear Venkat, Regarding the following code, I would like to ask what are aria-haspopup, aria-expanded and aria-labelledby Bootstrap 4 styling classes ??? Manage Users Roles
Sir i have a question, 1. If we have autorized only Admin user to access creat emoloyee option and also all administration class action methods. What happens when the signed in admin Deletes the admin role in listrole view or remove itself from the admin role. How a new admin role can be created or how to add a user in admin role in that case?
Hello Sarah - Great Questions. If we delete the Admin role, the respective User Role record is also deleted automatically, unless you have changed the foreign key referential integrity behaviour. The following video explains this in detail. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-txTZAFut9mA.html How a new admin role can be created or how to add a user in admin role in that case As you know this is a bit tricky. Either temporarily remove the Authorize attribute and add the user to the Admin role. Or Manually insert a row in AspNetUserRoles table.
Thank you for these videos. The issue I have now is I'm using BlazorWasm and Server + Database w/ Identity. These don't have the code-behind files so it's a little bit different.
9:03 Hi Venkat, could you please explain a little more about the USER object being used in the additional IF block? Where and how did we have that USER defined?
The Users object is part of the constructor of AdministrationController.cs by dependency injection. (UserManager userManager below) public AdministrationController(RoleManager roleManager, UserManager userManager)... In ListUsers: public IActionResult ListUsers(){var users = userManager.Users; return View(users); } he is passing UserManager.Users to the view as variable users. I hope that helps.
please Mr Venket can you heip me , i tried to do this but every time i run .. an error occured "ArgumentNullException: Value cannot be null. (Parameter 'source') " Occured ... i do not no where the mistake i copied you lterally the error in model.any()
Good tutorials. I tried the conditions log in on the layout view but not working. Also, when I log-in and want to access a controller with authorised attribute, I get redirected to login page again. Please how do I resolve this
Hi sir, Can you please help me in knowing how to display logged user firstname instead of hello "mail id" please as i want to change the path in _layout.cshtml of asp.net core web app
Hello, friends, and best wishes for your health. I am using VS2019 and started seeing this error when there were no coding errors: System.AggregateException: Project system data flow 'DataflowBlockSlim (ActionBlockSlimAsync`1 : 25702923)' closed because of an exception... I found out here: github.com/Microsoft/VSProjectSystem/commit/b513b6eb3f73cb4233d6da0dff1f9fa527a73f68 that it's a result of a proverbial "feature," and will go away if you do a Build/Rebuild Project. However I also needed to do a Build/Clean Project before doing the Rebuild before things started working again.