How do I create an admin panel in MVC.Net?
I want to implement admin panel in my project ASP.Net MVC
using "AREA"
but I don't know about it.
@ Please suggest to implement the admin panel in the project ASP.Net MV
or using controller or area
.
@In fact I am implementing a project ASP.Net MVC
for a clinic, the client wants to handle all the actions through the admin panel. Since I am new to ASP.Net MVC
.
@ Does anyone know about this. give me some advice on how to implement it inASP.Net MVC
source to share
First of all, scopes in mvc are used to group logically related parts together. By creating a scope, you will have a separate controller, views, model folders, and a configuration file inside the scope folder. you will also have to configure routes for this
I would recommend creating a simple area in your default intranet application first. Here's a quick tutorial on how to do it. http://www.codeproject.com/Articles/714356/Areas-in-ASP-NET-MVC
Now that you have a realm problem, you probably want to move on to creating an admin panel. I understand from your adminPanel that you want the page against every table in your database to do CRUD operations. Here you will need to read the MVC basics on how to connect to a database using mvc. hint: dbContext .
Create a model for your table in the models folder. Add the controller to the controller folder. By default, the action will be taken. You can change its name or create a new one.
You can create your views from the forest by right clicking on the name of the action in your controller, here you will be shown a list of models to select a model for these views. Select the model created in the model folder.
Next, I will recommend that you take a book or video lectures (Scott Allen's lecture is good for a basic understanding) on mvc, as well as see how admin panels work and how best to create them from scratch.
source to share
The path to travel will indeed be areas. Have you tried to find this? There are many resources available:
http://www.itorian.com/2013/10/area-in-mvc-5-with-example-step-by-step.html
http://www.codeproject.com/Articles/714356/Areas-in -ASP-NET-MVC
http://www.codeguru.com/csharp/.net/net_asp/mvc/article.php/c20227/Using-Areas-in-ASPNET-MVC-Application.htm
http: // sankarsan. wordpress.com/2012/04/14/asp-net-mvc-areasa-better-way-to-structure-the-application/
The former evens implements the area of administration, and the latter solves some common problems.
source to share