REport

144
eNCORE Content 1- Acknowledgement 2 2- Introduction 3 3- Software & Development life cycle 6 4- System Analysis 8 5- Feasibility Study 23 6- Methodology 25 7- Coding 29 8- Snap Short 90 9- Testing 99 Page 1

description

free

Transcript of REport

eNCORE

eNCORE

Content1- Acknowledgement22- Introduction33- Software & Development life cycle64- System Analysis85- Feasibility Study236- Methodology257- Coding298- Snap Short909- Testing9910- Reference and Bibliography10311- Conclusion105

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.

SignatureMadhuri Varshney (125885010316)(Mr. Jitendra K. Varshney)

CHAPTER-1

INTRODUCTION

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-AimThe 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.

1.3-FEEDBACK SYSTEM-

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. 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.

1.3.1-Feedback Systems ApplicationsIt 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.

CHAPTER-2Software Development Life Cycle

Thesystems development life cycle(SDLC), also referred to as the application development life-cycle, is a term used insystems engineering, information systemsandsoftware engineeringto 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

CHAPTER-3SYSTEM ANALYSIS

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 Definition- To 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.

3.2Technology Used-3.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.

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 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 Just-in-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.

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 .NETClient Side Application DevelopmentClient 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.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 DevelopmentRuntime 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. 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 ApplicationsMicrosofts 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. 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 ASPASP.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 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 ASPASP 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. 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 2008A 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 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-2008The SQL SERVER provides efficient and effective solutions with the following features:

1. Client/Server (Distributed processing) EnvironmentsTo 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 ManagementSQL-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 UsersSQL-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 performanceSQL-Server maintains the preceding features with a high degree of overall system performance. Database users do not suffer from slow processing performance.5. High AvailabilityAt 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 AvailabilitySQL-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, IndustryStandards 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 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 IntegritySQL-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. PortabilitySQL-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. CompatibilitySQL-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.

CHAPER-4FEASIBILITY STUDY

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 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-5Methodology

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 MS Sql Server 2005 or above Visual Studio 2010 or above

Client Machine .NET Framework 3.5 or above

5.2-Performance RequirementsConsidering 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 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

CHAPTER-6DESIGN

6.1 IntroductionSoftware 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 LevelsSoftware 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 sub-systems and modules and depicts their interaction with each other. High-level 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. 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:-

6.3.2-1-Level DFD:-

CHAPTER-7

CODING

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 == "[email protected]"&& TextBox2.Text == "q1w2e3r4t5") { Response.Redirect("Admin_home.aspx"); }else {Page.ClientScript.RegisterStartupScript(GetType(), "hwa", "alert('Sorry ! Login Failure !');", true); } }elseif (DropDownList1.SelectedIndex == 2) { x = newSqlConnection("Data Source=MADHURI-PC\\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=MADHURI-PC\\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); }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); } }}

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()) { 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(); }}

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; 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 Birthstring DOB = TextBox3.Text + "/" + DropDownList1.SelectedItem.ToString() + "/" + TextBox4.Text;

//pic upload path

string path = "~/images/" + FileUpload1.FileName.ToString();

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("[email protected]", "eNCORE"); feedBack.Subject = "Your Student Account Created Successfully "; feedBack.Body = "Your Student Account Created Successfully, Wait for Admin Approval "; ;//"Email Id: " + TextBox6.Text + "

Password:" + pwd;// +"

Sender Email: " + txtMail.Text + "

" + 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("[email protected]", "aligarh1234#");//Or your Smtp Email ID and Passwordsmtp.Send(feedBack);//

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()) {DropDownList3.Items.Add(z["branch_name"].ToString()); }x.Close(); }}

Student_home.aspx.csusing 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()) { 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(); }}

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();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(); }

}

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"); }}

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();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();

}// submitprotectedvoid Button1_Click(object sender, EventArgs e) {

string q1, q2, q3, q4, q5 = "";//filtering the question 1if (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; }

//filtering the question 2if (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 3if (RadioButton11.Checked == true) { q3 = RadioButton11.Text; }elseif (RadioButton12.Checked == true) { q3 = RadioButton12.Text; }elseif (RadioButton13.Checked == true) { q3 = RadioButton13.Text; }elseif (RadioButton14.Checked == true) { q3 = RadioButton14.Text; }else { q3 = RadioButton15.Text; }//filtering the question 4if (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 5if (RadioButton21.Checked == true) { q5 = RadioButton21.Text; }elseif (RadioButton22.Checked == true) { q5 = RadioButton22.Text; }elseif (RadioButton23.Checked == true) { q5 = RadioButton23.Text; }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 nameprotectedvoid 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(); 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();while (z.Read()) { Label1.Text = z["name"].ToString(); }x.Close();

}protectedvoid RadioButton5_CheckedChanged(object sender, EventArgs e) {

}}

Faculty_Result_analysis.aspx.csusing 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//==Poorx.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 Averagex.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();

//=Averagex.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();//=goodx.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();

//=Excellentx.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();

// getting question no. q2//==Poorx.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 Averagex.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();

//=Averagex.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();//=goodx.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();

//=Excellentx.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();

// getting question no. q3//==Poorx.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 Averagex.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();

//=Averagex.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();//=goodx.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();

//=Excellentx.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();

// getting question no. q4//==Poorx.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 Averagex.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();//=Averagex.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();//=goodx.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();

//=Excellentx.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();

// getting question no. q5//==Poorx.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 Averagex.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();//=Averagex.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();//=goodx.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();

//=Excellentx.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(); }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();

}}

Admin_home.aspx.csusing 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)

}

Admin_Approve_Faculty.aspx.csusing 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();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 Passwordint 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