Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I wanted to Know to create a single login page but from that page admin and member also can login using their username and password. In that When Admin login by their username and password then the home page will be open and when member login by their username and password then he/she can view only his/her information.
All these should be done by single page.


Here, I wanted to check each member’s username and password from database if username and password match with particular member’s record, then it will fetch the respected data of that member….

Please help!! If anybody know about this..or suggest some articals or sites from that I can understand this…
Posted
Comments
deepakaitr12345 12-May-14 7:31am    
Here You need to check or I can say that you have to implement the Attribute Helper in that helper Write the Logic for the Implementing the user check logic and render or redirect to the required view.

Hope this will help you.

Thanks
Member 10714619 13-May-14 0:38am    
Thanks for ur ans.. but can u tell me how do i do this.. actually i m new in mvc i dont Know much about it.. can u suggesst any post or any example which is done by u
deepakaitr12345 14-May-14 10:18am    
Please look at below link here implementation of custom Authorization Attribute is implemented

http://msdn.microsoft.com/en-us/library/ee707357%28v=vs.91%29.aspx

Hope this will help you..

Thanks
Member 10714619 16-May-14 0:53am    
ok thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900