Here is an ASP.NET MVC 3 sample web site to let ASP.NET MVC learners see how a real application is developed and works. This will be the first version of the app so more versions are lined up to emerge.
This ASP.NET MVC application is intended to be as simple as possible so you have to know that it is not such a comprehensive commercial application. The database, user interface and code snippets are tend to be concise and clear. Next versions will cover the utilization of Ajax and Asp.NET MVC UI controls.
What is this application about?
WebAdvert is an online advertisement web site. Basically users can sign up and issue their own adverts. They also will be able to manage (view/edit/delete) the ads. Anonymous users can browse the existing ads. Finally, administrators can view/create/delete the members and also assign them to the “Admins” role if necessary.
WebAdvert uses ASP.NET Forms authentication in an MVC fashion. This means that the application includes the AspnetDB database. It also has a SQL Server Express database file named WebAdvert. WebAdvert database contains one table only which is named “Adverts”. Ads are stored in Adverts table. The structure of this table is as bellow:
Figure 1: Structure of Adverts table
Use the following credentials to login:
User name: admin
Figure 2 the browsing page
- Visual Studio 2010
- Visual C# Express Edition 2010
- Visual Web Developer 2010
- ASP.NET MVC 3
- Entity Framework 4
- SQL Server 2008 Express Edition
Download WebAdvert ASP.NET MVC 3.0 source code from webadvert.codeplex.com