Asked by:
Customer and admin login forms

Question
-
Hello. I need to create a prototype of an online shop using c sharp. I need to make the customers sign in and the admin and customers need to have a log in page. This should be seperate. I am having trouble in making the forms. Can I use inheritance and polymorphism to make the different logins? Can someone please advise me on how I should go about doing this. Thank you.
- Moved by CoolDadTx Friday, September 25, 2020 6:06 PM ASP.NET related
Friday, September 25, 2020 1:53 PM
All replies
-
If this is ASP.NET see https://forums.asp.net/
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.
Friday, September 25, 2020 3:10 PM -
You'll want to look into role based security.
https://docs.microsoft.com/en-us/dotnet/standard/security/role-based-security
I also suggest that you consider ASP.NET using C#, since the technology is readily available in ASP.NET Web based solutions such as MVC or Razor pages. Because you're talking online, I suggest that you look into a Web based solution.
https://www.c-sharpcorner.com/article/role-based-authentication-in-asp-net-mvc/
https://www.dotnetcurry.com/aspnet-core/role-based-security
You can ask questions in the ASP.NET forums.
Friday, September 25, 2020 3:22 PM -
Yes, but my assignment requires a program using Windows Forms Applications using c#. That's where my issue comes in.Friday, September 25, 2020 8:28 PM
-
No, I need to do this using the Windows Forms Application using c#, that is the requirement.Friday, September 25, 2020 8:29 PM
-
Here is a simplistic Windows login form program that implements role based security.
https://www.c-sharpcorner.com/forums/role-based-user-login-with-switch-case-in-windows-app-in-c-sharp
Saturday, September 26, 2020 3:11 PM