CodeSnippets.Com
This website allows users to post code on different topics so that they can be used by other users.
This website used the following tools and technologies.
- Asp.Net 4.0
- C# Language
- SQL Server 2008 Express Edition
- Visual Studio.NET 2010
- Layered Architecture with Presentation Layer and Data Access Layer
- ObjectDataSource is used in presentation layer to talk to DAL.
- GridView and FormView are used to display and modify data
- ADO.NET is used to access Database
- Validation Controls
- Forms Authentication
- Mutlitple Authorizations - one for website and one for all folder
- hMailServer to send mails during password recovery
- Master pages and Themes
- Asp.Net Ajax to verify uniqueness of username
- SiteMap, SiteMapPath and TreeView
The following are the major operations in this application.
- Registration of user
- Forgot Password
- Login
- Change password
- Change Profile
- Post Code Snippet
- List of code snippets of current user
- Updating code snippet by the owner
- Deleting code snippet by the owner
- Search for code snippets by title
- Displaying topics with number of code snippets
- List of code snippets by topic
- Details of code snippet
- Allowing user to rate snippet
- Logout
Steps to download, deploy and run this project
The following are the steps to be taken to run the existing part of the application. Sql Server database, which contains all required tables, is boundled
along with this application.
- Download codesnippets.rar and unzip it into any directory in your system.
For example, if you extract to c:\ then it will create a directory c:\codesnippets.
- Open Visual Studio.NET 2010
- Open the website from the directory into which you extracted the .rar file. For example, c:\codesnippets
- Database (Database.dbf) is placed in App_Data and it contains required tables. Tables contains some sample data for testing.
- I also proived tables.sql, which contains commands to create tables. Though not required now, it could be useful in some cases.
- Go to Solution Explorer and make login.aspx the startup page.
- Run project from Visual Studio.NET 2010
- You should see login.aspx page.
- Before you use Forgot Password option, make sure you installed a mail server in your system or network.
- Register a user. And test other options