Showing posts with label ASP.NET Projects. Show all posts
Showing posts with label ASP.NET Projects. Show all posts

Tuesday, 12 August 2014

STFORUM.COM free asp.net project with source codes

STFORUM.COM   free asp.net project with source codes

This is a web application developed in ASP.NET batch started on 27th May,2003. It is based on Online Forum concept where registered users can post questions and other registered users can reply to the posted questions.
This application is to be added to www.srikanthtechnologies.com either as-it-is or with some minor modifications.
This application incorporates the following features of ASP.NET:
  • Code for application events using Global.asax
  • Form-based security and relaxing security for a directory so that anonymous users can access it
  • Data Access - SQL Server is backend
  • Calling stored procedure
  • Confirming user's registration by sending mail to user
  • Uses controls such as DataGrid and Repeater
  • Web services
  • Uses Middle-tier objects , which are accessed from ASP.NET Pages
Download source code. Unzip the STFORUM.ZIP to create STFORUM directory. Create a virtual directory STFORUM that points to the directory STFORUM on the disk.

Customer Relationship Management free asp.net project with source codes


Customer Relationship Management  free asp.net project with source codes

This is a typical CRM application to store and perform various operations related to customers. It allows user(employees of the company) to store details of customers and their appointments. It also provides required documents to be viewed by customers.

This also provides users the option to cancel/modify and appointment. Users can search for customers and provide remarks regarding their
appointment with customer.


Technologies and Products used

  • ASP.NET 2.0
  • C# language
  • Visual Web Developer 2005 Express Edition
  • SQL Server 2005 Express Edition

Steps to download, deploy and run this project

The following are the steps to related to be taken to run the existing part of the application:
  1. Download crm.zip and unzip it into any directory in your system. (For example if you extract to d:\ then it will create a directory CRM in d:\)
  2. Open Visual Web Developer 2005 Express Edition.
  3. Open the project from the directory into which you extracted project.For example, d:\crm
  4. Goto Solution Explorer and make default.aspx the startup page.
  5. Run project from VWD 2005 Express Edition.
  6. Change the path used in web.config and Database.cs as it refer to the path of the database file.
  7. You should see login.aspx page.

Intranet Messaging free asp.net project with source codes


Intranet Messaging  free asp.net project with source codes

This is an intranet application used to send messages to other users of the same system. It allows users to send messages with attachment, receive messages, search for users, and maintain address book.

Technologies and Products used

  • ASP.NET 2.0
  • C# language
  • Visual Web Developer 2005 Express Edition
  • SQL Server 2005 Express Edition

Steps to download, deploy and run this project

The following are the steps to related to be taken to run the existing part of the application:
  1. Download messaging.zip and unzip it into any directory in your system. (For example if you extract to d:\ then it will create a directory messaging in d:\.
  2. Open Visual Web Developer 2005 Express Edition.
  3. Open the project from the directory into which you extracted project.For example, d:\messaging
  4. Goto Solution Explorer and make default.aspx the startup page.
  5. Run project from VWD 2005 Express Edition.
  6. Change the path used in web.config and Database.cs as it refer to the path of the database file.
  7. You should see login.aspx page.

Online Tenders free asp.net project with source codes


Online Tenders  free asp.net project with source codes

This application allows contractors who are interested in filing tenders for various jobs related to the company. Each contractor is given a unique id for login and other operations. Contractor logs in with this id and files tenders for jobs he would like to handle.
Contractor can modify/delete his tenders. He can also search for jobs based on location, duration etc.
This provides typical users option like forgot password, registartion, change password and change profile.

Technologies and Products used

  • ASP.NET 2.0
  • C# language
  • Visual Web Developer 2005 Express Edition
  • SQL Server 2005 Express Edition

Steps to download, deploy and run this project

The following are the steps to related to be taken to run the existing part of the application:
  1. Download tender.zip and unzip it into any directory in your system. (For example if you extract to d:\ then it will create a directory tenders in d:\)
  2. Open Visual Web Developer 2005 Express Edition.
  3. Open the project from the directory into which you extracted project.For example, d:\tenders
  4. Goto Solution Explorer and make default.aspx the startup page.
  5. Run project from VWD 2005 Express Edition.
  6. Change the path used in web.config and Database.cs as it refer to the path of the database file.
  7. You should see login.aspx page.

Contracts Management Tool free asp.net project with source codes


Contracts Management Tool  free asp.net project with source codes

This application is used by a consulting company to manage its contracts between clients and candidates. It also helps to keep track of requirements of the clients and searching for suitable candidates for a requirement.

Technologies and Products used

  • ASP.NET 2.0
  • C# language
  • Visual Web Developer 2005 Express Edition
  • SQL Server 2005 Express Edition

Steps to download, deploy and run this project

The following are the steps to related to be taken to run the existing part of the application:
  1. Download cmt.zip and unzip it into any directory in your system. (For example if you extract to d:\ then it will create a directory cmt in d:\.
  2. Open Visual Web Developer 2005 Express Edition.
  3. Open the project from the directory into which you extracted project.For example, d:\cmt
  4. Goto Solution Explorer and make default.aspx the startup page.
  5. Run project from VWD 2005 Express Edition.
  6. You should see login.aspx page.

VizagRealEstate.Com free asp.net project with source codes


VizagRealEstate.Com free asp.net project with source codes

This is a website to allow users to provide details of their properties that are for sale. It also allows users to search for properties that are for sale. Users can also add their requirements regarding the property they want to buy.

Technologies and Products used

  • ASP.NET 2.0
  • C# language
  • Visual Web Developer 2005 Express Edition
  • SQL Server 2005 Express Edition
  • CMailServer

Steps to download, deploy and run this project

The following are the steps to related to be taken to run the existing part of the application:
  1. Download vizagrealestate.zip and unzip it into any directory in your system. (For example if you extract to d:\ then it will create a directory vizagrealestate in d:\.
  2. Open Visual Web Developer 2005 Express Edition.
  3. Open the project from the directory into which you extracted project.For example, d:\vizagrealestate
  4. Goto Solution Explorer and make default.aspx the startup page.
  5. Run project from VWD 2005 Express Edition.
  6. You should see login.aspx page.
  7. You can start by creating a new user or user existing users in USERS table of the database.

School Projects free asp.net project with source codes

School Projects  free asp.net project with source codes

These projects were developed with SQL Server 2000 as the back-end and ASP.NET as the front-end. Code was written in Visual Basic.Net and Visual Studio.Net was used to develop the application. These projects were developed in an ASP.NET batch as classroom projects ( to show how to consolidate various topics to develop a complete project).
This project is consisting of two projects, which are:
  • A website for parents of the students to get information about their childern.
  • An intranet application for administration staff to feed marks, handle complaints etc.

How do you run?

You have to follow the steps given below to run these projects - Myschool and MySchoolAdmin.

  1. Download school.zip into your system.
  2. Unzip school.zip using WinZip.
    You get two directories - MySchool and MySchoolAdmin .
  3. Create two virtual directories one for MySchool and another for MySchoolAdmin. The virtual directories must point to physical directories into which you extracted the school.zip file.
  4. Set default page in IIS for myschool virtual directory as home.aspx.
  5. Connect to SQL Server as user sa.
  6. Create a database in SQL Server - CREATE DATABASE MYSCHOOL .
  7. Make myschool database the current database by using - USE MYSCHOOL command.
  8. Create tables required for these applications by running CREATE TABLE commands that are found in the file tables.txt in myschool directory.
  9. Insert some sample data into tables
  10. Open the required application in Visual Studio.Net 2003 and run it.

Note : Some of the operations are not implemented. Students are expected to write code for those operations. They are left as assignments to students.

Library Management System free asp.net project with source codes


Library Management System  free asp.net project with source codes

This web application is used to handle typical operations in a library system. This application is developed for librarians. Issuing book, returning book, adding member, and searching for books are some of the major operations of this application.

Technologies and Products used

  • ASP.NET 2.0
  • C# language
  • Visual Web Developer 2005 Express Edition
  • SQL Server 2005 Express Edition

File Structure

The following is the directory structure of this application.
exam
|- App_Data
| |-Database.mdf
|- App_Code
| |-Database.cs
|- App_Themes
| |-style.css
|- all
| |-LibraryService.asmx
|- photos (this directory contains .jpg files of members)
|- default.aspx
|- login.aspx
|- addtitle.aspx
|- addmember.aspx
|- Masterpage.master
|- memberinfo.aspx
|- members.aspx
|- changepassword.aspx
|- deletemember.aspx
|- issue.aspx
|- returnbook.aspx
|- memberslist.aspx
|- searchbooks.aspx
|- web.config
|- web.sitemap
|- updatemembers.aspx
|- logout.aspx

Operations and related files

The following table lists operations and associated objects and files.
Operation Files
Login login.aspx
Logout logout.aspx
Delete Member deletemember.aspx
Master page of all Masterpage.master
Home Page Default.aspx
Change password changepassword.aspx
Add Title addtitle.aspx
Add Member addmember.aspx
Iseue of book issue.aspx
Return of book returnbook.aspx
Search books searchbooks.aspx
Update Members updatemembers.aspx
Member Information memberinfo.aspx
List of books books.aspx

Structure of Tables

USERS Table

uname - varchar(10)
pwd - varchar(10)
fullname - varchar(30)

SUBJECTS Table

subcode - varchar(10)
subname - varchar(30)
di - datetime

MEMBERS Table

mid - int
mname - varchar(30)
depositamt - int
djoin - datetime
email - varchar(40)
occupation - varchar(50)

TITLES Table

tid - int
title - varchar(30)
subcode - varchar(10)
authors - varchar(50)
price - int
dp - datetime
publishers - varchar(30)
status - char(1)

ISSUES Table

tid - int
mid - int
di - datetime
issuedby - varchar(10)

RETURNS Table

tid - int
mid - int
di - datetime
dr - datetime
issuedby - varchar(10)
returnedto - varchar(10)
fineamt - int

Steps to download, deploy and run this project

The following are the steps to related to be taken to run the existing part of the application :
  1. Download lm.zip and unzip it into any directory in your system. (For example if you extract to d:\ then it will create a directory lm in d:\.
  2. Open Visual Web Developer 2005 Express Edition.
  3. Open the project from the directory into which you extracted project.For example, d:\lm
  4. Add SQL Database file to your project and create necessary tables as shown above.
  5. Create issuebook and returnbook procedures as shown below.
    ALTER PROCEDURE IssueBook
    (
    @tid int,
    @mid int,
    @di datetime,
    @issuedby varchar(10)
    )
    AS
    declare @nbooks int
    /* check titles availablity */

    if not exists( select * from titles where tid = @tid and status = 'a')
    begin
    raiserror('Title is not present or not available',15,1)
    return
    end

    /* check members availablity */
    if not exists (select * from members where mid = @mid )
    begin
    raiserror('Invalid member id!',15,1)
    return
    end

    ALTER PROCEDURE ReturnBook
    (
    @tid int,
    @dr datetime,
    @user varchar(10)
    )
    AS
    declare @fine int
    declare @mid int
    declare @issuedby varchar(10)
    declare @di datetime


    /* check tid is valid */
    if not exists (select * from issues where tid = @tid)
    begin
    raiserror('Title is not in the issued titles!',15,1)
    return
    end

    /* calculate fine */
    select @fine=case
    when datediff(dd,di,getdate()) > 15 then datediff(dd,di,getdate())-15
    else 0
    end
    from issues where tid = @tid;

    select @mid = mid, @di = di, @issuedby=issuedby
    from issues where tid = @tid;

    /* insert a row into returns */

    begin tran
    insert into returns
    values(@tid,@mid,@di,@dr,@issuedby,@user,@fine);

    delete from issues where tid = @tid;

    update titles set status ='a'
    where tid = @tid

    commit tran

  6. Goto Solution Explorer and make default.aspx the startup page.
  7. Run project from VWD 2005 Express Edition.
  8. You should see login.aspx page.

Examination System free asp.net project with source codes


Examination System   free asp.net project with source codes

This is the examination application that is part of SrikanthTechnologies.com. In the process of upgarding website - www.srikanthtechnologies.com, this project is the replacement of the current examination system. This is a project developed using ASP.NET 2.0.

Technologies and Products used

  • ASP.NET 2.0
  • C# language
  • Visual Web Developer 2005 Express Edition
  • SQL Server 2000

File Structure

The following is the directory structure of this application.
exam
|- App_Code
| |-DBUtil.cs
| |-Examination.cs
| |-Question.cs
|- App_Themes
| |-all
| | |-all.css
| | |-all.skin
| |-dark
| |-all.css
|- all
| |- forgotpassword.aspx
| |- newuser.aspx
| |- all.master
|
|- login.aspx
|- changepassword.aspx
|- examination.aspx
|- takeexam.aspx
|- main.master
|- previousexams.aspx
|- reviewquestions.aspx
|- default.aspx
|- showresult.aspx
|- tables.sql
|- Web.config

Operations and related files

The following table lists operations and associated objects and files.
Operation Files
Login login.aspx
Master page main.master
Master page for annonymous user all.master
Home Page default.aspx
change password changepassword.aspx
Exams History previousexams.aspx
Select subject takeexam.aspx
Examination examination.aspx
Showing results showresult.aspx
Review of questions reviewquestions.aspx
Forgot password forgotpassword.aspx
Registration of new user newuser.aspx
The following are the steps to related to be taken to run the existing part of the application :
  1. Download exam.zip and unzip it into any directory in your system. (For example if you extract to d:\ then it will create a directory exam in d:\ . li>Connect to SQL Server and create EXAM database as follows:
    CREATE DATABASE EXAM
  2. Make EXAM the current database by giving the following command
    USE EXAM
  3. Create required tables using TABLES.TXT file and also insert appropriate data into tables.
  4. Open Visual Web Developer 2005 Express Edition.
  5. Open the project from the directory into which you extracted project.For example, d:\exam.
  6. Goto Solution Explorer and make login.aspx the startup page.
  7. Run project from VWD 2005 EE.
  8. You should see login.aspx page.

Groups free asp.net project with source codes


Groups  free asp.net project with source codes

This is an intranet/internet application that allows users to share files, messages, and links.

Technologies and Products used

  • ASP.NET
  • .Net Framework 1.1
  • Visual Studio.Net 2003
  • SQL Server 2000

Operations and related files

The following table lists operations and associated objects and files.
Operation Files
Login login.aspx
Home Page default.aspx
Search for groups searchgroups.aspx
Join a group joingroupform.aspx, joingroup.aspx
Channge password changepassword.aspx
Creating new group creategroup.aspx
Modify groups managegroups.aspx
Group home grouphome.aspx
List of messages messages.aspx
Post new message postmessage.aspx
Displaying message details message.aspx
List of files file.aspx
Upload new file addfile.aspx
Creating required Tables tables.txt
Creating CREATEGROUP procedure sp_creategroup.sql
Creating DELETEGROUP procedure sp_deletegroup.sql
Configuration Details web.config
Files that are uploaded files folder
Web Service all\groupsws.asmx
Forgot password all\forgotpassword
Configuration file for ALL folder all\web.config
The following are the steps to related to be taken to run the existing part of the application :
  1. Download groups.zip and unzip it into C:\INETPUB\WWWROOT directory (assuming Windows is installed in C drive) li>Connect to SQL Server and create GROUPS database as follows:
    CREATE DATABASE GROUPS
  2. Make GROUPS the current database by giving the following command
    USE GROUPS
  3. Create required tables using TABLES.TXT file and also insert some data into USERS table.
  4. Start IIS and create a virtual directory with the name GROUPS and make it refer to physical directory C:\INETPUB\WWWROOT\GROUPS
  5. Open Visual Studio.Net 2003 and open the project from C:\INETPUB\WWWROOT\GROUPS.
  6. Build the project.
  7. Invoke IE and give the following URL:
    http://localhost/groups
    It should display Login Page. Login in with user name and password that inserted into USERS table.

VDCA free asp.net project with source codes


VDCA  free asp.net project with source codes

This is an intranet application that allows staff of VDCA(Visakhapatnam District Cricket Association) to enter details of teams, players, matches and statistics of local league matches.

Major Operations

The following are the major operations of this application.
  • User logs into site with username and password
  • Adding details of new team
  • Adding details of new player
  • Adding details of a match
  • Adding batting details of a match
  • Adding bowling details of a match
  • Modifying the details of teams
  • Modifying the details of players of a team
  • Allowing user to change password
  • Displaying all matches
  • Displaying the Scoreboard of a match
  • Displaying the details of players of a team.
  • Search for matches
  • Providing Webservice

Technologies and Products used

  • ASP.NET
  • .Net Framework 1.1
  • Visual Studio.Net 2003
  • SQL Server 2000
The following table lists operations and associated objects and files.
Operation Files
Login login.aspx
Home Page home.aspx
Adding Team addteam.aspx
Adding Player addplayer.aspx
Adding Match addmatch.aspx, AddMatch Stored Procedure
Adding Batting Details addbatting.aspx
Adding Bowling Details addbowling.aspx
Searching For matches search.aspx
Displaying all matches allmatches.aspx, GetFirstTeam and GetSecondTeam stored functions
Change Password changepassword.aspx
Logout logout.aspx
Default Page default.aspx
Modify Teams modifyteam.aspx
Players of a team teamplayers.aspx
Modifying details of a players of a team modifyplayers.aspx (not included)
Scoreboard of a Match scoreboard.aspx, batting.aspx, bowling.aspx
Creating required Tables tables.txt
Creating ADDMATCH stored procedure addmatch.sql
Creating GETFIRSTTEAM stored function getfirstteam.sql
Creating GETSECONDTEAM stored function getsecondteam.sql
Configuration Details web.config
Pictures related to players JPG files in IMAGES directory.
Web Service all\WSVdca.asmx
Configuration of Web Service all\web.config
The following are the steps to related to be taken to run the existing part of the application :
  1. Download vdca.zip and unzip it into C:\INETPUB\WWWROOT directory (assuming Windows is installed in C drive) li>Connect to SQL Server and create VDCA database as follows:
    CREATE DATABASE VDCA
  2. Make VDCA the current database by giving the following command
    USE VDCA
  3. Create required tables using TABLES.TXT file and also insert some data into USERS table.
  4. Start IIS and create a virtual directory with the name VDCA and make it refer to physical directory C:\INETPUB\WWWROOT\VDCA
  5. Open Visual Studio.Net 2003 and open the project from C:\INETPUB\WWWROOT\VDCA.
  6. Build the project.
  7. Invoke IE and give the following URL:
    http://localhost/vdca
    It should display Login Page. Login in with user name and password that inserted into USERS table.

Personal Accounting free asp.net project with source codes


Personal Accounting  free asp.net project with source codes

This web application allows users to store details regarding expenses, income, fixed deposits, mutual funds and insurace. Apart from provides required reports and searching facility, it also reminds user about maturity of fixed deposits and insurance premium policy dues.

Technologies and Products used

  • ASP.NET 2.0
  • C# language
  • Visual Web Developer 2005 Express Edition
  • SQL Server 2000
  • SMTP Server - CMaliServer

File Structure

The following is the directory structure of this application.
exam
|- App_Code
| |-Database.cs
|- App_Themes
| |-all
| |-all.css
|- all
| |- forgotpassword.aspx
!- default.aspx
|- login.aspx
|- changepwd.aspx
|- allusers.master
|- main.master
|- addincomehead.aspx
|- addincome.aspx
|- adddeposit.aspx
|- editdeposits.aspx
|- depositsreport.aspx
|- incomereport.aspx
|- logout.aspx
|- mfreport.aspx
!- searchexp.aspx
!- searchincome.aspx
|- tables.sql
|- Web.config
!- web.sitemap
!- unregister.aspx
!- unregisteruser.sql

Operations and related files

The following table lists operations and associated objects and files.
Operation Files
Login login.aspx
Master page of all all.master
Master page of logged in users main.master
Home Page default.aspx
Change password changepwd.aspx
Add income head addincomehead.aspx
Add income entry addincome.aspx
Add deposit adddeposit.aspx
Search income entries searchincome.aspx
Search exp entries searchexp.aspx
Editing Deposits editdeposits.aspx
Income Report incomereport.aspx
Mutual Funds Report mfreport.aspx
Logout logout.aspx
Unregister user unregister.aspx
Register User all\register.aspx
Forgot Password all\forgotpassword.aspx
The following are the steps to related to be taken to run the existing part of the application :
  1. Download personalaccouting.zip and unzip it into any directory in your system. (For example if you extract to d:\ then it will create a directory personalaccounting in d:\ .
  2. Connect to SQL Server and create pa database as follows:
    CREATE DATABASE PA
  3. Make pa the current database by giving the following command
    USE pa
  4. Create required tables using TABLES.TXT file and also insert appropriate data into tables.
  5. Open Visual Web Developer 2005 Express Edition.
  6. Open the project from the directory into which you extracted project.For example, d:\personalaccounting
  7. Goto Solution Explorer and make login.aspx the startup page.
  8. Run project from VWD 2005 Express Edition.
  9. You should see login.aspx page.

Admin Project

This application is used by Adminstrator of Personal Accounting application to send mails and news letters to users. Follow the steps below to extract and run this application.
  1. Download paadmin.zip and unzip it into any directory in your system. (For example if you extract to d:\ then it will create a directory paadmin in d:\ .
  2. Open Visual Web Developer 2005 Express Edition.
  3. Open the project from the directory into which you extracted project.For example, d:\paadmin
  4. Goto Solution Explorer and make default.aspx the startup page.
  5. Run project from VWD 2005 Express Edition.
  6. You should see default.aspx page with menu and select required option in the menu.

Web Master Utilities Of SrikanthTechnologies.com free asp.net project with source codes


Web Master Utilities Of SrikanthTechnologies.com  free asp.net project with source codes

This web master utilities is used for Web Master of SrikanthTechnologies.com. This allows web master (Srikanth) to keep track of activitites of the web site.

Technologies and Products used

  • ASP.NET 2.0
  • C# language
  • Visual Web Developer 2005 Express Edition
  • SQL Server 2000
  • SMTP Server

File Structure

The following is the directory structure of this application.
exam
|- App_Code
| |-Database.cs
|- App_Themes
| |-all
| |-all.skin
| |-styles.css
|- all
| |- schedule.xml
| |- STServices.asmx
|- pictures (folder) |
!- default.aspx
|- login.aspx
|- changepwd.aspx
|- feedback.aspx
|- Masterpage.master
|- allusers.aspx
|- batchrequirements.aspx
|- examreport.aspx
|- questions.aspx
|- schedule.aspx
|- sendmailtoall.aspx
|- searchusers.aspx
|- userinfo.aspx
|- tables.sql
|- Web.config
!- web.sitemap

Operations and related files

The following table lists operations and associated objects and files.
Operation Files
Login login.aspx
Master page Master.master
Home Page default.aspx
Change password changepwd.aspx
All users allusers.aspx
Batch Requirements batchrequirements.aspx
Exam Report examreport.aspx
Bach Schedule schedule.aspx
Send Mail To All sendmailtoall.aspx
Search Users searchusers.aspx
User Info userinfo.aspx
Feedback feedback.aspx
Questions of Subject questions.aspx
Webservice For STServices all/STServices.aspx
The following are the steps to related to be taken to run the existing part of the application :
  1. Download wmu.zip and unzip it into any directory in your system. (For example if you extract to d:\ then it will create a directory wmu in d:\ .
  2. Connect to SQL Server and create wmu database as follows:
    CREATE DATABASE WMU
  3. Make wmu the current database by giving the following command
    USE wmu
  4. Create required tables using TABLES.TXT file and also insert appropriate data into tables.
  5. Open Visual Web Developer 2005 Express Edition.
  6. Open the project from the directory into which you extracted project.For example, d:\wmu
  7. Goto Solution Explorer and make login.aspx the startup page.
  8. Run project from VWD 2005 Express Edition.
  9. You should see login.aspx page.

Librarian Module free asp.net project with source codes

Librarian Module  free asp.net project with source codes

This is an intranet application that is used to by Librarian to do the following:
  • Login
  • Search for books on title and author
  • Issue books to members
  • Handle return of book
  • Generate issues report
  • Displaying book's issues history
  • Displaying member's issues history
The following are the topics of ASP.NET used in this project.
  • Asp.Net 4.0
  • C# Language
  • SQL Server 2005 Express Edition
  • Visual Studio.NET 2010
  • Layered Architecture with Presentation Layer (ASP.NET Pages) and Data Access Layer (C# Classes)
  • All database manipulations are done with stored procedures.
  • Stored procedures are accessed using classes in DAL - Data Access Layer.
  • ObjectDataSource is used in presentation layer to talk to DAL.
  • Master page and themes are used
  • Treeview and sitemap features
  • ADO.NET is used to access database
  • Forms authentication
The following are the major operations in this application.

Steps to download, deploy and run this project

The following are the steps to be taken to run the existing part of the application.
  1. Download librarianmodule.rar and unzip it into any directory in your system. For example, if you extract to c:\ then it will create a directory c:\librarianmodule. The project comes with its own database, which is Database.mdf in App_Data folder. It contains required tables and stored procedures.
  2. Open Visual Studio.NET 2008/2010
  3. Open the project from the directory into which you extracted project. For example, c:\librarianmodule
  4. Run project from Visual Studio.NET.
  5. You should see login.aspx page.
  6. The database that is present in App_Data folder contains some sample data. It has user a with password a.
  7. Test the rest of the options.

Front Office Automation free asp.net project with source codes


Front Office Automation  free asp.net project with source codes

This is an intranet application used to automate operations related to a typical front-office of a training centre.
This allows a user to log in and add details of batches, students and payments. It also provides search of students, payments report, information about batches and students.

Technologies and Products used

  • ASP.NET 2.0
  • C# language
  • Visual Web Developer 2005 Express Edition
  • SQL Server 2005 Express Edition

Steps to download, deploy and run this project

The following are the steps to related to be taken to run the existing part of the application:
  1. Download FOA.ZIP and unzip it into any directory in your system. (For example if you extract to d:\ then it will create a directory FOA in d:\)
  2. Open Visual Web Developer 2005 Express Edition.
  3. Open the project from the directory into which you extracted project.For example, d:\foa
  4. Goto Solution Explorer and make default.aspx the startup page.
  5. Run project from VWD 2005 Express Edition.
  6. You should see login.aspx page.

Songs.Com free asp.net project with source codes

Songs.Com free asp.net project with source codes

This website allows registered users to upload and download .mp3 songs. It allows searching for songs based on song title, singer and langauge. The following are the topics of ASP.NET used in this project.
  • Asp.Net 3.5
  • C# Language
  • SQL Server 2005 Express Edition
  • Visual Studio.NET 2008
  • Layered Architecture with Presentation Layer and Data Access Layer
  • All database manipulations are done with stored procedures.
  • Stored procedures are accessed using classes in DAL - Data Access Layer.
  • ObjectDataSource is used in presentation layer to talk to DAL.
  • DataList is used to display and delete data
  • Membership and login controls are used to implement security.
  • Master page and themes are used
  • ADO.NET is used to access database
The following are the major operations in this application.
  • User Registration
  • Login
  • Password Recovery
  • Change password
  • Home page
  • Add Song
  • List most recently added songs
  • List songs of current user
  • Delete a song
  • Search for songs
  • 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. This project makes use of membership feature of ASP.NET.
  1. Download songs.rar and unzip it into any directory in your system. For example, if you extract to c:\ then it will create a directory c:\songs.
  2. Open Visual Studio.NET 2008 or Visual Web Developer 2008.
  3. Open the project from the directory into which you extracted project. For example, c:\songs
  4. Select Website->ASP.NET Configuration option
  5. Select Security tab
  6. Select Use the security Setup Wizard to configure security step by step.
  7. Select From Internet option in Step 2
  8. Click on Next button in the remaining screens and finally click on Finish.
  9. It create a database called ASPNETDB.MDF with required tables and other database components.
  10. Open the database in Server explorer or Database Explorer and create tables - SONGSwith the following structure. The following tables show the structure of these tables. SONGS
    songid  int  
    title varchar(50)
    singer varchar(100)
    lang char(1)
    addedon datetime,
    userid uniqueidentifier
    Note
    • Userid is linked with userid of ASPNET_USERS table.
    • Songid is an identify column that starts with 1
  11. Create the following stored procedure in the database.
    CREATE PROCEDURE dbo.AddSong(@title varchar(50),@singer varchar(100),@userid uniqueidentifier,@lang char(1))
    AS
    insert into songs(title,singer,userid,lang,addedon) values (@title,@singer,@userid,@lang,getdate());
    RETURN @@identity;

    CREATE PROCEDURE dbo.RecentlyAddedSongs
    AS
    select top 10 songid,title,singer,
    lang = case lang
    when 'e' then 'Englsih'
    when 'h' then 'Hindi'
    else 'Telugu'
    end,
    addedon=convert(char(8),addedon,3), username
    from songs s inner join aspnet_users u
    on(s.UserId=u.UserId)
    Order by songid desc


    CREATE PROCEDURE dbo.SearchSongs (@title varchar(50),@singer varchar(100),@lang char(1))
    as
    if @lang='a'
    select songid,title,singer,
    lang=case lang
    when 'e' then 'Engslish'
    when 'h' then 'Hindi'
    else 'Telugu'
    end,
    addedon=convert(char(8),addedon,3), username
    from songs s inner join aspnet_users u
    on (s.UserId=u.UserId)
    where title like @title and singer like @singer order by songid desc
    else
    select songid,title,singer,
    lang=case lang
    when 'e' then 'English'
    when 'h' then 'Hindi'
    else 'Telugu'
    end,
    addedon=convert(char(8),addedon,3),
    username from songs s inner join aspnet_users u
    on (s.UserId=u.UserId)
    where title like @title and singer like @singer and lang=@lang order by songid desc


    CREATE PROCEDURE dbo.DeleteSong(@songid int)
    as
    delete from songs where songid=@songid


    CREATE PROCEDURE dbo.GetMySongs(@userId uniqueidentifier)
    AS
    select songid,title,singer,
    lang=case lang
    when 'e' then 'English'
    when 'h' then 'Hindi'
    else 'Telgu'
    end,
    addedon=convert(char(8),addedon,3)
    from songs
    where userId=@userId

  12. In the Application Configuration Tool, go to Application Configuration
  13. Select Configure SMTP Email settings
  14. Enter Server name as localhost and From as admin@systemname.com. Replace systemname with the name of your system
  15. Click on Save button
  16. Go to Solution Explorer and make login.aspx the startup page.
  17. Run project from Visual Studio.NET 2008 or Visual Web Developer 2008.
  18. You should see login.aspx page.
  19. Create new user using registration page and then login with that user name
  20. Test the rest of the options.

Answers.com free asp.net project with source codes

Answers.com  free asp.net project with source codes

This website allows members to post questions and answers on different topics. It resembles Yahoo answers website. This application uses ASP.NET pages for presentation. ObjectDataSource is used to get data from Data Access Layer (DAL). Stored procedures are used to perform all important operations related to database in SQL Server.

The following are major activities in this application

  • User Registration
  • Login
  • Password Recovery
  • Posting question
  • Posting answer
  • Searching questions
  • Displaying details of a question
  • Displaying most recent questions
  • Displaying questions of current user
  • Changing password
  • Logout

Technologies and Products Used

  • ASP.NET 3.5
  • C# language
  • Visual Studio.NET 2008
  • SQL Server 2005 Express Edition
  • ADO.NET
  • Login controls - Membership
  • Stored procedures using T-SQL.
  • Identify columns for auto increment columns
  • Master pages and Themes
  • Navigation controls - Treeview, SiteMapPath etc.
  • DataBound controls such as GridView, FormView etc.
  • ObjectDataSource to get data from DAL and bind data to data-bound controls such as FormView and GridView.
  • Data Access Layer - DAL, to access database.

Steps to download, deploy and run this project

The following are the steps to related to be taken to run this application. This project makes use of membership feature of ASP.NET. So,we have to configure the website using ASP.NET Configuration tool as explained below.
  1. Download answers.rar and unzip it into any directory in your system. For example, if you extract to c:\ then it will create a directory c:\answers. The download contains all ASP.NET pages but it has NO DATABASE. We have to create database objects using ASP.NET configuration tool manually.
  2. Open Visual Studio.NET 2008 or Visual Web Developer 2008.
  3. Open the project from the directory into which you extracted project.For example, c:\answers
  4. Select Website->ASP.NET Configuration option
  5. Select Security tab
  6. Select Use the security Setup Wizard to configure security step by step.
  7. Select From Internet option in Step 2
  8. Click on Next button in the remaining screens and finally click on Finish.
  9. It create a database called ASPNETDB.MDF with required tables and other database components
  10. Open the database in Server explorer or Database Explorer and create tables using the following script. Use New Query to open query window and type the following commands in SQL Pane.
    create table categories
    ( catcode varchar(10) primary key,
    catname varchar(50),
    catdesc varchar(200),
    noquestions int
    )

    create table questions
    ( qid int identity primary key,
    title varchar(100),
    question varchar(2000),
    addedon datetime,
    catcode varchar(10) references categories(catcode),
    userid uniqueidentifier references aspnet_users(userid)
    )

    create table answers
    ( aid int identity primary key,
    qid int references questions(qid),
    answer varchar(2000),
    addedon datetime,
    userid uniqueidentifier references aspnet_users(userid)
    )


    insert into categories values('music','Music','Songs , Albums etc.')
    insert into categories values('sports','Sports and Games','Sports and Games')
    insert into categories values('health','Health and diet','Health, diet and excercise')
  11. Create the following stored procedure in the database.
    CREATE PROCEDURE dbo.AddQuestion(@userid UniqueIdentifier, @title varchar(100),@question varchar(2000), @catcode varchar(10))
    AS
    begin tran
    insert into questions (title,question, catcode,addedon, userid)
    values(@title,@question, @catcode, getdate(), @userid);

    update categories set noquestions = noquestions + 1
    where catcode = @catcode;

    commit tran


    CREATE PROCEDURE dbo.GetAllCategories
    AS
    select * from categories
    order by catname


    CREATE PROCEDURE dbo.GetAnswers(@qid int)
    AS
    select aid,answer, addedon, username, a.userid
    from answers a inner join aspnet_users u on ( a.userid = u.userid)
    where qid = @qid
    order by aid desc


    CREATE PROCEDURE dbo.GetQuestionDetails
    (@qid int)

    AS
    select qid,title,question, c.catcode, catname, addedon, username, q.userid
    from questions q inner join categories c on ( c.catcode = q.catcode)
    inner join aspnet_users u on ( q.userid = u.userid)
    where qid = @qid


    CREATE PROCEDURE dbo.GetRecentQuestions
    AS
    select top 10 qid, c.catcode,catname,title,addedon
    from questions q inner join categories c
    on (q.catcode = c.catcode)
    order by qid desc


    CREATE PROCEDURE dbo.SearchQuestions
    (@pattern varchar(100) )

    AS
    select qid, c.catcode,catname,title,addedon
    from questions q inner join categories c
    on (q.catcode = c.catcode)
    where title like '%' + @pattern + '%' or question like '%' + @pattern + '%'
    order by qid desc


    CREATE PROCEDURE dbo.AddAnswer
    ( @qid int, @userid uniqueidentifier, @answer varchar(2000))
    AS

    insert into answers (qid,userid,answer,addedon)
    values( @qid,@userid,@answer, getdate())
  12. Goto Solution Explorer and make login.aspx the startup page.
  13. Run project from Visual Studio.NET 2008 or Visual Web Developer 2008.
  14. You should see login.aspx page.

MicroBlog free asp.net project with source codes

MicroBlog  free asp.net project with source codes

This web application is similar to twitter.com. It allows registered members to post updates, which are displayed to followers of the user. A user can have followers and friends (users who follow this user).
The following are the topics of ASP.NET used in this project.
  • Asp.Net 3.5
  • C# Language
  • SQL Server 2005 Express Edition
  • Visual Studio.NET 2008
  • Layered Architecture with Presentation Layer and Data Access Layer
  • All database manipulations are done with stored procedures.
  • Stored procedures are accessed using classes in DAL - Data Access Layer.
  • ObjectDataSource is used in presentation layer to talk to DAL.
  • DataList is used to display and delete data
  • Membership and login controls are used to implement security.
  • Master page and themes are used
  • ADO.NET is used to access database
The following are the major operations in this application.
  • User Registration
  • Login
  • Password Recovery
  • Change password
  • Home page
  • Post an update
  • List of user update
  • Delete an update
  • Finding people
  • Adding friend
  • Removing friend
  • Changing the profile of the user
  • 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. This project makes use of membership feature of ASP.NET.
  1. Download MicroBlog.rar and unzip it into any directory in your system. For example, if you extract to c:\ then it will create a directory c:\microblog.
  2. Open Visual Studio.NET 2008 or Visual Web Developer 2008.
  3. Open the project from the directory into which you extracted project. For example, c:\microblog
  4. Select Website->ASP.NET Configuration option
  5. Select Security tab
  6. Select Use the security Setup Wizard to configure security step by step.
  7. Select From Internet option in Step 2
  8. Click on Next button in the remaining screens and finally click on Finish.
  9. It create a database called ASPNETDB.MDF with required tables and other database components
  10. Open the database in Server explorer or Database Explorer and create tables - MB_PROFILES, MB_FRIENDS, MB_UPDATESwith the following structure. The following tables show the structure of these tables. MB_PROFILES
    userid          uniqueidentifier  (primary key)
    onlinebio varchar(200)
    picturefile varchar(20)
    followerscount int
    friendscount int
    updatescount int

    Note : userid is linked with userid of ASPNET_USERS table.

    MB_UPDATES
    updateid        int    identify column (primary key)
    userid uniqueidentifier
    test varchar(140)
    timestamp datetime

    Note : userid is linked with userid of ASPNET_USERS table.
    MB_FRIENDS
    userid          uniqueidentifier
    friendid uniqueidentifier

    Note: userid is linked with userid of ASPNET_USERS table. friendid is linked with userid of ASPNET_USERS table. Both userid and friendid put together become primary key
  11. Create the following trigger for ASPNET_USERS table/li>
    CREATE TRIGGER trg_insert_profile_row
    ON dbo.aspnet_Users
    FOR Insert
    AS
    declare @userid uniqueidentifier

    /* insert a row into profiles table */
    select @userid = userid from inserted

    insert into mb_profiles values(@userid,'','default_profile',0,0,0);

  12. Create the following stored procedure in the database.
    CREATE PROCEDURE dbo.mb_addfriend(@userid uniqueidentifier, @friendid uniqueidentifier)
    AS
    begin tran
    begin try


    insert into mb_friends values(@userid, @friendid)

    update mb_profiles set friendscount = friendscount + 1
    where userid = @userid;

    update mb_profiles set followerscount = followerscount + 1
    where userid = @friendid;

    commit tran
    end try
    begin catch
    rollback tran
    raiserror('Could Not Add Friend',16,1);
    end catch



    CREATE PROCEDURE dbo.mb_addupdate(@userid uniqueidentifier, @text nvarchar(140))
    as
    begin tran
    begin try
    insert into mb_updates(userid,[text],[timestamp])
    values (@userid,@text, getdate())

    update mb_profiles set updatescount = updatescount + 1
    where userid = @userid
    commit tran
    end try
    begin catch
    rollback tran
    raiserror('Could not add an update!',16,1)
    end catch



    CREATE PROCEDURE dbo.mb_deleteupdate(@updateid int)
    AS
    declare @userid uniqueidentifier
    begin tran
    begin try

    /* get userid for this update */
    select @userid = userid from mb_updates
    where updateid = @updateid

    delete from mb_updates where updateid = @updateid

    update mb_profiles set updatescount = updatescount -1
    where userid = @userid;

    commit tran
    end try
    begin catch
    rollback tran
    raiserror('Could not delete update',16,1);
    end catch


    CREATE PROCEDURE dbo.mb_findpeople(@userid uniqueidentifier, @pattern nvarchar(50))
    AS
    select au.userid, username, picturefile, onlinebio, followerscount, friendscount, updatescount
    from mb_profiles p inner join aspnet_users au on (au.userid=p.userid)
    where au.userid <> @userid and username like '%' + @pattern + '%' and
    p.userid not in
    ( select friendid from mb_friends
    where userid = @userid)




    CREATE PROCEDURE dbo.mb_getfriends(@userid uniqueidentifier)
    AS
    select au.userid, username, picturefile, onlinebio, followerscount
    from mb_profiles p inner join aspnet_users au on (au.userid=p.userid)
    where p.userid in
    ( select friendid from mb_friends
    where userid = @userid)


    CREATE PROCEDURE dbo.mb_gettotalupdates(@userid uniqueidentifier)
    AS

    select picturefile,username, text, timestamp from mb_updates u inner join aspnet_users au on (u.userid = au.userid) inner join mb_profiles p on (u.userid = p.userid)
    where u.userid = @userid
    union
    select picturefile, username, text, timestamp from mb_updates u inner join aspnet_users au on (u.userid = au.userid) inner join mb_profiles p on (u.userid = p.userid)
    where u.userid in (select friendid from mb_friends where userid = @userid)
    order by timestamp desc


    CREATE PROCEDURE dbo.mb_getupdates(@userid uniqueidentifier)
    AS

    select updateid,picturefile, username, text, timestamp
    from mb_updates u inner join aspnet_users au on (u.userid = au.userid)
    inner join mb_profiles p on (u.userid = p.userid)
    where u.userid = @userid
    order by timestamp desc




    CREATE PROCEDURE dbo.mb_getuserdetails(@userid uniqueidentifier)
    AS

    select onlinebio, picturefile, followerscount, friendscount, updatescount
    from mb_profiles where userid = @userid



    CREATE PROCEDURE dbo.mb_removefriend(@userid uniqueidentifier, @friendid uniqueidentifier)
    AS
    begin tran
    begin try


    delete from mb_friends where userid = @userid and friendid = @friendid

    update mb_profiles set friendscount = friendscount - 1
    where userid = @userid;

    update mb_profiles set followerscount = followerscount - 1
    where userid = @friendid;

    commit tran
    end try
    begin catch
    rollback tran
    raiserror('Could Not Remove Friend',16,1);
    end catch


    CREATE PROCEDURE dbo.mb_updateuserprofile(@userid uniqueidentifier,@onlinebio nvarchar(200),@picturefile nvarchar(50))
    AS
    if @picturefile <> ''
    update mb_profiles set picturefile = @picturefile, onlinebio = @onlinebio
    where userid = @userid;
    else
    update mb_profiles set onlinebio = @onlinebio
    where userid = @userid;
  13. In the Application Configuration Tool, go to Application Configuration.
  14. Select Configure SMTP Email settings
  15. Enter Server name as localhost and From as admin@systemname.com. Replace systemname with the name of your system
  16. Click on Save button
  17. Go to Solution Explorer and make login.aspx the startup page.
  18. Run project from Visual Studio.NET 2008 or Visual Web Developer 2008.
  19. You should see login.aspx page.
  20. Create new user using registration page and then login with that user name
  21. Test the rest of the options.

TimeTracker free asp.net project with source codes

TimeTracker  free asp.net project with source codes

This intranet application is used to keep track of time spent by project members on different projects. It stores details regarding users, projects and time spent by members on projects - time entries.

This application uses ASP.NET pages for presentation. ObjectDataSource is used to get data from Business Logic Layer (BLL), which in turn access Data Access Layer (DAL). Stored procedures are used to perform all important operations related to database in SQL Server.

The following are major activities in this application

  • User Registration
  • Login
  • Password Recovery
  • Creation of Project
  • Adding members to project
  • Listing projects
  • Listing users
  • Generating report regarding project
  • Logging Time entries
  • Displaying projects assigned to current user
  • Logout

Technologies and Products Used

  • ASP.NET 3.5
  • C# language
  • Visual Studio.NET 2008
  • SQL Server 2005 Express Edition
  • ADO.NET
  • Login controls - Membership
  • Stored procedures using T-SQL.
  • Identify columns for auto increment columns
  • Master pages and Themes
  • DataBound controls such as GridView, FormView etc.
  • ObjectDataSource to get data from BLL and bind data to data-bound controls such as FormView and GridView.
  • Business Logic Layer - BLL, to access DAL on one side and Object data source on the other side.
  • Data Access Layer - DAL, to access database.

Steps to download, deploy and run this project

The following are the steps to related to be taken to run the existing part of the application. This project makes use of membership feature of ASP.NET. So,we have to configure the website using ASP.NET Configuration tool as explained below.
  1. Download timetracker.rar and unzip it into any directory in your system. For example, if you extract to c:\ then it will create a directory c:\timetracker. The download contains all ASP.NET pages but it has NO DATABASE. We have to create database objects using ASP.NET configuration tool manually.
  2. Open Visual Studio.NET 2008 or Visual Web Developer 2008.
  3. Open the project from the directory into which you extracted project.For example, c:\timetracker
  4. Select Website->ASP.NET Configuration option
  5. Select Security tab
  6. Select Use the security Setup Wizard to configure security step by step.
  7. Select From Internet option in Step 2
  8. Click on Next button in the remaining screens and finally click on Finish.
  9. It create a database called ASPNETDB.MDF with required tables and other database components
  10. Open the database in Server explorer or Database Explorer and create tables - PROJECTS, PROJECT_MEMBERS and TIMEENTRY. The structure for these tables is shown below. PROJECT and PROJECT_MEMBERS tables refer to USERID column of ASPNET_USERS table, which is created by Configuration Tool.

    PROJECTS Table

    Column NameData TypeRemarks
    idintIdentify Column
    titlevarchar(50) 
    descriptionvarchar(1000) 
    createdondatetime 
    creatoriduniqueidentifierReferences USERID column in ASPNET_USERS table
    estdurationint 
    manageruniqueidentifierReferences USERID column in ASPNET_USERS table

    PROJECT_MEMEBRS table

    Column NameData TypeRemarks
    projectidintReferences ID column in PROJECTS table
    useriduniqueidentifierReferences USERID column in ASPNET_USERS table
    Note: PROJECTID and USERID together make up composite primary key for PROJECT_MEMBERS table.

    TIMEENTRY table

    Column NameData TypeRemarks
    entryidintIdentify Column
    projectidint 
    useriduniqueidentifier 
    entrydatedatetime 
    createdondatetime 
    durationint 
    descriptionvarchar(1000) 
    Note: PROJECTID and USERSID reference PROJECTID and USERID of PROJECT_MEMEBRS table. It is a composite foreign key.
  11. Create the following stored procedure in the database.
    CREATE PROCEDURE dbo.CreateProject(@title  varchar(50),
    @description varchar(1000),
    @creatorid uniqueidentifier,
    @estduration int,
    @managerid uniqueidentifier)
    AS
    insert into projects values(@title,
    @description,getdate(), @creatorid,@estduration,
    @managerid)

    CREATE PROCEDURE dbo.GetAllProjects
    AS
    select * from projects order by id;
    CREATE PROCEDURE dbo.GetAllUsers
    AS
    select u.userid, u.username, m.email, m.createdate
    from aspnet_users u join aspnet_membership m
    on ( u.userid = m.userid)
    order by u.username

    CREATE PROCEDURE dbo.GetNonMembersOfProject(@projectid int)
    AS

    select userid, username from aspnet_users
    where userid not in (
    select userid from project_members
    where projectid = @projectid)


    CREATE PROCEDURE dbo.GetProjectDetails
    (@projectid int)
    AS
    select p.id, p.title, p.description, p.createdon,
    p.estduration, u.username
    from projects p inner join aspnet_users u
    on (p.managerid = u.userid)
    where p.id = @projectid

    CREATE PROCEDURE dbo.GetProjectMembers(@projectid int)
    AS
    select userid, username
    from aspnet_users
    where userid in
    (select userid from project_members
    where projectid = @projectid);

    CREATE PROCEDURE dbo.GetTimeEntriesByProject
    (@projectid int)
    AS
    select t.entryid, t.entrydate, t.duration, t.description, t.createdon, u.username
    from timeentry t inner join aspnet_users u
    on ( t.userid = u.userid)
    where t.projectid = @projectid


    CREATE PROCEDURE dbo.AddMemberToProject(@projectid int, @userid uniqueidentifier)
    AS
    insert into project_members values(@projectid, @userid);

    CREATE PROCEDURE dbo.AddTimeEntry(@projectid int,@userid uniqueidentifier,@entrydate datetime,@duration int,@description varchar(1000))
    AS
    insert into timeentry values(@projectid,@userid,
    @entrydate, getdate(), @duration,@description)

  12. Goto Solution Explorer and make login.aspx the startup page.
  13. Run project from Visual Studio.NET 2008 or Visual Web Developer 2008.
  14. You should see login.aspx page.

Appointments Scheduler free asp.net project with source codes

Appointments Scheduler  free asp.net project with source codes

This is a web based application that allows registered users to store appointments in web. The first advantage with this is they can access their appointments irrespective of the physical location, once they have access to Internet. The other major advantage of this application is; it notifies users about the appointments, if users want notification. The entire application is built with .Net and used the following technologies of .Net.
  • Asp.Net 3.5
  • C# Language
  • SQL Server 2005
  • Visual Studio.NET 2008
  • Layered Architecture with Presentation Layer and Data Access Layer
  • All database manipulations are done with stored procedures.
  • Stored procedures are accessed using classes in DAL.
  • ObjectDataSource is used in presentation layer to talk to DAL.
  • GridView, FormView, TreeView, Calendar and other core controls are used for interface.
  • Membership and login controls are used to implement security.
  • Master page and themes are used
  • Site navigation is done using Site Map.
  • ADO.NET is used to access database
The following are the major operations in this application.
  • User Registration
  • Login
  • Password Recovery
  • Change password
  • List of upcoming appointments
  • Adding a new appointment
  • Searching for appointments
  • List of all appointments
  • List of appointments by date
  • List of users of the system
  • Deleting an existing appointment
  • Editing details of an existing appointment
  • 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. This project makes use of membership feature of ASP.NET. The download contains all tables and stored procedures created by us as well as Asp.net. So all that you have to do is download, unzip, open project in Visual Studio.Net and run login.aspx file. Here are the steps given below:
  1. Download appointments.rar and unzip it into any directory in your system. For example, if you extract to c:\ then it will create a directory c:\appointments.
  2. Open Visual Studio.NET 2008 or Visual Web Developer 2008.
  3. Open the project from the directory into which you extracted project. For example, c:\appointments
  4. Go to Solution Explorer and make login.aspx the startup page.
  5. Run project from Visual Studio.NET 2008 or Visual Web Developer 2008.
  6. You should see login.aspx page.
  7. Create new user using registration page and then login with that user name
  8. Test the rest of the options.

Appointments Administrator Application

The other application that is related to this requirement is notification application, which is run for every one hour. It finds out whether there are any appointments that need notification and sends mails to concerned users. Here are the steps related to this project.
  • Create a new project using File->New -> Project. Select Visual C# as the language and Console Application as the type of the project.
  • Enter name as appointmentsadmin
  • Rename Program.cs to AppointmentsAdmin.cs and Program class to AppointmentsAdmin
  • Write the following code in Main() method of AppointmentsAdmin class
    // program assumes database ASPNETDB.MDF at  c:\appointments\app_data folder. If that is not the case, change the path in the code.
    // It expects database to have GetAppointmentsToNotify stored
    procedure, which retrieves appointments that are to be notified.

    using System;
    using System.Data.SqlClient;
    using System.Data;
    using System.Net.Mail;
    using System.Threading;

    namespace appointmentsadmin
    {
    class AppointmentsAdmin
    {
    static void Main(string[] args)
    {
    Console.WriteLine("Sending Appointment Reminders...");
    Thread t = new Thread(SendMails);
    t.Start();
    }

    public static void SendMails()
    {
    while (true)
    {
    // connect to database
    SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=c:\appointments\app_data\ASPNETDB.MDF;Integrated Security=True;User Instance=True");
    try
    {
    con.Open();
    SqlCommand cmd = new SqlCommand("GetAppointmentsToNotify", con);
    cmd.CommandType = CommandType.StoredProcedure;
    SqlDataReader dr = cmd.ExecuteReader();
    while (dr.Read())
    {
    // send mail
    MailMessage m = new MailMessage();
    m.To.Add(new MailAddress(dr["email"].ToString()));
    m.From = new MailAddress("admin@classroom.com"); // change from address accordingly
    m.Subject = "Appointment Reminder";
    m.IsBodyHtml = true;
    m.Body = "Hi" + dr["username"] + "<p/> This is to remind you about the following appointment.<p/>"
    + "Title : " + dr["title"] + "<p/>" + "Appointment Date : " + dr["appdate"] + "<p/>Admin,<br/> Appointments.Com";
    SmtpClient server = new SmtpClient("classroom"); // change server name accordingly
    try
    {
    server.Send(m);
    }
    catch(Exception ex)
    {
    Console.WriteLine("Could not send mail to " + dr["email"]);
    }

    }
    dr.Close();
    con.Close();
    }
    catch (Exception ex)
    {
    Console.WriteLine(ex.Message);
    break;
    }
    Console.WriteLine("Sent reminders at : " + DateTime.Now);
    Thread.Sleep(1000 * 60 * 60); // 60 min
    }
    }
    }
    }

  • Build the project and run appointmentsadmin.exe file from bin\Debug directory. It starts but never ends. It sends mails for every 1 hour. It uses an exclusive thread that wakes up for every one hour and sends messages.