Saturday, 20 September 2014

CodeSnippets.Com | Asp.Net 4.0 C# Language SQL Server 2008 Express Edition Project

This website allows user to post code on different topics.
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.
  1. Download codesnippets.rar below and unzip it into any directory in your system. For example, if you extract to c:\ then it will create a directory c:\codesnippets.
  2. Open Visual Studio.NET 2010
  3. Open the website from the directory into which you extracted the .rar file. For example, c:\codesnippets
  4. Database (Database.dbf) is placed in App_Data and it contains required tables. Tables contains some sample data for testing.
  5. I also proived tables.sql, which contains commands to create tables. Though not required now, it could be useful in some cases.
  6. Go to Solution Explorer and make login.aspx the startup page.
  7. Run project from Visual Studio.NET 2010
  8. You should see login.aspx page.
  9. Before you use Forgot Password option, make sure you installed a mail server in your system or network.
  10. Register a user. And test other options

No comments:

Post a Comment

Note: only a member of this blog may post a comment.