139
PROJECT REPORT Live Project On Management of Basic Education Department (Allahabad) For The Department of Computer Science University Of Lucknow Submitted in partial fulfillment of the requirement for the award of the degree in BACHELOR OF COMPUTER APPLICATION (2012-13) SUBMITTED BY: Rajnee Kumari ROLL NO: 10091106005 Guided by: Course Coordinator (BCA) 1

Project Report(Rajni)

Embed Size (px)

Citation preview

Page 1: Project Report(Rajni)

PROJECT REPORT

Live Project On

Management of Basic Education Department(Allahabad) For

The Department of Computer ScienceUniversity Of Lucknow

Submitted in partial fulfillment of the requirement for the award of the degree in

BACHELOR OF COMPUTER APPLICATION(2012-13)

SUBMITTED BY:

Rajnee KumariROLL NO: 10091106005

Guided by: Course Coordinator (BCA)

MR EHTAYSHAM UDDIN KHAN MR. SHISHIR KR. PANDEY

LAL BAHADUR SHASTRI GIRLS COLLEGE OF MANAGEMENT, LUCKNOW-226007

1

Page 2: Project Report(Rajni)

Acknowledgement

It gives me immense pleasure in submitting the project report on “Management of Basic

Education Department” for the partial fulfillment of the requirements for the degree of

Bachelor In Computer Applications (BCA).

First of all I wish to express my sincere gratitude to my BCA faculty for giving me the

opportunity to work on this project and for allowing me to work on this project. I am also

thankful to my college, Lal Bahadur Shastri Girls College of Management, its Staff , who

rendered their help during the period of my project work and provided me all privileges. I am

highly grateful to my project guide Mr. Ehtaysham Uddin Khan, for his encouragement,

guidance and valuable suggestions, which I incorporated in my project.

I am also grateful to my husband Mr. Anand Kumar & Mr. Shishir Pandey for helping me in

the project finalization process and showing the confidence in me. Last but not least I wish to

avail myself of this opportunity, express a sense of gratitude and love to my friends and my

beloved parents for their manual support, strength, and help and for everything.

2

Page 3: Project Report(Rajni)

Declaration

I, Rajnee Kumari, hereby declare that this project entitled “Management of Basic Education

Department” and the work described in it is my own work, and are carried out in accordance

with the regulations of the Lucknow University. The work is original except, where indicated by

special references in the text and no part of the project has been submitted for any other degree.

(Rajnee Kumari)

3

Page 4: Project Report(Rajni)

Table of Contents

S.No Topic Page No.

1. Synopsis

Introduction of the Project

Aim & Objectives

Requirement Analysis

Problem Definition

Requirement Specification

Identification of Need

Feasibility Study

Software Engineering Paradigm

Gantt Chart

Pert Chart

Planning & Scheduling

H/W & S/W Requirements

Design

Data Flow Diagram (DFD)

ER Diagram

Flowchart

5-34

2. Database Design 35-42

3. I/O Layouts 43-55

4. Coding 56-100

5. Implementation & Testing 101-107

6. Bibliography 108

4

Page 5: Project Report(Rajni)

Introduction

In this project we are going to automate the work of Basic Education Department (Basic Shiksha Parishad, Allahabad).

This organization manages data about the Teachers:

In our project we are going to keep track about the teachers i.e. their salary as well as the database (full information) about each and every teacher.

This organization manages data about the Schools:

It also includes information about all the recognized and unrecognized schools present in Lucknow & whether these schools are aided i.e. these schools are run by the government or whether the schools are non-aided i.e. private colleges. It also gives recognition to schools on the basis of some predefined set of rules and regulations.

5

Page 6: Project Report(Rajni)

Aim & Objectives

Objectives

Improvement in quality of output Improved Productivity / efficiency Optimal Utilization of Resources Reduction in time taken in execution of activities Reduction in the dependency on human beings Look for simplification of procedures Better customer support Better Information sharing / Transparency Better way of delivery of information to user

at a place convenient to him / her.

Business Needs

The existing system of the department was based on physical registration of teachers & Schools.

This was ineffective as down time was very high because the maintenance of the teacher &

school would be easy after installation of the proposed system. The department wants to

implement an effective software solution to register and maintain the schools the teachers.

 The Challenge Some of the key challenges faced during the course of the project were:

Integration & managing the details of the teachers & schools.

Development of online system which can be used for get all types of information required by

teachers & schools to give an instant support to its customer.

Implementation of Feedback System to give the correct status of the system to the users.

Requirement Analysis

6

Page 7: Project Report(Rajni)

At the heart of system analysis is a detailed understanding of all important facets of business area under investigation. (For this reason, the process of acquiring this is often termed the detailed investigation) Analyst, wirking closely with the employees and managers, must study the business process to answer these key questions:

What is being done?

How is it being done?

How frequent does it occur?

How great is the volume of transaction or decisions?

How well is the task being performed?

Does a problem exist?

If a problem exist, how serious is it?

If a problem exists, what is the underlying cause?

Requirement analysis relies on fact-finding techniques. These include:

Interview

Questionnaires

Record inspection

On-site observation

7

Page 8: Project Report(Rajni)

Problem Definitions

The existing system works manually. The existing system has got lot of intricacies within itself

and need lot of human effort and paper works. All above the data need to be maintained on

ledgers and maintaining this is a tedious and risky process. As the transactions increases, so the

data too. So the task of maintaining them increases exponentially. To view a data may need lot of

paper to be searched.

Some of the negative aspects of the existing system are as follows:

1) Course of action is time consuming. Wherever a need for search arises, the process evolves

search through paper records.

2) Readability of records is constrained. All the records may not be handled or written by the

same person. So the format and style of records differ and hence it is difficult to understand.

3) Paper records are easily damaged in course of time. The life time of paper record is unreliable

less that it easily gets spoiled.

4) Expenditure is high. Manual system needs added man power.

5) Prone to corruption by unauthorized users. Securing of manual system is not fully guaranteed.

Inaccuracy can be expected. Data can get easily scratched.

6) Techniques used are more complicated. Proper techniques are not exposed, so the functioning

is intricate.

8

Page 9: Project Report(Rajni)

Requirements Specification

Software requirement specification (SRS) is the starting point of the software

development activity. Little importance was given to this phase in the early days of

software development. The emphasis was first on coding and then shifted to design.

As systems grew more complex, it became evident that the goals of the entire system

cannot be easily comprehended. Hence the need for the requirement analysis phase arose.

Now, for large software systems, requirements analysis is perhaps the most difficult

activity and also the most error prone.

Some of the difficulty is due to the scope of this phase. The software project is initiated

by the client’s needs. In the beginning these needs are in the minds of various people in

the client organization. The requirement analyst has to identify the requirements by

talking to these people and understanding their needs. In situations where the software is

to automate a currently manual process, most of the needs can be understood by

observing the current practice.

The SRS is a means of translating the ideas in the minds of the clients (the input), into

formal document (the output of the requirements phase). Thus, the output of the phase is

a set of formally specified requirements, which hopefully are complete and consistent,

while the input has none of these properties.

9

Page 10: Project Report(Rajni)

Identification of need

In the world we are growing for globalization day by day with the development in IT

resources and advancement, by using latest technologies every organization wants to beat

its competitors and want to grow. Enterprise Resourceful Planning is the need of today’s

organization. Survival on manual system is difficult so, that’s why organization of the

corporate world wants to computerize their departments. The modules should be

complete database driven and interactive that should provide the proper information

about the Placement and Training Organization.

Success of any system depends up to a large extent on how accurately a problem is

defined, thoroughly investigated and properly carried out to the choice of solution.

Analysis is the only phase in which the requirements for the new system are identified.

System analysis is a detailed study of the various operations performed by a system and

their relationship within and outside of the system. The question is: what must be done to

solve the problem? One aspect of analysis is defining the boundaries of the system and

determining whether or not a candidate system should consider other related system.

During analysis data are collected on the available files, decision points and transactions

handled by the parent system. Data flow diagram, interviews, onsite observations,

questionnaires are used as a logical system model and tools to perform the analysis.

The analyst performed following tasks:

Gathered all facts about the present system from the employees.

Studied strength and weakness of the current system.

Determined “what” must be done to solve the problem.

Prepared a functional specifications document.

In order to reduce the time, there is a need for computerized system that cans retrieve

data, insert data, update existing data or delete existing data. These modules are

10

Page 11: Project Report(Rajni)

developed with the aim of reducing time, reducing manpower, reducing cost so that the

records can be easily maintained. The volume of work and complexity are increasing year

by year. This system reduces complexity and workload.

11

Page 12: Project Report(Rajni)

Feasibility study

A feasibility study is conducted to select the best system that meets performance

requirement. This entails an identification description, an evaluation of candidate system

and the selection of best system for he job. The system required performance is defined

by a statement of constraints, the identification of specific system objective and a

description of outputs.

The key considerations in feasibility analysis are:

1. Technical Feasibility:

2. Operational Feasibility:

3. Economical Feasibility:

Technical Feasibility

It is a measure of the practically of a specific technical solution and the availability of

technical resources and expertise.

The proposed system uses PHP as front-end and MySQL as back-end tool.

MySQL is a popular tool used to design and develop database objects such as

table views, indexes and it is absolutely free.

The above tools are readily available, easy to work with and widely used for

developing commercial application.

Hardware used in this project are- p4 processor 2.8GHz, 1GB RAM, 40 GB hard disk, floppy drive. These hardwares were already available on the existing computer system. The softwares like MySQL, Apache Server, and PHP are capable of working on both LINUX and WINDOWS operating systems. MySQL, Apache Server, and PHP are free of cost, so no additional hardware and software were required to purchase and it is technically feasible. The technical feasibility is in employing computers to the organization. The organization is equipped with enough computers so that it is easier for updating. Hence the organization has no technical difficulty in adding this system.

12

Page 13: Project Report(Rajni)

Tools Used

1) PHP

2) MySQL

3) Apache Server

Duration of Project

Operational Feasibility

The system will be used if it is developed well then be resistance for users that

undetermined

No major training and new skills are required as it is based on DBMS model.

It will help in the time saving and fast processing and dispersal of user request and

applications.

New product will provide all the benefits of present system with better performance.

13

Time Duration

For study 15 days

Designing 20 days

For development 35 days

Testing 15 days

Total time 85 days

Page 14: Project Report(Rajni)

Improved information, better management and collection of the reports.

User support.

User involvement in the building of present system is sought to keep in mind the

user specific requirement and needs.

User will have control over there own information. Important information such as

online resumes can be generated at the click of a button.

Faster and systematic processing of user application approval, allocation of IDs,

payments, etc. used had greater chances of error due to wrong information entered by

mistake.

Economical Feasibility

It looks at the financial aspects of the project. It determines whether the management has

enough resources and budget to invest in the proposed system and the estimated time for

the recovery of cost incurred. It also determines whether it is worth while to invest the

money in the proposed project. Economic feasibility is determines by the means of cost

benefit analysis.The proposed system is economically feasible because the cost involved

in purchasing the hardware and the software are within approach. The personal cost like

salaries of employees hired are also nominal, because working in this system need not

required a highly qualified professional. The operating-environment costs are marginal.

The less time involved also helped in its economical feasibility. It was observed that the

organization has already using computers for other purpose, so that there is no additional

cost to be incurred for adding this system to its computers.

The backend required for storing other details is also the same database that is Sql. The

computers in the organization are highly sophisticated and don’t needs extra components

to load the software. Hence the organization can implement the new system without any

additional expenditure. Hence, it is economically feasible.

14

Page 15: Project Report(Rajni)

Software Cost

Manpower Cost

15

Apache Server : Free

MySQL : Free

PHP : Free

Team cost : 25000/-

System Cost : 40,000/-

Total Cost : 65000/-

Page 16: Project Report(Rajni)

Software Engineering Paradigm

Computer Aided Software Engineering can be as simple as a single tool that support a

specific software engineering activity or as complex as a complete “environment “ that

encompasses tools, a database, people, hardware, a network, operating system, standards,

and myriad other components. Each building block forms a foundation for the next, with

tools sitting as the top of the heap. It is interesting to note that the foundation for effective

CASE environment has relatively little to do for software engineering tools themselves.

Rather, successful environments appropriate hardware and systems software. In addition,

the environment architecture must consider the human work patterns that are applied

during the software engineering process.

The environment composed of the hardware platform and system support (including

networking software, software management, and object management services), the

groundwork for CASE. But the CASE environment itself demands other building blocks.

A set of portability services provides a bridge between CASE tools and their integration

framework and the environment architecture. The integration framework is a collection of

specialized programs that enables individual’s CASE tools to communicate one another,

to create a project database, and to exhibit the same look and feel to the end user (the

software engineer). Portability services allow CASE tools and their integration

framework to migrate across different hardware platforms and operating system with out

significant adaptive maintenance.

The building blocks represent a comprehensive foundation for the integration of CASE

tools. However, most CASE tools in use today have been: constructed using all these

building blocks.

In fact some CASE tools remain “point solution:” That is, a tool is used to assist in a

particular software engineering activity (e.g. analysis modeling) but does not directly

communicate with other tools, is not tied into a project database, is not part of an

16

Page 17: Project Report(Rajni)

integrated CASE environment (l-CASE). Although this situation is not ideal, a CASE

tool can be used quite effectively, even if it is a point solution.

At the low end of the integration spectrum is the individual (point solution) tool. When

individual tools can provide tools provide facilities for data exchange, the integration

level is improved slightly. Such tools produce output in a standard format that should be

compatible with other tools that can read the format. In some cases, the builder of

complementary CASE tools work together to form a bridge between the tools (e.g. an

analysis and design tool that is coupled with a code generator). Using this approach, the

team developed, synergy between the tools separately. Single source integration occurs

when a single CASE tools vendor integrates a number of different tools and sells them as

a package.

Although this approach is quite effective, the closed architecture of most single source

environments precludes easy addition from other vendors.

17

Page 18: Project Report(Rajni)

Planning and Scheduling

S. No. Planning and Scheduling Days1 Preparation and Management 15

Site specification development (needs analysis/content planning/site structure design) 5Administration (preparation of contract/estimate, digital and paper file management, tracking hours, invoicing) 5

Meetings, phone calls, email correspondence with client 5

2 Page Template Design 25

Creation of page prototype(s) in graphics program 6

Creation of logo or work on existing logo 2

Creation of graphics (masthead, buttons, photo montages) 5

1. Developing color scheme and page layout 6

2. Receiving/discussing feedback 6

3 Individual Page Construction 40Organizing and managing gathering of content from client, including specifying target keywords/keyphrases for SEs 2

Design of home page 3Preparation of photos and other client graphics (receive, sort, re-name, and file, crop, size, optimize) 3

Researching/locating of images, preparing 4

Text content development/editing/proofreading 3Design of 1 typical sub-page ( consider complexity– graphics/columns/charts/text boxes) 6

Remaining number of sub-pages 12Forms (consider number of fields, validation, scripts for processing data, testing/troubleshooting) 7

4 Server-Side Application Building 55

Specification development for dynamic applications 5

Designing and building databases 10

S. No. Planning and Scheduling Days

18

Page 19: Project Report(Rajni)

Designing and coding dynamic applications 20

Building admin sections 10

Combining code with HTML page templates 5

Testing, troubleshooting and finalizing data-driven pages 15

5 Completion and Wrap-Up 5

Final additions, corrections and edits 1Domain registration/DNS changes/hosting arrangements, setup of client email addresses 1

Uploading, testing and finalizing completed site 1

Submit site to search engines/directories 1Other (anything not yet included – secondary page designs, complex menus, scripts etc.) 1

Start Date 23rd Nov 2012

End Date 25th Mar 2013

19

Page 20: Project Report(Rajni)

Gantt chart

The Gantt chart represents the scheduling of task when creating this project. Gantt chart (developed by Henry L. Gantt) are project control techniques that can be used for several purpose, including scheduling, budgeting and resource planning. A Gantt chart is a bar chart, with each bar represent an activity. The bars are drawn against a time line. The length of each bar is proportional to the length of time planed for the activity.

We estimated the no. of weeks required for each as follows:

Analysis 1 Week

Design 1 Week

Coding 6 Weeks

Testing 1 Week

Implementation 1 Week

Advantages and limitations : Gantt charts have become a common technique for representing the phases and activities of a project work breakdown structure (WBS), so they can be understood by a wide audience.A common error made by those who equate Gantt chart design with project design is that they attempt to define the project work breakdown structure at the same time that they define schedule activities. This practice makes it very difficult to follow the 100% Rule. Instead the WBS should be fully defined to follow the 100% Rule, then the project schedule can be designed.Although a Gantt chart is useful and valuable for small projects that fit on a single sheet or screen, they can become quite unwieldy for projects with more than about 30 activities. Larger Gantt charts may not be suitable for most computer displays. A related criticism is that Gantt charts communicate relatively little information per unit area of display. That is, projects are often considerably more complex than can be communicated effectively with a Gantt chart.

20

JAN TO MAR

Page 21: Project Report(Rajni)

S-Survey & collection information

A-Analysis

DDB-Design data base

Design GUI Part

Form coding

Integrate & Testing

Pert Chart21

S&A

DDB

DESIGN GUI PART

FORM CODING

INTE-GRATE & TESTI-NG

1Week

1Week 6Weeks

1Week 1Week

Page 22: Project Report(Rajni)

Activity Procedure Duration(in weeks)

A Analysis -- 1B Design A 1C Coding B 6D Testing C 1E Implementation D 1

METHODOLOGY ADOPTEDModular approach is used for developing the proposed system. A system is considered

modular if it consists of discrete components so that each component can be implemented

separately and a change to one component can be implemented separately and a change

to one component has a minimal impact on other component. Every system is a

hierarchy of components.

This system is not exception to design, in such there are two approaches:

1) Top Down

2) Bottom Up

Both approaches have some merits and a demerit, for this system Top down approach

is used.

22

Page 23: Project Report(Rajni)

It starts by identifying the major component of the system, decomposing them

into their lower level components and iterating until the derived level components and

iterating unit of the derived level of the detail is achieved. Top-down design method often

result in some from of stepwise refinement starting from an abstract design, in each step

the design is refined to more concert level we reached a level where no more refinement

is needed and the design can be implemented directly.

A Bottom-Up-Approach starts with designing the most basic or primitive

components and proceeds to hire level components that use the lower level components.

Requirement of user is most important factor associated with any software and for that

purpose prototyping model is used.

Prototyping has certain advantage like we don’t have to freeze the user requirement

before any design and coding can proceed, instead a throw away prototype obviously

undergoes design coding and testing but not done very formally or thoroughly. By using

this prototype the client can get an “actual feel” of the system since the interaction with

the prototype can enable the client to better understand the requirement of the desired

system. Because the desired system is complicate and large and there is no existing

system (computerized), prototype is an attractive idea. It is also an effective method of

demonstrating the feasibility of the certain approach

23

Page 24: Project Report(Rajni)

Hardware and Software Requirements

The following are the minimum Hardware and Software requirements to run the proposed system.

Server-Side Hardware Requirements

Processor

Minimum:IntelPentium IV2.8GHz or above

For Better Functionality: Intel Core 2 Duo

RAM

Minimum: 1 GB

For Better Functionality:2 GB

Other Essentials

FDD/CDD Hardware

Server-Side Software Requirements

Operating System

Windows 98 and above / Linux

Software for System

Front End: Visual Studio 2008(C#.net)

Back End: Sql Server 2005

Server

IIS

24

Page 25: Project Report(Rajni)

Client-Side Hardware Requirements

Processor

IntelPentium III (500MHz or above)

RAM

128 MB or above

Other Essentials

FDD/CDD Hardware

Compatible keyboard / mouse / monitor

Printer

Any

Client-Side Software Requirements

Operating System

Windows 98 and above / Linux

Software for System

Any GUI web browser

25

Page 26: Project Report(Rajni)

Conceptual Models

26

Page 27: Project Report(Rajni)

Data Flow Diagrams

Data Flow Diagramming is a means of representing a system at any level of detail with a graphic network of symbols showing data flows, data stores, data processes, and data sources/destination.

The data flow diagram is analogous to a road map. It is a network model of all possibilities with different detail shown on different hierarchical levels. This processes of representing different details level is called “leveling” or “partitioning” by some data flow diagram advocates. Like a road map, there is no starting point or stop point, no time or timing, or steps to get somewhere. We just know that the data path must exist because at some point it will be needed. A road map shows all existing or planned roads because the road is needed.

Details that is not shown on the different levels of the data flow diagram such as volumes, timing, frequency, etc. is shown on supplementary diagrams or in the data dictionary. For example, data store contents may be shown in the data dictionary.

Data Flow Diagram (DFD) uses a number of symbols to represent the systems. Data Flow Diagram also known as ‘Bubble Chart’ is used to clarify system requirements and identifying the major transformations that will become programs in system design. So it is the starting point of the design phase that functionally decomposes the requirements specifications down to the level of details.

Terms used in DFD

Process

A process transforms data values. The lowest level processes are pure functions without

side effects. An entire data flow graphics high level process.

27

Graphical Representation:

Page 28: Project Report(Rajni)

Data Flow

A data flow connects the output of an object or process to input of another object or

process. It represents the intermediate data value within a computation. It is represented

by an arrow and labeled with a description of data, usually its name or type.

Actors

An actor is active object that drives the data flow graph by producing or consuming

values.

Data Store

A data store is a passive object with in a data flow diagram that stores data for later

access.

External Entity

A rectangle represents an external entity such as a librarian,

a library member.

28

Graphical Representation:

Graphical Representation:

Graphical Representation:

Page 29: Project Report(Rajni)

Output Symbol

This box represented data production during human computer interaction.

29

Graphical Representation:

Page 30: Project Report(Rajni)

Management Of Basic Education Department - Context Diagram (Level 0 DFD)

Online Job Information System – Level 1 DFD

30

Page 31: Project Report(Rajni)

31

Page 32: Project Report(Rajni)

ER Diagram for Management of basic Education Department

32

Page 33: Project Report(Rajni)

Teacher’s Flowchart

Student Flowchart33

Page 34: Project Report(Rajni)

34

Page 35: Project Report(Rajni)

System Design

35

Page 36: Project Report(Rajni)

Database Design

This part of the Design consists of the overall database schema or we can say that tables which consists various types of records. Table of a database consists attributes, entities, tuples for storing and manipulating records.

All the entities and attributes of the project have not been shown here. Only the important entities and attributes are shown which will help you understand the working of project.

Following are the important entities and important attributes of respective entities that will be used in the project:

Entity 1: admin_Login

admin_login

user_name varchar(50)password varchar(50)security_ques varchar(MAX)security_ans varchar(MAX)

Column Name Data Type Allow Nulls

Entity 2: district_Login

dist_login

user_name varchar(50)password varchar(50)district varchar(50)

Column Name Data Type Allow Nulls

36

Page 37: Project Report(Rajni)

Entity3: district

district

district_code varchar(50)district_name varchar(50)region varchar(50)

Column Name Data Type Allow Nulls

Entity 4: feedback

feedback

name varchar(50)address varchar(MAX)city varchar(50)state varchar(50)zip_pin numeric(18, 0)phone_num numeric(18, 0)country varchar(50)[e-mail] varchar(50)comments varchar(MAX)

Column Name Data Type Allow Nulls

Entity 5: region

37

Page 38: Project Report(Rajni)

region

region_id varchar(50)region varchar(50)

Column Name Data Type Allow Nulls

Entity 6: registration

registration

reg_id varchar(50)first_name varchar(50)middle_name varchar(50)last_name varchar(50)gender varchar(50)user_name varchar(50)password varchar(50)confirm_password varchar(50)[e-mail] varchar(50)official_address varchar(MAX)contact_num varchar(50)security_ques varchar(MAX)security_ans varchar(MAX)region varchar(50)district varchar(50)pincode varchar(50)image image

Column Name Data Type Allow Nulls

Entity 7: scholarship

38

Page 39: Project Report(Rajni)

scholarship

scholarship_name varchar(50)amount varchar(50)category varchar(50)other_details varchar(MAX)

Column Name Data Type Allow Nulls

Entity 8: school

school

recognition_id varchar(50)region varchar(50)district varchar(50)name_of_school varchar(MAX)address varchar(MAX)telephone_number varchar(50)mobile_number varchar(50)type1 varchar(50)type2 varchar(50)type3 varchar(50)property varchar(50)upgradation varchar(MAX)

Column Name Data Type Allow Nulls

Entity 9: student

39

Page 40: Project Report(Rajni)

student

sr_num varchar(50)first_name varchar(50)middle_name varchar(50)last_name varchar(50)gender varchar(50)date_of_birth varchar(50)father_name varchar(MAX)mother_name varchar(MAX)address varchar(MAX)current_school varchar(MAX)class varchar(50)region varchar(50)district varchar(50)last_school varchar(MAX)type_of_scholarship varchar(50)image varchar(50)

Column Name Data Type Allow Nulls

Entity 10: teacher

40

Page 41: Project Report(Rajni)

teacher

tec_id varchar(50)first_name varchar(50)last_name varchar(50)gender varchar(50)marital_status varchar(50)father_name_husband_n... varchar(MAX)date_of_birth datetimeaddress varchar(MAX)contact varchar(50)high_school_per varchar(50)inter_per varchar(50)grad_in varchar(MAX)grad_per varchar(50)pg_in varchar(MAX)pg_per varchar(MAX)other_qualification varchar(50)other_qualification1 varchar(50)date_appointment datetimepresent_designation varchar(MAX)present_school varchar(MAX)region varchar(50)district varchar(50)image varchar(50)

Column Name Data Type Allow Nulls

41

Page 42: Project Report(Rajni)

Entity 11: transfer

transfer

name varchar(MAX)transfer_from varchar(50)initial_office varchar(50)transfer_to varchar(50)final_office varchar(50)

Column Name Data Type Allow Nulls

42

Page 43: Project Report(Rajni)

I/O Form Layout

Home Page

43

Page 44: Project Report(Rajni)

DEO registration form

44

Page 45: Project Report(Rajni)

Admin Login Form

45

Page 46: Project Report(Rajni)

DEO Login FormHome   |   Feedback  Login

Transfer List

Online Recognition

List Of Holidays

Download Font

Links

List Of Districts

46

Page 47: Project Report(Rajni)

REGION FORM

47

Page 48: Project Report(Rajni)

DISTRICT FORM

48

Page 49: Project Report(Rajni)

49

Page 50: Project Report(Rajni)

School Form

Student Form50

Page 51: Project Report(Rajni)

Teacher’s Form

51

Page 52: Project Report(Rajni)

52

Page 53: Project Report(Rajni)

Transfer Form

53

Page 54: Project Report(Rajni)

List Of holiday Form

54

Page 55: Project Report(Rajni)

Feedback Form

55

Page 56: Project Report(Rajni)

Coding

Admin login

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><!-- InstanceBegin template="/Templates/aboutus.dwt" codeOutsideHTMLIsLocked="false" -->

<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><!-- InstanceBeginEditable name="doctitle" --><title>::Login ::</title><script language="javascript" type="text/javascript" src="feedback_validation.js"></script><!-- InstanceEndEditable --><link href="style.css" rel="stylesheet" type="text/css"><link rel="stylesheet" type="text/css" href="dropdown.css"><script language="javascript" type="text/javascript" src="dropdown.js"></script><!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <style type="text/css"> .style2 { width: 100%; } .style3 { } .style4 { width: 351px; } </style></head>

<body> <form id="form1" runat="server"><div id="wrap"><div id="inner-wrap"><div id="logo"> </div><div id="menuTop"><a href="index.aspx">Home</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="feedback.aspx">Feedback</a>&nbsp;&nbsp; |&nbsp;<a href="message.aspx"> Message</a>&nbsp;&nbsp;</div><div id="menu"> </div><div id="contntara">

<div id="lftpnl"><div id="lftLnk">

56

Page 57: Project Report(Rajni)

<ul><li><a href="login.aspx">Login</a></li><li><a href="softwarelogin.aspx">Software Login</a></li><li><a href="T_list.aspx">Transfer List</a></li><li><a href="online_recg.aspx">Online Recognition</a></li><li><a href="h_list.aspx">List Of Holidays</a></li><li><a href="font.aspx">Download Font</a></li><li><a href="links.aspx">Links</a></li><li><a href="districts.aspx">List Of Districts</a></li></a></li> </ul> </div> </div>

<div id="rightpnl"><div id="bannerimg"><!-- InstanceBeginEditable name="banner" --

><img src="images/login.jpg" width="723" height="162"><!-- InstanceEndEditable --></div><div id="wlcmmn">

<div id="wlcm1"></div><div id="wlcm2"><!-- InstanceBeginEditable

name="welcomearea" -->Login <!-- InstanceEndEditable --></div <div id="wlcm3"></div>

</div><!-- InstanceBeginEditable name="contentarea" --><div style="float:left;height:450px"<div id="cntnt"><div align="center"> <table class="style2" align="left" style="background-color:

#FFFFFF"> <tr> <td class="style4" align="right"> &nbsp;</td> <td align="left"> &nbsp;</td> </tr> <tr> <td class="style4" align="right"> <asp:Label ID="Label1" runat="server" Text="User Name"></asp:Label> </td> <td align="left"> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> </td> </tr> <tr> <td class="style4" align="right"> &nbsp;</td> <td align="left"> &nbsp;</td> </tr> <tr> <td class="style4" align="right"> <asp:Label ID="Label2" runat="server" Text="Password"></asp:Label> </td> <td align="left"> <asp:TextBox ID="TextBox2" runat="server" TextMode="Password"></asp:TextBox> </td> </tr>

57

Page 58: Project Report(Rajni)

<tr> <td class="style4" align="right"> &nbsp;</td> <td align="left"> &nbsp;</td> </tr> <tr> <td class="style4"> &nbsp;</td> <td align="justify"> <asp:Label ID="Label3" runat="server" Font-Bold="True" ForeColor="Maroon"></asp:Label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td> </tr> <tr> <td class="style4"> &nbsp;</td> <td align="justify"> &nbsp;</td> </tr> <tr> <td class="style3" colspan="2" align="center"> <asp:Button ID="btn_login" runat="server" onclick="Button1_Click" Text="LOGIN" /> </td> </tr> <tr> <td class="style3" colspan="2" align="center"> &nbsp;</td> </tr> <tr> <td class="style3" colspan="2" align="center"> <asp:Button ID="Button2" runat="server" Text="Forgot Password ??" /> </td> </tr> <tr> <td class="style3" colspan="2" align="center"> &nbsp;</td> </tr> </table>

</div></div> <div id="footer">© :उत्तर प्रदेश बेसिक सिशक्षा परिरषद ्, इलाहाबाद (अनुदानिनत):

| ">Disclaimer</a> | <a href="http://webmail.knit.ac.in/" target="_blank">Webmail</a> <br/></div>

</div></div> </form></body><!-- InstanceEnd --></html>

58

Page 59: Project Report(Rajni)

Language Codingusing 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 login : System.Web.UI.Page{ SqlConnection cn; SqlCommand cmd; SqlDataReader rd; bool Find; protected void Page_Load(object sender, EventArgs e) { cn = new SqlConnection("Data Source=.\\sqlexpress;Initial Catalog=mbed;Integrated Security=True"); cn.Open(); } protected void Button1_Click(object sender, EventArgs e) { string qry = "select user_name,password from admin_login where user_name='" + TextBox1.Text + "' and password='" + TextBox2.Text + "'"; cmd = new SqlCommand(qry, cn); rd = cmd.ExecuteReader(); if (rd.Read()) { Find = true; } else { Find = false; } rd.Close(); cn.Close(); if (Find == true) { Response.Redirect("Admin.aspx");

} else

59

Page 60: Project Report(Rajni)

Label3.Text = "*user is not registered"; }}

60

Page 61: Project Report(Rajni)

DEO Login

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="softwarelogin.aspx.cs" Inherits="softwarelogin" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html><!-- InstanceBegin template="/Templates/aboutus.dwt" codeOutsideHTMLIsLocked="false" -->

<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><!-- InstanceBeginEditable name="doctitle" --><title>::Software Login ::</title><script language="javascript" type="text/javascript" src="feedback_validation.js"></script><!-- InstanceEndEditable --><link href="style.css" rel="stylesheet" type="text/css"><link rel="stylesheet" type="text/css" href="dropdown.css"><script language="javascript" type="text/javascript" src="dropdown.js"></script><!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <style type="text/css"> .style1 { width: 100%; } .style2 { } .style3 { } .style4 { width: 356px; } </style></head>

<body> <form id="form1" runat="server"><div id="wrap"><div id="inner-wrap"><div id="logo"> </div><div id="menuTop"><a href="index.aspx">Home</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="feedback.aspx">Feedback</a>&nbsp;&nbsp; |&nbsp;<a href="message.aspx"> Message</a>&nbsp;&nbsp;</div><div id="menu"><dl class="dropdown">

61

Page 62: Project Report(Rajni)

</ul></dd></dl>

<dl class="dropdown"><dt><a href="about_us.aspx">About Us</a></dt></dl><dl class="dropdown"><dt><a href="scholarship.aspx">Scholarship</a></dt></dl><dl class="dropdown"><dt><a href="recuritment.aspx">Recruitment</a></dt></dl><dl class="dropdown"><dt><a href="niamawali.aspx">Niamawali</a></dt></dl><dl class="dropdown"><dt><a href="contact_us.aspx">Contact Us</a></dt></dl><!--<ul><li><a href="#">Institute</a></li><li><a href="#"> Academics</a></li><li><a href="#">Students</a></li><li><a href="#">Placement</a></li><li><a href="#">Alumni</a></li><li><a href="#">FAQ</a></li><li><a href="#">Tender</a></li><li><a href="#">RTI </a></li><li><a href="#">Result</a></li></ul>--> </div><div id="contntara">

<div id="lftpnl"><div id="lftLnk">

<ul><li><a href="login.aspx">Login</a></li><li><a href="softwarelogin.aspx">Software Login</a></li><li><a href="T_list.aspx">Transfer List</a></li><li><a href="online_recg.aspx">Online Recognition</a></li><li><a href="h_list.aspx">List Of Holidays</a></li><li><a href="font.aspx">Download Font</a></li><li><a href="links.aspx">Links</a></li><li><a href="districts.aspx">List Of Districts</a></li> </ul> </div> </div>

<div id="rightpnl"><div id="bannerimg"><!-- InstanceBeginEditable name="banner" --

><img src="images/login.jpg" width="723" height="162"><!-- InstanceEndEditable --></div><div id="wlcmmn">

<div id="wlcm1"></div><div id="wlcm2"><!-- InstanceBeginEditable

name="welcomearea" -->Software Login <!-- InstanceEndEditable --></div><div id="wlcm3"></div>

</div><!-- InstanceBeginEditable name="contentarea" --><div style="float:left;height:450px;"<div id="cntnt">

<table align="right" class="style1"> <tr> <td align="right" class="style4"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td align="right" class="style4"> <asp:Label ID="Label3" runat="server" Text="Select District:"></asp:Label>

62

Page 63: Project Report(Rajni)

</td> <td> <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged"> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Mandatory field!!" Font-Bold="True" ControlToValidate="DropDownList1"></asp:RequiredFieldValidator> </td> </tr> <tr> <td align="right" class="style4"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td align="right" class="style4"> <asp:Label ID="Label1" runat="server" Text="User Name:"></asp:Label> </td> <td> <asp:TextBox ID="TextBox1" runat="server" ontextchanged="TextBox1_TextChanged"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Mandatory field!!" Font-Bold="True" ControlToValidate="TextBox1"></asp:RequiredFieldValidator> </td> </tr> <tr> <td align="right" class="style4"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td align="right" class="style4"> <asp:Label ID="Label2" runat="server" Text="Password:"></asp:Label> </td> <td> <asp:TextBox ID="TextBox2" runat="server" TextMode="Password"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Mandatory field!!" Font-Bold="True" ControlToValidate="TextBox2"></asp:RequiredFieldValidator> </td> </tr> <tr> <td align="right" class="style4"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td align="center" class="style3" colspan="2"> <asp:Label ID="Label6" runat="server" Font-Bold="True" ForeColor="Maroon"></asp:Label> </td>

63

Page 64: Project Report(Rajni)

</tr> <tr> <td align="center" class="style3" colspan="2"> &nbsp;</td> </tr> <tr> <td align="center" class="style2" colspan="2"> <asp:Button ID="btn_login" runat="server" onclick="btn_login_Click" Text="LOGIN" /> </td> </tr> <tr> <td align="center" class="style2" colspan="2"> &nbsp;</td> </tr> <tr> <td align="center" class="style2" colspan="2"> <asp:Button ID="btn_forgot" runat="server" Text="FORGOT PASSWORD???" onclick="btn_forgot_Click" /> </td> </tr> </table>

</div></div><div id="footer">&copy; :उत्तर प्रदेश बेसिक सिशक्षा परिरषद ्, इलाहाबाद (अनुदानिनत): | <a href="disclaimer.htm">Disclaimer</a> | <a href="#" target="_blank">Webmail</a> <br/></div>

</div></div> </form></body><!-- InstanceEnd --></html>

Language Coding

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;

64

Page 65: Project Report(Rajni)

using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.SqlClient;

public partial class softwarelogin : System.Web.UI.Page{ SqlConnection cn; SqlCommand cmd; SqlDataReader rd; bool Find; protected void Page_Load(object sender, EventArgs e) { cn = new SqlConnection("Data Source=.\\sqlexpress;Initial Catalog=mbed;Integrated Security=True"); cn.Open(); string query = "SELECT * FROM district"; cmd = new SqlCommand(query, cn); rd = cmd.ExecuteReader(); while (rd.Read()) { DropDownList1.Items.Add(rd[1].ToString()); } rd.Close(); } protected void btn_login_Click(object sender, EventArgs e) { string qry = "select district,user_name,password from dist_login where district='" + DropDownList1.Text + "' and user_name='" + TextBox1.Text + "' and password='" + TextBox2.Text + "'"; cmd = new SqlCommand(qry, cn); rd = cmd.ExecuteReader(); if (rd.Read()) { Find = true; } else { Find = false; } rd.Close(); cn.Close(); if (Find == true) { Session["swuser"] = "deo"; Session["deodistrict"] = DropDownList1.SelectedValue; Response.Redirect("deo_admin.aspx");

} else Label6.Text = "*user is not registered"; } protected void btn_forgot_Click(object sender, EventArgs e) { Response.Redirect("password_recovery.aspx"); } protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) {

65

Page 66: Project Report(Rajni)

} protected void TextBox1_TextChanged(object sender, EventArgs e) {

}}

66

Page 67: Project Report(Rajni)

School Form

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="school_form.aspx.cs" Inherits="school_form" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><!-- InstanceBegin template="/Templates/aboutus.dwt" codeOutsideHTMLIsLocked="false" -->

<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><!-- InstanceBeginEditable name="doctitle" --><title>::entry page ::</title><script language="javascript" type="text/javascript" src="feedback_validation.js"></script><!-- InstanceEndEditable --><link href="style.css" rel="stylesheet" type="text/css"><link rel="stylesheet" type="text/css" href="dropdown.css"><script language="javascript" type="text/javascript" src="dropdown.js"></script><!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <style type="text/css"> .style1 { width: 100%; } .style2 { width: 294px; } .style3 { } .style4 { width: 188px; } </style></head>

<body> <form id="form1" runat="server"><div id="wrap"><div id="inner-wrap"><div id="logo"></div><div id="menuTop"><a href="index.aspx">Home</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="feedback.aspx">Feedback</a>&nbsp;&nbsp; |&nbsp;<a href="message.aspx"> Message</a>&nbsp;&nbsp;</div><div id="menu"><dl class="dropdown"> </ul></dd></dl>

67

Page 68: Project Report(Rajni)

<dl class="dropdown"><dt><a href="teacher_form.aspx">Teacher&#39;s Info</a></dt></dl><dl class="dropdown"><dt><a href="school_form.aspx"> School&#39;s Info</a></dt></dl><dl class="dropdown"><dt><a href="student_form.aspx">Student&#39;s Info</a></dt></dl><dl class="dropdown"><dt><a href="index.aspx">Logout</a></dt></dl><div id="google_translate_element"> </div> <div id="contntara">

<div id="rightpnl">

<div id="wlcmmn"><div id="wlcm1"></div><div id="wlcm2"><!-- InstanceBeginEditable

name="welcomearea" -->School&#39;s Information <!-- InstanceEndEditable --></div>

<div id="wlcm3"></div></div><!-- InstanceBeginEditable name="contentarea" --><div id="cntnt"> <div class="text_normal" id="txt_area">

<div style="float:left; width:709px;"> <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0"> <asp:View ID="View1" runat="server"> <table class="style1"> <tr> <td class="style4"> &nbsp;</td> <td colspan="2"> &nbsp;</td> </tr> <tr> <td class="style4"> <asp:Label ID="Label1" runat="server" Text="Recognition ID"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_recgid" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="txt_recgid"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style4"> <asp:Label ID="Label3" runat="server" Text="Region"></asp:Label> </td> <td colspan="2"> <asp:DropDownList ID="DropDownList_region" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList_region_SelectedIndexChanged"> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True"

68

Page 69: Project Report(Rajni)

ControlToValidate="DropDownList_region"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style4"> <asp:Label ID="Label2" runat="server" Text="District"></asp:Label> </td> <td colspan="2"> <asp:DropDownList ID="dropdownlist_district" runat="server" AutoPostBack="True"> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="dropdownlist_district"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style4"> <asp:Label ID="Label4" runat="server" Text="Name Of School"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_schoolname" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txt_schoolname" ErrorMessage="This field can not be left blank !!" Font-Bold="True"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style4"> <asp:Label ID="Label5" runat="server" Text="Address"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_address" runat="server"></asp:TextBox> </td> </tr> <tr> <td class="style4"> <asp:Label ID="Label6" runat="server" Text="Telephone Number"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_tele" runat="server" ontextchanged="txt_tele_TextChanged"></asp:TextBox> </td> </tr> <tr> <td class="style4"> <asp:Label ID="Label7" runat="server" Text="Mobile Number"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_mobile" runat="server"></asp:TextBox> </td> </tr> <tr> <td class="style4"> <asp:Label ID="Label8" runat="server" Text="Type 1"></asp:Label> </td>

69

Page 70: Project Report(Rajni)

<td colspan="2"> <asp:DropDownList ID="DropDownList_type1" runat="server"> <asp:ListItem>Select</asp:ListItem> <asp:ListItem>Rural</asp:ListItem> <asp:ListItem>Urban</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="DropDownList_type1"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style4"> <asp:Label ID="Label9" runat="server" Text="Type 2"></asp:Label> </td> <td colspan="2"> <asp:DropDownList ID="DropDownList_type2" runat="server"> <asp:ListItem>Select</asp:ListItem> <asp:ListItem>Primary</asp:ListItem> <asp:ListItem>Upper Primary</asp:ListItem> <asp:ListItem></asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="DropDownList_type2" ErrorMessage="This field can not be left blank !!" Font-Bold="True"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style4"> <asp:Label ID="Label10" runat="server" Text="Type 3"></asp:Label> </td> <td colspan="2"> <asp:DropDownList ID="DropDownList_type3" runat="server"> <asp:ListItem>Select</asp:ListItem> <asp:ListItem>8th</asp:ListItem> <asp:ListItem>10th</asp:ListItem> <asp:ListItem>12th</asp:ListItem> </asp:DropDownList> </td> </tr> <tr> <td class="style4"> <asp:Label ID="Label11" runat="server" Text="Property"></asp:Label> </td> <td colspan="2"> <asp:DropDownList ID="DropDownList_property" runat="server"> <asp:ListItem>Select</asp:ListItem> <asp:ListItem>Rent</asp:ListItem> <asp:ListItem>Owned</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="DropDownList_property"></asp:RequiredFieldValidator> </td> </tr>

70

Page 71: Project Report(Rajni)

<tr> <td class="style4"> <asp:Label ID="Label12" runat="server" Text="Upgradation"></asp:Label> </td> <td class="style3" colspan="2"> <asp:DropDownList ID="DropDownList_upgrade" runat="server"> <asp:ListItem>Select</asp:ListItem> <asp:ListItem>Yes </asp:ListItem> <asp:ListItem>No</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="DropDownList_upgrade" ErrorMessage="This field can not be left blank !!" Font-Bold="True"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style4"> &nbsp;</td> <td class="style3" colspan="2"> &nbsp;</td> </tr> <tr> <td class="style4"> <asp:Button ID="btn_submit1" runat="server" onclick="btn_submit1_Click" Text="SUBMIT" /> </td> <td> <asp:Button ID="btn_preview" runat="server" onclick="btn_preview_Click" Text="PREVIEW" /> </td> <td> <asp:Button ID="Button1" runat="server" CausesValidation="false" OnClick="Button1_Click" OnClientClick="javascript:window.print();return false;" Text="Print" UseSubmitBehavior="false" /> </td> </tr> </table> </asp:View> <asp:View ID="View2" runat="server"> <table class="style1"> <tr> <td class="style2"> <asp:Label ID="Label13" runat="server" Text="Recognition ID"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_recgid" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="Label15" runat="server" Text="Region"></asp:Label> </td> <td colspan="2">

71

Page 72: Project Report(Rajni)

<asp:Label ID="lbl_region" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="Label14" runat="server" Text="District"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_district" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="Label16" runat="server" Text="Name Of School"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_schoolname" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="Label17" runat="server" Text="Address"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_address" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="Label18" runat="server" Text="Telephone Number"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_tele" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="Label19" runat="server" Text="Mobile Number"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_mobile" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="Label20" runat="server" Text="Type 1"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_type1" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="Label21" runat="server" Text="Type 2"></asp:Label> </td> <td colspan="2">

72

Page 73: Project Report(Rajni)

<asp:Label ID="lbl_type2" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="Label22" runat="server" Text="Type 3"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_type3" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="Label23" runat="server" Text="Property"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_property" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="Label24" runat="server" Text="Upgradation"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_upgrade" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> &nbsp;</td> <td colspan="2"> &nbsp;</td> </tr> <tr> <td> <asp:Button ID="btn_modify" runat="server" onclick="btn_modify_Click" Text="MODIFY" /> </td> <td> <asp:Button ID="btn_submit2" runat="server" onclick="btn_submit2_Click" Text="SUBMIT" /> </td> <td> <asp:Button ID="Button2" runat="server" CausesValidation="false" OnClick="Button2_Click" OnClientClick="javascript:window.print();return false;" Text="Print" UseSubmitBehavior="false" /> </td> </tr> </table> </asp:View> </asp:MultiView> </div> <br>

73

Page 74: Project Report(Rajni)

</div></div><!-- InstanceEndEditable --></div>

</div><div id="footer">© :उत्तर प्रदेश बेसिक सिशक्षा परिरषद ्, इलाहाबाद (अनुदानिनत): | <a href="disclaimer.aspx"> Disclaimer</a> | <a href="http://webmail.knit.ac.in/" target="_blank">Webmail</a> <br/></div>

</div></div> </form></body><!-- InstanceEnd --></html>

Language Coding

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 school_form : System.Web.UI.Page{ SqlConnection cn; SqlCommand cmd; SqlDataReader rd; protected void Page_Load(object sender, EventArgs e) { cn = new SqlConnection("Data Source=.\\sqlexpress;Initial Catalog=mbed;Integrated Security=True"); cn.Open(); String query = "SELECT * FROM region"; cmd = new SqlCommand(query, cn); rd = cmd.ExecuteReader(); while (rd.Read()) { DropDownList_region.Items.Add(rd[1].ToString()); } rd.Close(); cn.Close(); }

74

Page 75: Project Report(Rajni)

protected void btn_preview_Click(object sender, EventArgs e) { this.lbl_recgid.Text = this.txt_recgid.Text; this.lbl_district.Text = this.dropdownlist_district.SelectedValue.ToString(); this.lbl_region.Text = this.DropDownList_region.SelectedValue.ToString(); this.lbl_schoolname.Text = this.txt_schoolname.Text; this.lbl_address.Text = this.txt_address.Text; this.lbl_tele.Text = this.txt_tele.Text; this.lbl_mobile.Text = this.txt_mobile.Text; this.lbl_type1.Text = this.DropDownList_type1.SelectedValue.ToString(); this.lbl_type2.Text = this.DropDownList_type2.SelectedValue.ToString(); this.lbl_type3.Text = this.DropDownList_type3.SelectedValue.ToString(); this.lbl_property.Text = this.DropDownList_property.SelectedValue.ToString(); this.lbl_upgrade.Text = this.DropDownList_upgrade.SelectedValue.ToString(); MultiView1.ActiveViewIndex = 1;

} protected void btn_modify_Click(object sender, EventArgs e) { MultiView1.ActiveViewIndex = 0;

} protected void btn_submit1_Click(object sender, EventArgs e) { String qry = "insert into school values('" + txt_recgid.Text + "','" + dropdownlist_district.Text + "','" + DropDownList_region.Text + "','" + txt_schoolname.Text + "','" + txt_address.Text + "','" + txt_tele.Text + "','" + txt_mobile.Text + "','" + DropDownList_type1.Text + "','" + DropDownList_type2.Text + "','" + DropDownList_type3.Text + "','" + DropDownList_property.Text + "','" + DropDownList_upgrade.Text + "')"; cmd = new SqlCommand(qry, cn); cmd.ExecuteNonQuery(); Response.Redirect("school_form.aspx");

} protected void btn_submit2_Click(object sender, EventArgs e) { String qry = "insert into school values('" + txt_recgid.Text + "','" + dropdownlist_district.Text + "','" + DropDownList_region.Text + "','" + txt_schoolname.Text + "','" + txt_address.Text + "','" + txt_tele.Text + "','" + txt_mobile.Text + "','" + DropDownList_type1.Text + "','" + DropDownList_type2.Text + "','" + DropDownList_type3.Text + "','" + DropDownList_property.Text + "','" + DropDownList_upgrade.Text + "')"; cmd = new SqlCommand(qry, cn); cmd.ExecuteNonQuery(); Response.Redirect("school_form.aspx");

} protected void DropDownList_region_SelectedIndexChanged(object sender, EventArgs e) { dropdownlist_district.Items.Clear(); SqlConnection cn = new SqlConnection("Data Source=.\\sqlexpress;Initial Catalog=mbed;Integrated Security=True"); cn.Open(); String query = "SELECT * from district where region='" + DropDownList_region.SelectedValue + "'"; SqlCommand cmd = new SqlCommand(query, cn);

75

Page 76: Project Report(Rajni)

SqlDataReader rd = cmd.ExecuteReader();

while (rd.Read()) { dropdownlist_district.Items.Add(rd[1].ToString()); } rd.Close(); cn.Close(); } protected void txt_tele_TextChanged(object sender, EventArgs e) {

} protected void Button1_Click(object sender, EventArgs e) {

} protected void Button2_Click(object sender, EventArgs e) {

}}

76

Page 77: Project Report(Rajni)

Student Form

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="student_form.aspx.cs" Inherits="student_form" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><!-- InstanceBegin template="/Templates/aboutus.dwt" codeOutsideHTMLIsLocked="false" -->

<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><!-- InstanceBeginEditable name="doctitle" --><title>::entry page ::</title><script language="javascript" type="text/javascript" src="feedback_validation.js"></script><!-- InstanceEndEditable --><link href="style.css" rel="stylesheet" type="text/css"><link rel="stylesheet" type="text/css" href="dropdown.css"><script language="javascript" type="text/javascript" src="dropdown.js"></script><!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <style type="text/css"> .style1 { width: 100%; } .style2 { width: 259px; } .style3 { } .style4 { width: 187px; } .style5 { width: 208px; } </style></head>

<body> <form id="form1" runat="server"><div id="wrap"><div id="inner-wrap"><div id="logo"></div><div id="menuTop"><a href="index.aspx">Home</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="feedback.aspx">Feedback</a>&nbsp;&nbsp; |&nbsp;<a href="message.aspx"> Message</a>&nbsp;&nbsp;</div><div id="menu"><dl class="dropdown">

77

Page 78: Project Report(Rajni)

</ul></dd></dl>

<dl class="dropdown"><dt><a href="teacher.aspx">Teacher&#39;s Info</a></dt></dl><dl class="dropdown"><dt><a href="school.aspx"> School&#39;s Info</a></dt></dl><dl class="dropdown"><dt><a href="student.aspx">Student&#39;s Info</a></dt></dl><dl class="dropdown"><dt><a href="index.aspx">Logout</a></dt></dl><div id="google_translate_element"> </div><script type="text/javascript">function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: '', includedLanguages: 'en,hi' }, 'google_translate_element');}</script><script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" type="text/javascript"></script><dl class="dropdown"></dl></div><div id="contntara">

<div id="rightpnl">

<div id="wlcmmn"><div id="wlcm1"></div><div id="wlcm2"><!-- InstanceBeginEditable

name="welcomearea" -->Student&#39;s Information <!-- InstanceEndEditable --></div>

<div id="wlcm3"></div></div><!-- InstanceBeginEditable name="contentarea" --><div id="cntnt"> <div class="text_normal" id="txt_area">

<div style="float:left; width:600px;"> <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0"> <asp:View ID="View1" runat="server"> <table class="style1"> <tr> <td class="style4"> &nbsp;</td> <td colspan="2"> &nbsp;</td> </tr> <tr> <td class="style4"> <asp:Label ID="lbl_1" runat="server" Text="Student Registration Number"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_sr" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_sr" ErrorMessage="This field can not be left blank !!" Font-Bold="True">*</asp:RequiredFieldValidator> </td>

78

Page 79: Project Report(Rajni)

</tr> <tr> <td class="style4"> <asp:Label ID="lbl_2" runat="server" Text="First Name"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_fname" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="txt_fname">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style4"> <asp:Label ID="lbl_3" runat="server" Text="Middle Name"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_mname" runat="server"></asp:TextBox> </td> </tr> <tr> <td class="style4"> <asp:Label ID="lbl_4" runat="server" Text="Last Name"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_lname" runat="server"></asp:TextBox> </td> </tr> <tr> <td class="style4"> <asp:Label ID="lbl_5" runat="server" Text="Gender"></asp:Label> </td> <td colspan="2"> <asp:DropDownList ID="DropDownList_gender" runat="server"> <asp:ListItem>Select</asp:ListItem> <asp:ListItem>Male</asp:ListItem> <asp:ListItem>Female</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="DropDownList_gender">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style4"> <asp:Label ID="lbl_6" runat="server" Text="Date Of Birth"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_dob" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="txt_father">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style4">

79

Page 80: Project Report(Rajni)

<asp:Label ID="lbl_7" runat="server" Text="Father's Name"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_father" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="txt_father">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style4"> <asp:Label ID="lbl_8" runat="server" Text="Mother's Name"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_mother" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="txt_mother">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style4"> <asp:Label ID="lbl_9" runat="server" Text="Address"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_address" runat="server"></asp:TextBox> </td> </tr> <tr> <td class="style4"> <asp:Label ID="lbl_10" runat="server" Text="Current School"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_curschool" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="txt_curschool">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style4"> <asp:Label ID="lbl_11" runat="server" Text="Class"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_class" runat="server"></asp:TextBox> </td> </tr> <tr> <td class="style4"> <asp:Label ID="Label1" runat="server" Text="Region"></asp:Label> </td> <td colspan="2"> <asp:DropDownList ID="DropDownList_region" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList_region_SelectedIndexChanged"> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server"

80

Page 81: Project Report(Rajni)

ErrorMessage="choose atleast one of them" Font-Bold="True" ControlToValidate="DropDownList_region">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style4"> <asp:Label ID="lbl_12" runat="server" Text="District"></asp:Label> </td> <td colspan="2"> <asp:DropDownList ID="dropdownlist_district" runat="server" AutoPostBack="True" EnableTheming="True"> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="Choose atleast one of them " Font-Bold="True" ControlToValidate="dropdownlist_district">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style4"> <asp:Label ID="lbl_13" runat="server" Text="Last School"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_lschool" runat="server"></asp:TextBox> </td> </tr> <tr> <td class="style4"> <asp:Label ID="lbl_14" runat="server" Text="Scholarship Offered"></asp:Label> </td> <td colspan="2"> <asp:DropDownList ID="dropdown_scholar" runat="server" AutoPostBack="True"> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ErrorMessage="Choose atleast one of them" Font-Bold="True" ControlToValidate="dropdown_scholar">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style4"> <asp:Label ID="lbl_15" runat="server" Text="Insert Image"></asp:Label> </td> <td colspan="2"> <asp:FileUpload ID="FileUpload1" runat="server" /> </td> </tr> <tr> <td class="style4"> &nbsp;</td> <td colspan="2"> &nbsp;</td> </tr> <tr> <td class="style4" align="center"> <asp:Button ID="btn_submit1" runat="server" Text="SUBMIT" onclick="btn_submit1_Click" /> </td>

81

Page 82: Project Report(Rajni)

<td align="center" class="style5"> <asp:Button ID="btn_preview" runat="server" Text="PREVIEW" onclick="btn_preview_Click" /> </td> <td align="center"> <asp:Button ID="Button1" runat="server" CausesValidation="false" OnClick="Button1_Click" OnClientClick="javascript:window.print();return false;" Text="Print" UseSubmitBehavior="false" /> </td> </tr> </table> </asp:View> <asp:View ID="View2" runat="server"> <table class="style1"> <tr> <td class="style3" align="center" colspan="3"> <asp:Image ID="Image1" runat="server" Height="100px" ImageAlign="Right" Width="75px" /> </td> </tr> <tr> <td class="style2"> <asp:Label ID="lbl_sr0" runat="server" Text="Student Registration Number"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_sr" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="lbl_fname0" runat="server" Text="First Name"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_fname" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="lbl_mname0" runat="server" Text="Middle Name"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_mname" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="lbl_lname0" runat="server" Text="Last Name"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_lname" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="lbl_gender0" runat="server" Text="Gender"></asp:Label>

82

Page 83: Project Report(Rajni)

</td> <td colspan="2"> <asp:Label ID="lbl_gender" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="lbl_dob0" runat="server" Text="Date Of Birth"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_dob" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="lbl_father0" runat="server" Text="Father's Name"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_father" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="lbl_mother0" runat="server" Text="Mother's Name"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_mother" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="lbl_address0" runat="server" Text="Address"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_address" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="lbl_curschool0" runat="server" Text="Current School"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_cschool" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="lbl_class0" runat="server" Text="Class"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_class" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="Label2" runat="server" Text="Region"></asp:Label>

83

Page 84: Project Report(Rajni)

</td> <td colspan="2"> <asp:Label ID="lbl_region" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="lbl_district0" runat="server" Text="District"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_district" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="lbl_lastschool0" runat="server" Text="Last School"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_lschool" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> <asp:Label ID="lbl_scholarship0" runat="server" Text="Scholarship Offered"></asp:Label> </td> <td colspan="2"> <asp:Label ID="lbl_scholarship" runat="server"></asp:Label> </td> </tr> <tr> <td class="style2"> &nbsp;</td> <td colspan="2"> &nbsp;</td> </tr> <tr> <td class="style3"> <asp:Button ID="btn_modify" runat="server" onclick="btn_modify_Click" Text="MODIFY" /> </td> <td> <asp:Button ID="btn_submit2" runat="server" onclick="btn_submit2_Click" Text="SUBMIT" /> </td> <td> <asp:Button ID="Button2" runat="server" CausesValidation="false" OnClick="Button2_Click" OnClientClick="javascript:window.print();return false;" Text="Print" UseSubmitBehavior="false" /> </td> </tr> </table> </asp:View> </asp:MultiView> </div> <br>

84

Page 85: Project Report(Rajni)

</div>

</div><!-- InstanceEndEditable --></div>

</div><div id="footer">© :उत्तर प्रदेश बेसिक सिशक्षा परिरषद ्, इलाहाबाद (अनुदानिनत): | <a href="disclaimer.aspx"> Disclaimer</a> | <a href="http://webmail.knit.ac.in/" target="_blank">Webmail</a> <br/></div>

</div></div> </form></body><!-- InstanceEnd --></html>

Language Coding

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 student_form : System.Web.UI.Page{ SqlConnection cn; SqlCommand cmd; SqlDataReader rd; protected void Page_Load(object sender, EventArgs e) { cn = new SqlConnection("Data Source=.\\sqlexpress;Initial Catalog=mbed;Integrated Security=True"); cn.Open(); String query = "SELECT * FROM region"; cmd = new SqlCommand(query, cn); rd = cmd.ExecuteReader(); while (rd.Read()) { DropDownList_region.Items.Add(rd[1].ToString()); } rd.Close();

85

Page 86: Project Report(Rajni)

String qry1 = "SELECT * FROM scholarship"; cmd = new SqlCommand(qry1, cn); rd = cmd.ExecuteReader(); while (rd.Read()) { dropdown_scholar.Items.Add(rd[0].ToString()); } rd.Close(); } protected void btn_preview_Click(object sender, EventArgs e) { this.lbl_sr.Text = this.txt_sr.Text; this.lbl_fname.Text = this.txt_fname.Text; this.lbl_mname.Text = this.txt_mname.Text; this.lbl_lname.Text = this.txt_lname.Text; this.lbl_gender.Text = this.DropDownList_gender.SelectedValue.ToString(); this.lbl_dob.Text=this.txt_dob.Text; this.lbl_father.Text = this.txt_father.Text; this.lbl_mother.Text = this.txt_mother.Text; this.lbl_address.Text = this.txt_address.Text; this.lbl_cschool.Text=this.txt_curschool.Text; this.lbl_class.Text = this.txt_class.Text; this.lbl_region.Text = this.DropDownList_region.SelectedValue.ToString(); this.lbl_district.Text = this.dropdownlist_district.SelectedValue.ToString(); this.lbl_lschool.Text = this.txt_lschool.Text; this.lbl_scholarship.Text = this.dropdown_scholar.SelectedValue.ToString(); this.FileUpload1.SaveAs(Server.MapPath("img") + "//" + this.FileUpload1.FileName); this.Image1.ImageUrl = "~//img//" + this.FileUpload1.FileName; MultiView1.ActiveViewIndex = 1; } protected void btn_modify_Click(object sender, EventArgs e) { MultiView1.ActiveViewIndex = 0; } protected void btn_submit1_Click(object sender, EventArgs e) { if (FileUpload1.HasFile == true) { String path = Server.MapPath(".") + "\\img\\" + FileUpload1.FileName; FileUpload1.SaveAs(path); } String qry = "insert into student values('" +txt_sr.Text + "','"+txt_fname.Text+"','"+txt_mname.Text+"','"+txt_lname.Text+"','"+DropDownList_gender.Text+"','"+txt_dob.Text+"','"+txt_father.Text+"','"+txt_mother.Text+"','"+txt_address.Text+"','"+txt_curschool.Text+"','"+txt_class.Text+"','"+DropDownList_region+"','" + dropdownlist_district.Text + "','"+txt_lschool.Text+ "','"+dropdown_scholar.Text+ "','"+FileUpload1.FileName+"')"; cmd = new SqlCommand(qry, cn); cmd.ExecuteNonQuery(); Response.Redirect("student_form.aspx"); } protected void btn_submit2_Click(object sender, EventArgs e) { if (FileUpload1.HasFile == true) {

86

Page 87: Project Report(Rajni)

String path = Server.MapPath(".") + "\\img\\" + FileUpload1.FileName; FileUpload1.SaveAs(path); } String qry = "insert into student values('" + txt_sr.Text + "','" + txt_fname.Text + "','" + txt_mname.Text + "','" + txt_lname.Text + "','" + DropDownList_gender.Text + "','" + txt_dob.Text + "','" + txt_father.Text + "','" + txt_mother.Text + "','" + txt_address.Text + "','" + txt_curschool.Text + "','" + txt_class.Text + "','" + DropDownList_region + "','" + dropdownlist_district.Text + "','" + txt_lschool.Text + "','" + dropdown_scholar.Text + "','" + FileUpload1.FileName + "')"; cmd = new SqlCommand(qry, cn); cmd.ExecuteNonQuery(); Response.Redirect("student_form.aspx"); }

protected void DropDownList_region_SelectedIndexChanged(object sender, EventArgs e) { dropdownlist_district.Items.Clear(); SqlConnection cn = new SqlConnection("Data Source=.\\sqlexpress;Initial Catalog=mbed;Integrated Security=True"); cn.Open(); String query = "SELECT * from district where region='" + DropDownList_region.SelectedValue + "'"; SqlCommand cmd = new SqlCommand(query, cn); SqlDataReader rd = cmd.ExecuteReader();

while (rd.Read()) { dropdownlist_district.Items.Add(rd[1].ToString()); } rd.Close(); cn.Close(); }

protected void Button2_Click(object sender, EventArgs e) {

} protected void Button1_Click(object sender, EventArgs e) {

}}

87

Page 88: Project Report(Rajni)

Teacher’s Form

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="teacher_form.aspx.cs" Inherits="teacher_form" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><!-- InstanceBegin template="/Templates/aboutus.dwt" codeOutsideHTMLIsLocked="false" -->

<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><!-- InstanceBeginEditable name="doctitle" --><title>::entry page ::</title><script language="javascript" type="text/javascript" src="feedback_validation.js"></script><!-- InstanceEndEditable --><link href="style.css" rel="stylesheet" type="text/css"><link rel="stylesheet" type="text/css" href="dropdown.css"><script language="javascript" type="text/javascript" src="dropdown.js"></script><!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <style type="text/css"> .style1 { width: 120%; } .style3 {} .style6 { width: 303px; } .style9 { width: 181px; } </style></head>

<body> <form id="form1" runat="server"><div id="wrap"><div id="inner-wrap"><div id="logo"></div><div id="menuTop"><a href="index.aspx">Home</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="feedback.aspx">Feedback</a>&nbsp;&nbsp; |&nbsp;<a href="message.aspx"> Message</a>&nbsp;&nbsp;</div><div id="menu"><dl class="dropdown"> </ul></dd></dl>

88

Page 89: Project Report(Rajni)

<dl class="dropdown"><dt><a href="teacher_form.aspx">Teacher&#39;s Info</a></dt></dl><dl class="dropdown"><dt><a href="school_form.aspx"> School&#39;s Info</a></dt></dl><dl class="dropdown"><dt><a href="student_form.aspx">Student&#39;s Info</a></dt></dl><dl class="dropdown"><dt><a href="index.aspx">Logout</a></dt></dl> </dl><div id="google_translate_element"> </div><script type="text/javascript">function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: '', includedLanguages: 'en,hi' }, 'google_translate_element');}</script><script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" type="text/javascript"></script><dl class="dropdown"></dl></div><div id="contntara">

<div id="rightpnl">

<div id="wlcmmn"><div id="wlcm1"></div><div id="wlcm2"><!-- InstanceBeginEditable

name="welcomearea" -->Teacher&#39;s Information <!-- InstanceEndEditable --></div>

<div id="wlcm3"></div></div><!-- InstanceBeginEditable name="contentarea" --><div id="cntnt"> <div class="text_normal" id="txt_area">

<div style="float:left; width:597px;"> <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0"> <asp:View ID="View1" runat="server"> <table class="style1" bgcolor="White"> <tr> <td class="style9"> <asp:Label ID="Label1" runat="server" Text="Teacher ID"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_tid" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="txt_tid">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style9"> <asp:Label ID="Label2" runat="server" Text="First Name"></asp:Label> </td> <td class="style3" colspan="2"> <asp:TextBox ID="txt_fname" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"

89

Page 90: Project Report(Rajni)

ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="txt_fname">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style9"> <asp:Label ID="Label6" runat="server" Text="Last Name"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_lname" runat="server"></asp:TextBox> </td> </tr> <tr> <td class="style9"> <asp:Label ID="Label7" runat="server" Text="Gender"></asp:Label> </td> <td colspan="2"> <asp:DropDownList ID="DropDownList_gender" runat="server"> <asp:ListItem>Select</asp:ListItem> <asp:ListItem>Male</asp:ListItem> <asp:ListItem>Female</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Choose any one" Font-Bold="True" ControlToValidate="DropDownList_gender">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style9"> <asp:Label ID="Label8" runat="server" Text="Marital Status"></asp:Label> </td> <td colspan="2"> <asp:DropDownList ID="DropDownList_status" runat="server"> <asp:ListItem>Select</asp:ListItem> <asp:ListItem>Married</asp:ListItem> <asp:ListItem>Unmarried</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Choose any one !" Font-Bold="True" ControlToValidate="DropDownList_status">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style9"> <asp:RadioButtonList ID="RadioButtonList1" runat="server"> <asp:ListItem>Father&#39;s Name</asp:ListItem> <asp:ListItem>Husband&#39;s Name</asp:ListItem> </asp:RadioButtonList> </td> <td colspan="2"> <asp:TextBox ID="txt_fhname" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="txt_fhname">*</asp:RequiredFieldValidator> </td>

90

Page 91: Project Report(Rajni)

</tr> <tr> <td class="style9"> <asp:Label ID="Label10" runat="server" Text="Date Of Birth"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_dob" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="txt_dob">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style9"> <asp:Label ID="Label11" runat="server" Text="Address"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_address" runat="server"></asp:TextBox> </td> </tr> <tr> <td class="style9"> <asp:Label ID="Label12" runat="server" Text="Contact Number"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_contact" runat="server"></asp:TextBox> <asp:RangeValidator ID="RangeValidator3" runat="server" ControlToValidate="txt_contact" ErrorMessage="Enter atleast 10 digits !" MaximumValue="10" MinimumValue="10">*</asp:RangeValidator> </td> </tr> <tr> <td class="style9"> <asp:Label ID="Label13" runat="server" Text="High School Percentage"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_hs" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="txt_hs">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style9"> <asp:Label ID="Label15" runat="server" Text="Intermediate Percentage"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_ip" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="txt_ip">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style9"> <asp:Label ID="Label17" runat="server" Text="Graduation Course"></asp:Label>

91

Page 92: Project Report(Rajni)

</td> <td colspan="2"> <asp:TextBox ID="txt_grad" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="txt_grad">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style9"> <asp:Label ID="Label18" runat="server" Text="Graduation Percentage"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_pgrad" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="txt_pgrad">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style9"> <asp:Label ID="Label19" runat="server" Text="Post Graduation Course"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_pg" runat="server"></asp:TextBox> </td> </tr> <tr> <td class="style9"> <asp:Label ID="Label20" runat="server" Text="P.G Percentage"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_pgp" runat="server"></asp:TextBox> </td> </tr> <tr> <td class="style9"> <asp:Label ID="Label70" runat="server" Text="Other Qualification"></asp:Label> </td> <td colspan="2"> <asp:CheckBox ID="CheckBox1" runat="server" Text="B.Ed" /> </td> </tr> <tr> <td class="style9"> &nbsp;</td> <td colspan="2"> <asp:CheckBox ID="CheckBox2" runat="server" Text="B.T.C" /> </td> </tr> <tr> <td class="style9"> <asp:Label ID="Label22" runat="server" Text="Date Of Appointment"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_doa" runat="server"></asp:TextBox>

92

Page 93: Project Report(Rajni)

</td> </tr> <tr> <td class="style9"> <asp:Label ID="Label23" runat="server" Text="Present Designation"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_pd" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="txt_pd">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style9"> <asp:Label ID="Label24" runat="server" Text="Present School"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="txt_ps" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="txt_ps">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style9"> <asp:Label ID="Label26" runat="server" Text="Region"></asp:Label> </td> <td colspan="2"> <asp:DropDownList ID="DropDownList_region" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList_region_SelectedIndexChanged"> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="DropDownList_region">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style9"> <asp:Label ID="Label25" runat="server" Text="District"></asp:Label> </td> <td colspan="2"> <asp:DropDownList ID="DropDownList_district" runat="server" onselectedindexchanged="DropDownList_district_SelectedIndexChanged" AutoPostBack="True"> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ErrorMessage="This field can not be left blank !!" Font-Bold="True" ControlToValidate="DropDownList_district">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style9"> <asp:Label ID="Label27" runat="server" Text="Image"></asp:Label> </td> <td colspan="2">

93

Page 94: Project Report(Rajni)

<asp:FileUpload ID="FileUpload1" runat="server" /> </td> </tr> <tr> <td class="style9"> <asp:Button ID="btn_submit" runat="server" Text="SUBMIT" onclick="btn_submit_Click1" /> </td> <td align="justify"> <asp:Button ID="btn_preview" runat="server" Text="PREVIEW" onclick="btn_preview_Click" /> </td> <td> &nbsp;</td> </tr> <tr> <td class="style9"> &nbsp;</td> <td align="justify"> <asp:Button ID="Button1" runat="server" CausesValidation="false" OnClick="Button1_Click" OnClientClick="javascript:window.print();return false;" Text="Print" UseSubmitBehavior="false" /> </td> <td> &nbsp;</td> </tr> </table> </asp:View> <asp:View ID="View2" runat="server"> <table class="style1"> <tr> <td> <asp:Button ID="Button3" runat="server" CausesValidation="false" OnClick="Button3_Click" OnClientClick="javascript:window.print();return false;" Text="Print" UseSubmitBehavior="false" /> </td> <td> <asp:Image ID="Image1" runat="server" Height="100px" Width="75px" /> </td> </tr> <tr> <td class="style6"> <asp:Label ID="Label28" runat="server" Text="Teacher ID"></asp:Label> </td> <td> <asp:Label ID="lbl_tid" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> <asp:Label ID="Label29" runat="server" Text="First Name"></asp:Label> </td>

94

Page 95: Project Report(Rajni)

<td> <asp:Label ID="lbl_fname" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> <asp:Label ID="Label31" runat="server" Text="Last Name"></asp:Label> </td> <td> <asp:Label ID="lbl_lname" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> <asp:Label ID="Label32" runat="server" Text="Gender"></asp:Label> </td> <td> <asp:Label ID="lbl_DropDownList_gender" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> <asp:Label ID="Label33" runat="server" Text="Marital Status"></asp:Label> </td> <td> <asp:Label ID="lbl_DropDownList_status" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> <asp:Label ID="lbl_RadioButtonList1" runat="server"></asp:Label> </td> <td> <asp:Label ID="lbl_fhname" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> <asp:Label ID="Label34" runat="server" Text="Date Of Birth"></asp:Label> </td> <td> <asp:Label ID="lbl_dob" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> <asp:Label ID="Label35" runat="server" Text="Address"></asp:Label> </td> <td> <asp:Label ID="lbl_address" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> <asp:Label ID="Label36" runat="server" Text="Contact Number"></asp:Label>

95

Page 96: Project Report(Rajni)

</td> <td> <asp:Label ID="lbl_contact" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> <asp:Label ID="Label37" runat="server" Text="High School Percentage"></asp:Label> </td> <td> <asp:Label ID="lbl_hs" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> <asp:Label ID="Label38" runat="server" Text="Intermediate Percentage"></asp:Label> </td> <td> <asp:Label ID="lbl_ip" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> <asp:Label ID="Label39" runat="server" Text="Graduation Course"></asp:Label> </td> <td> <asp:Label ID="lbl_grad" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> <asp:Label ID="Label40" runat="server" Text="Graduation Percentage"></asp:Label> </td> <td> <asp:Label ID="lbl_pgrad" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> <asp:Label ID="Label41" runat="server" Text="Post Graduation Course"></asp:Label> </td> <td> <asp:Label ID="lbl_pg" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> <asp:Label ID="Label42" runat="server" Text="P.G Percentage"></asp:Label> </td> <td> <asp:Label ID="lbl_pgp" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> <asp:Label ID="Label71" runat="server" Text="Other Qualification"></asp:Label>

96

Page 97: Project Report(Rajni)

</td> <td> <asp:Label ID="lbl_CheckBox1" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> &nbsp;</td> <td> <asp:Label ID="lbl_CheckBox2" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> <asp:Label ID="Label43" runat="server" Text="Date Of Appointment"></asp:Label> </td> <td> <asp:Label ID="lbl_doa" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> <asp:Label ID="Label44" runat="server" Text="Present Designation"></asp:Label> </td> <td> <asp:Label ID="lbl_pd" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> <asp:Label ID="Label45" runat="server" Text="Present School"></asp:Label> </td> <td> <asp:Label ID="lbl_ps" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> <asp:Label ID="Label46" runat="server" Text="District"></asp:Label> </td> <td> <asp:Label ID="lbl_DropDownList_district" runat="server"></asp:Label> </td> </tr> <tr> <td class="style6"> <asp:Label ID="Label47" runat="server" Text="Region"></asp:Label> </td> <td> <asp:Label ID="lbl_DropDownList_region" runat="server"></asp:Label> </td> </tr> <tr> <td>

97

Page 98: Project Report(Rajni)

<asp:Button ID="btn_modify" runat="server" onclick="btn_modify_Click" Text="MODIFY" /> </td> <td> <asp:Button ID="btn_submit1" runat="server" onclick="btn_submit1_Click1" Text="SUBMIT" /> </td> </tr> </table> </asp:View> </asp:MultiView> </div> </div>

<table class="style1"> <tr> </tr> </table>

</div><!-- InstanceEndEditable --></div>

</div>

</form> <div id="footer">© :उत्तर प्रदेश बेसिक सिशक्षा परिरषद ्, इलाहाबाद (अनुदानिनत): | ेेश बेसिक सिशक्षा परिरषद ्, इलाहाबाद (अनुदानिनत): | href=&quot;disclaimer.aspx&quot;&gt; Disclaimer=&quot;http://webmail.knit.ac.in/&quot; target=&quot;_blank&quot;&gt;Webmail</body><!-- InstanceEnd --></html>

Language Coding

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 teacher_form : System.Web.UI.Page{ SqlConnection cn; SqlCommand cmd; SqlDataReader rd; protected void Page_Load(object sender, EventArgs e)

98

Page 99: Project Report(Rajni)

{ cn = new SqlConnection("Data Source=.\\sqlexpress;Initial Catalog=mbed;Integrated Security=True"); cn.Open(); String query="SELECT * FROM region"; cmd = new SqlCommand(query, cn); rd = cmd.ExecuteReader(); while(rd.Read()) { DropDownList_region.Items.Add(rd[1].ToString()); } rd.Close(); } protected void btn_modify_Click(object sender, EventArgs e) { MultiView1.ActiveViewIndex = 0; } protected void btn_preview_Click(object sender, EventArgs e) { this.lbl_tid.Text = this.txt_tid.Text; this.lbl_fname.Text=this.txt_fname.Text; this.lbl_lname.Text=this.txt_lname.Text; this.lbl_DropDownList_gender.Text=this.DropDownList_gender.SelectedValue.ToString(); this.lbl_DropDownList_status.Text=this.DropDownList_status.SelectedValue.ToString(); this.lbl_fhname.Text = this.txt_fhname.Text; this.lbl_RadioButtonList1.Text = this.RadioButtonList1.SelectedValue.ToString(); this.lbl_dob.Text=this.txt_dob.Text; this.lbl_address.Text=this.txt_address.Text; this.lbl_contact.Text=this.txt_contact.Text; this.lbl_hs.Text=this.txt_hs.Text; this.lbl_ip.Text=this.txt_ip.Text; this.lbl_grad.Text=this.txt_grad.Text; this.lbl_pgrad.Text=this.txt_pgrad.Text; this.lbl_pg.Text=this.txt_pg.Text; this.lbl_pgp.Text=this.txt_pgp.Text; if(CheckBox1.Checked) this.lbl_CheckBox1.Text = this.CheckBox1.Text; if (CheckBox2.Checked) this.lbl_CheckBox2.Text = this.CheckBox2.Text; this.lbl_doa.Text=this.txt_doa.Text; this.lbl_pd.Text=this.txt_pd.Text; this.lbl_ps.Text=this.txt_ps.Text; this.lbl_DropDownList_district.Text=this.DropDownList_district.SelectedValue.ToString(); this.lbl_DropDownList_region.Text=this.DropDownList_region.SelectedValue.ToString(); this.FileUpload1.SaveAs(Server.MapPath("img")+"//"+this.FileUpload1.FileName); this.Image1.ImageUrl = "~//img//" + this.FileUpload1.FileName; MultiView1.ActiveViewIndex = 1; } protected void btn_submit_Click1(object sender, EventArgs e) { if (FileUpload1.HasFile == true) { String path = Server.MapPath(".") + "\\img\\" + FileUpload1.FileName; FileUpload1.SaveAs(path); }

99

Page 100: Project Report(Rajni)

String qry = "insert into teacher values('" + txt_tid.Text + "','" + txt_fname.Text + "','" + txt_lname.Text + "','" + DropDownList_gender.Text + "','" + DropDownList_status.Text + "','" + txt_fhname.Text + "','" + txt_dob.Text + "','" + txt_address.Text + "','" + txt_contact.Text + "','" + txt_hs.Text + "','" + txt_ip.Text + "','" + txt_grad.Text + "','" + txt_pgrad.Text + "','" + txt_pg.Text + "','" + txt_pgp.Text + "','" + CheckBox1.Text + "','" + CheckBox2.Text + "','" + txt_doa.Text + "','" + txt_pd.Text + "','" + txt_ps.Text + "','" + DropDownList_region.Text + "','" + DropDownList_district.Text + "','" + FileUpload1.FileName + "')"; cmd = new SqlCommand(qry, cn); cmd.ExecuteNonQuery(); Response.Redirect("teacher_form.aspx"); } protected void btn_submit1_Click1(object sender, EventArgs e) { if (FileUpload1.HasFile == true) { String path = Server.MapPath(".") + "\\img\\" + FileUpload1.FileName; FileUpload1.SaveAs(path); } String qry = "insert into teacher values('" + txt_tid.Text + "','" + txt_fname.Text + "','" + txt_lname.Text + "','" + DropDownList_gender.Text + "','" + DropDownList_status.Text + "','" + txt_fhname.Text + "','" + txt_dob.Text + "','" + txt_address.Text + "','" + txt_contact.Text + "','" + txt_hs.Text + "','" + txt_ip.Text + "','" + txt_grad.Text + "','" + txt_pgrad.Text + "','" + txt_pg.Text + "','" + txt_pgp.Text + "','" + CheckBox1.Text + "','" + CheckBox2.Text + "','" + txt_doa.Text + "','" + txt_pd.Text + "','" + txt_ps.Text + "','" + DropDownList_region.Text + "','" + DropDownList_district.Text + "','" + FileUpload1.FileName + "')"; cmd = new SqlCommand(qry, cn); cmd.ExecuteNonQuery(); Response.Redirect("teacher_form.aspx"); } protected void DropDownList_region_SelectedIndexChanged(object sender, EventArgs e) { DropDownList_district.Items.Clear(); SqlConnection cn = new SqlConnection("Data Source=.\\sqlexpress;Initial Catalog=mbed;Integrated Security=True"); cn.Open(); String query = "SELECT * from district where region='"+DropDownList_region.SelectedValue+"'"; SqlCommand cmd = new SqlCommand(query, cn); SqlDataReader rd = cmd.ExecuteReader(); while (rd.Read()) { DropDownList_district.Items.Add(rd[1].ToString()); } rd.Close(); cn.Close(); } protected void DropDownList_district_SelectedIndexChanged(object sender, EventArgs e) {

} protected void Button1_Click(object sender, EventArgs e) {

} protected void Button3_Click(object sender, EventArgs e) {

100

Page 101: Project Report(Rajni)

}}

101

Page 102: Project Report(Rajni)

Implementation and Testing

102

Page 103: Project Report(Rajni)

Security Issue

Management of Basic Education Department is available to users like admin and DEO. They have a authority to make changes in a database,but it also has seriuous disadvantages. One major disadvantage is that it is subject to security breach. The sensitive data of the schools,teachers and students can be stolen or their data can be altered or deleted or corrupted. There are many people out there on the internet who peep into various web servers and steal data either to show their supremacy or they are paid to do so. Either way, the data is stolen. Hence, we need to learn about the security issues concerned with Management of Basic Education Department

Internet security is, then, a multifaceted issue, with both opportunities and dangers.

There are basically two types of security associated with this system:

1. Physical security:-

Damage due to natural causes like earth tremor, flooding, water logging, fire hazards, atmospheric or environmental conditions etc..For overcoming these difficulties the replica of the data are automatically stored at various networks and for environmental conditions Air conditioning environment is created.

2. Data security:-

There are basically two problems associated with data security:-a). Data not being available to the authorized person at the time of need.

b). Data becoming available to the unauthorized person.

To overcome these difficulties the following access facilities has been provided:-

i) Identification:- Unique Ids for the different users have been provided.

ii) Authentication:-System checks the password under the particular user identification. The computer permits the various resources to the authorized person.

iii) Authorisation:-The access control mechanism to prevent unauthorized logging to the system.

Need for Security

103

Page 104: Project Report(Rajni)

Many people view computer and network security in a negative light, thinking of it only in terms of restricting access to services. One major view of network security is “that which is not expressly permitted is denied.” Although this is a good way of thinking about how to connect other organization to the internet, one can, and possibly should, view internet security from a more positive angle. Property set up, internet security can be an enabler, enriching ones’ internet with services and resources one would not otherwise be able to provide. Such an overall security policy might be described as “that which is not expressly denied is permitted.”

This does not mean that one should throw caution to the wind and make everything available to ones’ users on ones’ internet. There are many things to consider when placing sensitive business data out on ones’ internet. It may fall into the wrong hands, or worse, be used against ones’ business. For example, some of ones’ users might have information they would li9ke to make available, provided access to it can be limited to a specified group-for example, confidential management or financial information. Without the ability to ensure that only those who have the right to see such information will have access, the custodians of data will not be willing to put it on ones’ internet. Providing security increases ones’ organization’s ability to use the important collaborative aspects of an internet.

The more defensive approach, preventing abuse of ones’ internet, is also given play, however. Organizations’ needs for security in an internet can vary widely. Businesses in which confidentiality and discretion are the norm in handling proprietary information and corporate intellectual property have different needs than a college or university, for example. Academic institutions generally tilt toward making the free exchange of ideas a primary interest. At the same time, though the curiosity (to use a polite word) of undergraduates requires strong needs for security. Keeping prying sophomores out of university administration computing resources is a high priority; for example, students have been known to try to access grade records(their own or those of others) for various reasons.

Security Features of an Internet:-

Before going into a great deal of detail about how one can use security to enhance ones’ internet, take a high- level look at what security features are available to ones. These break down into three main categories.

First, one can take steps on ones’ Web server to set up security.Second, one can take steps with the other TCP/IP network services one has set up on ones’ internet to enhance their security. Third, one can secure customers’ Web browsers themselves to limit what they can do with them.

a) Web server Security

104

Page 105: Project Report(Rajni)

There is a wide range of very flexible security features one can implement on ones’ Web server. Here’s a summary:

Access to Web servers, individual Web pages, and entire directories containing Web pages can be set to require a username and password. Access to Web servers, individual Web pages, and entire directories containing Web pages can be limited to customers on specific computer systems. (In other words, access will be denied unless the user is at his or her usual computer or workstation.) One can organize individuals into groups and grant access to individual Web servers, Web pages, and entire directories containing Web pages based on group membership. One can organize computers into groups, and grant access to individual Web servers, Web pages, and entire directories containing Web pages based on group membership.

It’s ones’ responsibility to determine the level of security one need on ones’ internet, and, of course, to implement it. Putting most of the security measures mentioned into place is not difficult. Ones’ primary concern will be explaining to customers how internet security works, not so much as a limiting factor but as an opportunity for increased use and collaboration using ones’ internet. Assuring decision-makers that they can make information available on ones’ internet in a secure fashion can go a long way toward making ones’ internet a success. At the same time, it’s important to make sure both information providers and their customers understand a number of critical aspects of internet security, so they don’t inadvertently defeat the purpose of it.

There are network security commonplaces, unrelated to internet security specifically, that need ones’ attention. All the security precautions in the world can’t protect ones’ internet from overall poor security practices. Users making poor choices on passwords always lead the list of computer and network security risks. One can limit access to a sensitive Web resources based on the TCP/IP network address of boss’s pc, but if the boss walks away and leaves his pc unattended without an active screen lock, anyone who walks into the empty office can access the protected resources.

b) An Important Warning About Hostname/ IP Address Authentication

All of the Web server software described in this chapter trustingly accepts the word of a requesting computer when it sends its IP address. Verification of this information is not possible. It’s relatively easy for a user to change the hostname/IP address of a UNIX system, and laughably easy to change that of a pc or Mac. A curious, mischievous, or malicious person can reconfigure his computer to impersonate someone else’s simply by changing the IP address of his own. Although this is an overall network security issue, not specifically one for ones’ internet, it’s important one Know about it because it can affect the security of ones’ access controlled documents. Security-minded network administrators can use special hardware and software to prevent this sort of IP spoofing,

105

Page 106: Project Report(Rajni)

but for ones’ internet, one’ll probably want to combine hostname/IP address authentication with username/password authentication, as outlined in the following section. c) Secure/ Encrypted Transactions

One can further enhanced security on ones’ internet by encrypting Web transactions. When one use an encryption facility, information submitted by customers using Web fill-in forms-including usernames, passwords, and other confidential information-can be transmitted securely to and from the Web server.

d) Internet and the Internet

Is ones’ internet is accessible from the internet? If so, all of the security problems of the Internet are now ones’ internet’s problems, too. One can, however, connect safely to the Internet and still protect ones’ internet. One can even use the Internet as a means of letting remotes sites in ones’ company access ones’ internet. e) Firewalls

It’s a fact of Internet life there are people out there who want to break into other people’s networks via the Internet. Reasons vary from innocent curiosity to malicious cracking to business and international espionage. At the same time, the value of Internet to organizations and businesses is as great that vendors are rushing to fill the need for Internet security with Internet firewalls. An Internet firewall is a device that sits between ones’ internal network and outside Internet. Its purpose is to limit access into and out of ones’ network based on ones’ organization’s access policy.

A firewall can be anything from a set of filtering rules set up on the router between one and the Internet to an elaborate application gateway consisting of one or more specially configured computers that control access. Firewalls permit desired services coming from the outside, such as Internet e-mail, to pass. In addition, most firewalls now allow access to the World Wide Web from inside the protected networks. The idea is to allow some services to pass but to deny others. For example, one might be able to use the Telnet utility to log into systems on the Internet, but users on remote systems cannot use to log into ones’ local system because of the firewall.

Summary

Security is important not so much because it prevents things, but because it enables them. Judicious use of built-in security features of the Web server and other internet resources can add value to ones’ internet by making new things possible.

106

Page 107: Project Report(Rajni)

Some Issues to consider about Test Cases

The quality assurance process will find defects uncovered by formal testcases, just like quality control, but in addition will find defects in usability or performance that wouldn’t be caught by even the most detailed testcases. This is the major shortcoming of quality control testing, that the very design of the testcases will tend to limit the scope of attention paid to how things come together with the code. Furthermore, with a web site that changes rapidly, intricate testcases will become outdated quickly, requiring a great deal of work just to keep them current. My point here is not that testcases are not useful, but that you must seek a balance between using scarce resources for creating testcases and using them for actual testing.Format of test steps

Each step can be written very tersely using the following keywords:login [as ROLE-OR-USER]Log into the system with a given user or a user of the given type. Usually only stated explicitly when the test case depends on the permissions of a particular role or involves a workflow between different users.visit LOGIN SCREENVisit a page or screen. For web applications, LOCATION may be a hyperlink. The location should be a well-known starting point (e.g., the Login screen), drilling down to specific pages should be part of the test.enter FIELD-NAME [as VALUE] [in SCREEN-LOCATION]Fill in a named form field. VALUE can be a literal value or the name of a variable defined in the "Test Data" section. The FIELD-NAME itself can be a variable name when the UI field for that value is clear from context, e.g., "enter password". enter FIELDSFill in all fields in a form when their values are clear from context or when their specific values are not important in this test case.click "LINK-LABEL" [in SCREEN-LOCATION]Follow a labeled link or press a button. The screen location can be a predefined panel name or English phrase. Predefined panel names are based on GUI class names, master template names, or titles of boxes on the page.click BUTTON-NAME [in SCREEN-LOCATION]Press a named button. This step should always be followed by a "see" step to check the results.see SCREEN-OR-PAGEThe tester should see the named GUI screen or web page. The general correctness of the page should be testable based on the feature description.verify CONDITIONThe tester should see that the condition has been satisfied. This type of step usually follows a "see" step at the end of the test case.verify CONTENT [is VALUE]

107

Page 108: Project Report(Rajni)

The tester should see the named content on the current page, the correct values should be clear from the test data, or given explicitly. This type of step usually follows a "see" step at the end of the test case.perform LOGIN FORM TEST CASEThis is like a subroutine call. The tester should perform all the steps of the named test case and then continue on to the next step of this test case.Every test case must include a verify step at the end so that the expected output is very clear. A test case can have multiple verify steps in the middle or at the end. Having multiple verify steps can be useful if you want a smaller number of long tests rather than a large number of short tests.

108

Page 109: Project Report(Rajni)

Bibliography:

[1] ASP.NET and Web Development Overview,http://msdn.microsoft.com/en-us/library/4w3ex9c2.aspx

[2] Microsoft Visual Studio Overview,http://en.wikipedia.org/wiki/Microsoft_Visual_Studio#Visual_Studio_2005

[3] Microsoft SQL Server 2005,http://en.wikipedia.org/wiki/Microsoft_SQL_Server

[4] Introduction to ADO.NET,http://en.wikipedia.org/wiki/ADO.NET

[5] Introduction to .NET Architecture,http://www.devtopics.com/what-is-net/

[6] Common Language Infrastructure Definition,http://en.wikipedia.org/wiki/Common_Language_Infrastructure

[7] 3-Tier Architecturehttp://www.c-sharpcorner.com/

Book Author/Publication

Fundamentals of Data base Korth

Professional in ASP.NET Wrox Publication

21 days of ASP.NET BPB Publication

Software engineering Pankaj Jalote & R. Mall

Beginning ASP.NET 2.0 Wrox Publication

Some important Reference Sites

www.dotnethero.com

www.microsoft.com/mspress

www.codeproject.com

109