Thank you so much Nitish bhai. It was a great help. I had been searching for the solution of implementing Authorize attribute and role based authentication for a week and couldn’t find a single help from any article including StackOverflow. And especially for an existing mvc project. Although I have been watching your tutorials since last year but didn’t go that far. But today I’m happy that finally I’ve learnt this. I can’t express my gratitude in words. Please keep posting informative videos. God bless you.
Thanks bro...this video very helpful me...bcz I have been search on youtube for authentication and authorization since 6 month , I couldn't find ...but this video really understood me ..
Can someone please explain the logic behind using Membership model class @13:34 for login purpose and the using User class for the signup purpose @15:34. I will be really thankful to you for the explanation.
This tutorial is so much clear and understandable.. Thank you so much for making these kind of video.. I need to Know one question this is how can I use multiple login form like admin user and others panel. Thanks in advance..
Getting error while adding View for ActionResult Login() in Account Controller -> There was an error running the selected code generator: 'Unable to retrieve metadata for 'abc.Models.Membership', one or more validation errors were detected during model generation: Membership: : EntityType 'Membership' has no key defined. Define the keys for this EntityType. Memberships: EntityType: EntitySet 'Memberships' is based on type 'Membership' that has no key defined.
Nice video. I have questions: First time you make a class with name membership and while creating view you mentioned that membership class and while creating signup functionality you use user model class. can we use same user model class both times?? and why you create membership class?
In this Video you have missed many things because of which I cannot do this program in the way it is appearing on tour screen. Please Mention all the things correctly once. I can see @15.30 you have missed something to explain because of which I cannot get the correct Output. Though you have shared the source code still as a beginner I cannot understand that and I have seen many of your videos same issue is there. No doughty you explain every point very clearly and that is easy to understand. But as a beginner I understand every point is important.
This tutorial is so helpful:) I have a request, Can you make a video on login through social sites like Facebook, Google, and Linkedin. That would be a great help. Thank you in advance!
Server Error in '/' Application. The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: / Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4075.0
sir let say i want to have 2 types o users/role same like user and admin but i want to use different tables for both types of user ,then in that casehow will i make authentication possible with 2 diffrent users.
thanks for video . this is very helpful. i have a one point, that i want to ask, signup form validation is not working, how to resolve. please help me.
I followed all steps as mentioned in video and its working. Make sure to re watch the video and recheck the code again, may be some code is not proper.
after logout, if we click the back button on browser, it still redirects to the previous page (though, if we hit refresh it goes to the return url mentioned in webconfig). How to clear the cache on logout to rectify this behaviour?
Thanks for the video .It was helpful. I have some doubt . can you tell me where can i find the front end part code? Do i have to watch some other video of yours?
Hey @WebGentle, I followed your tutorial. I have couple pages that user should visit without Login and only one page needs login. I followed you and login works for particular page but other pages showing database error although it was working earlier. Any setting on webconfig so that there won't be any error?
Hi, i am getting problem while build the data base connection, getting error Severity Code Description Project File Line Suppression State Error (active) CS0246 The type or namespace name 'Employee' could not be found (are you missing a using directive or an assembly reference?) WebApplication1 D:\My Study\ASPDot Net\Projects\WebApplication1\WebApplication1\Model1.Context.cs 28
can make a video for logout automatically in mvc please help suppose user keep system idle mode after login and then after 30 seconds it's gone to login page if user does not use system for 30 seconds
Sir why didn't you use separate class project for models and database as you have used in CRUD in video #30 to 36.. please advise for best architecture in mcv.. and if there is any video related to this please share link
For best architecture everyone has his on point - Some people prefer to use separate class library project for code separation and some of them use everything under project. But I would suggest you to use separate project as it gives you more separation of code which is beneficial in many ways. Hope it will help you.
Sir in _Layout.csHtml = (User.Identity.IsAuthenticated) ye line k bare me thoda detail me batao na k kese work karata he Thanks for this tutorial its very helpfull
It works thanks but I have to place in each and every control to work or else if I placed in web.config file but when ever the user going to one control to another if he/she press back button it will not work any help
Sirjee very helpful video Thank You sir he bataye ki hum some se password kaise encrypte Karen. Microsoft ka password encrypt use nahi karna chahte hain please sir batayen.
Hi, Nice explanation. I was trying the same thing you explained in this video and it is not redirecting to login page when i click on get list or create in spite of putting the Authorize attribute to the controller level and changing url to Account/Login in the web config file. Can you let me know what could be wrong? Thanks
Sir, I am getting an error while adding view to action method login() in Account Controller --> There was an error running the selected code generator: unable to retrieve metadata for 'TestMVC2.Models.Membership' Pls Suggest
sir when you create a view for an account u didn't get an error but when I'm doing this same work I got an error of Error : There was an error running the selected code generator:'unableto retrieve metadata for'' plz help me with this
Ok ager zaruri nhi to for example ager user log out kerna bhool Jaye ya login kernay k bad kuch dair use na keray to session khudi expire hoga? Because it is security issue...
Internally session hi use hota h. But hme apne aap directly use krne ki jrurt nhi hoti h. Because ye cookies ka use krta h to cookie k base p check hota h. Agr cookie expire ho jati h to fr se login krna pdta h. Aur aap session timeout bhi set kr skte ho web config m.
maa kasam issey best video nahi dekha aaj tak, thanks a trillion, you are simply the best.....
The best ever teaching, Simplicity on peak and a wonderful explanation . Highly recommended for beginners.
Thank you SIR
jabardast es video se bahut kuch sikha hai kahi pr b authentic and authorised pr aisa video nahi hai detail mai great bro
True
membership class q bnai?
best tutorial for Login and Logout mvc I have ever seen
Thank you so much Nitish bhai. It was a great help.
I had been searching for the solution of implementing Authorize attribute and role based authentication for a week and couldn’t find a single help from any article including StackOverflow.
And especially for an existing mvc project. Although I have been watching your tutorials since last year but didn’t go that far. But today I’m happy that finally I’ve learnt this.
I can’t express my gratitude in words. Please keep posting informative videos.
God bless you.
Thank you 😊
Thanks bro...this video very helpful me...bcz I have been search on youtube for authentication and authorization since 6 month , I couldn't find ...but this video really understood me ..
Bhai is sey baria video TH-cam pey ni melegi. ... Superb genius bro
This video very useful for mvc beginners...Thank u sir... I don't know Hindi!! but I understand for your way of teaching.. thank you...
This is the most perfect tutorial I have ever come across, from the scratch.
Thank you soooo much. Very detailed step by step video. Now I know how authentication system is implemented. Fantastic trainer you are.
Most awaited video.. thanks..nice content..good luck bro
Best tutorial of the word for login
SIR YOUR ALL VEDIOS ASP NET MVC ARE THE BEST OF ALL OTHERS YOU TUBE VEDIOS. PLS MAKE ADMIN PANEL IN MVC
Excellent Tutorial Bro !!! It helps a lot, have an super day!
Thank you very much your project is perfect and im resolve my problem..
Can someone please explain the logic behind using Membership model class @13:34 for login purpose
and the using User class for the signup purpose @15:34.
I will be really thankful to you for the explanation.
Same Question! Did You find any Answer?
You are best of the best man ❤❤❤
Thank you for your words. I love to hear your feedback on LinkedIn where you can tag my profile www.linkedin.com/in/meettonitish
I used crud opration which u explained in previous video no 30 to 34 and extant this project and need to implement login logout page also
What type of code i will write for employeesRepositary
This tutorial is so much clear and understandable.. Thank you so much for making these kind of video..
I need to Know one question this is how can I use multiple login form like admin user and others panel.
Thanks in advance..
Getting error while adding View for ActionResult Login() in Account Controller ->
There was an error running the selected code generator: 'Unable to retrieve metadata for 'abc.Models.Membership', one or more validation errors were detected during model generation:
Membership: : EntityType 'Membership' has no key defined. Define the keys for this EntityType.
Memberships: EntityType: EntitySet 'Memberships' is based on type 'Membership' that has no key defined.
Thank you very much for the information! You help me a lot!
Excellent Brother 👌
Nice video. I have questions:
First time you make a class with name membership and while creating view you mentioned that membership class and while creating signup functionality you use user model class. can we use same user model class both times?? and why you create membership class?
I too have the same question
To the point and very good. Please do more videos.
Nice video.. Explained nicely...Thanks
Great Sir,I am grateful to you.
Nice explanation
बहुत बडिया भाई,
Love you
Very good and detailed explanation.
This video is very helpful i am interested in learning more from you aap full course v krwate ho?
In this Video you have missed many things because of which I cannot do this program in the way it is appearing on tour screen. Please Mention all the things correctly once. I can see @15.30 you have missed something to explain because of which I cannot get the correct Output.
Though you have shared the source code still as a beginner I cannot understand that and I have seen many of your videos same issue is there. No doughty you explain every point very clearly and that is easy to understand. But as a beginner I understand every point is important.
Great video....very good and simple explanation!👍👍
Nice Explanation !! Keep it up
Hi sir instead of user class which You have used in this tutorial?Is there any other way to solve it.
why did you created membership class?
Same question. Was not User model class enough, just like Employee class?
ABSOLUTELY AWESOME SIR...LOVE YOU....THANK YOU
Sir, logout karne ke baad agar previous button press kiya to wapas, bina login ke main pages pe redirect hota hai. Wo history kaise clear kare?
This tutorial is so helpful:)
I have a request, Can you make a video on login through social sites like Facebook, Google, and Linkedin.
That would be a great help.
Thank you in advance!
Without using the MVC template Microsoft gives for social login.
thanks a lot ...this video very clear and helpfull godbless you sir
How we can use data annotations with ado.net data model classes and also apply foreign key on that
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4075.0
Can you please explain
Difference between FormsAuthenticationTicket and FormsAuthentication.SetAuthCookie
****Waiting for reply***
am facing visual studio tools require desktop docker error?
sir let say i want to have 2 types o users/role same like user and admin but i want to use different tables for both types of user ,then in that casehow will i make authentication possible with 2 diffrent users.
Why do you want to use different tables? you shouls focus on db normalization
You are the best!
User class ka tw btao wo kahan sy ai razor view me? Uska overall purpose etc.
thanks for video . this is very helpful.
i have a one point, that i want to ask, signup form validation is not working, how to resolve. please help me.
I followed all steps as mentioned in video and its working. Make sure to re watch the video and recheck the code again, may be some code is not proper.
Thank you so much!
I solved it
after logout, if we click the back button on browser, it still redirects to the previous page (though, if we hit refresh it goes to the return url mentioned in webconfig). How to clear the cache on logout to rectify this behaviour?
Good question.
Did u find the answer?
Hi sir,
User.Identity.IsAuthenticated always returning value true whether login or not how can fix this
.
same prob -_-
Hello sir it is very helpful vedio but i need multiple client login use one database
Thank you soo much
Nice Bohut ACHA
Thanks a lot.please show how to sign-up and login with fb or Gmail or any other social site.
I followed the vedio but Authentication is not working its not redirecting to login page can you please help me
Very nice video sir
Thanks for the video .It was helpful.
I have some doubt . can you tell me where can i find the front end part code?
Do i have to watch some other video of yours?
sir you are awesome thank you so much
osm video ....learn alot thank you sir
Keep learning 👍
Please explain Active directory authentication and how it difference from Form Authentication.
Web API return types ke baare main kuch video kariya plz..
What is officeEntities? in which folder
can we find it
Hey @WebGentle, I followed your tutorial. I have couple pages that user should visit without Login and only one page needs login. I followed you and login works for particular page but other pages showing database error although it was working earlier. Any setting on webconfig so that there won't be any error?
Could somebody add English subtitles please?
if i opened the same url with more than one tab and from any of one i logout then how to logout from all tab
Sir ye code file 2015 version pr nhi chlega kya ??? IIS server error show ho rha h
Same here I am also struggling to run the application
Hi, i am getting problem while build the data base connection, getting error
Severity Code Description Project File Line Suppression State
Error (active) CS0246 The type or namespace name 'Employee' could not be found (are you missing a using directive or an assembly reference?) WebApplication1 D:\My Study\ASPDot Net\Projects\WebApplication1\WebApplication1\Model1.Context.cs 28
I think you are missing Employee class in your dbcontext class. More details can be given by having a look on code.
Sir please make some tutorial on Integrating Admin Panel with Full Authentication SIGN IN AND SIGN UP
can make a video for logout automatically in mvc please help
suppose user keep system idle mode after login and then after 30 seconds it's gone to login page if user does not use system for 30 seconds
Sir why didn't you use separate class project for models and database as you have used in CRUD in video #30 to 36.. please advise for best architecture in mcv.. and if there is any video related to this please share link
For best architecture everyone has his on point -
Some people prefer to use separate class library project for code separation and some of them use everything under project.
But I would suggest you to use separate project as it gives you more separation of code which is beneficial in many ways.
Hope it will help you.
Well done
dude thank you very much
thank you Sir ji
Sir in _Layout.csHtml = (User.Identity.IsAuthenticated) ye line k bare me thoda detail me batao na k kese work karata he
Thanks for this tutorial its very helpfull
i have a problem when i implement the logout method after logout when i press back button in browser it is going to Index page any help
This is happening because of browser caching. To avoid it you can use caching filter with time zero on index action method.
It works thanks but I have to place in each and every control to work or else if I placed in web.config file but when ever the user going to one control to another if he/she press back button it will not work any help
Reply bro
Hi,I am facing some issue. Antiforgery problem while redirecting url to login page
Sirjee very helpful video Thank You sir he bataye ki hum some se password kaise encrypte Karen. Microsoft ka password encrypt use nahi karna chahte hain please sir batayen.
Me apke video dekh kr add controller kiya to controller add nhi ho rha pakage nhi mil rha ...can u help?
Thank you sir.. very helpful
Helpful video..
nicely explained
Please make some tutorials on state management
Hi, Nice explanation. I was trying the same thing you explained in this video and it is not redirecting to login page when i click on get list or create in spite of putting the Authorize attribute to the controller level and changing url to Account/Login in the web config file. Can you let me know what could be wrong? Thanks
Same problem occuring with me , plzz help
sir why we create membership class
we also create that in database same just like that
Sir I have a Problem. In my browser, the navigation bar is not showing properly.
If I need to write code in employeerepository for login what code i will write plz help me 🙏
Do we need Id property in Membership class?
sir role management kese kar sakte form authetication ka use kar uspe ek tutorial banawo i request you,,,
Keep watching you will find everything in upcoming videos of this tutorial.
Very good sir
But
Browser back button issue after logout.
I would recommend to use no changing filter on your controller or set it globally.
That must resolve back button issue.
Sir, I am getting an error while adding view to action method login() in Account Controller -->
There was an error running the selected code generator: unable to retrieve metadata for 'TestMVC2.Models.Membership'
Pls Suggest
Same here. Did you get the answer?
I too got the same error.
But when I used User model instead of Membership model the error resolved.
Don't the the reason.
Lovely bro
good one
Can u help me its saying the server not found 3:50
It means you have entered wrong server name.
@@nitishkaushik786 tnxx for correcting
how to validate input ..??? there is no model class ....
Sir I have error
CS0104 Membership' is an ambiguous reference between WebApplication 1.Models Membership and System.Web.Security.Membership
sir when you create a view for an account u didn't get an error but when I'm doing this same work I got an error of Error :
There was an error running the selected code generator:'unableto retrieve metadata for'' plz help me with this
Same here. Did you get the answer?
nice lecture but u don't use session [" "] ?? ya mvc main session use kernay ki zarurat nahi ?
In MVC session is not required
Ok ager zaruri nhi to for example ager user log out kerna bhool Jaye ya login kernay k bad kuch dair use na keray to session khudi expire hoga? Because it is security issue...
Internally session hi use hota h. But hme apne aap directly use krne ki jrurt nhi hoti h. Because ye cookies ka use krta h to cookie k base p check hota h. Agr cookie expire ho jati h to fr se login krna pdta h.
Aur aap session timeout bhi set kr skte ho web config m.
Ok cookie will use ok thanks
does this work fora webpage also? I am new and I wanna know if it works offline only or will it work if uploaded to site hosting service also?
MVC is a web framework. Everything you will learn in this tutorial will work on your server.
What if user has disabled the cookies in their browser? Will it be affected?
Wish this was in English. Or I spoke your native language. I'm trying to follow along muted but it's difficult.