You are on page 1of 108

eNCORE

Content
1234567891011-

Acknowledgement
Introduction
Software & Development life cycle
System Analysis
Feasibility Study
Methodology
Coding
Snap Short
Testing
Reference and Bibliography
Conclusion

Page 1

2
3
6
8
23
25
29
90
99
103
105

eNCORE
Apart from the efforts of us, the success of any project depends
largely on the encouragement and guidelines of many others. I take this
opportunity to express my gratitude to the people who have been
instrumental in the successful completion of this project.

I would like to show my greatest appreciation to Mr. Jitendra K


Varshney. I cant say thank you enough for his tremendous support and
help. I feel motivated and encouraged every time I attend his meeting.
Without his encouragement and guidance this project would not have
materialized.

The guidance and support received from all the members who
contributed and who are contributing to this project, was vital for the
success of the project. We are grateful for their constant support and
help.

Signature

Madhuri Varshney (125885010316)

(Mr. Jitendra K. Varshney)

Page 2

eNCORE

CHAPTER-1
INTRODUCTION

Page 3

eNCORE

Feedback is an essential part of education and training programmers. It helps


learners to maximize their potential at different stages of training, raise their
awareness of strengths and areas for improvement, and identify actions to be taken
to improve performance.
Feedback can be seen as informal (for example in day-to-day encounters between
teachers and students or trainees, between peers or between colleagues) or formal
(for example as part of written or clinical assessment). However, there is no sharp
dividing line between assessment and teaching in the area of giving feedback on
learning. Feedback is part of the overall dialogue or interaction between teacher
and learner, not a one-way communication.

1.1-Aim
The aim of this project is to provide the complete analysis of faculty performance
on certain parameters. This project is intended to work in the direction of
improving faculty skills and to find out where he is lacking. This project helps to
generate positive word of mouth by overcoming the anomalies in education
delivery, course completion status, pace of education delivery, etc.

1.2-Goals of the project


To obtain complete detail related to education delivery.
To monitor each batch closely on the basis of certain parameters.
To obtain information about particular faculty or batch.
To provide feedback report on different parameters.
To overcome the loop false in education delivery system.

Page 4

eNCORE

1.3-FEEDBACK SYSTEMFeedback is an essential part of education and training programmers. It helps


learners to maximize their potential at different stages of training, raise their
awareness of strengths and areas for improvement, and identify actions to be taken
to improve performance.
Feedback can be seen as informal (for example in day-to-day encounters between
teachers and students or trainees, between peers or between colleagues) or formal
(for example as part of written or clinical assessment). However, there is no sharp
dividing line between assessment and teaching in the area of giving feedback on
learning. Feedback is part of the overall dialogue or interaction between teacher
and learner, not a one-way communication.
If we don't give feedback what is the learner gaining, or indeed, assuming? They
may think that everything is OK and that there are no areas for improvement.
Learners value feedback, especially when it is given by someone credible who they
respect as a role model or for their knowledge, attitudes or clinical competence.
Failing to give feedback sends a non-verbal communication in itself and can lead
to mixed messages and false assessment by the learner of their own abilities, as
well as a lack of trust in the teacher or clinician.

Page 5

eNCORE

1.3.1-Feedback Systems Applications


It can be used at all the places where performance of employees needs to be
analyzed by the supervisor based on the customer satisfaction level.
Following are the places where feedback system can be used:

In Education field.
In hospital.
In shopping sites.
In Telecommunication.

Page 6

eNCORE

CHAPTER-2
Software Development Life Cycle

Page 7

eNCORE

The systems development life cycle (SDLC), also referred to as the application
development life-cycle, is a term used in systems engineering, information
systems and software engineering to describe a process for planning, creating,
testing, and deploying an information system. The systems development life-cycle
concept applies to a range of hardware and software configurations, as a system
can be composed of hardware only, software only, or a combination of both.

Fig: SDLC
There are following six phases in every Software development life cycle model:
Requirement gathering and analysis
Design
Implementation or coding
Testing
Deployment

Page 8

eNCORE

CHAPTER-3
SYSTEM ANALYSIS

Page 9

eNCORE

System analysis or study is an important phase of any system development process.


The system is studied to the minute detail and analyzed. The system was viewed as
a whole and the input of the system are identified. During analysis phase for each
problem identified many alternative solutions were evaluated and selected the most
feasible one. A feasibility analysis was performed to evaluate possible solutions to
recommend the most feasible one.

3.1Problem DefinitionTo develop a software solution to a problem, the first step is to understand the
problem. The problem here is if you are new to Java programming, you are
probably starting by using Notepad. When you want to compile a program, you
need to open a DOS window and type, javac program_name.java and for running
to type java program_name. Also what you type is what you get: notepad does
not help you any way with Java syntax or design. And you cannot correct the errors
within the editor. Otherwise we can use NETBEANS IDE for writing and
compiling.

Page 10

eNCORE

3.2Technology Used3.2.1MS Visual Studio 2010


.NET framework is a Windows Component that supports the building and running
of windows applications and XML Web services. The purpose of the component is
to provide the user with a consistent object oriented programming environment
whether the code is stored locally or remotely.
It aims to minimize software deployment and versioning conflicts and also
promote safe execution of code including codes executed by trusted third parties.
It is directed towards eliminating performance problems of scripted or interpreted
environments. The effort is to make developer experience consistent across a
variety of applications and platforms and create communication standards that help
.NET framework applications integrate with all other web based applications.
The .NET framework has two major components The Common Runtime (CLR)
and the Class Library.
The CLR is the foundation upon which the .NET Framework has been built. The
runtime manages code at execution time and provides all the core services such as
memory management, thread management and remoting. It also enforces strict
type safety and ensures code accuracy in order to provide security and robustness
to the applications. This capability to manage code at runtime is the distinguishing
feature of the CLR. All code that is managed by the CLR is known as managed
code while other codes are known as unmanaged code.

Page 11

eNCORE

NET FRAMEWORK
.Net framework is a Windows component that supports the building and running of
windows applications and XML web services. The purpose of the component is to
provide the user with a consistent object oriented programming environment
whether the code is stored locally or remotely.
SQL Server is used as a backend. Since is one of secure and of high performance
database engine. It is very useful to store the backup data. Using SQL Server we
can manage all our information from a single database file. Within the file we can
divide our data into separate storage containers called tables, view, add and update
table data using online forms.
CLR Features
CLR manages memory, thread execution, code execution, compilation code
safety verification and other system services.
For security reasons, managed code is assigned varying degrees of trust on
origin. This prevents or allows the managed component from performing
file access operations, registry access operations or other sensitive functions
even within the same active application.
The Runtime enforces code robustness by implementing strict type and code
verification infrastructure called common type System (CTS). The CTS
ensures that all managed code is self-describing and all Microsoft or third
party language compiler generated codes conform to CTS this enables the

Page 12

eNCORE
managed code to consume other managed types and enforce strike type
fidelity and type safety.

CLR eliminates many common software issues like handling of object


layout, references to objects and garbage clearance. This type of memory
management prevents memory leaks and invalid memory references.
The CLR also accelerates developer productivity. The programmer is free to
choose the language of the application without worrying. About
compatibility and integration issues. Thought CLR aims to be futuristic
software, it lends supports to existing applications. The interoperability
between the managed and unmanaged codes makes this process extremely
simple.
The design of the CLR is geared towards enhancing performance. The Justin-time (JIT) compiling enables managed code to run in the native machine
language of the system executing it.
The Class Library is an object oriented collection of reusable types.

It is

comprehensive and the types can be used to develop command line applications or
GUI applications such as Web forms or XML Web services.

Unmanaged

components that load CLR into their processes can be hosted by the .NET
Framework to initiate the execution of managed code.

Page 13

eNCORE

Class Library
The class library is a collection of reusable types that integrate with the
CLR.

It is object oriented and provides types from which user defined types can
derive functionality. This makes for ease of use and is time saving.

Third party components can be integrated seamlessly with classes in the


.NET framework.
It enables a range of common programming tasks such as string
management, data collection and file access.
It supports a variety of specialized development scenarios such as console
application

development,

Windows

GUI

applications,

ASP.NET

Applications, XML Web services.


Application development in .NET
Client Side Application Development
Client applications are applications that run on the client system-or the desktop of
the user. They are closest to the traditional windows based applications and they
display forms or windows on the desktop enabling the user perform predefined
tasks. Word processors and spread sheets are examples of client applications that
employ menus, GUI elements and access local resources such as printers and
scanners.

Page 14

eNCORE
A different kind of Client application is the ActiveX component (now deployed as
Windows Form Control) that is displayed as an Internet web page.

These

applications are executed on the local machine, have access to local resources and
include graphical elements. They were earlier created with the help of Microsoft
Foundation Classes (MFC) or with Rapid Application development tools (RAD)
(for example Visual Basic) using C/C++ languages.
The .NET framework integrates these Aspects of application development into its
existing products to present a single, consistent production environment for the
developer. The Windows Forms control which has replaced the ActiveX controls
has a semi trusted access to the users computer. The binary or natively executing
code can now access some of the resources on the users system without
compromising other Aspects of the systems.
This access security additionally enables applications not installed on the users
system to be deployed through the web.
Server Application Development
Runtime hosts are used for deploying applications in the managed code world.
Unmanaged applications host the CLR. This allows the user manage custom code
to control the behaviour of the server. This provides the application with all the
advantages of the CLR and Class Library and the performance and scalability of
the host server.
ASP.NET is a hosting side environment that enables developers use the .NET
framework to deploy web based applications, as well as for developing web sites
and Internet distributed Web services that use IIS and ASP.NET for publishing the
applications.

Page 15

eNCORE
XML Web services are distributed server wide application components that have
no UI but have software components designed to be consumed by other
applications such as client applications, web based applications etc. In this
connection, .NET Framework also provides a collection of classes and tools that
aid in the development and consumption of XML Web Services applications.
These applications are built on standards such as SOAP, XML (Extensible Mark-up
language) and WSDL (Web services Description language).

These standards

promote interoperability with non-Microsoft solutions.


In this section we have examined the .NET Framework and the components and
the type of application support that has been provided by it to client and Server
side applications. In the next section of this tutorial we will briefly examine the
changes and improvements that have been made to the .NET Framework 2.0 in the
BETA version.

Introducing Visual Studio.NET Web Applications


Microsofts commitment to rapid application development is reflected in Visual
Studio 2005 2.0. The .NET framework has blurred the lines between the different
programming disciplines and made application development of any kind
pleasurable. Web application development specifically has received a boost. With
Visual Studio.NET 2005, the facilities available for the Web application developer
has been enhanced multifold.
Web applications are of four types. The Web Applications use the power of the
Client server technology, and enable the user view applications on a web browser.

Page 16

eNCORE
The Web Services are components that provide processing services from a server
to other applications that are deployed over the Internet.

Internet Enabled

Applications that incorporate all the features of the Internet and provide for online
registration, help, updates and other services and Peer to peer applications that use
the internet for communication with users running instances of a standalone
application.
The difference between web applications and standalone applications lie in the
relative locations of the application and the interface. In standalone applications,
the application and the interface lie in the same machine and messages are passed
between the two via the operating system.
In Web applications the application lies on a server or a remote machine and the
interface can reside in one or more machines located elsewhere. Messages are
passed between the two over a network. This difference introduces a number of
architectural requirements for the Web application. These include the architecture
for messaging over a network. Manipulation of use interface, security, handling
multiple users, Identification and state of the users are other factors which are of
prime importance for web developers.
Introduction to ASP
ASP.NET 2005 is part of a whole suite of applications and user interfaces that are
packed under the banner of Visual Studio.NET 2005. Code named as Whidbey, the
entire package is still being tested and the final version is slotted to be released late
this year. The suite includes the .NET framework; user interfaces like Windows
forms, ASP.NET and Compact framework; Official languages like C#, J# and

Page 17

eNCORE
Visual Basic.NET; Integrated Development Environment (IDE) like Visual
Studeo.NET.

Classic ASP:
ASP, which is now more commonly known as Classic ASP was used extensively in
1990s. The idea of creating dynamic pages and linking them with database was
the main purpose of classic ASP. ASP used html controls for user interaction.
Apart from the good features available in ASP programming, it also lacks in some
of the major areas. These areas include clean coding as ASP pages were incline
pages and all the business logic as well as the interface was coded in a single page.
This produces many problems when the code had to be updated or modified. ASP
pages also lacked performance and scalability which were fixed in ASP.net. Lets
see what ASP.net technology has to offer a developer to build dynamic pages much
faster.
ASP.net Web Applications:
ASP.net is based on the .NET framework for building web applications. Since
ASP.net is a part of the Microsoft.NET Framework it has the ability to take
advantage of rich class libraries provided by Microsoft.
The question is that why one should use ASP.net and not use classic ASP or any
other web programming technology. Here are some of the features of ASP.net that
makes it the best web application technology.
HOW DOES ASP.NET DIFFER FROM ASP

Page 18

eNCORE
ASP is restricted to using scripting languages, mainly java script or VB script.
Scripting languages are like cut-down or junior version of full programming
languages in that they arent as powerful and dont support all the features of full
programming languages. When you add ASP code to your pages, you do it in the
same way as you would do client-side script and this leads to problem such as
messy coding and restricted functionality. ASP .Net has no such problems. It
allows you to use a far greater selection of full programming languages. And fully
utilize the rich potential of the .net framework. It helps you create faster, more
reliable dynamic web pages with any of the programming languages supported by
the

.NET

framework.

Mail

Sending

Class

(System.Web.Mail)

The

System.Web.Mail namespace provides the classes for sending email in .NET.


Class: Mail Message manages the mail m3essage contents.
Properties
Attachment specifies the list of the attachments that are transmitted with the
message.
Bcc is a list of semicolon delimited email addresses that receive a Blind
Carbon Copy of the message.
Body contains the message text that has to be sent.
Body Encoding is the encoding type of the email message.
Body Format defines the content type of the body of the message.
Cc is a list of semicolon delimited email addresses that receive a Carbon
Copy of the message.
From is the email address of the sender.

Page 19

eNCORE
Header specifies the custom headers which are transmitted with the
Message.
Priority is the priority of the email message.
Subject is the subject line of the email message.
To is the email address of the recipient.

3.2.2MS SQL SERVER 2008


A database is a collection of information related to a particular subject or purpose
such as tracking customer orders or maintaining a music collection.

If your

database is not stored on a computer or only parts of it are you may be tracking
information from a variety of sources that you have to coordinate and organize
yourself.
Using SQL Server we can manage all your information from a single database file.
Within the file divide your data into separate storage containers called tables; view,
add and update table data using online forms; find and retrieve just the data you
want using queries and analyse or print data in a specific layout using reports.
To store your data create one table for each type of information you track. To bring
the data from multiple tables together in a query, form or report, we define
relationship between the tables. A relationship is an association between tables.
To find and retrieve the data that meets conditions we specify a query. A query can
also update or delete multiple records at the same time, and perform built-in or
custom calculations on your data.
DATABASES AND INFORMATION MANAGEMENT:A database server is the key to solving the problems of information management.
In general, a server must reliably manage a large amount of data in a multi-user

Page 20

eNCORE
environment so that many users can concurrently access the same data. All this
must be accomplished while delivering high performance. A database server must
also prevent unauthorized access and provide efficient solutions for failure
recovery.

Features of SQL-SERVER-2008
The SQL SERVER provides efficient and effective solutions with the following
features:
1. Client/Server (Distributed processing) Environments
To take full advantage of a given computer system or network, SQL-Server allows
processing to be split between the database server and the client application
programs. The computer running the database management system handles all of
the database server responsibilities while the workstations running the database
application concentrate on the interpretation and display of data.
2. Large Databases And Space Management
SQL-Server supports the largest of databases, potentially terabytes in size. To
make efficient use of expensive hardware devices, it allows full control of space
usage.
3. Many Concurrent Database Users
SQL-Server Supports Large Numbers of Concurrent Users executing a variety of
database applications operating on the same data. It minimizes data contention and
guarantee data concurrency.
4. High transaction processing performance

Page 21

eNCORE
SQL-Server maintains the preceding features with a high degree of overall system
performance. Database users do not suffer from slow processing performance.
5. High Availability
At some sites, SQL-Server works 24 hours per day with no down time to limit
database throughput. Normal system operations such as database Backup and
partial computer system failures do not interrupt database use.

6. Controlled Availability
SQL-Server can selectively control the availability of data, at the database level
and sub-database level. For example, an administrator can disallow use of a
specific application so that the applications data can be reloaded, without affecting
other applications.
7. Openness, Industry
Standards SQL-Server adheres to industry accepted standards for the data access
language, operating systems, user interfaces, and network communication
protocols. It is an open system that protects a customers investment. Release
2005 of the SQL server has been certified by the U.S. National Institute of
Standards and technology as 100% complaint with Entry Level of the ANSI/ISO
SQL92 (Structured Query Language) standard. SQL-Server fully satisfies the
requirements of the U.S. governments FIPSl27-2 standard and includes a
flagger to highlight non-standard SQL usage. SQL-Server also supports the
Simple Network Management Protocol (SNMP) standard for system management.
This protocol allows administrators to manage heterogeneous systems with a single
administration interface.
8. Manageable Security
Page 22

eNCORE
To protect against unauthorized database access and use, SQL-Server provides
fail-safe security features to limit and monitor data access. These features make it
easy to manage even the most complex design for data access.

9. Database Enforced Integrity


SQL-Server enforces data integrity, business rules that dictate the standards for
acceptable data. As a result, the costs of coding and managing checks in many
database applications are eliminated.

Distributed systems for networked,

distributed environments, SQL-Server combines the data physically located on


different computers into one logical database that can be accessed by all network
users. Distributed systems have the same degree of user transparency and data
consistency as non-distributed systems, yet receive the advantages of local
database management. Oracle also offers the heterogeneous option that allows
users to access data on some non-Oracle databases transparently.
10. Portability
SQL-Server software is ported to work under different operating systems.
Applications developed for Oracle can be ported to any operating system
with little or no modification.
11. Compatibility
SQL-Server software is compatible with industry standards, including most
industry standard operating systems. Applications developed for Oracle can be
used on virtually any system with little or no modification.

Page 23

eNCORE

CHAPER-4
FEASIBILITY STUDY

Page 24

eNCORE

After the problem is clearly understood and solutions proposed, the next step is to
conduct the feasibility study. Feasibility study is defined as evaluation or analysis
of the potential impact of a proposed project or program. The objective is to
determine whether the proposed system is feasible. There are three aspects of
feasibility study to which the proposed system is subjected as discussed below.

4.1Technical Feasibility
Technical feasibility assesses whether the current technical resources are sufficient
for the new system. If they are not available, can they be upgraded to provide the
level of technology necessary for the new system? It checks whether the proposed
system can be implemented in the present system without supporting the existing
hardware.

4.2Economic Feasibility
Economic feasibility determines whether the time and money are available to
develop the system. It also includes the purchase of new equipment, hardware, and
software. A software product must be cost effective in the development, on
maintenance and in the use. Since the 12 hardware and resources are already

Page 25

eNCORE
available with the organization and the organization can afford to allocate the
required resources.

4.3Operational Feasibility
Operational feasibility determines if the human resources are available to operate
the system once it has been installed. The resources that are required to implement
or install are already available with the organization. The persons of the
organization need no exposure to computer but have to be trained to use this
particular software. A few of them will be trained. Further, training is very less.
The management will also be convinced that the project is optimally feasible.

CHAPTER-5

Methodology
Page 26

eNCORE

5.1System Requirement Specification


5.1.1-Hardware Requirement Specification Server Machine
Processor: - Dual core processor or above
Ram: - 512 MB
Client Machine
Processor: - Dual core processor or above
Ram: - 512 MB

5.1.2-Software Requirement Specification


Server Machine
.NET Framework 3.5 or above
Page 27

eNCORE
MS Sql Server 2005 or above
Visual Studio 2010 or above
Client Machine
.NET Framework 3.5 or above

5.2-Performance Requirements
Considering the interactive nature of the task the system must have the following
characters.

Minimum response time


Efficient CPU utilization
Less Memory space
High reliability
High flexibility
User friendly

5.3-Non-Function Requirements
Non-functional requirements define system properties and constraints it arises
through user needs, because of budget constraints or policies, or due to the external
factors such as safety regulations, privacy registration and so on. Non-functional
requirements are:
Security
Reliability
Page 28

eNCORE

Maintainability
Portability
Extensibility
Reusability

Application Affinity/Compatibility

5.4-Functional requirements
The various Functional requirements of the system can be summarized as
follows:
This editor is connected to the system compiler. So .net Development tool
kit or above must be available.
To work with media packages visual studio Framework should be installed.
For using the short keys the operating system support must be available.
A text editor like Notepad also needed for editing the application

Page 29

eNCORE

CHAPTER-6
DESIGN

Page 30

eNCORE

6.1 Introduction
Software design is a process to transform user requirements into some suitable
form, which helps the programmer in software coding and implementation.
Software design is the first step in SDLC (Software Design Life Cycle), which
moves the concentration from problem domain to solution domain. It tries to
specify how to fulfill the requirements mentioned in SRS.

6.2 Software Design Levels


Software design yields three levels of results:
Architectural Design - The architectural design is the highest abstract
version of the system. It identifies the software as a system with many
components interacting with each other. At this level, the designers get the
idea of proposed solution domain.
High-level Design- The high-level design breaks the single entity-multiple
component concept of architectural design into less-abstracted view of subsystems and modules and depicts their interaction with each other. Highlevel design focuses on how the system along with all of its components can
be implemented in forms of modules. It recognizes modular structure of
each sub-system and their relation and interaction among each other.

Page 31

eNCORE
Detailed Design- Detailed design deals with the implementation part of
what is seen as a system and its sub-systems in the previous two designs. It
is more detailed towards modules and their implementations. It defines
logical structure of each module and their interfaces to communicate with
other modules.

6.3DATA FLOW DIAGRAM


6.3.1-0-Level DFD:-

Page 32

eNCORE

6.3.2-1-Level DFD:-

Page 33

eNCORE

CHAPTER-7
CODING

Page 34

eNCORE

Default.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
publicpartialclassAdminLogin : System.Web.UI.Page
{
SqlConnection x;
SqlCommand y;
SqlDataReader z;
protectedvoid Page_Load(object sender, EventArgs e)
{
}
protectedvoid Button1_Click(object sender, EventArgs e)
{
if (DropDownList1.SelectedIndex == 1)
{
if (TextBox1.Text == "admin.encore@gmail.com"&& TextBox2.Text ==
"q1w2e3r4t5")
{
Response.Redirect("Admin_home.aspx");
}
else
{
Page.ClientScript.RegisterStartupScript(GetType(), "hwa", "alert('Sorry ! Login
Failure !');", true);
}
Page 35

eNCORE
}
elseif (DropDownList1.SelectedIndex == 2)
{
x = newSqlConnection("Data Source=MADHURIPC\\SQLEXPRESS;Initial Catalog=eNCORE;Integrated Security=True");
x.Open()
y = new SqlCommand("select * from Faculty where email_id='" + TextBox1.Text
+ "' and Password='" + TextBox2.Text + "'", x);
z = y.ExecuteReader();
if (z.HasRows == false)
{
Page.ClientScript.RegisterStartupScript(GetType(), "hwai", "alert('Sorry ! Login
Failure !');", true);
}
else
{
Session["Faculty_Email"]=TextBox1.Text;
Response.Redirect("Faculty_Home.aspx");
}
}
elseif (DropDownList1.SelectedIndex == 3)
{
x = newSqlConnection("Data Source=MADHURIPC\\SQLEXPRESS;Initial Catalog=eNCORE;Integrated Security=True");
x.Open();
y = new SqlCommand("select * from student where email_id='" +
TextBox1.Text + "' and Password='" + TextBox2.Text + "'", x);
z = y.ExecuteReader();
if (z.HasRows == false)
{
Page.ClientScript.RegisterStartupScript(GetType(), "hwa", "alert('Sorry ! Login
Failure !');", true);
}
Page 36

eNCORE
else
{
while (z.Read())
{
Session["Email_Student"] = TextBox1.Text;
Response.Redirect("student_Home.aspx");
}
}
}
else
{
Page.ClientScript.RegisterStartupScript(GetType(), "hwa", "alert('Sorry ! Please
Select Your Login Type !');", true);
}
}
}

Page 37

eNCORE

FacReg.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
publicpartialclassstudent_module : System.Web.UI.Page
{
SqlConnection x;
SqlCommand y;
SqlDataReader z;
protectedvoid Page_Load(object sender, EventArgs e)
{
//Session["Email_Student"] = TextBox1.Text;
get_Details();
}
publicvoid get_Details()
{
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;Initial
Catalog=eNCORE;Integrated Security=True");
x.Open();
y = newSqlCommand("Select * from Student where email_id='" +
Session["Email_Student"].ToString() + "'", x);
z=y.ExecuteReader();
while (z.Read())
{
Page 38

eNCORE
Label1.Text = z["roll_num"].ToString();
Session["Stu_roll"] = Label1.Text;
Label2.Text = z["name"].ToString();
Session["Stu_name"] = Label2.Text;
Label3.Text = z["dob"].ToString();
Label4.Text = z["mobile_num"].ToString();
Label5.Text = z["email_id"].ToString();
Label6.Text = z["address"].ToString();
Label7.Text = z["course"].ToString();
Session["Stu_Course"] = Label7.Text;
Label8.Text = z["branch"].ToString();
Session["Stu_branch"] = Label8.Text;
Label9.Text = z["semester"].ToString();
Session["Stu_sem"] = Label9.Text;
Image1.ImageUrl = z["profile_pic"].ToString();
}
x.Close();
}
}

Page 39

eNCORE

StuReg.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Net.Mail;
publicpartialclassStuReg : System.Web.UI.Page
{
SqlConnection x;
SqlCommand y;
SqlDataReader z;
protectedvoid Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
get_course();
}
}
protectedvoid Button1_Click(object sender, EventArgs e)
{
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
DropDownList1.SelectedIndex = 0;
Page 40

eNCORE
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
TextBox7.Text = "";
DropDownList2.SelectedIndex = 0;
DropDownList3.SelectedIndex = 0;
DropDownList4.SelectedIndex = 0;
FileUpload1.Attributes.Clear();
}
publicvoid get_course()
{
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True");
x.Open();
//== to clear previous item
DropDownList2.Items.Clear();
DropDownList2.Items.Add("--Select One--");
y = newSqlCommand("Select distinct course_name from CreateCourse", x);
z = y.ExecuteReader();
while (z.Read())
{
DropDownList2.Items.Add(z["course_name"].ToString());
}
x.Close();
}
publicvoid Button2_Click(object sender, EventArgs e)
{
string Default_pwd = "NO";
//Date of Birth
string DOB = TextBox3.Text + "/" + DropDownList1.SelectedItem.ToString() +
"/" + TextBox4.Text;
//pic upload path
string path = "~/images/" + FileUpload1.FileName.ToString();
Page 41

eNCORE
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True");
x.Open();
y = newSqlCommand("insert into student values('" + TextBox1.Text + "','" +
TextBox2.Text + "','" + DOB + "','" + TextBox5.Text + "','" + TextBox6.Text + "','"
+ TextBox7.Text + "','" + DropDownList2.SelectedItem.ToString() + "','" +
DropDownList3.SelectedItem.ToString() + "','" +
DropDownList4.SelectedItem.ToString() + "','" + path + "','"+Default_pwd+"')",
x);
y.ExecuteNonQuery();
x.Close();
FileUpload1.SaveAs(Server.MapPath("~/images/") +
FileUpload1.FileName.ToString());
//
MailMessage feedBack = newMailMessage();
feedBack.To.Add(TextBox6.Text);
feedBack.From = newMailAddress("encore.admiin@gmail.com",
"eNCORE");
feedBack.Subject = "Your Student Account Created Successfully ";
feedBack.Body = "Your Student Account Created Successfully, Wait for
Admin Approval "; ;//"Email Id: " + TextBox6.Text + "<br><br>Password:" +
pwd;// +"<br><br>Sender Email: " + txtMail.Text + "<br><br>" +
txtMessage.Text;
feedBack.IsBodyHtml = true;
SmtpClient smtp = newSmtpClient();
smtp.Host = "smtp.gmail.com"; //Or Your SMTP Server Address
smtp.Port = 587;
smtp.EnableSsl = true;
smtp.Credentials = new
System.Net.NetworkCredential("encore.admiin@gmail.com", "aligarh1234#");
//Or your Smtp Email ID and Password
smtp.Send(feedBack);
//
Page 42

eNCORE

Page.ClientScript.RegisterStartupScript(GetType(), "hwa", "alert('Account Created


Successfully, Please Check Email for User name and Password !');", true);

//clear data after submission


TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
DropDownList1.SelectedIndex = 0;
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
TextBox7.Text = "";
DropDownList2.SelectedIndex = 0;
DropDownList3.SelectedIndex = 0;
DropDownList4.SelectedIndex = 0;
FileUpload1.Attributes.Clear();
}
protectedvoid DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
{
//=======fetching bracnh of selected course
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;Initial
Catalog=eNCORE;Integrated Security=True");
x.Open();
//== to clear previous item
DropDownList3.Items.Clear();
DropDownList3.Items.Add("--Select One--");
y = newSqlCommand("Select distinct branch_name from CreateBranch where
course_name='" + DropDownList2.SelectedItem.ToString() + "' ", x);
z = y.ExecuteReader();
while (z.Read())
{
Page 43

eNCORE
DropDownList3.Items.Add(z["branch_name"].ToString());
}
x.Close();
}
}

Student_home.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
publicpartialclassstudent_module : System.Web.UI.Page
{
SqlConnection x;
SqlCommand y;
SqlDataReader z;
protectedvoid Page_Load(object sender, EventArgs e)
{
//Session["Email_Student"] = TextBox1.Text;
get_Details();
}
publicvoid get_Details()
{
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True");
x.Open();
y = newSqlCommand("Select * from Student where email_id='" +
Session["Email_Student"].ToString() + "'", x);
z=y.ExecuteReader();
while (z.Read())
{
Page 44

eNCORE
Label1.Text = z["roll_num"].ToString();
Session["Stu_roll"] = Label1.Text;
Label2.Text = z["name"].ToString();
Session["Stu_name"] = Label2.Text;
Label3.Text = z["dob"].ToString();
Label4.Text = z["mobile_num"].ToString();
Label5.Text = z["email_id"].ToString();
Label6.Text = z["address"].ToString();
Label7.Text = z["course"].ToString();
Session["Stu_Course"] = Label7.Text;
Label8.Text = z["branch"].ToString();
Session["Stu_branch"] = Label8.Text;
Label9.Text = z["semester"].ToString();
Session["Stu_sem"] = Label9.Text;
Image1.ImageUrl = z["profile_pic"].ToString();
}
x.Close();
}
}

Page 45

eNCORE

Faculty_home.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
publicpartialclassFaculty_Home : System.Web.UI.Page
{
SqlConnection x;
SqlCommand y;
SqlDataReader z;
protectedvoid Page_Load(object sender, EventArgs e)
{
//Session["Faculty_Email"]
get_Details();
}
publicvoid get_Details()
{
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True");
x.Open();
y = newSqlCommand("select * from Faculty where email_id='" +
Session["Faculty_Email"].ToString() + "'", x);
z = y.ExecuteReader();
while (z.Read())
{
Label1.Text = z["emp_id"].ToString();
Session["Emp_id"] = Label1.Text;
Label2.Text = z["name"].ToString();
Page 46

eNCORE
Session["Fac_name"] = Label2.Text;
Label7.Text = z["course"].ToString();
Session["Fac_Course"] = Label7.Text;
Label8.Text = z["department"].ToString();
Session["Fac_branch"] = Label8.Text;
Label9.Text = z["semester"].ToString();
Session["Fac_sem"] = Label9.Text;
Image1.ImageUrl = z["profile_pic"].ToString();
}
x.Close();
}
}

Page 47

eNCORE

Feedback.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
publicpartialclassFeedback : System.Web.UI.Page
{
protectedvoid Page_Load(object sender, EventArgs e)
{
}
protectedvoid Button2_Click(object sender, EventArgs e)
{
Response.Redirect("Feedback_form.aspx");
}
}

Page 48

eNCORE

Student_feedback_form.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
publicpartialclassFeedback_form : System.Web.UI.Page
{
SqlConnection x;
SqlCommand y;
SqlDataReader z;
publicstring fac_code;
protectedvoid Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
fac_code = "";
get_subject();
}
}
publicvoid get_subject()
{
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True");
x.Open();
Page 49

eNCORE
DropDownList5.Items.Clear();
DropDownList5.Items.Add("--Select One--");
y = newSqlCommand("Select distinct subject_name from CreateSubject
where branch_name='" + Session["Stu_branch"].ToString() + "' and Semester ='" +
Session["Stu_sem"].ToString() + "' and Teaching_status='YES'", x);
//y = new SqlCommand("select Distinct branch_Name from CreateSubject", x);
z = y.ExecuteReader();
while (z.Read())
{
DropDownList5.Items.Add(z["subject_name"].ToString());
}
x.Close();
}
// submit
protectedvoid Button1_Click(object sender, EventArgs e)
{
string q1, q2, q3, q4, q5 = "";
//filtering the question 1
if (RadioButton1.Checked == true)
{
q1 = RadioButton1.Text;
}
elseif (RadioButton2.Checked == true)
{
q1 = RadioButton2.Text;
}
elseif (RadioButton3.Checked == true)
{
q1 = RadioButton3.Text;
}
elseif (RadioButton4.Checked == true)
{
q1 = RadioButton4.Text;
}
else
{
q1 = RadioButton5.Text;
Page 50

eNCORE
}
//filtering the question 2
if (RadioButton6.Checked == true)
{
q2 = RadioButton6.Text;
}
elseif (RadioButton7.Checked == true)
{
q2 = RadioButton7.Text;
}
elseif (RadioButton8.Checked == true)
{
q2 = RadioButton8.Text;
}
elseif (RadioButton9.Checked == true)
{
q2 = RadioButton9.Text;
}
else
{
q2 = RadioButton10.Text;
}
//filtering the question 3
if (RadioButton11.Checked == true)
{
q3 = RadioButton11.Text;
}
elseif (RadioButton12.Checked == true)
{
q3 = RadioButton12.Text;
}
elseif (RadioButton13.Checked == true)
{
q3 = RadioButton13.Text;
}
elseif (RadioButton14.Checked == true)
{
Page 51

eNCORE
q3 = RadioButton14.Text;
}
else
{
q3 = RadioButton15.Text;
}
//filtering the question 4
if (RadioButton16.Checked == true)
{
q4 = RadioButton16.Text;
}
elseif (RadioButton17.Checked == true)
{
q4 = RadioButton17.Text;
}
elseif (RadioButton18.Checked == true)
{
q4 = RadioButton18.Text;
}
elseif (RadioButton19.Checked == true)
{
q4 = RadioButton19.Text;
}
else
{
q4 = RadioButton20.Text;
}
//filtering the question 5
if (RadioButton21.Checked == true)
{
q5 = RadioButton21.Text;
}
elseif (RadioButton22.Checked == true)
{
q5 = RadioButton22.Text;
}
elseif (RadioButton23.Checked == true)
{
q5 = RadioButton23.Text;
Page 52

eNCORE
}
elseif (RadioButton24.Checked == true)
{
q5 = RadioButton24.Text;
}
else
{
q5 = RadioButton25.Text;
}
// submitting to DB
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True");
x.Open();
y = newSqlCommand("insert into feedback
values('"+Session["Stu_roll"].ToString()+"','"+Session["Stu_name"].ToString()
+"','"+DropDownList5.SelectedItem.ToString()
+"','"+Label2.Text+"','"+Label1.Text+"','"+q1+"','"+q2+"','"+q3+"','"+q4+"','"+q5+
"')",x);
y.ExecuteNonQuery();
x.Close();
Page.ClientScript.RegisterStartupScript(GetType(), "hwa", "alert('Feedback is
Recorded Successfully !');", true);
DropDownList5.SelectedIndex = 0;
Label1.Text = "**********";
Label2.Text = "**********";
}
protectedvoid Button2_Click(object sender, EventArgs e)
{
}
//getting faculty name
protectedvoid DropDownList5_SelectedIndexChanged(object sender, EventArgs e)
{
// checking for already submitted data
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True");
x.Open();
Page 53

eNCORE
y = newSqlCommand("select * from feedback where stu_roll_num='" +
Session["Stu_roll"].ToString() + "' and paper_title='" +
DropDownList5.SelectedItem.ToString() + "'", x);
z = y.ExecuteReader();
if (z.HasRows == true)
{
Page.ClientScript.RegisterStartupScript(GetType(), "hwa", "alert('Error : Your
Responce for this subject recorded already , try with another one !');", true);
DropDownList5.SelectedIndex = 0;
Button1.Enabled = false;
}
else
{
Button1.Enabled = true;
}
x.Close();
//========================================
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;
Integrated Security=True");
x.Open();
y = newSqlCommand("Select Faculty_code from CreateSubject where
branch_name='" + Session["Stu_branch"].ToString() + "' and Semester ='" +
Session["Stu_sem"].ToString() + "' and Teaching_status='YES' and
subject_name='"+DropDownList5.SelectedItem.ToString()+"'", x);
z = y.ExecuteReader();
while (z.Read())
{
fac_code = z["Faculty_code"].ToString();
Label2.Text = fac_code;
}
x.Close();
x.Open();
y = newSqlCommand("Select name from faculty where emp_id='" + fac_code
+ "'", x);
z = y.ExecuteReader();
Page 54

eNCORE
while (z.Read())
{
Label1.Text = z["name"].ToString();
}
x.Close();
}
protectedvoid RadioButton5_CheckedChanged(object sender, EventArgs e)
{
}
}

Page 55

eNCORE

Faculty_Result_analysis.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
publicpartialclassFaculty_Result_analysis : System.Web.UI.Page
{
SqlConnection x;
SqlCommand y;
SqlDataReader z;
protectedvoid Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
get_subject();
}
}
protectedvoid DropDownList5_SelectedIndexChanged(object sender, EventArgs e)
{
// getting total responce
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True");
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title=
'"+DropDownList5.SelectedItem.ToString()+"' and faculty_code='" +
Session["Emp_id"].ToString() + "'", x);
Label26.Text = y.ExecuteScalar().ToString();
x.Close();
// getting question no. q1
Page 56

eNCORE
//==Poor
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques1='Poor'", x);
Label1.Text = y.ExecuteScalar().ToString();
x.Close();
//=Below Average
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques1='Below Average'", x);
Label2.Text = y.ExecuteScalar().ToString();
x.Close();
//=Average
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques1='Average'", x);
Label3.Text = y.ExecuteScalar().ToString();
x.Close();
//=good
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques1='Good'", x);
Label4.Text = y.ExecuteScalar().ToString();
x.Close();
//=Excellent
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques1='Excellent'", x);
Label5.Text = y.ExecuteScalar().ToString();
x.Close();

Page 57

eNCORE
// getting question no. q2
//==Poor
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques2='Poor'", x);
Label6.Text = y.ExecuteScalar().ToString();
x.Close();
//=Below Average
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques2='Below Average'", x);
Label7.Text = y.ExecuteScalar().ToString();
x.Close();
//=Average
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques2='Average'", x);
Label8.Text = y.ExecuteScalar().ToString();
x.Close();
//=good
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques2='Good'", x);
Label9.Text = y.ExecuteScalar().ToString();
x.Close();
//=Excellent
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques2='Excellent'", x);
Label10.Text = y.ExecuteScalar().ToString();
x.Close();

Page 58

eNCORE
// getting question no. q3
//==Poor
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques3='Poor'", x);
Label11.Text = y.ExecuteScalar().ToString();
x.Close();
//=Below Average
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques3='Below Average'", x);
Label12.Text = y.ExecuteScalar().ToString();
x.Close();
//=Average
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques3='Average'", x);
Label13.Text = y.ExecuteScalar().ToString();
x.Close();
//=good
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques3='Good'", x);
Label14.Text = y.ExecuteScalar().ToString();
x.Close();
//=Excellent
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques4='Excellent'", x);
Label15.Text = y.ExecuteScalar().ToString();
x.Close();
Page 59

eNCORE
// getting question no. q4
//==Poor
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques4='Poor'", x);
Label16.Text = y.ExecuteScalar().ToString();
x.Close();
//=Below Average
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques4='Below Average'", x);
Label17.Text = y.ExecuteScalar().ToString();
x.Close();
//=Average
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques4='Average'", x);
Label18.Text = y.ExecuteScalar().ToString();
x.Close();
//=good
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques4='Good'", x);
Label19.Text = y.ExecuteScalar().ToString();
x.Close();
//=Excellent
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques4='Excellent'", x);
Label20.Text = y.ExecuteScalar().ToString();
x.Close();
Page 60

eNCORE
// getting question no. q5
//==Poor
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques5='Poor'", x);
Label21.Text = y.ExecuteScalar().ToString();
x.Close();
//=Below Average
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques5='Below Average'", x);
Label22.Text = y.ExecuteScalar().ToString();
x.Close();
//=Average
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques5='Average'", x);
Label23.Text = y.ExecuteScalar().ToString();
x.Close();
//=good
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques5='Good'", x);
Label24.Text = y.ExecuteScalar().ToString();
x.Close();
//=Excellent
x.Open();
y = newSqlCommand("Select Count(*) from feedback where paper_title= '" +
DropDownList5.SelectedItem.ToString() + "' and faculty_code='" +
Session["Emp_id"].ToString() + "' and ques5='Excellent'", x);
Label25.Text = y.ExecuteScalar().ToString();
x.Close();
Page 61

eNCORE
}
publicvoid get_subject()
{
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True);
x.Open();
DropDownList5.Items.Clear();
DropDownList5.Items.Add("--Select One--");
y = newSqlCommand("Select distinct paper_title from feedback where
faculty_code='" + Session["Emp_id"].ToString() + "'", x);
//y = new SqlCommand("select Distinct branch_Name from CreateSubject", x);
z = y.ExecuteReader();
while (z.Read())
{
DropDownList5.Items.Add(z["paper_title"].ToString());
}
x.Close();
}
}

Page 62

eNCORE
Admin_home.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
publicpartialclassAdmin_home : System.Web.UI.Page
{
protectedvoid Page_Load(object sender, EventArgs e)
}

Page 63

eNCORE
Admin_Approve_Faculty.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Net.Mail;
publicpartialclassAdmin_Approve_Faculty : System.Web.UI.Page
{
SqlConnection x;
SqlCommand y;
SqlDataReader z;
SqlDataAdapter da;
DataSet ds;
protectedvoid Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Account_Approve();
}
}
publicvoid open_con()
{
x = newSqlConnection("Data Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True ");
x.Open();
}
publicvoid Account_Approve()
{
string pwd = "NO";
open_con();
Page 64

eNCORE
da = newSqlDataAdapter("select * from faculty where Password='" + pwd + "'",
x);
ds = newDataSet();
ds.Clear();
da.Fill(ds, "faculty");
GridView1.DataSource = ds.Tables["faculty"];
GridView1.DataBind();
da.Dispose();
x.Close();
}

protectedvoid GridView1_RowCommand(object sender,


GridViewCommandEventArgs e)
{
int indexx = Convert.ToInt32(e.CommandArgument);
string email = GridView1.Rows[indexx].Cells[5].Text;
// creating Password
int lowercase = 3;
int uppercase = 2;
int numerics = 4;
string create_password = "";
string lowers = "abcdefghijklmnopqrstuvwxyz";
string uppers = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
string number = "0123456789";
Random random = newRandom();
string generated = "!";
for (int i = 1; i <= lowercase; i++)
generated = generated.Insert(
random.Next(generated.Length),
lowers[random.Next(lowers.Length - 1)].ToString()
);
for (int i = 1; i <= uppercase; i++)
generated = generated.Insert(
Page 65

eNCORE
random.Next(generated.Length),
uppers[random.Next(uppers.Length - 1)].ToString()
);
for (int i = 1; i <= numerics; i++)
generated = generated.Insert(
random.Next(generated.Length),
number[random.Next(number.Length - 1)].ToString()
);
create_password = generated.Replace("!", string.Empty);
//Label2.Text = create_password;
//============Sending mail
MailMessage feedBack = newMailMessage();
feedBack.To.Add(email);
feedBack.From = newMailAddress("encore.admiin@gmail.com",
"eNCORE");
feedBack.Subject = "Your Student Account Approved Successfully ";
feedBack.Body = "Email Id: " + email + "<br><br>Password:" +
create_password;// +"<br><br>Sender Email: " + txtMail.Text + "<br><br>" +
txtMessage.Text;
feedBack.IsBodyHtml = true;
SmtpClient smtp = newSmtpClient();
smtp.Host = "smtp.gmail.com"; //Or Your SMTP Server Address
smtp.Port = 587;
smtp.EnableSsl = true;
smtp.Credentials =
newSystem.Net.NetworkCredential("encore.admiin@gmail.com",
"aligarh1234#");
//Or your Smtp Email ID and Password
smtp.Send(feedBack);
//
//==============update password in tables
open_con();

Page 66

eNCORE
y = newSqlCommand("update faculty set Password ='" + create_password + "'
where email_id='" + email + "'", x);
y.ExecuteNonQuery();
x.Close();
Page.ClientScript.RegisterStartupScript(GetType(), "hwa", "alert('Account
Approved Successfully, Please Check Email for User name and Password !');",
true);
// calling update entry
Account_Approve();
}
}

Page 67

eNCORE
Admin_Approve_Student.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Net.Mail;
publicpartialclassAdmin_Approve_student : System.Web.UI.Page
{
SqlConnection x;
SqlCommand y;
SqlDataReader z;
SqlDataAdapter da;
DataSet ds;
protectedvoid Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Account_Approve();
}
}
publicvoid open_con()
{
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True ");
x.Open();
}
publicvoid Account_Approve()
{
string pwd = "NO";
open_con();
da = newSqlDataAdapter("select * from student where Password='" + pwd + "'",
x);
Page 68

eNCORE
ds = newDataSet();
ds.Clear();
da.Fill(ds, "student");
GridView1.DataSource = ds.Tables["student"];
GridView1.DataBind();
da.Dispose();
x.Close();
}
protectedvoid GridView1_RowCommand(object sender,
GridViewCommandEventArgs e)
{
int indexx = Convert.ToInt32(e.CommandArgument);
string email = GridView1.Rows[indexx].Cells[5].Text;
// creating Password
int lowercase = 3;
int uppercase = 2;
int numerics = 4;
string create_password = "";
string lowers = "abcdefghijklmnopqrstuvwxyz";
string uppers = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
string number = "0123456789";
Random random = newRandom();
string generated = "!";
for (int i = 1; i <= lowercase; i++)
generated = generated.Insert(
random.Next(generated.Length),
lowers[random.Next(lowers.Length - 1)].ToString()
);
for (int i = 1; i <= uppercase; i++)
generated = generated.Insert(
random.Next(generated.Length),
uppers[random.Next(uppers.Length - 1)].ToString()
);

Page 69

eNCORE
for (int i = 1; i <= numerics; i++)
generated = generated.Insert(
random.Next(generated.Length),
number[random.Next(number.Length - 1)].ToString()
);
create_password = generated.Replace("!", string.Empty);
//Response.Write(create_password);
//Label1.Text = create_password;
//============Sending mail
MailMessage feedBack = newMailMessage();
feedBack.To.Add(email);
feedBack.From = newMailAddress("encore.admiin@gmail.com",
"eNCORE");
feedBack.Subject = "Your Student Account Approved Successfully ";
feedBack.Body ="Email Id: " + email + "<br><br>Password:" +
create_password;// +"<br><br>Sender Email: " + txtMail.Text + "<br><br>" +
txtMessage.Text;
feedBack.IsBodyHtml = true;
SmtpClient smtp = newSmtpClient();
smtp.Host = "smtp.gmail.com"; //Or Your SMTP Server Address
smtp.Port = 587;
smtp.EnableSsl = true;
smtp.Credentials =
newSystem.Net.NetworkCredential("encore.admiin@gmail.com",
"aligarh1234#");
//Or your Smtp Email ID and Password
smtp.Send(feedBack);
//
//==============update password in tables
open_con();
y = newSqlCommand("update student set Password ='" + create_password +
"' where email_id='" + email + "'", x);
y.ExecuteNonQuery();
x.Close();
Page 70

eNCORE
Page.ClientScript.RegisterStartupScript(GetType(), "hwa", "alert('Account
Approved Successfully, Please Check Email for User name and Password !');",
true);
// calling update entry
Account_Approve();
}
}

Page 71

eNCORE
Admin_Disapprove_Faculty.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Net.Mail;
publicpartialclassAdmin_Disapprove_Faculty : System.Web.UI.Page
{
SqlConnection x;
SqlCommand y;
SqlDataReader z;
SqlDataAdapter da;
DataSet ds;
protectedvoid Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Account_Disapprove();
}
}
publicvoid open_con()
{
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True ");
x.Open();
}
publicvoid Account_Disapprove()
{
string pwd = "NO";
open_con();
da = newSqlDataAdapter("select * from faculty where Password ! ='" + pwd + "'",
x);
Page 72

eNCORE
ds = newDataSet();
ds.Clear();
da.Fill(ds, "faculty");
GridView1.DataSource = ds.Tables["faculty"];
GridView1.DataBind();
da.Dispose();
x.Close();
}
protectedvoid GridView1_RowCommand(object sender,
GridViewCommandEventArgs e)
{
int indexx = Convert.ToInt32(e.CommandArgument);
string email = GridView1.Rows[indexx].Cells[5].Text;
// creating Password
int lowercase = 3;
int uppercase = 2;
int numerics = 4;
string create_password = "";
string lowers = "abcdefghijklmnopqrstuvwxyz";
string uppers = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
string number = "0123456789";
Random random = newRandom();
string generated = "!";
for (int i = 1; i <= lowercase; i++)
generated = generated.Insert(
random.Next(generated.Length),
lowers[random.Next(lowers.Length - 1)].ToString()
);
for (int i = 1; i <= uppercase; i++)
generated = generated.Insert(
random.Next(generated.Length),
uppers[random.Next(uppers.Length - 1)].ToString()
);
for (int i = 1; i <= numerics; i++)
Page 73

eNCORE
generated = generated.Insert(
random.Next(generated.Length),
number[random.Next(number.Length - 1)].ToString()
);
create_password = generated.Replace("!", string.Empty);
//Label2.Text = create_password;
//============Sending mail
MailMessage feedBack = newMailMessage();
feedBack.To.Add(email);
feedBack.From = newMailAddress("encore.admiin@gmail.com",
"eNCORE");
feedBack.Subject = "Your Student Account Approved Successfully ";
feedBack.Body = "Email Id: " + email + "<br><br>Password:" +
create_password;// +"<br><br>Sender Email: " + txtMail.Text + "<br><br>" +
txtMessage.Text;
feedBack.IsBodyHtml = true;
SmtpClient smtp = newSmtpClient();
smtp.Host = "smtp.gmail.com"; //Or Your SMTP Server Address
smtp.Port = 587;
smtp.EnableSsl = true;
smtp.Credentials =
newSystem.Net.NetworkCredential("encore.admiin@gmail.com",
"aligarh1234#");
//Or your Smtp Email ID and Password
smtp.Send(feedBack);
//
//==============update password in tables
open_con();
y = newSqlCommand("update faculty set Password ='" + create_password + "'
where email_id='" + email + "'", x);
y.ExecuteNonQuery();
x.Close();

Page 74

eNCORE
Page.ClientScript.RegisterStartupScript(GetType(), "hwa", "alert('Account has
disapproved Successfully, Please Check Email for User name and Password !');",
true);
// calling update entry
Account_Disapprove();
}
}

Page 75

eNCORE
Admin_Disapprove_Student.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Net.Mail;
publicpartialclassAdmin_Disapprove_Student : System.Web.UI.Page
{
SqlConnection x;
SqlCommand y;
SqlDataReader z;
SqlDataAdapter da;
DataSet ds;
protectedvoid Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Account_Disapprove();
}
}
publicvoid open_con()
{
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True ");
x.Open();
}
publicvoid Account_Disapprove()
{
string pwd = "NO";
open_con();
da = newSqlDataAdapter("select * from student where Password ! ='" + pwd + "'",
x);
Page 76

eNCORE
ds = newDataSet();
ds.Clear();
da.Fill(ds, "student");
GridView1.DataSource = ds.Tables["student"];
GridView1.DataBind();
da.Dispose();
x.Close();
}
protectedvoid GridView1_RowCommand(object sender,
GridViewCommandEventArgs e)
{
int indexx = Convert.ToInt32(e.CommandArgument);
string email = GridView1.Rows[indexx].Cells[5].Text;
// creating Password
int lowercase = 3;
int uppercase = 2;
int numerics = 4;
string create_password = "";
string lowers = "abcdefghijklmnopqrstuvwxyz";
string uppers = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
string number = "0123456789";
Random random = newRandom();
string generated = "!";
for (int i = 1; i <= lowercase; i++)
generated = generated.Insert(
random.Next(generated.Length),
lowers[random.Next(lowers.Length - 1)].ToString()
);
for (int i = 1; i <= uppercase; i++)
generated = generated.Insert(
random.Next(generated.Length),
uppers[random.Next(uppers.Length - 1)].ToString()
);
for (int i = 1; i <= numerics; i++)
Page 77

eNCORE
generated = generated.Insert(
random.Next(generated.Length),
number[random.Next(number.Length - 1)].ToString()
);
create_password = generated.Replace("!", string.Empty);
//Response.Write(create_password);
//Label1.Text = create_password;
//============Sending mail
MailMessage feedBack = newMailMessage();
feedBack.To.Add(email);
feedBack.From = newMailAddress("encore.admiin@gmail.com",
"eNCORE");
feedBack.Subject = "Your Student Account Approved Successfully ";
feedBack.Body = "Email Id: " + email + "<br><br>Password:" +
create_password;// +"<br><br>Sender Email: " + txtMail.Text + "<br><br>" +
txtMessage.Text;
feedBack.IsBodyHtml = true;
SmtpClient smtp = newSmtpClient();
smtp.Host = "smtp.gmail.com"; //Or Your SMTP Server Address
smtp.Port = 587;
smtp.EnableSsl = true;
smtp.Credentials =
newSystem.Net.NetworkCredential("encore.admiin@gmail.com",
"aligarh1234#");
//Or your Smtp Email ID and Password
smtp.Send(feedBack);
//
//==============update password in tables
open_con();
y = newSqlCommand("update student set Password ='" + create_password +
"' where email_id='" + email + "'", x);
y.ExecuteNonQuery();
x.Close();

Page 78

eNCORE
Page.ClientScript.RegisterStartupScript(GetType(), "hwa", "alert('Account has
Disapproved Successfully, Please Check Email for User name and Password !');",
true);
// calling update entry
Account_Disapprove();
}
}

Page 79

eNCORE
Create_Branch.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
publicpartialclasscreate_branch : System.Web.UI.Page
{
SqlConnection x;
SqlCommand y;
SqlDataReader z;
protectedvoid Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
get_course();
}
}
// submit button Coding
protectedvoid Button1_Click(object sender, EventArgs e)
{
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True ");
x.Open();
y = newSqlCommand("insert into CreateBranch values
('"+DropDownList1.SelectedItem.ToString()+"','" + TextBox1.Text + "', '" +
TextBox2.Text + "')", x);
y.ExecuteNonQuery();
x.Close();

Page 80

eNCORE
Page.ClientScript.RegisterStartupScript(GetType(), "hwa", "alert('Branch Create
Successfully !');", true);
//=========clear data
DropDownList1.SelectedIndex = 0;
TextBox1.Text = "";
TextBox2.Text = "";
}
publicvoid get_course()
{
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True ");
x.Open();
//== to clear previous item
DropDownList1.Items.Clear();
DropDownList1.Items.Add("--Select One--");
y = newSqlCommand("Select distinct course_name from CreateCourse", x);
z = y.ExecuteReader();
while (z.Read())
{
DropDownList1.Items.Add(z["course_name"].ToString());
}
x.Close();
}
}

Page 81

eNCORE
Create_Course.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
publicpartialclasscreate_course : System.Web.UI.Page
{
SqlConnection x;
SqlCommand y;
SqlDataReader z;
protectedvoid Page_Load(object sender, EventArgs e)
{
}
protectedvoid Button1_Click(object sender, EventArgs e)
{
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True ");
x.Open();
y = newSqlCommand("insert into CreateCourse values ('"+TextBox1.Text+"',
'"+TextBox2.Text+"')", x);
y.ExecuteNonQuery();
x.Close();
Page.ClientScript.RegisterStartupScript(GetType(), "hwa", "alert('Course Create
Successfully !');", true);
//========Clearing the previous data
TextBox1.Text = "";
TextBox2.Text = "";
}
}
Page 82

eNCORE
Create_Subject.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
publicpartialclasscreate_subject : System.Web.UI.Page
{
SqlConnection x;
SqlCommand y;
SqlDataReader z;
protectedvoid Page_Load(object sender, EventArgs e)
{
// to get changes in drop down when page first time load from server
if (!Page.IsPostBack)
{
get_course();
}
}
protectedvoid Button1_Click(object sender, EventArgs e)
{
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True ");
x.Open();
y = newSqlCommand("insert into CreateSubject values('" +
DropDownList1.SelectedItem.ToString() + "','" +
DropDownList2.SelectedItem.ToString() + "','" +
DropDownList3.SelectedItem.ToString() + "','" + TextBox1.Text.ToUpper() + "', '"
+ TextBox2.Text.ToUpper() + "','NO','NO')", x);
y.ExecuteNonQuery();
x.Close();
Page.ClientScript.RegisterStartupScript(GetType(), "hwa", "alert('Subject Create
Successfully !');", true);
Page 83

eNCORE
//=========clear data
DropDownList1.SelectedIndex = 0;
DropDownList2.SelectedIndex = 0;
DropDownList3.SelectedIndex = 0;
TextBox1.Text = "";
TextBox2.Text = "";
}
publicvoid get_course()
{
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True ");
x.Open();
//== to clear previous item
DropDownList1.Items.Clear();
DropDownList1.Items.Add("--Select One--");
y = newSqlCommand("Select distinct course_name from CreateCourse", x);
z = y.ExecuteReader();
while (z.Read())
{
DropDownList1.Items.Add(z["course_name"].ToString());
}
x.Close();
}
protectedvoid DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
//=======fetching bracnh of selected course
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True ");
x.Open();
//== to clear previous item
DropDownList2.Items.Clear();
DropDownList2.Items.Add("--Select One--");

Page 84

eNCORE
y = newSqlCommand("Select distinct branch_name from CreateBranch where
course_name='"+DropDownList1.SelectedItem.ToString()+"' ", x);
z = y.ExecuteReader();
while (z.Read())
{
DropDownList2.Items.Add(z["branch_name"].ToString());
}
x.Close();
}
}

Page 85

eNCORE
Faculty_Allotment.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
publicpartialclassFaculty_Allotment : System.Web.UI.Page
{
SqlConnection x;
SqlCommand y;
SqlDataReader z;
protectedvoid Page_Load(object sender, EventArgs e)
{
// to get changes in drop down when page first time load from server
if (!Page.IsPostBack)
{
get_course();
}
}
publicvoid open_con()
{
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True ");
x.Open();
}
publicvoid get_course()
{
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True ");
x.Open();
//== to clear previous item
DropDownList1.Items.Clear();
DropDownList1.Items.Add("--Select One--");
Page 86

eNCORE
y = newSqlCommand("Select distinct course_name from CreateCourse", x);
z = y.ExecuteReader();
while (z.Read())
{
DropDownList1.Items.Add(z["course_name"].ToString());
}
x.Close();
}
protectedvoid DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
//=======fetching bracnh of selected course
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True ");
x.Open();
//== to clear previous item
DropDownList2.Items.Clear();
DropDownList2.Items.Add("--Select One--");
y = newSqlCommand("Select distinct branch_name from CreateBranch where
course_name='" + DropDownList1.SelectedItem.ToString() + "' ", x);
z = y.ExecuteReader();
while (z.Read())
{
DropDownList2.Items.Add(z["branch_name"].ToString());
}
x.Close();
Label2.Text = DropDownList1.SelectedItem.ToString();
}
protectedvoid DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
{
//=======fetching Faculty of selected Branch
open_con();
//== to clear previous item
DropDownList3.Items.Clear();

Page 87

eNCORE
DropDownList3.Items.Add("--Select One--");
y = newSqlCommand("Select distinct name from faculty where department='"
+ DropDownList2.SelectedItem.ToString() + "' ", x);
z = y.ExecuteReader();
while (z.Read())
{ //Label3.Text = DropDownList2.SelectedItem.ToString();
DropDownList3.Items.Add(z["name"].ToString());
}
x.Close();
Label3.Text = DropDownList2.SelectedItem.ToString();
}
publicvoid get_subject()
{
x = newSqlConnection("Data Source=MADHURI-PC\\SQLEXPRESS;
Initial Catalog=eNCORE;Integrated Security=True ");
x.Open();
//== to clear previous item
CheckBoxList1.Items.Clear();
//DropDownList1.Items.Add("--Select One--");
y = newSqlCommand("Select distinct subject_name from CreateSubject
where branch_name='" + DropDownList2.SelectedItem.ToString() + "' and
Semester ='" + DropDownList4.SelectedItem.ToString() + "' and
Teaching_status='NO'", x);
//y = new SqlCommand("select Distinct branch_Name from CreateSubject", x);
z = y.ExecuteReader();
while (z.Read())
{
CheckBoxList1.Items.Add(z["subject_name"].ToString());
}
x.Close();
}
Page 88

eNCORE
protectedvoid DropDownList4_SelectedIndexChanged(object sender, EventArgs e)
{
get_subject();
}
protectedvoid DropDownList3_SelectedIndexChanged(object sender, EventArgs e)
{
open_con();
y = newSqlCommand("Select emp_id from faculty where course='" +
DropDownList1.SelectedItem.ToString() + "' and department='" +
DropDownList2.SelectedItem.ToString() + "' and name='" +
DropDownList3.SelectedItem.ToString() + "' ", x);
z = y.ExecuteReader();
while (z.Read())
{
Label1.Text = z["emp_id"].ToString();
}
x.Close();
}
protectedvoid Button1_Click(object sender, EventArgs e)
{
string status = "";
for (int i = 0; i < CheckBoxList1.Items.Count; i++)
{
if (CheckBoxList1.Items[i].Selected)
{
status = "YES";
open_con();
y = newSqlCommand("update CreateSubject set Teaching_status ='" +
status + "',Faculty_code ='" + Label1.Text + "' where
course_name='"+Label2.Text+"' and subject_name='" +
CheckBoxList1.Items[i].ToString() + "' and branch_name='"+Label3.Text+"' and
semester='"+DropDownList4.SelectedItem.ToString()+"' ", x);
y.ExecuteNonQuery();
x.Close();
}
}
Page 89

eNCORE
get_subject();
}
}

Page 90

eNCORE

CHAPTER-8
SNAP SHOTS

Default.aspx:- (Login Page)

Page 91

eNCORE

Admin Home

Create Course.aspx

Page 92

eNCORE

Create Branch.aspx

Create Subject.aspx:
Page 93

eNCORE

Student Approve.aspx:

Page 94

eNCORE
Student Disapprove.aspx:

Faculty Approve.aspx

Page 95

eNCORE
Faculty Disapprove.aspx

Subject Allotment.aspx

Page 96

eNCORE

Student Home.aspx

Feedback Form.aspx

Page 97

eNCORE

Faculty Home.aspx

Page 98

eNCORE
Feedback Analysis.aspx

Student

Faculty

Course

Page 99

eNCORE

Branch

Subject

Page 100

eNCORE

CHAPTER-9
TESTING

9.1System Testing Overview


Software testing is an investigation conducted to provide stakeholders with
information about the quality of the product or service under test. Software testing
can also provide an objective, independent view of the software to allow the
business to appreciate and understand the risks of software implementation. Test
techniques include, but are not limited to, the process of executing a program or
application with the intent of finding software bugs (errors or other defects).
Software testing can be stated as the process of validating and verifying that a
software program/application/product:
Page 101

eNCORE
meets the requirements that guided its design and development
works as expected
Can be implemented with the same characteristics.
The objective of the testing is to discover bugs and malfunctioning of the
application. To fulfil the objective, a series of test steps such as unit testing,
validation testing were planned and executed. Testing Objectives include:
Testing is a process of executing a program with the intent of finding an error

A good test case is one that has high probability of finding an undiscovered error.

A successful test is one that uncovers an undiscovered error.


The following ideas should be a part of any testing plan:

Preventive Measures

Spot checks

Testing all parts of the program

Test Data

Looking for trouble

Time for testing

Re-Testing

9.2Testing Approach
Following are main types of tests software undergoes:
10.2.1Unit Testing
As this system was partially GUI based WINDOWS application, the following
were tested in this phase
Tab Order
2.
3.

Reverse Tab Order


Field length
Page 102

eNCORE
4.

Front end validations

9.2.2Integration Testing
The focus of the test here is on, the design and construction of software
architecture. This is a systematic technique for construction the program structure
and conducting tests to uncover errors associated with interfacing. Test data should
be prepared carefully since the data only determines the efficiency and accuracy of
the system. Artificial data are prepared solely for testing. Every program validates
the input data.

9.2.3Validation Testing
At the culmination of integration testing, software is completed assembled as a
package, interfacing errors have been uncovered and corrected and a final series of
software testing, validation testing begins.

9.2.4User Acceptance Testing


User acceptance of a system is the key factor for the success of any system. This is
done with regards to following points:
Input screen design
Output screen design
On-line guide to user

9.2.5Black Box Testing


In this the entire system was tested as a whole with all forms, code, modules and
class modules. Black Box testing methods focus on the functional requirement of
Page 103

eNCORE
the software. That is, Black Box testing enables the software engineer to derive
sets of input conditions that will fully exercise all functional requirements for a
program. Black Box testing attempts to find errors in the following categories;
incorrect or missing functions, interface errors, errors in data structures or external
database access, performance errors and initialization errors and termination errors.
9.2.6White Box Testing
White box testing is test case design approach that employs the control architecture
of the procedure design to produce test cases. Test case can be derived such that
they:
Guarantee that all independent paths within a module have been exercised
at least once,
Exercise all logical decisions on their true and false sides,
Execute all loops at their boundaries and within their operational bounds
Exercise internal data structure to ensure their validity.

Page 104

eNCORE

CHAPTER-10
References and Bibliography

We have referred some books when we were building this project. These books
helped us in various situations. Those books are listed here:
Professional C#.Net 2008:Wrox Press
Visual C#.NET and the .NET Platform: An Advance Guide
System Analysis and Design Methods: Awad
System Analysis and Design Methods: Jeffrey L. Whitten
An Introduction to Software Engineering : By Pressman
SQL SERVER 2005 Beginners Guide: By Microsoft Press II Edition.

Page 105

eNCORE

Page 106

eNCORE

CHAPTER-11
Conclusion

Page 107

eNCORE
As we have seen, research shows that students evaluations of
teaching are generally reliable and valid. In order to minimise the
effects of those variables known to impact upon students
evaluations, care should be taken to ensure that students remain
anonymous

and

that

lecturers

are

not

present

during

administration of any feedback mechanisms used. The purpose of


the evaluation should also be clearly explained to students and
information should be provided regarding the plans for relaying
information to students following the analysis of their feedback. In
terms of the other variables which may impact upon SET, and
which are, arguably, more outside of the control of the individual
lecturer than are the administrative variables, they should be kept
in mind at all stages in the evaluative process, in particular during
the analysis and interpretation phase.

Page 108

You might also like