Вы находитесь на странице: 1из 81

COMPUTER SCIENCE DEPARTMENT PORTAL

APPLICATION WEBSITE

Report submitted in partial fulfilment of the requirement for the degree of

B.Tech. In Information Technology

By ASHIMA DOGRA (45-IT-09) RITIKA BANSAL (43-IT-09) NEHA GOYAL ( ) HOD (IT) PROF. PAYAL PAHWA Bhagwan Parshuram Institute Of Technology Sector-17, Rohini.Delhi-85 October 2011

DECLARATION
This is to certify that Report entitled COMPUTER SCIENCE DEPARTMENT

PORTAL is submitted by me in partial fulfilment of the requirement for the award of degree B.Tech (IT) to BPIT,GGSIP University, Delhi comprises only my original work and due acknowledgement has been made in the text to all other material used.

Date:

ASHIMA DOGRA RITIKA BANSAL NEHA GOYAL

ACKNOWLEDGEMENT
It is my pleasure to be indebted to various people who have directly or indirectly contributed in the development of this work and who influenced my thinking, behaviour and acts during the course of study. I express my sincere gratitude to Prof. Dr. A.K. Tandon, Director for helping us in the process of training and for being a source of inspiration. I am thankful to Prof. Payal Pahwa, HOD(IT), for providing me an opportunity to undergo Summer Training at Bhagwan Parshuram Institute of Technology. I am also thankful to Mr. Mohd. Faiz Arif Khan, HPES Faculty, for his support, cooperation, and motivation provided to me during the training for constant inspiration and valuable help. I also extend my sincere appreciation to Mr.R.C Bharani ,Training and Placement Department, who provided his valuable suggestions and precious time in accomplishing the project report. I also appreciate Library and Computer Laboratory Facilities for providing me the resources and help at the time of need. Lastly, I would like to thank the Almighty and my parents for their moral support and with whom I shared my day-to-day experience and received lots of suggestions that improved the quality of my work.

ASHIMA DOGRA RITIKA BANSAL NEHA GOYAL

Table Of Contents
..................................................................................................................... 3

1.

ABSTRACT

The aim is to make an online web portal for Computer Science Department, so that everyone can get information about department, students can easily communicate with teachers from anywhere. Teachers can easily communicate with the students, and can keep records of every student easily and efficiently. The proposed system could be accessed from any corner of the world on net.

Faculty: This module gives profile information of various faculties


associated to the department.

It gives profile information of all the faculties. Anyone can contact to these faculties and post queries to them. They can upload E-books and other reading materials. They can post notices to the students and also view the notices from the administrator.

Students: This is a separate webpage for students.

They can view, edit, and update their profile from anywhere. Student can download documents as well. They can view faculty profile and even post queries to the faculties. The can also generate their Resume They can view notices by the Admin. They can view notices by the Faculties.

Administrator: The administrator has the central control over the


whole portal.

He can access the students and faculties information directly. He will create the student and faculty profiles which they can later on edit. He can respond to the queries of the faculties. He can post notices which will be accessible to the both the faculties and the students.

He will handle the number of students and incase any student or faculty leaves he will edit the record accordingly.

2. INTRODUCTION
EXISTING SYSTEM:
There is no such system available for department. The students cannot communicate with teachers properly. There is a great problem in keeping record of daily attendance, performance of each student, profile of each person associated with the department, and there was a lot of difficulties for the student regarding interaction with the faculties and viewing the current updates.

PROPOSED SYSTEM:
The proposed system is to make an online web portal for Computer Science Department, so that everyone can get information about department, students can easily communicate with teachers from anywhere. Teachers can easily communicate with the parents, and can keep records of every student easily and efficiently. The proposed system could be accessed from any corner of the world on net.

GOALS AND OBJECTIVES:

It is easy for new users to register and create new account. It maintains a central base of information.

It delivers all the information about student profile as well as students attendance to be accessible by faculties. It displays syllabus of various batches of CS Department. Faculties can view the profile of any of the student.

Students can view their previous results, can read books, and can communicate with teachers through provided email addresses.

SYSTEM SCOPE:
Major inputs include all the particulars like student name, batch, students attendance and various studies material etc. for all the students in the department. Inputs include details of students and faculties. Outputs include information about department, students result, students and faculties profile and study material available for student, syllabus of various batches.
2

SYSTEM CONETXT:

Creating webpage for Computer science Department and implementing it on internet is really a great idea both for the information seekers as well as for students and faculties of department. It greatly helps the department and other users as information about department and students is available at any time on web. It increases the ease both for students and faculties.

OVERALL DESCRIPTION : (COMPUTER SCIENCE DEPARTMENT PORTAL) For This Application, we will provide following modules: Admin Module:
1.

Add Students and Faculty Details

Create a form for administrator to add new student/Faculty. And insert new entry on LoginMaster table. This form has 1drop down list for selection of student or faculty.

2. Delete/Edit the details

Create a form where all students/faculty are display on the combo and the admin can select any student and can delete any of the student/faculty from the LoginMaster table.

3. Upload Notice

Create a page with 1 text field for title of the notice and text area for the content of the notice. The page should also contain a combo to choose for whom the notice is for.

4. Delete/Edit the details

Create a form where all notice title are display on the combo and the admin can select any notice and can delete/edit any of the notice.

Student Module: 1. Create An profile(Registration)


Create a form where the user can create an enter the details of academics and extra curricular activites the profile is is in editable mode. .

2. Resume Builder

Create a page which will generate a resume based on the data entered by the student in the profile.

3. Notice board
Create a page which will have a combo box from which the student can choose which notice he wishes to see either by the admin or by the faculty.

4. Faculty page

Create a page which will contain the list of the faculties sorted alphabetically and each entry serves as a link to the faculty profile.

5. Scrap Space

Each student should have his own scrap space where the response to their queries is posted.

Faculty Module: 1. Create An profile(Registration)


Create a form where the faculty can create an enter the details of academics and extra curricular activites the profile is is in editable mode. .

2. Notice

Create a page with 1 text field for title of the notice and text area for the content of the notice. The page should also contain a combo to choose for whom the notice is for.

3.

Students page

Create a page which will contain a combo box from which the faculties can choose to view the profile of the students of the respective batch.

4. Scrap Space

Each faculty should have their own scrap space where the queries is posted.

6. Notice board

The faculty should be able to view the notices uploaded on the common notice board.

3. PROCESS SELECTON
FEASIBILITY STUDY
5

Feasibility study is a process to check possibilities of system development.It is a method to check various different requirements and availability of financial & technical resources. Before starting the process various parameters must be checked like: Estimated finance is there or not? The man power to operate the system is there or not? The man power is trained or not? All the above conditions must be satisfied to start the project.

There are three different ways feasibility can be tested 1) Economical Feasibility 2) Technical Feasibility 3) Operational Feasibility.

Economical Feasibility:
In economical feasibility, analysis of the cost of the system is carried out. The system should be only developed if it is going to give returned the current manual system user can get the price only by purchasing the newspapers. In addition if he/she wants to see archives of particular equity then he has to refer to all the old newspapers. For research reports he has to buy another magazine. So Instead of buying no of magazines user has to just go online and with a single click he can get whatever information he wants. So our project of online share news passes the test of economical feasibility.

Technical Feasibility:

It is basically used to see existing computer, hardware and software etc, weather it is sufficient or additional equipments are required? Minimum System Requirement is such that it can be affordable by of the user who is having computer. All the user requires is compatible browser and .net framework installed so our system is fully technical feasible.
6

Operational Feasibility:
Once the system is designed there must be trained and expert operator. If there are not trained they should given training according to the needs of the system. From the users perspective our system fully operational feasible as it just requires some knowledge of computer. Operators only need add daily prices of various equities and there are enough validations available so operator does not require any special technical knowledge. So our system also passes the test of operational feasibility.

HARDWARE REQUIREMENTS
Pentium 90 MHZ or Faster and 96 MB Ram (Client) Pentium 133 MHZ or Faster and 128 Ram (Server)

SOFTWARE REQUIREMENTS Server Side : Java(JDK6.0), Servlet2.4, JSP2.0, EL, JSTL Client Side : HTML, JavaScript, CSS Database : MySQL 5.0. IDE : NetBeans6.5, Dreamweaver8, MySQL GUI Tool5.0

JAVA EE APPLICATION MODEL :


The Java EE application model begins with the Java programming language and the Java virtual machine. The proven portability, security, and developer productivity they provide forms the basis of the application model. Java EE is designed to support applications that implement enterprise services for customers, employees, suppliers, partners, and others who make demands on or contributions to the enterprise. Such applications are inherently complex, potentially accessing data from a variety of sources and distributing applications to a variety of clients. To better control and manage these applications, the business functions to support these various users are conducted in the middle tier. The middle tier represents an environment that is closely controlled by an enterprises information technology department. The middle tier is typically run on dedicated server hardware and has access to the full services of the enterprise.
7

JAVA EE Multi Layered Architecture:

(Fig.1)

JAVA EE Components:
The Java EE specification defines the following Java EE components:
Application clients and applets are components that run on the client. Java Servlet, JavaServer Faces, and JavaServer Pages (JSP) technology components are web components that run on the server. platform-specific security measures in each works in a variety of different security environments application with its related classes. 6 Enterprise JavaBeans (EJB) components (enterprise beans) are business components that run on the server. Java EE components are written in the Java programming language and are compiled in the same way as any program in the language. The difference between Java EE components and standard Java classes is that Java EE components are assembled into a Java EE application, are verified to be well formed and in compliance with the Java EE specification, and are deployed to production, where they are run and managed by the Java EE server.

My SQL Server:
MySQL: What is MySQL?
8

MySQL is a database. MySQL is the most popular open-source database system. The free MySQL database is very often used with PHP. A database holds one or multiple tables. The data in MySQL is stored in database objects called tables. A table is a collection of related data entries and it consists of columns and rows. Databases are useful when storing information categorically. A company may have a database with the following tables: "Employees", "Products", "Customers" and "Orders".

Database Tables Used


A database most often contains one or more tables. Each table is identified by a name (e.g. "Customers" or "Orders"). Tables contain records (rows) with data.

LoginMaster
Field Name UserID Password Status Description int(10) PK Varchar(30) Varchar (5)

Note: Status may be Studn, Faclt, Admin.

StudentMaster
Field Name UserID RollNo Batch Branch Degree UserId Name DOB Gender Description int(10) primary key int(10) int(4) Varchar(30) Varchar(10) int(10) primary key Varchar(30) int(10) varchar(6)

Address MobNumber Email

varchar(50) Int(10) Varchar(20)

Note: Batch is the year of passing , Joining Year is the Year in

which the student joined.

FacultyMaster
Field Name UserID Department Degree Name DOB Gender Address MobNumber Email Description int(10) primary key Varchar(30) Varchar(20) Varchar(30) int(10) varchar(6) varchar(50) Int(10) Varchar(20)

Notice
Field Name Status Title Message Description Varchar(20) Varchar(100) Varchar(200)

Scrapmaster
Field Name Status Description Varchar(100)

10

Scraps

Varchar(500)

Queries
A query is a question or a request. With MySQL, we can query a database for specific information and have a recordset returned. Look at the following query: SELECT LastName FROM Persons

Facts about MySQL Database


One great thing about MySQL is that it can be scaled down to support embedded database applications. Perhaps it is because of this reputation that many people believe that MySQL can only handle small to medium-sized systems. The truth is that MySQL is the de-facto standard database for web sites that support huge volumes of both data and end users (like Friendster, Yahoo and Google).

4. UML DIAGRAMS
ENTITY RELATION DIAGRAM

4.1.

11

4.2.

DATA FLOW DIAGRAM

CONTEXT DIAGRAM

12

LEVEL- 1 DATA FLOW DIAGRAM

LEVEL- 2 DATA FLOW DIAGRAM

13

1.

Login Process:-

2.

Registration Process:-

14

3.

Sign-Up Process:-

15

4.

User Account Maintainence Process:-

4.3.

USE CASE DIAGRAM

16

4.4.

SEQUENCE DIAGRAMS

17

Sequence Diagram for Login:-

18

Sequence Diagram For Registration ::U ser :Home :R egistration personal :Registration physical :R egistration socio-occupation :Profile :D atabase

click on registration

fill-up data

fill-up physical data

store to database

profile is created now user can login by user -id login page

login using userid and password

check username and passw ord

username and password is valid or not valid not valid

valid username and passw ord wellcome user now you can /update your profile edit

19

Sequence Diagram For Edit Profile :-

:User

:Profile

:Registration

:Photoupload

:database

login with correct username and password

click on edit profile

update imformation

give remaining registration screen

fillup form and click on update

store to database

profile updated

click on photoupload

browes photo

click on upload photo uploaded

4.5.

ACTIVITY DIAGRAMS
20

Input Validation:-

E nter I /P D ata

[P rom For C pt orrecrion

[Data V alid

[D Invalid ata

V alid D FromU ata ser

Invalid D E ata ntered by U ser

Display Records:21

F t h eod r m a b s e Rc r f o Dt ae c a

Dp yDt o f r i l s a a n om a

N Dt i t Dt b s o aan o a ae a

Add Records :-

Array Passed by I/p validate

Add data in to database

Update Record:22

User Issues Update Command

Update Records in to Database

Store updated data in to database

23

5. CODING
5.1. LOGIN CODE:

using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq;

public partial class Default6 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void ImageButton2_Click(object sender, ImageClickEventArgs e) { } protected void Login1_Authenticate(object sender, AuthenticateEventArgs e) { Session["username"] = Login1.UserName; Response.Redirect("MyPro_fin1.aspx"); }
24

protected void Button1_Click(object sender, EventArgs e) { Label31.Text = "Login/Sign Up first and then search.. "; } protected void Timer1_Tick(object sender, EventArgs e) { if (ImageButton2.Visible == true) ImageButton2.Visible = false; else ImageButton2.Visible = true; } protected void AdRotator1_AdCreated(object sender, ArAdCreatedEventgs e) { } }

25

5.2.

ABOUT US CODE:

using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class Default4 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { Label31.Text = "Login/Sign Up first and then search.. "; } protected void ImageButton2_Click(object sender, ImageClickEventArgs e) { } protected void Timer1_Tick(object sender, EventArgs e) {
26

27

5.3.
using System;

SIGN UP CODE:

using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class Default4 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Timer1_Tick1(object sender, EventArgs e) { if (Label30.Visible == true) Label30.Visible = false; else Label30.Visible = true; } }

28

5.4.
using System;

WEDDING PLANNER CODE:

using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class Default5 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void ImageButton2_Click(object sender, ImageClickEventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { Label34.Text = "Login/Sign Up first and then search.. "; } protected void Timer1_Tick(object sender, EventArgs e) {
29

if (Label30.Visible == true) Label30.Visible = false; }

5.5.
using System;

CONTACT US CODE:

using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class Default6 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void ImageButton2_Click(object sender, ImageClickEventArgs e) { } protected void Timer1_Tick(object sender, EventArgs e) { if (ImageButton2.Visible == true) ImageButton2.Visible = false; else ImageButton2.Visible = true; }
30

31

5.6.
using System;

CREATE PROFILE CODE:

using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.SqlClient; public partial class Default4 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection(); con.ConnectionString=@"DataSource=.\SQLEXPRESS;AttachDbFilename=| datadirectory|\Database.mdf;Integrated Security=True;User Instance=True"; SqlCommand cmd = new SqlCommand();
32

cmd.Connection = con; cmd.CommandText = "insert into cpro

values(@Name,@UserName,@Gender,@Date,@Month,@Year,@Age,@Religion,@Mother Tongue,@Caste,@MaritalStatus,@City,@Education,@Profession,@Salary,@Feet,@Inches, @BodyType,@Complexion,@FamilyType,@FamilyStatus,@Siblings,@Hobbies,@AboutM e,@ContactInfo,@ImageName,@ImageAddress)"; cmd.Parameters.AddWithValue("@Name", name_cp.Text); cmd.Parameters.AddWithValue("@UserName", username_cp.Text); if (rdfemale_cp.Checked == true) cmd.Parameters.AddWithValue("@Gender", rdfemale_cp.Text); else cmd.Parameters.AddWithValue("@Gender", rdmale_cp.Text);

cmd.Parameters.AddWithValue("@Date", dd_cp.SelectedItem.Text);

cmd.Parameters.AddWithValue("@Month", mm_cp.SelectedItem.Text); cmd.Parameters.AddWithValue("@Year", yy_cp.SelectedItem.Text); cmd.Parameters.AddWithValue("@Age", Convert.ToInt32(age_cp.Text)); cmd.Parameters.AddWithValue("@Religion", rel_cp.SelectedItem.Text); cmd.Parameters.AddWithValue("@MotherTongue", mt_cp.SelectedItem.Text); cmd.Parameters.AddWithValue("@Caste", cas_cp.SelectedItem.Text); cmd.Parameters.AddWithValue("@MaritalStatus", ms_cp.SelectedItem.Text);
33

cmd.Parameters.AddWithValue("@City", city_cp.SelectedItem.Text); cmd.Parameters.AddWithValue("@Education", ed_cp.Text); cmd.Parameters.AddWithValue("@Profession", Prof_cp.Text); cmd.Parameters.AddWithValue("@Salary", sal_cp.Text); cmd.Parameters.AddWithValue("@Feet", ft_cp.SelectedItem.Text); cmd.Parameters.AddWithValue("@Inches", ht_cp.SelectedItem.Text); if (slim_cp.Checked == true) cmd.Parameters.AddWithValue("@BodyType", slim_cp.Text); else if (avg_cp.Checked == true) cmd.Parameters.AddWithValue("@BodyType", avg_cp.Text); else if (ath_cp.Checked == true) cmd.Parameters.AddWithValue("@BodyType", ath_cp.Text); else cmd.Parameters.AddWithValue("@BodyType", heavy_cp.Text); if (vfair_cp.Checked == true) cmd.Parameters.AddWithValue("@Complexion", vfair_cp.Text); else if (fair_cp.Checked == true) cmd.Parameters.AddWithValue("@Complexion", fair_cp.Text); else if (wheatish_cp.Checked == true) cmd.Parameters.AddWithValue("@Complexion", wheatish_cp.Text); else cmd.Parameters.AddWithValue("@Complexion", dark_cp.Text); if (joint_cp.Checked == true) cmd.Parameters.AddWithValue("@FamilyType", joint_cp.Text); else if (nuclear_cp.Checked == true) cmd.Parameters.AddWithValue("@FamilyType", nuclear_cp.Text);
34

else cmd.Parameters.AddWithValue("@FamilyType", others_cp.Text); if (midcls_cp.Checked == true) cmd.Parameters.AddWithValue("@FamilyStatus", midcls_cp.Text); else if (rich_cp.Checked == true) cmd.Parameters.AddWithValue("@FamilyStatus", rich_cp.Text); else cmd.Parameters.AddWithValue("@FamilyStatus", aff_cp.Text); cmd.Parameters.AddWithValue("@Siblings", nos_cp.SelectedItem.Text); cmd.Parameters.AddWithValue("@Hobbies", hb_cp.Text); cmd.Parameters.AddWithValue("@AboutMe", abt_cp.Text); cmd.Parameters.AddWithValue("@ContactInfo", cont_cp.Text); cmd.Parameters.AddWithValue("@ImageName",""); cmd.Parameters.AddWithValue("@ImageAddress",""); con.Open(); cmd.ExecuteNonQuery(); con.Close(); Label27.Text = "Your Profile Has Been Successfully Created.."; Response.Redirect("Login1.aspx"); } protected void slim_cp_CheckedChanged(object sender, EventArgs e) { } protected void Timer1_Tick1(object sender, EventArgs e) { if (Label30.Visible == true) Label30.Visible = false; else Label30.Visible = true; }
35

5.7.

DATAVIEW CODE:

using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.SqlClient; public partial class Default3 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { try { if (Page.IsPostBack == false) { // string uname = Session["username"].ToString(); SqlConnection con = new SqlConnection(); con.ConnectionString = @"Data Source=.\SQLEXPRESS;AttachDbFilename=| datadirectory|\Database.mdf;Integrated Security=True;User Instance=True"; SqlCommand cmd = new SqlCommand(); cmd.Connection = con; //cmd.CommandText = "select * from cpro";// where Gender='" + looking_qs.SelectedItem.Text + "'and Age>='" + age1_qs.SelectedItem.Text + "' and Age<='"
36

+ age2_qs.SelectedItem.Text + "'and Religion='" + rel_qs.SelectedItem.Text + "'and MotherTongue='" + mt_qs.SelectedItem.Text + "'and Caste='" + cas_qs.SelectedItem.Text + "'and MaritalStatus='" + ms_qs.SelectedItem.Text + "'and City='" + city_qs.SelectedItem.Text + "'"; //"select * from cpro";// where UserName='" + uname + "'"; //con.Open(); //SqlDataReader dr = cmd.ExecuteReader(); //DataList1.DataSource = dr; //DataList1.DataBind(); //con.Close(); //DataList1.DataSource = dr; //DataList1.DataBind(); string gen, rel, mt, cas, ms, city; gen = Request.QueryString["str"]; rel = Request.QueryString["str4"]; mt = Request.QueryString["str5"]; cas = Request.QueryString["str6"]; ms = Request.QueryString["str7"]; city = Request.QueryString["str8"]; //cmd.CommandText="select * from cpro where Gender='"+gen+"'and Religion='"+rel+"'and MotherTongue='"+mt+"'and Caste='"+cas+"'and MaritalStatus='"+ms+"'and City='"+city+"'"; //SqlDataReader dr = cmd.ExecuteReader();

con.Open(); cmd.CommandText = "select Name from cpro where Gender='" + gen + "'and Religion='" + rel + "'and MotherTongue='" + mt + "'and Caste='" + cas + "'and MaritalStatus='" + ms + "'and City='" + city + "'"; //where UserName='" + uname + "'"; //con.Open(); name_dv.Text = cmd.ExecuteScalar().ToString(); //cmd.CommandText = "select UserName from cpro where UserName='" + uname + "'"; //username_pro.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select Gender from cpro where Gender='" + gen + "'"; gender_dv.Text = cmd.ExecuteScalar().ToString();
37

cmd.CommandText = "select Date from cpro where Gender='" + gen + "'and Religion='" + rel + "'and MotherTongue='" + mt + "'and Caste='" + cas + "'and MaritalStatus='" + ms + "'and City='" + city + "'"; date_dv.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select Month from cpro where Gender='" + gen + "'and Religion='" + rel + "'and MotherTongue='" + mt + "'and Caste='" + cas + "'and MaritalStatus='" + ms + "'and City='" + city + "'";//where UserName='" + uname + "'"; month_dv.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select Year from cpro where Gender='" + gen + "'and Religion='" + rel + "'and MotherTongue='" + mt + "'and Caste='" + cas + "'and MaritalStatus='" + ms + "'and City='" + city + "'"; //where UserName='" + uname + "'"; year_dv.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select Age from cpro where Gender='" + gen + "'and Religion='" + rel + "'and MotherTongue='" + mt + "'and Caste='" + cas + "'and MaritalStatus='" + ms + "'and City='" + city + "'"; //where UserName='" + uname + "'"; age_dv.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select Religion from cpro where Religion='" + rel + "'"; rel_dv.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select MotherTongue from cpro where MotherTongue='" + mt + "'"; mt_dv.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select Caste from cpro where Caste='" + cas + "'"; cas_dv.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select MaritalStatus from cpro where MaritalStatus='" + ms + "'"; ms_dv.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select MaritalStatus from cpro where MaritalStatus='" + ms + "'"; ms_dv.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select City from cpro where City='" + city + "'"; city_dv.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select Education from cpro where Gender='" + gen + "'and Religion='" + rel + "'and MotherTongue='" + mt + "'and Caste='" + cas + "'and MaritalStatus='" + ms + "'and City='" + city + "'";//where UserName='" + uname + "'"; edu_dv.Text = cmd.ExecuteScalar().ToString();
38

cmd.CommandText = "select Profession from cpro where Gender='" + gen + "'and Religion='" + rel + "'and MotherTongue='" + mt + "'and Caste='" + cas + "'and MaritalStatus='" + ms + "'and City='" + city + "'";//where UserName='" + uname + "'"; prof_dv.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select Salary from cpro where Gender='" + gen + "'and Religion='" + rel + "'and MotherTongue='" + mt + "'and Caste='" + cas + "'and MaritalStatus='" + ms + "'and City='" + city + "'"; //where MaritalStatus='" + ms + "'"; sal_dv.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select Feet from cpro where Gender='" + gen + "'and Religion='" + rel + "'and MotherTongue='" + mt + "'and Caste='" + cas + "'and MaritalStatus='" + ms + "'and City='" + city + "'"; //where MaritalStatus='" + ms + "'"; ft_dv.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select Inches from cpro where Gender='" + gen + "'and Religion='" + rel + "'and MotherTongue='" + mt + "'and Caste='" + cas + "'and MaritalStatus='" + ms + "'and City='" + city + "'"; //where MaritalStatus='" + ms + "'"; in_dv.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select BodyType from cpro where Gender='" + gen + "'and Religion='" + rel + "'and MotherTongue='" + mt + "'and Caste='" + cas + "'and MaritalStatus='" + ms + "'and City='" + city + "'"; //where MaritalStatus='" + ms + "'"; bt_dv.Text = cmd.ExecuteScalar().ToString(); comp_dv.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select Complexion from cpro where Gender='" + gen + "'and Religion='" + rel + "'and MotherTongue='" + mt + "'and Caste='" + cas + "'and MaritalStatus='" + ms + "'and City='" + city + "'"; //where MaritalStatus='" + ms + "'";

cmd.CommandText = "select FamilyType from cpro where Gender='" + gen + "'and Religion='" + rel + "'and MotherTongue='" + mt + "'and Caste='" + cas + "'and MaritalStatus='" + ms + "'and City='" + city + "'"; //where MaritalStatus='" + ms + "'"; famtype_dv.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select FamilyStatus from cpro where Gender='" + gen + "'and Religion='" + rel + "'and MotherTongue='" + mt + "'and Caste='" + cas + "'and MaritalStatus='" + ms + "'and City='" + city + "'"; //where MaritalStatus='" + ms + "'"; famstatus_dv.Text = cmd.ExecuteScalar().ToString();
39

cmd.CommandText = "select Siblings from cpro where Gender='" + gen + "'and Religion='" + rel + "'and MotherTongue='" + mt + "'and Caste='" + cas + "'and MaritalStatus='" + ms + "'and City='" + city + "'"; //where MaritalStatus='" + ms + "'"; nos_dv.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select Hobbies from cpro where Gender='" + gen + "'and Religion='" + rel + "'and MotherTongue='" + mt + "'and Caste='" + cas + "'and MaritalStatus='" + ms + "'and City='" + city + "'"; //where UserName='" + uname + "'"; hobbies_dv.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select AboutMe from cpro where Gender='" + gen + "'and Religion='" + rel + "'and MotherTongue='" + mt + "'and Caste='" + cas + "'and MaritalStatus='" + ms + "'and City='" + city + "'"; //where UserName='" + uname + "'"; abtme_dv.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select ContactInfo from cpro where Gender='" + gen + "'and Religion='" + rel + "'and MotherTongue='" + mt + "'and Caste='" + cas + "'and MaritalStatus='" + ms + "'and City='" + city + "'";//where UserName='" + uname + "'"; cont_dv.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select ImageAddress from cpro where Gender='" + gen + "'and Religion='" + rel + "'and MotherTongue='" + mt + "'and Caste='" + cas + "'and MaritalStatus='" + ms + "'and City='" + city + "'"; //where UserName='" + uname + "'"; //SqlDataReader dr = cmd.ExecuteReader(); Image7.ImageUrl = cmd.ExecuteScalar().ToString(); con.Close(); } } catch { Label78.Text = "Sorry, Match not found.."; } } protected void Timer1_Tick1(object sender, EventArgs e) {

40

5.8.

MY PROFILE CODE:

using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.SqlClient; public partial class Default6 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { try { if (Page.IsPostBack == false) { string uname = Session["username"].ToString(); SqlConnection con = new SqlConnection(); con.ConnectionString = @"Data Source=.\SQLEXPRESS;AttachDbFilename=| datadirectory|\Database.mdf;Integrated Security=True;User Instance=True"; SqlCommand cmd = new SqlCommand(); cmd.Connection = con; cmd.CommandText = "select Name from cpro where UserName='" + uname + "'"; con.Open(); name_pro.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select UserName from cpro where UserName='" + uname + "'";
41

username_pro.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select Gender from cpro where UserName='" + uname + "'"; gender_pro.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select Date from cpro where UserName='" + uname + "'"; date_pro.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select Month from cpro where UserName='" + uname + "'"; month_pro.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select Year from cpro where UserName='" + uname + "'"; year_pro.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select Age from cpro where UserName='" + uname + "'"; age_pro.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select City from cpro where UserName='" + uname + "'"; city_pro.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select Education from cpro where UserName='" + uname + "'"; edu_pro.Text = cmd.ExecuteScalar().ToString();

cmd.CommandText = "select MaritalStatus from cpro where UserName='" + uname + "'"; cmd.CommandText = "select Profession from cpro where UserName='" + uname + "'"; prof_pro.Text = cmd.ExecuteScalar().ToString(); ms_pro.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select Hobbies from cpro where UserName='" + uname + "'"; hobbies_pro.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select AboutMe from cpro where UserName='" + uname + "'"; abtme_pro.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select ContactInfo from cpro where UserName='" + uname + "'"; cont_pro.Text = cmd.ExecuteScalar().ToString(); cmd.CommandText = "select ImageAddress from cpro where UserName='" + uname + "'"; //SqlDataReader dr = cmd.ExecuteReader(); Image7.ImageUrl = cmd.ExecuteScalar().ToString(); if (Image7.ImageUrl != "") { FileUpload1.Visible = false;
42

show1.Visible = false; upload2.Visible = false; } con.Close(); } } catch { } } protected void upload2_Click(object sender, EventArgs e) { string uname = Session["username"].ToString(); SqlConnection con = new SqlConnection(); con.ConnectionString = @"Data Source=.\SQLEXPRESS;AttachDbFilename=| datadirectory|\Database.mdf;Integrated Security=True;User Instance=True"; SqlCommand cmd = new SqlCommand(); cmd.Connection = con; cmd.CommandText = "select ImageName,ImageAddress from cpro where UserName='" + uname + "'"; con.Open(); SqlDataReader dr = cmd.ExecuteReader(); while (dr.Read()) { if (dr.HasRows) { if (dr["ImageName"].ToString() == "" || dr["ImageAddress"].ToString() == "") { insertdata();
43

} else { Label87.Text = "file is uploaded"; } } } con.Close(); } public void insertdata() { string uname = Session["username"].ToString(); SqlConnection con = new SqlConnection(); con.ConnectionString = @"Data Source=.\SQLEXPRESS;AttachDbFilename=| datadirectory|\Database.mdf;Integrated Security=True;User Instance=True"; SqlCommand cmd = new SqlCommand(); cmd.Connection = con; if (FileUpload1.HasFile) { string ext = FileUpload1.FileName.Split('.')[1].ToString(); if (ext == "jpg" || ext == "jpeg" || ext == "gif" || ext == "bmp") { FileUpload1.SaveAs(Server.MapPath("~\\upload\\") + FileUpload1.FileName); Label87.Text = "Your photo has been uploaded successfully.."; Label88.Text = "~\\upload\\" + FileUpload1.FileName;

44

cmd.CommandText "'";

"update

cpro

set

ImageName=@ImageName,ImageAddress=@ImageAddress where UserName='" + uname + cmd.Parameters.AddWithValue("@ImageName", FileUpload1.FileName); cmd.Parameters.AddWithValue("@ImageAddress", Label88.Text); con.Open(); cmd.ExecuteNonQuery(); Label88.Visible = false; FileUpload1.Visible = false; upload2.Visible = false; Label87.Visible = false; } else Label87.Text = "Wrong File.."; } else Label87.Text = "Please upload a photo.."; }

protected void show1_Click(object sender, EventArgs e) { string uname = Session["username"].ToString(); SqlConnection con = new SqlConnection(); con.ConnectionString = @"Data Source=.\SQLEXPRESS;AttachDbFilename=| datadirectory|\Database.mdf;Integrated Security=True;User Instance=True"; SqlCommand cmd = new SqlCommand(); cmd.Connection = con; con.Open(); cmd.CommandText = "select ImageAddress from cpro where UserName='" + uname + "'"; //SqlDataReader dr = cmd.ExecuteReader(); Image7.ImageUrl = cmd.ExecuteScalar().ToString();
45

show1.Visible = false; con.Close(); }

protected void Timer1_Tick1(object sender, EventArgs e) { if (Label30.Visible == true) Label30.Visible = false; else Label30.Visible = true; }

protected void search1_Click(object sender, EventArgs e) { } protected void LinkButton1_Click(object sender, EventArgs e) {

} protected void DELETE_Click(object sender, EventArgs e) { string uname = Session["username"].ToString(); SqlConnection con = new SqlConnection(); con.ConnectionString = @"Data Source=.\SQLEXPRESS;AttachDbFilename=| datadirectory|\Database.mdf;Integrated Security=True;User Instance=True"; SqlCommand cmd = new SqlCommand(); cmd.Connection = con; con.Open();
46

cmd.CommandText = "delete from cpro where UserName='" + uname + "'"; cmd.ExecuteNonQuery(); con.Close(); del.Text = "Your Profile has been successfully.."; Response.Redirect("Login1.aspx");

} }

47

5.9.

CHANGE PASSWORD CODE:

using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class Default3 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { ChangePassword1.UserName = ""; } protected void Timer1_Tick1(object sender, EventArgs e) { if (Label30.Visible == true) Label30.Visible = false; else Label30.Visible = true; } }

48

5.10. SEARCH CODE:


using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.SqlClient; public partial class Default6 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { // Quick Search string str, str1, str2, str3, str4, str5, str6, str7; SqlConnection con = new SqlConnection(); con.ConnectionString = @"Data Source=.\SQLEXPRESS;AttachDbFilename=| datadirectory|\Database.mdf;Integrated Security=True;User Instance=True"; SqlCommand cmd = new SqlCommand(); cmd.Connection = con; if (looking_qs.SelectedItem.Text == "--select--") Label31.Text = "Please select the 'Looking For' option...."; else {
49

cmd.CommandText = "select * from cpro where Gender='" + looking_qs.SelectedItem.Text + "'and Age>='" + age1_qs.SelectedItem.Text + "' and Age<='" + age2_qs.SelectedItem.Text + "'and Religion='" + rel_qs.SelectedItem.Text + "'and Caste='" + + "'and MotherTongue='" + + mt_qs.SelectedItem.Text "'"; con.Open(); Response.Redirect("dataview1.aspx?str=" + looking_qs.SelectedItem.Text + "&str4=" + rel_qs.SelectedItem.Text cas_qs.SelectedItem.Text city_qs.SelectedItem.Text); con.Close(); } } protected void Timer1_Tick(object sender, EventArgs e) { if (Label48.Visible == true) Label48.Visible = false; else Label48.Visible = true;}} + + "&str5=" "&str7=" + + mt_qs.SelectedItem.Text ms_qs.SelectedItem.Text + + "&str6=" "&str8=" + + cas_qs.SelectedItem.Text "'and

MaritalStatus='" + ms_qs.SelectedItem.Text + "'and City='" + city_qs.SelectedItem.Text +

50

5.11. SERVICES CODE:


using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.SqlClient; public partial class Default7 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { // Quick Search string str, str1, str2, str3, str4, str5, str6, str7; SqlConnection con = new SqlConnection(); con.ConnectionString = @"Data Source=.\SQLEXPRESS;AttachDbFilename=| datadirectory|\Database.mdf;Integrated Security=True;User Instance=True"; SqlCommand cmd = new SqlCommand(); cmd.Connection = con; if (looking_qs.SelectedItem.Text == "--select--") Label31.Text = "Please select the 'Looking For' option...."; else {
51

cmd.CommandText = "select * from cpro where Gender='" + looking_qs.SelectedItem.Text + "'and Age>='" + age1_qs.SelectedItem.Text + "' and Age<='" + age2_qs.SelectedItem.Text + "'and Religion='" + rel_qs.SelectedItem.Text + "'and Caste='" + + "'and MotherTongue='" + + mt_qs.SelectedItem.Text "'"; con.Open(); Response.Redirect("dataview1.aspx?str=" + looking_qs.SelectedItem.Text + "&str4=" + rel_qs.SelectedItem.Text cas_qs.SelectedItem.Text city_qs.SelectedItem.Text); con.Close(); } } protected void Timer1_Tick(object sender, EventArgs e) { if (Label30.Visible == true) Label30.Visible = false; else Label30.Visible = true; } } + + "&str5=" "&str7=" + + mt_qs.SelectedItem.Text ms_qs.SelectedItem.Text + + "&str6=" "&str8=" + + cas_qs.SelectedItem.Text "'and

MaritalStatus='" + ms_qs.SelectedItem.Text + "'and City='" + city_qs.SelectedItem.Text +

52

6. SNAPSHOTS (DESIGN)
6.1. LOGIN PAGE

53

6.2. ABOUT US PAGE

54

6.3. REGISTER PAGE

55

6.4. WEDDING PLANNER PAGE

56

57

6.5. CONTACT US PAGE

58

6.6. LOGIN SIGN UP REGISTER PAGE

59

6.7. SIGN UP CREATE PROFILE LOGIN

60

6.8. LOGIN PROFILE PAGE

61

6.9. UPLOAD IMAGE IN PROFILE

62

6.10. SEARCH PAGE

63

6.11. SEARCH RESULT VIEW PROFILE

64

6.12. SERVICES PAGE

65

6.13. PROFILE LOGOUT LOGIN PAGE

66

6.14. LOGIN PAGE CHANGE PASSWORD

67

. CONCLUSIONS

As there was no such system available for department by which the students can communicate with teachers properly.This project will provide the students proper medium to communicate with the faculties over there probems regarding studies and other topics.

There was a great problem in keeping record of daily attendance, performance of each student, profile of each person associated with the department.

It is easy for new users to register and create new account.

It maintains a central base of information.

It delivers all the information about student profile as well as students attendance to be accessible by faculties.

It displays syllabus of various batches of CS Department.

Faculties can view the profile of any of the student.

68

Students can view their previous results, can read books, and can communicate with teachers through provided email addresses.

69

8. REFERENCES
1.

(Fig. 1 )www.google.com

2. BOOKS

Java 2 Complete Reference by Hilbert Schildt

Software Engineering by K.K. Aggarwal and Yogesh Singh

Software Engineering by Ian Sommerville

Software Engineering Concepts by Roger Pressman

3. WEB SITES

www.google.com www.yahoo.com

www.bing.com

70

9. APPENDIX
.NET class libraries, 8

A
AboutMe,29-48 Activity Diagram, 19 Age,29-48 ArAdCreatedEventgs e,23 ASP.Net, 8 AttachDbFilename ,28-48 AuthenticateEventArgs e,22

B
BodyType,29-48

C
catch,32,37 Cmd,28-48 cmd.CommandText,29-48 cmd.Connection,28-48 cmd.ExecuteNonQuery(); cmd.ExecuteReader(),39 cmd.ExecuteScalar().ToString(),32 cmd.Parameters.AddWithValue,30

71

Common Language Runtime (CLR), 7 Common Type System (CTS), 7 Con,28-48 con.Close(),29-48 con.ConnectionString,28-48 con.Open(),29-48 Convert.ToInt32,30 cpro,29-48

D
Data flow Diagram, 10 Database.mdf ,28-48 Datadirectory,28-48 DataSource ,28-48 Date,29-48 Design Snapshots, 49

E
Economical Feasibility, 5 Entity Relationship Diagram, 13 EventArgs e,22-48

F
False,22-48 Feasibility Study, 5 FileName,40,41
72

FileUpload1.Visible,39

G H
Hardware Requirements, 6 HasFile,40 HasRows,39 HTTP Protocols, 4

I
Image Uploading, 3 ImageButton2.Visible,23-48 ImageClickEventArgs e ,22-48 Insert,29-48 Integrated Security, 28-48 Intermediate language Code (MSIL), 7

J
Just In Time Compiler (JIT), 7

K L
Login Facility, 3 Login1.UserName,22

M
MapPath,40
73

Matrimonial Web Application, 1 Microsoft .Net Framework Architecture, 6 Microsoft SQL Server, 9 Microsoft Visual Studio .Net 2008, 8

N
new SqlCommand(),28-48 new SqlConnection(),28-48

O
object sender,22-48 Operational Feasibility, 6

P
Page.IsPostBack,32,37 protected void AdRotator1_AdCreated,23 protected void Button1_Click,26,28 protected void CreateUserWizard1_CreatedUser,28 protected void ImageButton2_Click,22-48 protected void Login1_Authenticate,22 protected void Page_Load,22-48 protected void Timer1_Tick,23-27 protected void,22-48 public partial class ,22-48

74

Quick Search Facility, 3

R
Read(),39 References, 65 Registration, 3 Request.QueryString,33 Response.Redirect,22

S
SaveAs,40 Sequence Diagram, 15 Server,40 Services, 4 Session,22 Software Requirements, 6 Split,40 SqlCommand cmd ,28-48 SqlConnection ,28-48 SqlDataReader,39 SQLEXPRESS ,28-48 String,37 Structured Query Language, 9 System.Web.UI.Page,22-48

75

T
Technical Feasibility, 5 Technology Review, 9 ToString(),30-48 Try,32,37

U
Use Case diagram, 14 using System.Collections,22-48 using System.Configuration,22-48 using System.Data,22-48 using System.Data.SqlClient,28-48 using System.Linq,22-48 using System.Web,22-48 using System.Web.Security,22-48 using System.Web.UI,22-48 using System.Web.UI.HtmlControls,22-48 using System.Web.UI.WebControls,22-48 using System.Web.UI.WebControls.WebParts,22-48 using System.Xml.Linq,22-48

V W
Wedding Bells, 1 Wedding Planner, 3

X
XML web services, 8

Y
76

77

Вам также может понравиться