319
TITLE OF THE PROJECT ON-LINE LEARNING MANAGEMENT SYSTEM (OLMS) INTRODUCTION A learning management system (LMS) is a software application or Web-based technology used to plan, implement, and assess a specific learning process. Typically, a learning management system provides an instructor with a way to create and deliver content, monitor student participation, and assess student performance. A learning management system may also provide students with the ability to use interactive features such as threaded discussions, notice, and discussion forums. The characteristics shared by both types of LMSs include: Manage users, roles, courses, instructors, facilities, and generate reports Student messaging and notifications Assessment and testing handling before and after testing Display scores and transcripts centralize and automate administration use self-service and self-guided services Web-based or blended course delivery OBJECTIVES OF THE PROJECT: 1

LMS Report

Embed Size (px)

DESCRIPTION

bbbb

Citation preview

Page 1: LMS Report

TITLE OF THE PROJECT

ON-LINE LEARNING MANAGEMENT SYSTEM (OLMS)

INTRODUCTION

A learning management system (LMS) is a software application or Web-based technology used to plan, implement, and assess a specific learning process. Typically, a learning management system provides an instructor with a way to create and deliver content, monitor student participation, and assess student performance. A learning management system may also provide students with the ability to use interactive features such as threaded discussions, notice, and discussion forums.

The characteristics shared by both types of LMSs include:

• Manage users, roles, courses, instructors, facilities, and generate reports

• Student messaging and notifications

• Assessment and testing handling before and after testing

• Display scores and transcripts

• centralize and automate administration

• use self-service and self-guided services

• Web-based or blended course delivery

OBJECTIVES OF THE PROJECT:

This Project provides the following objectives are given as:

• This website provides the information of the any language for free of cost.

• This website used by Student, staff and Admin.• This website is updating the information daily.• Website should support multi-user environment.• Website should be fully automated.• Various outputs (reports) should be available online any time.• The website should have daily backup and restore facility to allow

complete protection of data.• website should be able to handle extremely large volumes of data (i.e.

Large database support)

1

Page 2: LMS Report

PROJECT CATEGORY

It is a WEB-BASED Project

SYSTEM ANALYSIS

System analysis is process of gathering and interpreting facts diagnosing problem and using the information to recommend important to the system. It is also a management technique which helps us in designing a new system or improving an existing system. Analysis is a bridge between system engineering and software design or a website designing. Both developer and customer take an active role requirements analysis and specification. The customer attempts to reformulate a sometimes-nebulous concept of software function and performance into concrete detail. The developer acts as an interrogator consultant and problem solver.

These are basic elements in system analysis:

• Input : Attendances ,Assignment ,syllabus detail ,test marks feeding, notice & time table

• Output: Notice creation, Student support services, KC Support services.

2

Page 3: LMS Report

T ool A nd E nvironment U sed

Front End Tool :

ASP.NET

ASP is interpreted. ASP.NET Compiled event base programming. Control events for text button can be handled at client JavaScript only. Since we have server controls events can handle at server side more error handling. ASP .NET has better language support, a large set of new controls and XML based components, and better user authentication.

ASP .NET provides increased performance by running compiled code.

ASP .NET code is not fully backward compatible with ASP.

ASP .NET also contains a new set of object oriented input controls, like programmable list boxes, validation controls. A new data grid control supports sorting, data paging, and everything you expect from a dataset control. The first request for an ASP.NET page on the server will compile the ASP .NET code and keep a cached copy in memory. The result of this is greatly increased performance.

ASP .NET is not fully compatible with earlier versions of ASP, so most of the old ASP code will need some changes to run under ASP .NET. To overcome this problem, ASP .NET uses a new file extension ".aspx". This will make ASP .NET applications able to run side by side with standard ASP applications on the same server.

C# (C SHARP)

‘C#’ (pronounced as (‘C sharp’) is a new computer-programming language developed by Microsoft Corporation, USA. C# is a fully object-oriented language like Java and is the first Component-oriented language. It has been designed to support the key features of .NET Framework, the new development platform of Microsoft for building component-based software solutions. It is a simple, efficient, productive and type-safe language derived from the popular C and C++ languages. Although it belongs to the family of C/C++, it is a purely object-oriented, modern language suitable for developing Web-based applications

3

Page 4: LMS Report

Back End Tool :

SQL SERVER:

The SQL server include following features:

• Queries• Constraints• Procedures• Triggers• Batch implementation• Functions• Bulk copy utility• Cursors

4

Page 5: LMS Report

FEASIBILTY STUDY

Introduction:

The feasibility study of any system is mainly intended to study and analyze the proposed system and to decide whether the system under consideration will be viable or not after implementation. That is it determines the usability of the project after deployment. To come to result a set of query is answered keeping the efficiency of the software and its impact on the domain for which it was developed. It main emphasis is on the following three questions elucidated below as:

• What are the user’s requirements and how does a Customer meet them?

• What resources are available for the proposed systems? Is it worth solving the problem?

• What is the likely impact of the proposed system on the organization? I.e. how does the proposed system fit within the organization?

Technical Feasibility:

In technical feasibility, we study all technical issues regarding the proposed system. It is mainly concerned with the specifications of the equipments and the software, which successfully satisfies the end-user’s requirement. The technical needs of the system may vary accordingly but include:

• The feasibility to produce outputs in a given time.• Response time under certain conditions.• Ability to process a certain volume of the transaction at a particular

speed.• Facility to communicate data.

Types of hardware and software are assessed to determine whether they can support the task required. The system requires the following:-

5

Page 6: LMS Report

• Hardware:

• Processor: PIV • Hard Disk Space: 80 GB capacity with 20 GB free space• RAM: 1 GB• OS: Windows 7• Others: Monitor, Printer, Keyboard, Mouse etc.

• Software:

• Front End: C#.Net 2010, ASP.Net.• Back End: SQL Server 2008• Documentation tool: MS-Word

Economical Feasibility:

Economic feasibility is the most frequently used technique for evaluating the effectiveness of the LMS. More commonly known as cost/benefit analysis, the procedure is to determine the benefits and savings that are expected from the LMS and compare them with the costs. If the benefits outweigh costs, a decision is taken to design and implement the system otherwise further justification or the alternative in the LMS will have to be made if it is to have a chance of being approved. Following are the considerations are to be considered in economical feasibility:

• The costs of different hardware/software configuration need to be examined.

• Manual/computer boundaries should be considered as some tasks may benefit more than others from computerizations.

6

Page 7: LMS Report

Operational Feasibility:

LMS are beneficial only if they can be turned into information system that will meet the operating requirements for which they are designed and developed. It is mainly related to human organizational and political aspects. People are resistant to change and computers have been known to facilitate change. Findings of operational feasibility analysis can be summarized as given below:

• Since the audiences are millions of citizen who use it for information retrieval. So there will be many who will be benefited with this project

• End users are always welcome to have the technical support on the software.

HARDWARE AND SOFTWARE REQUIREMENT

Software requirement:

Front end tool - ASP.net with C# 2010

Back end tool - Microsoft SQL server 2008

Documentation tool - MS – Word, MS. Power Point

Hardware requirement:

Processor - 1.6 GHz

RAM - 256MB

Hard disk drive - 40GB

Floppy disk drive - 3.4 inches

CD – Drive - 52X

Keyboard - 108 Multimedia Keyboards

Mouse - 2 button optical mouse

7

Page 8: LMS Report

PROJECT PLANNING

The Concept

The concept behind software project planning is to provide a framework that enables the manager to make reasonable estimates of the resources, cost, and schedule. The appropriate estimates are formulated within a time limit and the objective is achieved through a process of information discovery, which leads to reasonable estimates.

In our Context

We studied and went through all set of tasks and activities regarding website and identified them before website is to be implemented. With the help website planning we constituted an identified works and resources required to complete the project and also the time required for the completion of project. Planning helped us in decision-making process while we were studying how to initiate and what steps to follow to accomplish the task. We also planned to finish the assigned task within appropriate cost, effort, and resources to maintain the system feasible.

PROJECT SCHEDULING

The Concept:

Software project scheduling is an activity that distributes estimated effort across the planned project duration by allocating the effort to specific software engineering tasks. Every project has a deadline to complete. So, software projects also have a deadline to meet. To complete a software project within a time frame, proper scheduling should be done. In other words, we can say that successful software projects are those that have been successfully placed a schedule. A software project scheduling involves plotting project activities against a time frame. So, the scheduling is about developing a road map structure or a network based on analysis of the tasks that must be performed to complete the projects. The schedule evolves over time.

8

Page 9: LMS Report

Pert & Gantt chart:

Program evaluation and review technique (PERT) and critical path method are two project scheduling methods that are applied to software development. Both techniques are driven by information already developed in earlier project planning activities. Gantt charts are a project control technique that can be used for several purposes, including scheduling, budgeting and resources planning. A Gantt chart is a bar chart, with each bar is proportional to the length of time planned for the activity.

The timeline chart of the above task set (Time Frame: 6 months) has been prepared. The PERT Chart of the software development phase is also prepared and is depicted in figure 1. It is based on the different modules identified in the software.

9

Page 10: LMS Report

Analysis of the Financial

Processing System

PERT (Program Evaluation & Review Technique) Chart

Day 1 – 5 Day 5 – 10 Day 10 – 12

START

Day 12 – 20

Day 20 –40

Day 40-98

Day 116 – 120 Day 107-115 Day 98 – 107

PERT Chart

10

Problem

Analysis

Selection &

Learning the s/w to

be used

Under -standing Database

Page Designing

Evaluation TestingImplementation

Coding

Page 11: LMS Report

SOFTWARE REQUIRMENT SPECIFICATION

Overview

The Software Requirement Specification (SRS) is very important part of the software building process, which describes the actual user level requirement from technical point of view. i.e. what the user exactly wants? Or for what purpose we are making everything. The objective of preparing the software requirement specification is to represent the requirements of the software in such a manner that ultimately leads to successful software implementation. It is the result of the analysis process of the software development. It should contain all the data the software is going to process, the function it will provide, and the behavior it will exhibit. This Software Requirements Specifications (SRS) is defined in IEEE Std. 830-1993, IEEE Recommended Practice for Software Requirements Specifications. The document is organized in the following structure:

• Introduction

• Information Description

• Functional Description

• Behavior Description

• Validation Criteria

• Bibliography

• Appendix

11

Page 12: LMS Report

Introduction

The introduction section describes the goals and objective the On-Line Learning Management System under going development in context of computer based system.

Information Description

The information description helps the software designers in their designing purpose.

Functional Description

The DFD or any other graphical diagram can also be added to describe the functionality of the system.

Behavioral Description

This section of the SRS describes the behavior of the website will exhibit. It is based on definition of the events and the operations that it will perform because of events.

Validation Criteria

This section of the SRS contains the details of the tests that should be performed to validate functions, performance, and behavior of the website.

Bibliography

This section contains references to all the related documents related with the website. This may include any technical document, standards document, or software engineering paper.

Appendix

This section is supplementary and can include the matters that are important for the website development. It may include the statistical data, graphs, or algorithm details.

12

Page 13: LMS Report

DATA FLOW DIAGRAM

The data flow diagram shows the flow of data with in any system. It is an important tool for designing phase of software engineering. Larry Constantine first developed it. It represents graphical view of flow of data. It’s also known as BUBBLE CHART. The purpose of DFD is major transformation that will become in system design

Symbols Used In DFD:

In the DFD, four symbols are used and they are as follows:

1. A square defines a source (originator) or destination of system data.2. An arrow identifies data flow- data in motion. It is 2a pipeline

through which information flows.3. A circle or a “bubble” (some people use an oval bubble) represents a

process that transfers informing data flows into outgoing data flows.4. An open rectangle is a data store- data at rest, or a temporary

repository of data.

13

Page 14: LMS Report

DFD (Context level / 0 Level)

FIRST LEVEL DFD FOR ADMIN

14

Page 15: LMS Report

FIRST LEVEL DFD FOR TEACHER

FIRST LEVEL DFD FOR STUDENT

15

Page 16: LMS Report

SECOND LEVEL DFD FOR TEACHER

16

Page 17: LMS Report

ER Diagram

The entity-relationship model or entity-relationship diagram (ERD) is a data model or diagram for high-level descriptions of conceptual data model, and it provides a graphical notation for representing such data models in the form of entity-relationship diagrams. Such models are typically used in the first stage of information-system design; they are used, for example, to describe information needs and/or the type of information that is to be stored in the database during the requirement analysis. The data modeling technique, however, can be used to describe any ontology (i.e. an overview and classifications of used terms and their relationships) for a certain universe of discourse (i.e. area of interest). In the case of the design of an information system that is based on a database, the conceptual data model is, at a later stage (usually called logical design), mapped to a logical data model, such as the relational model; this in turn is mapped to a physical model during physical design. Note that sometimes, both of these phases are referred to as "physical design".

There are a number of conventions for entity-relationship diagrams (ERDs). The classical notation is described in the remainder of this article, and mainly relates to conceptual modeling. There are a range of notations more typically employed in logical and physical database design.

17

Page 18: LMS Report

E-R Diagram :

18

Page 19: LMS Report

MODULE DETAILS

1. Login Module

2. Course module

3. Knowledge Center Module

4. Student Profile Module

5. Staff Profile Module

6. Subject Semester wise Module

7. Time Table Module

8. Notice Module

9. Syllabus Module

10.Attendance Module

11.Assignment Module

12.Result Module

1. Login Module

This module is small in operation. Any member can login in the code within his login name and password. It necessary module of site for selling and buying of the project on sites or online.

If user enters the login name and password and click on the login button then Database is search for a match of login name and password pair. If match is found then “download form” of code shop is display. If not display the form then password and login name is not valid.

2. Course Module:

Different course are set by administrator with related data of courses.

3. Knowledge Center Module:

In this Module student is1st add with site after proper validation. Then staff use LMS site after that student can check own profile.

19

Page 20: LMS Report

4. Student Profile Module: In this Module student is1st add with site after proper validation. Then staff use LMS site after that student can check own profile.

5. Staff Profile Module: In this Module staff is1st add with site after proper validation. Then staff use LMS site after that staff can check own profile.

6. Subject Semester wise Module: In this Module Admin will 1st add subject semester wise with site after that student & staff can see the subject profile .

7. Time Table Module: This Feature allows faculty to set individual timetable for course which students can access in real-time. This helps the students organize their weekly or monthly schedules.

8. Notice Module : The Notice board allows the institutes to put up all important notices that they would like to share with their students and Staff.

9. Syllabus Module : Under this section Admin have the option to upload the syllabus specific to each course so that students have access at any given time to the entire syllabus of their particular course.

10. Attendance Module: In this Module staff will take student’s attendance with coursewise and student can see own attendance.

11. Assignment Module: In this Module staff will give assignments to students with coursewise and student download assignment after that can see assignment.

12.Result Module : In this Module admin show student’s result.

20

Page 21: LMS Report

DATABASE DESIGN

System Design: (A) Data Dictionary:

Login Module :

Field Name Data Type(size) Description

User_id Varchar(30) Primary key

Password Varchar(30)

Course Module :

Field Name Data Type(size) DescriptionCourseName Varchar(50) Primary keyFee Structure Varchar(50)Duration Varchar(50)

Knowledge Center :

Field Name Data Type(size) DescriptionCenter Code Nvarchar Primary keyInstitute Name varchar(50)Center Head Name varchar(50)Address varchar(50)Contact No. Numeric(18,0)E-mail id nvarchar(50)Block nvarchar(50)District varchar(50)Validation date of KC Datetime

Student Profile:

Field Name Data Type(size) DescriptionRoll No. numeric(18,0) Primary keySession varchar(50)Center Code numeric(18,0)Registration No

numeric(18,0)

Name varchar(50)Father Name varchar(50)

21

Page 22: LMS Report

DOB Datetime

Address varchar(50)

Contact No. numeric(18,0)

Course Varchar(50)

Duration varchar(50)

Enrollment Date

Datetime

Staff Profile:

Field Name Data Type(size) DescriptionSession varchar(50)Center Code numeric(18,0)Staff_ID Varchar(50) Primary keyName varchar(50)Department varchar(50)Contact No. numeric(18,0)Address varchar(50)

Designation varchar(50)

Qualification varchar(50)

E-Mail_ID varchar(max)

Experience varchar(50)

Subject Semester wise:

Field Name Data Type(size) DescriptionCourse Name Varchar(30) Primary keySemester Varchar(50)Subject Varchar(50)

Notice :

Field Name Data Type(size) DescriptionDepartment Varchar(30)Topic Varchar(50)Date Date

22

Page 23: LMS Report

Time Table :

Field Name Data Type(size) DescriptionCourse Varchar(30)Path Varchar(50)

Syllabus :

Field Name Data Type(size) DescriptionCourse Varchar(30)Semester Varchar(30)Path Varchar(30)

Attendance :

Field Name Data Type(size) DescriptionRollNo. varchar(50)Name Varchar(50)Course Varchar(50)Date DatePath Varchar(max)

Assignment :

Field Name Data Type(size) DescriptionCourse Varchar(30)Subject Varchar(50)Assignment No. Varchar(50)Date DateSubmission Date DatePath Varchar(max)

Result:23

Page 24: LMS Report

Field Name Data Type(size) DescriptionCenter Code nvarchar(50) Primary keyRoll No. numeric(18,0)Name varchar(50)Course Name varchar(50) Session varchar(50)Division nvarchar(50)Semester nvarchar(50)

Subject varchar(50)

Practical varchar(50)

Record Viva varchar(50)

Marks in fig numeric(18,0)

Min. Marks numeric(18,0)

Max. Marks numeric(18,0)

USER INTERFACE DESIGN

24

Page 25: LMS Report

Input and Output Screens Design

Home Page:

Admin Home Page:

Create User :25

Page 26: LMS Report

Create Role By Admin:

26

Page 27: LMS Report

Manage Role By Admin:

Manage User By Admin:

27

Page 28: LMS Report

Role Based Authorization By Admin :

Change Password Of Admin:

28

Page 29: LMS Report

User Information By Admin:

Manage User By Admin:

29

Page 30: LMS Report

Create Student By Admin:

Manage Student Profile By Admin:

30

Page 31: LMS Report

Update Student Profile By Admin:

Student Result :

Create Staff By Admin:31

Page 32: LMS Report

Manage Staff Profile By Admin:

Add New Course By Admin:

32

Page 33: LMS Report

Manage Course Detail By Admin:

Add Subject Semesterwise By Admin:

33

Page 34: LMS Report

Manage Subject Semesterwise By admin:

Add Knowledge Center By Admin:

34

Page 35: LMS Report

Manage KC Profile By Admin:

Upload Time Table By Admin:

35

Page 36: LMS Report

Download TimeTable:

Upload Notice By Admin:

36

Page 37: LMS Report

Download Notice:

UploadSyllabusByAdmin:

37

Page 38: LMS Report

Student Home Page:

Check Student Profile By Student:

38

Page 39: LMS Report

Check Student Result Profile By Student:

See Course Detail By Student:

39

Page 40: LMS Report

See Notice Board By Student:

See Syllabus:

40

Page 41: LMS Report

See Assignment:

Calculate DateWise Attendance :

41

Page 42: LMS Report

Change Password By Student:

KC Home Page:

42

Page 43: LMS Report

See Student Profile By KC:

See Student Result Detail By KC:

43

Page 44: LMS Report

Check KC Profile:

Staff Home Page:

44

Page 45: LMS Report

Assignment Module :

Download Assignment:

45

Page 46: LMS Report

Attendance Module:

Attendance Report:

46

Page 47: LMS Report

Calculate Datewise Attendance :

Coding

47

Page 48: LMS Report

Complete Project Coding

Login :

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.Security;public partial class _Default : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) {

}

protected void Login1_Authenticate(object sender, AuthenticateEventArgs e) { Session["user"] = Login1.UserName; //Geting the username enterd TextBox UserName = Login1.FindControl("UserName") as TextBox; String email = UserName.Text.Trim();

if(Membership.ValidateUser (Login1 .UserName , Login1 .Password )) { //MembershipUser usrinfo = Membership.GetUser(Login1.UserName); e.Authenticated = true ;

string[] role = Roles.GetRolesForUser(Login1 .UserName ); if (role.Contains("Administrator")) { FormsAuthentication.RedirectFromLoginPage(Login1 .UserName , true); Response.Redirect(@"~/Admin/Default.aspx");

}48

Page 49: LMS Report

else if (role.Contains("Student")) { FormsAuthentication.RedirectFromLoginPage(Login1 .UserName , true); Response.Redirect(@"~/Student/Default.aspx"); } else if (role.Contains("KC")) { FormsAuthentication.RedirectFromLoginPage(Login1.UserName, true); Response.Redirect(@"~/KC/Default.aspx"); }

} }

protected void Login1_LoginError(object sender, EventArgs e) { Login1.FailureText = "Your Login Attempt was not sucessful. Please try again";

MembershipUser userinfo = Membership.GetUser(Login1.UserName);

if (userinfo != null) { if (userinfo.IsLockedOut) { Login1.FailureText = "Your account has been locked out because of to many invalid login attempts. Please contact the administrator to get your account unlocked";

} else if (!userinfo.IsApproved) { Login1.FailureText = "Your account has not been approved. You cannot login until an administrator will approved your account ";

} } Change Password :

49

Page 50: LMS Report

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;

public partial class ChangePassword : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) {

} protected void ChangePassword2_ContinueButtonClick(object sender, EventArgs e) { Response.Redirect("Default.aspx"); }}

Add Center Code :

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; public partial class Admin_AddCenterCode : System.Web.UI.Page{ SqlCommand cmd; string SQL; SqlDataReader dr;

protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack ) LabelCenterProfile.Text = "";

} protected void Button1_Click(object sender, EventArgs e)

50

Page 51: LMS Report

{ SqlConnection con = new SqlConnection(); con.ConnectionString = "Server=.;Initial Catalog=SecurityRole;Integrated Security=True"; con.Open(); SQL = "Select*from Courses where CourseName='" + TextBox1.Text + "'"; cmd = new SqlCommand(SQL, con); dr = cmd.ExecuteReader(); if (dr.HasRows) { LabelCenterProfile.Text = "This Course is Already Exists"; } else {

SqlDataSource1.Insert(); string newuser = TextBox1.Text.Trim(); if (Page.IsPostBack) {

TextBox1.Text = string.Empty; TextBox2.Text = string.Empty; TextBox3.Text = string.Empty; TextBox4.Text = ""; TextBox5.Text = ""; TextBox6.Text = ""; TextBox7.Text = ""; TextBox8.Text = ""; TextBox9.Text = "";

LabelCenterProfile.Text = string.Empty; LabelCenterProfile.Text = "Record is Save";

} }

}

51

Page 52: LMS Report

protected void Button2_Click(object sender, EventArgs e) { TextBox1.Text = string.Empty; TextBox2.Text = string.Empty; TextBox3.Text = string.Empty; TextBox4.Text = ""; TextBox5.Text = ""; TextBox6.Text = ""; TextBox7.Text = ""; TextBox8.Text = ""; TextBox9.Text = "";

}}

Add Course :

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.Security;using System.Data.SqlClient;using System.Configuration;using System.ServiceModel;

public partial class Admin_centercode : System.Web.UI.Page{ SqlCommand cmd; string SQL; SqlDataReader dr;

protected void Page_Load(object sender, EventArgs e) {

if (Page.IsPostBack) {

LabelCourse.Text = "";

52

Page 53: LMS Report

}

}

protected void Button1_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection(); con.ConnectionString = "Server=.;Initial Catalog=SecurityRole;Integrated Security=True"; con.Open(); SQL = "Select*from Courses where CourseName='" + TextBox1.Text+"'"; cmd = new SqlCommand(SQL, con); dr = cmd.ExecuteReader(); if (dr.HasRows) { LabelCourse.Text = "This Course is Already Exists"; } else {

SqlDataSource2.Insert(); string newuser = TextBox1.Text.Trim(); if (Page.IsPostBack) {

TextBox1.Text = string.Empty; TextBox2.Text = string.Empty; TextBox3.Text = string.Empty; LabelCourse.Text = string.Empty; LabelCourse.Text = "Record is Save";

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

53

Page 54: LMS Report

} protected void Button2_Click(object sender, EventArgs e) { if (Page.IsPostBack) {

TextBox1.Text = ""; TextBox2.Text = ""; TextBox3.Text = ""; LabelCourse.Text = "";

}

} protected void Rows_RowDeleting(object sender, GridViewDeletedEventArgs e) {

}}

Add Student Profile :

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 SecurityRoleModel;using System.Collections;using System.Security;

public partial class Admin_Addprofile : System.Web.UI.Page{

54

Page 55: LMS Report

SqlCommand cmd; SqlDataReader dr; string SQL;

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

protected void Button4_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection(); con.ConnectionString = "Server=.;Initial Catalog=SecurityRole;Integrated Security=True"; con.Open(); SQL = "Select*from StudentProfile where RollNo=" + TextBox2.Text; cmd = new SqlCommand(SQL, con); dr = cmd.ExecuteReader(); if (dr.HasRows) { Label1.Text = "This Record is Already Exists";

} else { SqlDataSource1.Insert(); string user = TextBox2.Text.Trim(); Label1.Text = "Record Save";

TextBox1.Text = ""; TextBox2.Text = ""; TextBox3.Text = ""; //TextBox4.Text = ""; TextBox5.Text = ""; TextBox6.Text = ""; TextBox7.Text = ""; TextBox8.Text = ""; TextBox10.Text = ""; } }

55

Page 56: LMS Report

protected void Button5_Click(object sender, EventArgs e) { TextBox1.Text = ""; TextBox2.Text = ""; TextBox3.Text = ""; //TextBox4.Text = ""; TextBox5.Text = ""; TextBox6.Text = ""; TextBox7.Text = ""; TextBox8.Text = ""; DropDownList1.Text = ""; DropDownList2.Text = ""; DropDownList3.Text = ""; } protected void SqlDataSource6_Selecting(object sender, SqlDataSourceSelectingEventArgs e) {

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

}}

Add Staff Profile :

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;

public partial class Admin_AddStaffProfile : System.Web.UI.Page{

SqlCommand cmd;

56

Page 57: LMS Report

SqlDataReader dr; string SQL;

protected void Page_Load(object sender, EventArgs e) {

}

protected void Button4_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection(); con.ConnectionString = "Server=.;Initial Catalog=SecurityRole;Integrated Security=True"; con.Open(); SQL = "Select*from StaffProfile where Staff_ID=" + TextBox2.Text; cmd = new SqlCommand(SQL, con); dr = cmd.ExecuteReader(); if (dr.HasRows) { Label1.Text = "This Record is Already Exists";

} else { SqlDataSource1.Insert(); string user = TextBox2.Text.Trim(); Label1.Text = "Record Save";

TextBox14.Text = ""; TextBox2.Text = ""; TextBox15.Text = ""; TextBox6.Text = ""; TextBox16.Text = ""; TextBox10.Text = ""; TextBox11.Text = ""; TextBox12.Text = ""; TextBox13.Text = ""; }

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

57

Page 58: LMS Report

} protected void SqlDataSource6_Selecting(object sender, SqlDataSourceSelectingEventArgs e) {

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

}}

Add Subject Semester wise :

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;

public partial class Admin_Addsubjectsemesterwise : System.Web.UI.Page{ SqlCommand cmd; string SQL; SqlDataReader dr; protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack) { Label2.Text = ""; }

} protected void Button3_Click1(object sender, EventArgs e) { SqlConnection con = new SqlConnection(); con.ConnectionString = "Server=.;Initial Catalog=SecurityRole;Integrated Security=True";

58

Page 59: LMS Report

con.Open(); SQL = "Select*from Subjectsemesterwise where Subject='" + TextBox1.Text + "'"; cmd = new SqlCommand(SQL, con); dr = cmd.ExecuteReader(); if (dr.HasRows) { Label2.Text = "This Course is Already Exists"; } else { SqlDataSource2.Insert(); string newuser = TextBox1.Text.Trim();

if (Page.IsPostBack) { TextBox1.Text = ""; Label2.Text = "Record is Save"; } }

} protected void Button4_Click(object sender, EventArgs e) { TextBox1.Text = "";

}

protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) {

}}

Create New Role:

using System;59

Page 60: LMS Report

using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Configuration;using System.Web.Security;using System.Collections;using System.Web.UI.WebControls.WebParts;using System.Data.SqlClient;public partial class Role_createNewRole : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) DisplayRolesInGrid(); else if (Page.IsPostBack) Label2.Text = ""; } private void DisplayRolesInGrid() { Rolelist.DataSource = Roles.GetAllRoles(); Rolelist.DataBind();

} protected void Button1_Click(object sender, EventArgs e) { string newrole = TextBox1.Text.Trim(); if (!Roles.RoleExists(newrole)) { // Create the role Roles.CreateRole(newrole);

TextBox1.Text = ""; Label2.Text = "Role Created";

// Refresh the RoleList Grid

DisplayRolesInGrid(); } else

60

Page 61: LMS Report

{

TextBox1.Text = string.Empty; Label2.Text = "This Role Already Exists"; } } protected void Rolelist_RowDeleting(object sender, GridViewDeleteEventArgs e) { // Get the RoleNameLabel Label RoleNameLabel = Rolelist.Rows[e.RowIndex].FindControl("RoleNameLabel") as Label;

// Delete the role Roles.DeleteRole(RoleNameLabel.Text, false);

// Rebind the data to the RoleList grid DisplayRolesInGrid();

//Label4.Visible = true; Label2.Text = "Role has Deleted"; }

protected void Rolelist_SelectedIndexChanged(object sender, EventArgs e) {

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

}}

Create User:

using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;

61

Page 62: LMS Report

using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Admin_createuserr : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { // Reference the SpecifyRolesStep WizardStep WizardStep SpecifyRolesStep= RegisterUserWithRoles.FindControl("SpecifyRolesStep") as WizardStep;

// Reference the RoleList CheckBoxList CheckBoxList RoleList = SpecifyRolesStep.FindControl("RoleList") as CheckBoxList;

// Bind the set of roles to RoleList RoleList.DataSource = Roles.GetAllRoles(); RoleList.DataBind(); } }

protected void RegisterUserWithRoles_ActiveStepChanged(object sender, EventArgs e) { // Have we JUST reached the Complete step? if (RegisterUserWithRoles.ActiveStep.Title == "Complete") { // Reference the SpecifyRolesStep WizardStep WizardStep SpecifyRolesStep = RegisterUserWithRoles.FindControl("SpecifyRolesStep") as WizardStep;

// Reference the RoleList CheckBoxList CheckBoxList RoleList = SpecifyRolesStep.FindControl("RoleList") as CheckBoxList;

// Add the checked roles to the just-added user foreach (ListItem li in RoleList.Items) { if (li.Selected)

62

Page 63: LMS Report

Roles.AddUserToRole(RegisterUserWithRoles.UserName, li.Text); } } } protected void RegisterUserWithRoles_CreatedUser(object sender, EventArgs e) {

}}

Course Detail:

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data;

public partial class Admin_DetailCourse : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack) {

//GridView1.DataBind();

Label1.Text = ""; } } protected void DetailsView1_ItemUpdated(object sender, DetailsViewUpdatedEventArgs e) { }

63

Page 64: LMS Report

protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e) { Label1.Text = "Record is Deleted"; } protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { Session["course"] = GridView1.SelectedValue; Response.Redirect("~/Admin/UpdateCoursedetails.aspx");

} protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e) { if (Page.IsPostBack) { Label1.Text = "Record is Updated"; } }}

KC Profile Detail:

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;

public partial class Admin_UpdateKCProfie : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) {

} protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e) { LabelDetailKcProfiel.Text = "Record is deleted";

64

Page 65: LMS Report

} protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { Session["centercode"] = GridView1.SelectedValue; Response.Redirect("~/Admin/UpdateCenterProfiel.aspx"); }}

Manage User :

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

public partial class Admin_ManageUsers : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { BindUserAccounts();

BindFilteringUI(); } }

private void BindFilteringUI() {

65

Page 66: LMS Report

string[] filterOptions = { "All", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" }; FilteringUI.DataSource = filterOptions; FilteringUI.DataBind(); }

private void BindUserAccounts() { int totalRecords; UserAccounts.DataSource = Membership.FindUsersByName(this.UsernameToMatch + "%", this.PageIndex, this.PageSize, out totalRecords); UserAccounts.DataBind();

// Enable/disable the paging interface bool visitingFirstPage = (this.PageIndex == 0); lnkFirst.Enabled = !visitingFirstPage; lnkPrev.Enabled = !visitingFirstPage;

int lastPageIndex = (totalRecords - 1) / this.PageSize; bool visitingLastPage = (this.PageIndex >= lastPageIndex); lnkNext.Enabled = !visitingLastPage; lnkLast.Enabled = !visitingLastPage; }

protected void FilteringUI_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.CommandName == "All") this.UsernameToMatch = string.Empty; else this.UsernameToMatch = e.CommandName;

BindUserAccounts(); }

#region Paging Interface Click Event Handlers protected void lnkFirst_Click(object sender, EventArgs e) { this.PageIndex = 0; BindUserAccounts(); }

66

Page 67: LMS Report

protected void lnkPrev_Click(object sender, EventArgs e) { this.PageIndex -= 1; BindUserAccounts(); }

protected void lnkNext_Click(object sender, EventArgs e) { this.PageIndex += 1; BindUserAccounts(); }

protected void lnkLast_Click(object sender, EventArgs e) { // Determine the total number of records int totalRecords; Membership.FindUsersByName(this.UsernameToMatch + "%", this.PageIndex, this.PageSize, out totalRecords);

// Navigate to the last page index this.PageIndex = (totalRecords - 1) / this.PageSize; BindUserAccounts(); } #endregion

#region Properties private string UsernameToMatch { get { object o = ViewState["UsernameToMatch"]; if (o == null) return string.Empty; else return (string)o; } set { ViewState["UsernameToMatch"] = value; } }

67

Page 68: LMS Report

private int PageIndex { get { object o = ViewState["PageIndex"]; if (o == null) return 0; else return (int)o; } set { ViewState["PageIndex"] = value; } }

private int PageSize { get { return 10; } } #endregion protected void UserAccounts_SelectedIndexChanged(object sender, EventArgs e) {

} protected void UserAccounts_RowDeleted(object sender, GridViewDeletedEventArgs e) {

}}

Student Result:

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;

68

Page 69: LMS Report

using System.Web.UI.WebControls;

public partial class Admin_Result : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) {

} protected void DropDownList8_SelectedIndexChanged(object sender, EventArgs e) { } protected void TextBox10_TextChanged(object sender, EventArgs e) {

} protected void Button1_Click(object sender, EventArgs e) { SqlDataSource7.Insert(); if (Page.IsPostBack) { TextBox1.Text = "";

} Label1.Text = "Record is Save"; }}

Role Based Authorization:

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

69

Page 70: LMS Report

using System.Security.Permissions;public partial class Admin_RoleBaseAuthorization : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) BindUserGrid(); }

private void BindUserGrid() { MembershipUserCollection allUsers = Membership.GetAllUsers(); UserGrid.DataSource = allUsers; UserGrid.DataBind(); }

protected void UserGrid_RowEditing(object sender, GridViewEditEventArgs e) { // Set the grid's EditIndex and rebind the data UserGrid.EditIndex = e.NewEditIndex; BindUserGrid(); }

protected void UserGrid_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e) { // Revert the grid's EditIndex to -1 and rebind the data UserGrid.EditIndex = -1; BindUserGrid(); }

protected void UserGrid_RowUpdating(object sender, GridViewUpdateEventArgs e) { // Exit if the page is not valid if (!Page.IsValid) return;

// Determine the username of the user we are editing70

Page 71: LMS Report

string UserName = UserGrid.DataKeys[e.RowIndex].Value.ToString();

// Read in the entered information and update the user TextBox EmailTextBox = UserGrid.Rows[e.RowIndex].FindControl("Email") as TextBox; TextBox CommentTextBox = UserGrid.Rows[e.RowIndex].FindControl("Comment") as TextBox;

// Return information about the user MembershipUser UserInfo = Membership.GetUser(UserName);

// Update the User account information UserInfo.Email = EmailTextBox.Text.Trim(); UserInfo.Comment = CommentTextBox.Text.Trim();

Membership.UpdateUser(UserInfo);

// Revert the grid's EditIndex to -1 and rebind the data UserGrid.EditIndex = -1; BindUserGrid(); Labelrolebasedauthorization.Text = "Record is updated"; }

protected void UserGrid_RowDeleting(object sender, GridViewDeleteEventArgs e) { // Determine the username of the user we are editing string UserName = UserGrid.DataKeys[e.RowIndex].Value.ToString();

// Delete the user Membership.DeleteUser(UserName);

// Revert the grid's EditIndex to -1 and rebind the data UserGrid.EditIndex = -1; BindUserGrid(); Labelrolebasedauthorization.Text = "Record is deleted"; }

71

Page 72: LMS Report

protected void UserGrid_SelectedIndexChanged(object sender, EventArgs e) {

}}

Manage Role:

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

public partial class Admin_RoleManage : System.Web.UI.Page

{ protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { // Bind the users and roles BindUsersToUserList(); BindRolesToList();

// Check the selected user's roles CheckRolesForSelectedUser();

// Display those users belonging to the currently selected role //DisplayUsersBelongingToRole(); } } private void BindRolesToList() {

72

Page 73: LMS Report

// Get all of the roles string[] roles = Roles.GetAllRoles(); UsersRoleList.DataSource = roles; UsersRoleList.DataBind(); RoleList.DataSource = roles; RoleList.DataBind(); } private void BindUsersToUserList() { // Get all of the user accounts

MembershipUserCollection users = Membership.GetAllUsers(); UserList.DataSource = users; UserList.DataTextField = "UserName"; UserList.DataValueField = "UserName"; UserList.DataBind(); } protected void UserList_SelectedIndexChanged(object sender, EventArgs e) { CheckRolesForSelectedUser(); } private void CheckRolesForSelectedUser() { // Determine what roles the selected user belongs to string selectedUserName = UserList.SelectedValue; string[] selectedUsersRoles = Roles.GetRolesForUser(selectedUserName);

// Loop through the Repeater's Items and check or uncheck the checkbox as needed foreach (RepeaterItem ri in UsersRoleList.Items) { // Programmatically reference the CheckBox CheckBox RoleCheckBox = ri.FindControl("RoleCheckBox") as CheckBox;

// See if RoleCheckBox.Text is in selectedUsersRoles if (selectedUsersRoles.Contains<string>(RoleCheckBox.Text)) RoleCheckBox.Checked = true; else RoleCheckBox.Checked = false; }

73

Page 74: LMS Report

}

protected void RoleCheckBox_CheckChanged(object sender, EventArgs e) { // Reference the CheckBox that raised this event CheckBox RoleCheckBox = sender as CheckBox;

// Get the currently selected user and role string selectedUserName = UserList.SelectedValue; string roleName = roleName=RoleCheckBox.Text;

// Determine if we need to add or remove the user from this role if (RoleCheckBox.Checked) { // Add the user to the role Roles.AddUserToRole(selectedUserName, roleName);

// Display a status message ActionStatus.Text = string.Format("User {0} was added to role {1}.", selectedUserName, roleName); } else { // Remove the user from the role Roles.RemoveUserFromRole(selectedUserName, roleName);

// Display a status message ActionStatus.Text = string.Format("User {0} was removed from role {1}.", selectedUserName, roleName); }

// Refresh the "by role" interface DisplayUsersBelongingToRole(); } protected void RoleList_SelectedIndexChanged(object sender, EventArgs e) { DisplayUsersBelongingToRole(); }

private void DisplayUsersBelongingToRole() {

74

Page 75: LMS Report

// Get the selected role string selectedRoleName = RoleList.SelectedValue;

// Get the list of usernames that belong to the role String[] usersBelongingToRole = Roles.GetUsersInRole(selectedRoleName);

// Bind the list of users to the GridView RolesUserList.DataSource = usersBelongingToRole; RolesUserList.DataBind(); }

protected void RolesUserList_RowDeleting(object sender, GridViewDeleteEventArgs e) { // Get the selected role string selectedRoleName = RoleList.SelectedValue;

// Reference the UserNameLabel Label UserNameLabel = RolesUserList.Rows[e.RowIndex].FindControl("UserNameLabel") as Label;

// Remove the user from the role Roles.RemoveUserFromRole(UserNameLabel.Text, selectedRoleName);

// Refresh the GridView DisplayUsersBelongingToRole();

// Display a status message ActionStatus.Text = string.Format("User {0} was removed from role {1}.", UserNameLabel.Text, selectedRoleName);

// Refresh the "by user" interface }

protected void AddUserToRoleButton_Click(object sender, EventArgs e) { // Get the selected role and username string selectedRoleName = RoleList.SelectedValue; string userNameToAddToRole = UserNameToAddToRole.Text;

// Make sure that a value was entered75

Page 76: LMS Report

if (userNameToAddToRole.Trim().Length == 0) { ActionStatus.Text = "You must enter a username in the textbox."; return; }

// Make sure that the user exists in the system MembershipUser userInfo = Membership.GetUser(userNameToAddToRole); if (userInfo == null) { ActionStatus.Text = string.Format("The user {0} does not exist in the system.", userNameToAddToRole); return; }

// Make sure that the user doesn't already belong to this role if (Roles.IsUserInRole(userNameToAddToRole, selectedRoleName)) { ActionStatus.Text = string.Format("User {0} already is a member of role {1}.", userNameToAddToRole, selectedRoleName); return; }

// If we reach here, we need to add the user to the role Roles.AddUserToRole(userNameToAddToRole, selectedRoleName);

// Clear out the TextBox UserNameToAddToRole.Text = string.Empty;

// Refresh the GridView DisplayUsersBelongingToRole();

// Display a status message ActionStatus.Text = string.Format("User {0} was added to role {1}.", userNameToAddToRole, selectedRoleName);

// Refresh the "by user" interface CheckRolesForSelectedUser(); } }

76

Page 77: LMS Report

Add Notice :

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.IO;using System.Data.SqlClient;using System.Data;

public partial class Admin_Notice : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) {

} protected void Button1_Click(object sender, EventArgs e) { if (FileUpload1.HasFile) { try { string filename = Path.GetFileName(FileUpload1.FileName); string p = Server.MapPath("~/Notice/") + filename; Session["path"] = p; FileUpload1.SaveAs(p); SqlConnection con = new SqlConnection(); con.ConnectionString = "Server=.;Initial Catalog=SecurityRole;Integrated Security=True"; con.Open(); string SQL = "Insert into Notice values(' " + TextBox1.Text + " ' , ' " + TextBox2.Text + " ' ,' " + TextBox3.Text + " ' ,' " + DropDownList1.SelectedItem.Text + " ' , ' " + FileUpload1 + " ', ' " + filename + " ')";

SqlCommand cmd = new SqlCommand(SQL, con); cmd.ExecuteNonQuery();

77

Page 78: LMS Report

LabelNotice.Text = "Record Save and TimeTable File uploaded!";

} catch (Exception ex) { LabelNotice.Text = "Upload status: The file could not be uploaded. The following error occured: " + ex.Message; }

} }}

See Notice:

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;public partial class Admin_SeeNotice : System.Web.UI.Page{ String constring = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["con"].ConnectionString;

protected void Page_Load(object sender, EventArgs e) {

if (!IsPostBack) BindNotice(); }

void BindNotice() { SqlConnection con = new SqlConnection(constring); //con.ConnectionString = SharedConnection.Connection;

78

Page 79: LMS Report

con.Open(); string SQL = "Select * from Notice";

SqlCommand cmd = new SqlCommand(SQL, con); SqlDataReader sdr = cmd.ExecuteReader(); if (sdr.HasRows) { DataTable dt = new DataTable(); dt.Load(sdr); GridView1.DataSource = dt; GridView1.DataBind(); } }

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { LinkButton lbnOpen = e.Row.FindControl("lbnOpen") as LinkButton;

if (lbnOpen != null) {

string path = lbnOpen.CommandName; lbnOpen.Attributes.Add("onclick", "window.open('../OpenNotice.aspx?f=" + path + "');return false;");

}

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

}}

79

Page 80: LMS Report

Open Notice:

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;

public partial class OpenNotice : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["F"] != null) { try { string FileName = Request.QueryString["F"].ToString(); string path = Server.MapPath("~/Notice/" + FileName.Trim()).Trim(); // string[] content = System.IO.File.ReadAllLines(path); byte[] bts = System.IO.File.ReadAllBytes(path);

Response.Clear(); Response.ClearHeaders(); Response.AddHeader("Content-Length", bts.Length.ToString()); Response.AddHeader("Content-Disposition", "attachment; filename=" + FileName); Response.BinaryWrite(bts); Response.Flush(); Response.End(); } catch (Exception ex) { Response.Write(ex.Message); }

} }}

80

Page 81: LMS Report

Open Syllabus:

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.IO;using System.Data.SqlClient;

public partial class Admin_Syllabus : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) {

} protected void Button1_Click(object sender, EventArgs e) { if (FileUpload1.HasFile) { try { string filename = Path.GetFileName(FileUpload1.FileName); string p = Server.MapPath("~/Syllabus/") + filename; Session["path"] = p; FileUpload1.SaveAs(p); SqlConnection con = new SqlConnection(); con.ConnectionString = "Server=.;Initial Catalog=SecurityRole;Integrated Security=True"; con.Open(); string SQL = "Insert into Syllabus values(' " + TextBox1.Text + " ' ,' " + DropDownList1.SelectedItem.Text + " ' ,' " + DropDownList2.SelectedItem.Text + " ' , ' " + FileUpload1 + " ', ' " + filename + " ')";

SqlCommand cmd = new SqlCommand(SQL, con); cmd.ExecuteNonQuery();

LabelSyllabus.Text = "Record Save and syllabus File uploaded!";

}

81

Page 82: LMS Report

catch (Exception ex) { LabelSyllabus.Text = "Upload status: The file could not be uploaded. The following error occured: " + ex.Message; }

}

See Syllabus:

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;

public partial class Admin_SeeSyllabus : System.Web.UI.Page{ String constring = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["con"].ConnectionString;

protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) BindSyllabus(); }

void BindSyllabus() { SqlConnection con = new SqlConnection(constring); //con.ConnectionString = SharedConnection.Connection; con.Open(); string SQL = "Select * from Syllabus";

SqlCommand cmd = new SqlCommand(SQL, con); SqlDataReader sdr = cmd.ExecuteReader();

82

Page 83: LMS Report

if (sdr.HasRows) { DataTable dt = new DataTable(); dt.Load(sdr); GridView1.DataSource = dt; GridView1.DataBind(); } }

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { LinkButton lbnOpen = e.Row.FindControl("lbnOpen") as LinkButton;

if (lbnOpen != null) {

string path = lbnOpen.CommandName; lbnOpen.Attributes.Add("onclick", "window.open('../Opensyllabus1.aspx?f=" + path + "');return false;");

}

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

}}

Open Syllabus:

using System;using System.Collections.Generic;using System.Linq;using System.Web;

83

Page 84: LMS Report

using System.Web.UI;using System.Web.UI.WebControls;

public partial class OpenSyllabus1 : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["F"] != null) { try { string FileName = Request.QueryString["F"].ToString(); string path = Server.MapPath("~/Syllabus/" + FileName.Trim()).Trim(); // string[] content = System.IO.File.ReadAllLines(path); byte[] bts = System.IO.File.ReadAllBytes(path);

Response.Clear(); Response.ClearHeaders(); Response.AddHeader("Content-Length", bts.Length.ToString()); Response.AddHeader("Content-Disposition", "attachment; filename=" + FileName); Response.BinaryWrite(bts); Response.Flush(); Response.End(); } catch (Exception ex) { Response.Write(ex.Message); }

} }}

Time Table:

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;

84

Page 85: LMS Report

using System.Web.UI.WebControls;using System.IO;using System.Data.SqlClient;

public partial class Admin_TimeTable : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) {

} protected void Button3_Click(object sender, EventArgs e) { if (FileUpload1.HasFile) { try { string filename = Path.GetFileName(FileUpload1.FileName); string p = Server.MapPath("~/TimeTable/") + filename; Session["path"] = p; FileUpload1.SaveAs(p);

SqlConnection con = new SqlConnection(); con.ConnectionString = "Server=.;Initial Catalog=SecurityRole;Integrated Security=True"; con.Open(); string SQL = "Insert into TimeTable values(' " + DropDownList1.SelectedItem.Text + " ' , ' " + FileUpload1 + " ', ' " + filename + " ')";

SqlCommand cmd = new SqlCommand(SQL, con); cmd.ExecuteNonQuery();

LabelTimeTable.Text = "Record Save and TimeTable File uploaded!";

} catch (Exception ex) { LabelTimeTable.Text = "Upload status: The file could not be uploaded. The following error occured: " + ex.Message; }

85

Page 86: LMS Report

See Time Table:

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;public partial class Admin_SeeTimeTable : System.Web.UI.Page{ String constring = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["con"].ConnectionString;

protected void Page_Load(object sender, EventArgs e) {

if (!IsPostBack) BindTimeTable(); }

void BindTimeTable() { SqlConnection con = new SqlConnection(constring); //con.ConnectionString = SharedConnection.Connection; con.Open(); string SQL = "Select * from TimeTable";

SqlCommand cmd = new SqlCommand(SQL, con); SqlDataReader sdr = cmd.ExecuteReader(); if (sdr.HasRows) { DataTable dt = new DataTable(); dt.Load(sdr); GridView1.DataSource = dt; GridView1.DataBind(); } }

86

Page 87: LMS Report

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { LinkButton lbnOpen = e.Row.FindControl("lbnOpen") as LinkButton;

if (lbnOpen != null) {

string path = lbnOpen.CommandName; lbnOpen.Attributes.Add("onclick", "window.open('../OpenTimeTable1.aspx?f=" + path + "');return false;");

}

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

}}

Staff Profile Detail:

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;

public partial class Admin_StaffProfile : System.Web.UI.Page{ protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e) { Label1.Text = "Record is deleted";

87

Page 88: LMS Report

} protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { Session["Staff_ID"] = GridView1.SelectedValue; Response.Redirect("~/Admin/UpdateStaffProfile.aspx"); }}

Student Profile Detail:

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;

public partial class Admin_StudentPfofileDetails : System.Web.UI.Page{ protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e) { Labelstudentprofiel.Text = "Record is deleted";

} protected void GridView1_SelectedIndexChanged1(object sender, EventArgs e) { //Session["centercode"] = GridView1.SelectedValue; //Response.Redirect("~/Admin/UpdateCenterProfiel.aspx"); Session["rollno"] = GridView1.SelectedValue; Response.Redirect("~/Admin/UpdateStudentProfile.aspx"); } }

Update Center Profile:

using System;using System.Collections.Generic;using System.Linq;using System.Web;

88

Page 89: LMS Report

using System.Web.UI;using System.Web.UI.WebControls;

public partial class UpdateCenterProfiel : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) {

} protected void DetailsView1_ItemUpdating(object sender, DetailsViewUpdateEventArgs e) { Label1.Text = "Record is Updated"; } protected void DetailsView1_PageIndexChanging(object sender, DetailsViewPageEventArgs e) {

}}

Update Staff Profile:

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;

public partial class Admin_UpdateStaffProfile : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack) { Label1.Text = "";

} }

89

Page 90: LMS Report

protected void DetailsView1_ItemUpdated(object sender, DetailsViewUpdatedEventArgs e) { Label1.Text = "Record is Updated"; } protected void DetailsView1_PageIndexChanging(object sender, DetailsViewPageEventArgs e) {

}

}

Update Student Profile:

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;

public partial class Admin_UpdateStudentProfile : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack) { Label1.Text = "";

} } protected void DetailsView1_ItemUpdated(object sender, DetailsViewUpdatedEventArgs e) { Label1.Text = "Record is Updated"; } protected void DetailsView1_PageIndexChanging(object sender, DetailsViewPageEventArgs e) {

90

Page 91: LMS Report

} }

User Information:

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Security;using System.Web.Security;public partial class Admin_userinfo : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { DropDownList1.DataSource = Membership.GetAllUsers(); DropDownList1.DataBind(); } } protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { List<MembershipUser> list = new List<MembershipUser>(); list.Add(Membership.GetUser(DropDownList1.SelectedValue.ToString())); DetailsView1.DataSource = list; DetailsView1.DataBind(); } protected void DetailsView1_PageIndexChanging(object sender, DetailsViewPageEventArgs e) {

}

91

Page 92: LMS Report

}

Approved User Information:

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Security ;using System.Web.Security;

public partial class Admin_userInformationaspx : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { string userName = Request.QueryString["user"]; if (string.IsNullOrEmpty(userName)) Response.Redirect("ManageUsers.aspx");

MembershipUser usr = Membership.GetUser(userName); if (usr == null) Response.Redirect("ManageUsers.aspx");

UserNameLabel.Text = usr.UserName; IsApproved.Checked = usr.IsApproved;

if (usr.LastLockoutDate.Year < 2000) LastLockoutDateLabel.Text = string.Empty;

else LastLockoutDateLabel.Text = usr.LastLockoutDate.ToShortDateString();

UnlockUserButton.Enabled = usr.IsLockedOut; }

92

Page 93: LMS Report

} protected void IsApproved_CheckedChanged(object sender, EventArgs e) { string userName = Request.QueryString["user"]; MembershipUser usr = Membership.GetUser(userName); usr.IsApproved = IsApproved.Checked; Membership.UpdateUser(usr);

StatusMessage .Text ="The user's approved status has been updated."; } protected void UnlockUserButton_Click(object sender, EventArgs e) { string userName = Request.QueryString["user"]; MembershipUser usr = Membership.GetUser(userName); usr.UnlockUser();

UnlockUserButton.Enabled = false ; StatusMessage.Text = "The user account has been unlocked.";

}

}

Knowledge Center:

Check KC Profile:

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.Web.Configuration;

public partial class KC_Profiel : System.Web.UI.Page

93

Page 94: LMS Report

{ String constring = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["con"].ConnectionString; protected void Page_Load(object sender, EventArgs e) {

}

protected void search_Click(object sender, EventArgs e) {

SqlConnection con = new SqlConnection(constring);

con.Open();

SqlCommand cmd = new SqlCommand("select * from CenterCode where CenterCode=@CenterCode ", con);

cmd.Parameters.AddWithValue("@Centercode", txt1.Text); SqlDataReader dr = cmd.ExecuteReader(); DetailsView1.DataSource = dr; DetailsView1.DataBind(); //GridView1.DataSource = dr; //GridView1.DataBind(); dr.Close(); con.Close();

}}

94

Page 95: LMS Report

Check Student Result:

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;

public partial class KC_Result : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) {

} protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { Session["rollno"] = GridView1.SelectedValue;

Response.Redirect("~/KC/SelectedStudentResult.aspx");

}}

Assignment:

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.IO;using System.Data.SqlClient;using System.Data;

public partial class Staff_Assignment : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) {

95

Page 96: LMS Report

} protected void Button1_Click(object sender, EventArgs e) { if (FileUpload1.HasFile) { try { string filename = Path.GetFileName(FileUpload1.FileName); string p = Server.MapPath("~/Assignment/") + filename; Session["path"] = p; FileUpload1.SaveAs(p);

SqlConnection con = new SqlConnection(); con.ConnectionString = "Server=.;Initial Catalog=SecurityRole;Integrated Security=True"; con.Open(); string SQL = "Insert into Assignment values( ' " + DropDownList1.SelectedItem.Text + " ' ,' " + TextBox4.Text + " ' , ' " + TextBox1.Text + " ' ,' " + TextBox2.Text + " ' ,' " + TextBox3.Text + " ' , ' " + FileUpload1 + " ', ' " + filename + " ')";

SqlCommand cmd = new SqlCommand(SQL, con); cmd.ExecuteNonQuery();

StatusLabel.Text = "Record Save and TimeTable File uploaded!";

} catch (Exception ex) { StatusLabel.Text = "Upload status: The file could not be uploaded. The following error occured: " + ex.Message; }

See Assignment:

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;

96

Page 97: LMS Report

using System.Data;public partial class Staff_SeeAssignment : System.Web.UI.Page{ String constring = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["con"].ConnectionString;

protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) BindAssignment(); }

void BindAssignment() { SqlConnection con = new SqlConnection(constring); //con.ConnectionString = SharedConnection.Connection; con.Open(); string SQL = "Select * from Assignment";

SqlCommand cmd = new SqlCommand(SQL, con); SqlDataReader sdr = cmd.ExecuteReader(); if (sdr.HasRows) { DataTable dt = new DataTable(); dt.Load(sdr); GridView1.DataSource = dt; GridView1.DataBind(); } }

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { LinkButton lbnOpen = e.Row.FindControl("lbnOpen") as LinkButton;

if (lbnOpen != null) {

97

Page 98: LMS Report

string path = lbnOpen.CommandName; lbnOpen.Attributes.Add("onclick", "window.open('../OpenAssignment2.aspx?f=" + path + "');return false;");

}

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

}}

Open Assignment:

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;

public partial class OpenAssignment2 : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) {

if (Request.QueryString["F"] != null) { try { string FileName = Request.QueryString["F"].ToString(); string path = Server.MapPath("~/Assignment/" + FileName.Trim()).Trim(); // string[] content = System.IO.File.ReadAllLines(path); byte[] bts = System.IO.File.ReadAllBytes(path);

Response.Clear(); Response.ClearHeaders(); Response.AddHeader("Content-Length", bts.Length.ToString());

98

Page 99: LMS Report

Response.AddHeader("Content-Disposition", "attachment; filename=" + FileName); Response.BinaryWrite(bts); Response.Flush(); Response.End(); } catch (Exception ex) { Response.Write(ex.Message); }

} }}

Attendance:

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;

public partial class Staff_Attendance : System.Web.UI.Page{ protected void Button2_Click1(object sender, EventArgs e) { foreach (GridViewRow row in GridView2.Rows) {

Label lblRollno = row.FindControl("Label3") as Label; Label lblName = row.FindControl("Label2") as Label; CheckBox chkAtt = row.FindControl("chkAtt") as CheckBox;

SqlDataSource3.InsertParameters["r"].DefaultValue = lblRollno.Text; SqlDataSource3.InsertParameters["n"].DefaultValue = lblName.Text; SqlDataSource3.InsertParameters["c"].DefaultValue = DropDownList1.SelectedValue;

99

Page 100: LMS Report

SqlDataSource3.InsertParameters["d"].DefaultValue = TextBox1.Text; SqlDataSource3.InsertParameters["s"].DefaultValue = chkAtt.Checked.ToString(); SqlDataSource3.Insert();

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

}}

Calculate DateWise Attendance:

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;

public partial class Staff_CalculateDatewiseAttendance : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) {

} protected void Button2_Click1(object sender, EventArgs e) { SqlConnection con = new SqlConnection("Data Source=.;Initial Catalog=SecurityRole;Integrated Security=True");

con.Open();

SqlCommand cmd = new SqlCommand("select count (status) from Attendance where RollNumber=@RollNumber and Date between @d1 and @d2 ", con);

100

Page 101: LMS Report

cmd.Parameters.AddWithValue("@RollNumber", TextBox3.Text); cmd.Parameters.AddWithValue("@d1", TextBox2.Text); cmd.Parameters.AddWithValue("@d2", TextBox1.Text); SqlDataReader dr = cmd.ExecuteReader(); GridView1.DataSource = dr; GridView1.DataBind(); dr.Close(); con.Close();

}}

HTML Code of Project

Add Center Code:

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="AddCenterCode.aspx.cs" Inherits="Admin_AddCenterCode" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .style5 { }

101

Page 102: LMS Report

.style6 { width: 153px; } .style7 { width: 168px; } .style9 { width: 101px; } .style10 { width: 157px; } </style></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <center > <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate > <table align="center"> <tr> <td colspan="2" align ="center" > <asp:Panel ID="Panel1" runat="server" BorderStyle="Outset" Height="679px" Width="573px" BackColor="#DCDCB8"> <table align="center" class="style2"> <tr> <td colspan="4" align ="center" style="background-color : Transparent " bgcolor="#FFFFCC" >

102

Page 103: LMS Report

<h2 style="width: 388px; font-family: 'Footlight MT Light'; font-size: 2em; color: #800000; height: 28px;"> Add Knwoledge Center Profile</h2> </td> </tr> <tr> <td colspan="4"> <hr style="background-color: #FFFFFF" size="3" /></td> </tr> <tr> <td colspan="4" style="background-color: #C0C0C0" align="center"> <asp:Label ID="LabelCenterProfile" runat="server" Font-Bold="False" Font-Size="Medium" ForeColor="Red"></asp:Label> </td> </tr> <tr> <td align="center" style="font-weight: bold; font-family: Arial;" class="style7"> &nbsp;</td> <td align="left" class="style6" colspan="2"> &nbsp;</td> <td align="left"> &nbsp;</td> </tr> <tr> <td align="right" class="style7" style="font-weight: normal; font-family: 'Times New Roman', Times, serif; font-size: 1em;"> Center Code</td> <td align="center" class="style6" colspan="2"> <asp:TextBox ID="TextBox1" runat="server" AutoPostBack="True" MaxLength="5"></asp:TextBox> <asp:FilteredTextBoxExtender ID="TextBox1_FilteredTextBoxExtender" runat="server" Enabled="True" FilterType="Numbers" TargetControlID="TextBox1"> </asp:FilteredTextBoxExtender> <asp:TextBoxWatermarkExtender ID="TextBox1_TextBoxWatermarkExtender"

103

Page 104: LMS Report

runat="server" Enabled="True" TargetControlID="TextBox1" WatermarkCssClass="watermarked" WatermarkText="Enter Digit only"> </asp:TextBoxWatermarkExtender> </td> <td align="left"> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style7"> &nbsp;</td> <td colspan="3"> &nbsp;</td> </tr> <tr> <td align="right" style ="font-weight:normal; font-family :'Times New Roman', Times, serif; font-size: 1em;" class="style7"> Institue Name</td> <td align="center" class="style6" colspan="2"> <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox> <asp:FilteredTextBoxExtender ID="TextBox2_FilteredTextBoxExtender" runat="server" Enabled="True" FilterMode="InvalidChars" InvalidChars="1234567890" TargetControlID="TextBox2" ValidChars="ABCDEFGHIJKLMNOPQRSTUVWXYZ"> </asp:FilteredTextBoxExtender> <asp:TextBoxWatermarkExtender ID="TextBox2_TextBoxWatermarkExtender" runat="server" Enabled="True" TargetControlID="TextBox2" WatermarkCssClass="watermarked" WatermarkText="Enter only A-Z"> </asp:TextBoxWatermarkExtender> </td>

104

Page 105: LMS Report

<td align="left"> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style7"> &nbsp;</td> <td colspan="3"> &nbsp;</td> </tr> <tr> <td align="right" style="font-weight:normal; font-family : 'Times New Roman', Times, serif; font-size: 1em;" class="style7"> Center Head Name</td> <td align ="center" class="style6" colspan="2" > <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox> <asp:FilteredTextBoxExtender ID="TextBox3_FilteredTextBoxExtender" runat="server" Enabled="True" InvalidChars="1234567890" TargetControlID="TextBox3" FilterMode="InvalidChars"> </asp:FilteredTextBoxExtender> <asp:TextBoxWatermarkExtender ID="TextBox3_TextBoxWatermarkExtender" runat="server" Enabled="True" TargetControlID="TextBox3" WatermarkCssClass="watermarked" WatermarkText="Enter only A-z"> </asp:TextBoxWatermarkExtender> </td> <td align="left"> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox3" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr>

105

Page 106: LMS Report

<tr> <td class="style7"> &nbsp;</td> <td colspan="3"> &nbsp;</td> </tr> <tr> <td align="right" style="font-weight:normal; font-family :'Times New Roman', Times, serif; font-size: 1em;" class="style7"> Address</td> <td align="center" colspan="2" > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:TextBox ID="TextBox4" runat="server" Height="48px" Width="196px" style="margin-right: 16px" TextMode="MultiLine"></asp:TextBox> </td> <td align="left"> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBox4" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style7"> &nbsp;</td> <td colspan="3"> <div style="position: absolute; top: 360px; left: 444px;"> <asp:UpdateProgress ID="UpdateProgress1" runat="server"> <ProgressTemplate> <img alt="" src="../image/animated.gif" style="width: 100px; height: 100px" /> </ProgressTemplate> </asp:UpdateProgress> </div> </td> </tr>

106

Page 107: LMS Report

<tr> <td align="right" style="font-weight:normal ; font-family :'Times New Roman', Times, serif; font-size: 1em;" class="style7"> Contact</td> <td align ="center" class="style6" colspan="2" > <asp:TextBox ID="TextBox5" runat="server" MaxLength="10"></asp:TextBox> <asp:FilteredTextBoxExtender ID="TextBox5_FilteredTextBoxExtender" runat="server" Enabled="True" FilterType="Numbers" TargetControlID="TextBox5"> </asp:FilteredTextBoxExtender> <asp:TextBoxWatermarkExtender ID="TextBox5_TextBoxWatermarkExtender" runat="server" Enabled="True" TargetControlID="TextBox5" WatermarkCssClass="watermarked" WatermarkText="Enter Digit 0-9"> </asp:TextBoxWatermarkExtender> </td> <td align="left"> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBox5" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style7"> &nbsp;</td> <td colspan="3"> &nbsp;</td> </tr> <tr> <td align="right" style="font-weight:normal; font-family :'Times New Roman', Times, serif; font-size: 1em;" class="style7"> E-Mail Id </td> <td align ="center" class="style6" colspan="2">

107

Page 108: LMS Report

<asp:TextBox ID="TextBox6" runat="server"></asp:TextBox> </td> <td align="left"> <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox6" ErrorMessage="Invalid E-mail Id" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator> </td> </tr> <tr> <td class="style7"> &nbsp;</td> <td colspan="3"> &nbsp;</td> </tr> <tr> <td align="right" style ="font-weight:normal ; font-family :'Times New Roman', Times, serif; font-size: 1em;" class="style7"> Block</td> <td align ="center" class="style6" colspan="2" > <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox> <asp:FilteredTextBoxExtender ID="TextBox7_FilteredTextBoxExtender" runat="server" Enabled="True" InvalidChars="1234567890" TargetControlID="TextBox7" FilterMode="InvalidChars"> </asp:FilteredTextBoxExtender> <asp:TextBoxWatermarkExtender ID="TextBox7_TextBoxWatermarkExtender" runat="server" Enabled="True" TargetControlID="TextBox7" WatermarkCssClass="watermrked" WatermarkText="Enter A-Z"> </asp:TextBoxWatermarkExtender> </td> <td align="left">

108

Page 109: LMS Report

<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TextBox7" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style7"> &nbsp;</td> <td colspan="3" align="right"> &nbsp;</td> </tr> <tr> <td align="right" style ="font-weight:normal ; font-family :'Times New Roman', Times, serif; font-size: 1em;" class="style7"> District</td> <td align ="center" class="style6" colspan="2"> <asp:TextBox ID="TextBox8" runat="server"></asp:TextBox> <asp:FilteredTextBoxExtender ID="TextBox8_FilteredTextBoxExtender" runat="server" Enabled="True" InvalidChars="1234567890" TargetControlID="TextBox8" FilterMode="InvalidChars"> </asp:FilteredTextBoxExtender> <asp:TextBoxWatermarkExtender ID="TextBox8_TextBoxWatermarkExtender" runat="server" Enabled="True" TargetControlID="TextBox8" WatermarkCssClass="watermarked" WatermarkText="Enter A-Z"> </asp:TextBoxWatermarkExtender> </td> <td align="left"> <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="TextBox8" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr>

109

Page 110: LMS Report

<td class="style7"> &nbsp;</td> <td colspan="3"> &nbsp;</td> </tr> <tr> <td align="right" style ="font-weight: normal ; font-family :'Times New Roman', Times, serif; font-size: 1em;" class="style7"> Validation Date of KC</td> <td align ="center" class="style6" colspan="2"> <asp:TextBox ID="TextBox9" runat="server"></asp:TextBox> <asp:CalendarExtender ID="TextBox9_CalendarExtender" runat="server" Enabled="True" TargetControlID="TextBox9"> </asp:CalendarExtender> </td> <td align="left"> <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="TextBox9" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style7"> &nbsp;</td> <td colspan="3"> &nbsp;</td> </tr> <tr> <td align="right" class="style7"> &nbsp;</td> <td align="right" class="style9"> <asp:Button ID="Button1" runat="server" Height="35px" onclick="Button1_Click" Text="Submit" Width="92px" BackColor="#00003E" Font-Bold="True" ForeColor="White" /> </td> <td align="left" class="style10">

110

Page 111: LMS Report

<asp:Button ID="Button2" runat="server" Height="35px" onclick="Button2_Click" style="margin-left: 0" Text="Cancel" Width="92px" BackColor="#00003E" Font-Bold="True" ForeColor="White" /> </td> <td align="left" class="style5"> &nbsp;</td> </tr> </table> </asp:Panel> </td> </tr> <tr> <td > </td> <td> <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </asp:ToolkitScriptManager> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" InsertCommand="INSERT INTO CenterCode(CenterCode, InstitueName, CenterHeadName, Address, ContactNo, EmailId, Block, District, ValidationDateofKc) VALUES (@CenterCode,@InstitueName,@CenterHeadName,@Address,@ContactNo,@EmailId,@Block,@District,@ValidationDateofKc)" SelectCommand="SELECT * FROM [CenterCode]"> <InsertParameters> <asp:ControlParameter ControlID="TextBox1" Name="CenterCode" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox2" Name="InstitueName" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox3" Name="CenterHeadName" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox4" Name="Address" PropertyName="Text" />

111

Page 112: LMS Report

<asp:ControlParameter ControlID="TextBox5" Name="ContactNo" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox6" Name="EmailId" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox7" Name="Block" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox8" Name="District" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox9" Name="ValidationDateofKc" PropertyName="Text" /> </InsertParameters> </asp:SqlDataSource> </td> </tr> </table> </ContentTemplate> </asp:UpdatePanel> </center></asp:Content>

Add Course:

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="Addcourse.aspx.cs" Inherits="Admin_centercode" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .style7 { width: 97%;

112

Page 113: LMS Report

height: 248px; } .style11 { } .style14 { width: 1%; } .style17 { width: 152px; } .style23 { } .style24 { width: 249px; } .style25 { width: 249px; height: 8px; } .style26 { width: 152px; height: 8px; } .style27 { height: 8px; } </style></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate > <table class="style7" align="center"> <tr>

113

Page 114: LMS Report

<td class="style11" rowspan="7" align ="center" > <asp:Panel ID="Panel1" runat="server" BorderStyle="Outset" Height="319px" Width="630px" BackColor="#CFCF9E"> <table class="style7"> <tr> <td colspan="3" align ="center" > <h5 style="font-family: 'Footlight MT Light'; font-weight: bolder; color: #003366; font-size: 2em; width: 258px;" align="center"> Add New Course</h5> </td> </tr> <tr> <td colspan="3"> <hr style="color: Maroon " size="3" /> </td> </tr> <tr> <td class="style23" colspan="3" style="background-color: #CCCCCC" align="center"> <asp:Label ID="LabelCourse" runat="server" ForeColor="Red"></asp:Label> </td> </tr> <tr> <td class="style23" colspan="3"> &nbsp;</td> </tr> <tr> <td align="right" class="style24" style="font-weight: normal; font-family: 'Times New Roman', Times, serif; font-size: 1em;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Course Name&nbsp;&nbsp;&nbsp; </td> <td class="style17">

114

Page 115: LMS Report

<asp:TextBox ID="TextBox1" runat="server" BackColor="#FFFFE8" BorderColor="#336699"></asp:TextBox> <asp:FilteredTextBoxExtender ID="TextBox1_FilteredTextBoxExtender" runat="server" Enabled="True" FilterMode="InvalidChars" InvalidChars="1234567890" TargetControlID="TextBox1"> </asp:FilteredTextBoxExtender> <asp:TextBoxWatermarkExtender ID="TextBox1_TextBoxWatermarkExtender" runat="server" Enabled="True" TargetControlID="TextBox1" WatermarkCssClass="watermarked" WatermarkText="Enter only A-Z"> </asp:TextBoxWatermarkExtender> </td> <td align="left"> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr> <td align="right" style="font-family: 'Times New Roman', Times, serif; font-weight: normal; font-size: 1em;" valign="bottom"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Duration&nbsp; &nbsp; </td> <td class="style17" valign="top"> &nbsp;<asp:TextBox ID="TextBox2" runat="server" BackColor="#FFFFE8" BorderColor="#336699"></asp:TextBox>

115

Page 116: LMS Report

<asp:TextBoxWatermarkExtender ID="TextBox2_TextBoxWatermarkExtender" runat="server" Enabled="True" TargetControlID="TextBox2" WatermarkCssClass="watermarked" WatermarkText="Enter Digit or Number"> </asp:TextBoxWatermarkExtender> </td> <td align="left"> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style24"> &nbsp;</td> <td class="style17"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style24" align="right" style="font-family: 'Times New Roman', Times, serif; font-weight: normal; font-size: 1em;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fee &nbsp;&nbsp;&nbsp; </td> <td class="style17"> <asp:TextBox ID="TextBox3" runat="server" BackColor="#FFFFE8" BorderColor="#336699"></asp:TextBox> <asp:FilteredTextBoxExtender ID="TextBox3_FilteredTextBoxExtender" runat="server" Enabled="True" FilterType="Numbers" TargetControlID="TextBox3"> </asp:FilteredTextBoxExtender>

116

Page 117: LMS Report

<asp:TextBoxWatermarkExtender ID="TextBox3_TextBoxWatermarkExtender" runat="server" Enabled="True" TargetControlID="TextBox3" WatermarkCssClass="watermarked" WatermarkText="Enter only Digit"> </asp:TextBoxWatermarkExtender> </td> <td align="left"> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox3" ErrorMessage="*" Display="Dynamic"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style24"> &nbsp;</td> <td class="style17"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style24"> &nbsp;</td> <td align="left" class="style17"> <asp:Button ID="Button1" runat="server" Height="29px" onclick="Button1_Click" Text="Submit" Width="72px" BackColor="#00004F" Font-Bold="True" ForeColor="White" /> <asp:Button ID="Button2" runat="server" Height="29px" onclick="Button2_Click" Text="Cencel" Width="73px" BackColor="#00004F" Font-Bold="True" ForeColor="White" /> </td> <td align="left"> <div style="position: absolute; top: 222px; left: 479px;"> <asp:UpdateProgress ID="UpdateProgress1" runat="server"> <ProgressTemplate>

117

Page 118: LMS Report

<img alt="" src="../image/animated.gif" style="width: 100px; height: 100px" /> </ProgressTemplate> </asp:UpdateProgress> </div> </td> </tr> </table> </asp:Panel> </td> <td class="style14"> &nbsp;</td> </tr> <tr> <td class="style14"> &nbsp;</td> </tr> <tr> <td class="style14"> &nbsp;</td> </tr> <tr> <td class="style14"> &nbsp;</td> </tr> <tr> <td class="style14"> &nbsp;</td> </tr> <tr> <td class="style14"> &nbsp;</td> </tr> <tr> <td class="style14"> &nbsp;</td> </tr> <tr> <td> <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>"

118

Page 119: LMS Report

InsertCommand="INSERT INTO Courses(CourseName, Duration, FeeStructure) VALUES (@CourseName,@Duration,@FeeStructure)" SelectCommand="SELECT * FROM [Courses]"> <InsertParameters> <asp:ControlParameter ControlID="TextBox1" Name="CourseName" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox2" Name="Duration" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox3" Name="FeeStructure" PropertyName="Text" /> </InsertParameters> </asp:SqlDataSource> <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </asp:ToolkitScriptManager> </td> <td class="style14"> &nbsp;</td> </tr> </table> </ContentTemplate> </asp:UpdatePanel></asp:Content>

Add Student Profile:

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="Addprofile.aspx.cs" Inherits="Admin_Addprofile" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

119

Page 120: LMS Report

<style type="text/css"> .style7 { width: 100%; margin-right: 0; } .style8 { } .style9 { } .style14 { } .style16 { width: 63px; } .style18 { } .style20 { height: 17px; } .style21 { width: 63px; height: 17px; } .style22 { width: 200px; height: 17px; } .style25 { height: 11px; } .style28 { height: 11px;

120

Page 121: LMS Report

width: 144px; } .style30 { height: 12px; } .style32 { height: 12px; width: 144px; } .style50 { width: 59px; } .style66 { } .style67 { width: 200px; } .style68 { height: 17px; width: 144px; } .style69 { width: 144px; } </style></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <center > <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate > <asp:Panel ID ="Panel1" runat ="server" BorderStyle ="Outset" Height="866px" Width="532px" BackColor="#DADAB6" >

121

Page 122: LMS Report

<table class="style7" style="font-family: 'Arial Unicode MS'; font-weight: bold" align="center"> <tr> <td align="center" colspan="5" valign ="middle" style="font-family: Bigmouth; font-weight: bold; color: #000066"> <h2 align="center" style="font-family: 'Footlight MT Light'; width: 280px; font-size: 2em; font-weight: bolder;"> Add Student</h2> </td> </tr> <tr> <td colspan="5"> <hr noshade="noshade" /></td> </tr> <tr> <td class="style20" colspan="5" align="center"> <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label> </td> </tr> <tr> <td class="style20" colspan="5"> </td> </tr> <tr> <td class="style68" colspan="2" align="right" style="font-family: 'Times New Roman', Times, serif; font-weight: normal; font-size: medium;"> Session&nbsp;&nbsp;&nbsp; </td> <td colspan="3" align="left"> <asp:TextBox ID="TextBox10" runat="server" Height="20px" Width="127px" BorderColor="#CCCCFF"></asp:TextBox>

122

Page 123: LMS Report

<asp:FilteredTextBoxExtender ID="TextBox10_FilteredTextBoxExtender" runat="server" Enabled="True" FilterMode="InvalidChars" InvalidChars="1234567890" TargetControlID="TextBox10"> </asp:FilteredTextBoxExtender> <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="TextBox10" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr> <td align="right" class="style68" colspan="2" style="font-family: 'Times New Roman', Times, serif; font-weight: normal; font-size: medium;"> &nbsp;</td> <td align="left" colspan="3"> &nbsp;</td> </tr> <tr> <td align="right" class="style68" colspan="2" style="font-family: 'Times New Roman', Times, serif; font-weight: normal; font-size: medium;"> Center Code&nbsp;&nbsp;&nbsp; </td> <td align="left" colspan="3"> <asp:DropDownList ID="DropDownList3" runat="server" DataSourceID="SqlDataSource6" DataTextField="CenterCode" DataValueField="CenterCode" Height="24px" Width="127px"> <asp:ListItem>01830</asp:ListItem> <asp:ListItem>01820</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="DropDownList3" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style68" colspan="2"> &nbsp;</td>

123

Page 124: LMS Report

<td class="style21"> &nbsp;</td> <td class="style22" colspan="2"> &nbsp;</td> </tr> <tr> <td class="style28" colspan="2" align="right" style="font-family: 'times New Roman', Times, serif; font-size: medium; font-weight: normal"> Roll No&nbsp;&nbsp;&nbsp; </td> <td class="style25" colspan="3" align="left"> <asp:TextBox ID="TextBox2" runat="server" Height="20px" Width="127px" MaxLength="15" BorderColor="#CCCCFF" ></asp:TextBox> <asp:TextBoxWatermarkExtender ID="TextBox2_TextBoxWatermarkExtender" runat="server" Enabled="True" TargetControlID="TextBox2" WatermarkCssClass="watermarked " WatermarkText="Enter Only Digit"> </asp:TextBoxWatermarkExtender> <asp:FilteredTextBoxExtender ID="TextBox2_FilteredTextBoxExtender" runat="server" Enabled="True" FilterType="Numbers" TargetControlID="TextBox2"> </asp:FilteredTextBoxExtender> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox2" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style69" colspan="2"> &nbsp;</td> <td class="style16"> &nbsp;</td> <td class="style9" colspan="2"> <div style="position: absolute; top: 339px; left: 447px;"> <asp:UpdateProgress ID="UpdateProgress1" runat="server"> <ProgressTemplate>

124

Page 125: LMS Report

<img alt="" src="../image/animated.gif" style="width: 100px; height: 100px" /> </ProgressTemplate> </asp:UpdateProgress> </div> </td> </tr> <tr> <td class="style32" align="right" colspan="2" style="font-family: 'times New Roman', Times, serif; font-size: medium; font-weight: normal"> Registration No&nbsp;&nbsp;&nbsp; </td> <td class="style30" colspan="3" align="left"> <asp:TextBox ID="TextBox1" runat="server" Height="20px" Width="127px" Rows="15" BorderColor="#CCCCFF" ></asp:TextBox> <asp:TextBoxWatermarkExtender ID="TextBox1_TextBoxWatermarkExtender" runat="server" Enabled="True" TargetControlID="TextBox1" WatermarkText="Enter Only Digit" WatermarkCssClass="watermarked "> </asp:TextBoxWatermarkExtender> <asp:FilteredTextBoxExtender ID="TextBox1_FilteredTextBoxExtender" runat="server" Enabled="True" FilterType="Numbers" TargetControlID="TextBox1"> </asp:FilteredTextBoxExtender> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox1" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style67"> &nbsp;</td> <td class="style18" colspan="3"> &nbsp;</td> </tr> <tr> <td align="right" colspan="2"

125

Page 126: LMS Report

style="font-family: 'times New Roman', Times, serif; font-size: medium; font-weight: normal" class="style69"> &nbsp;Name&nbsp;&nbsp;&nbsp; </td> <td class="style18" colspan="3" align="left"> <asp:TextBox ID="TextBox3" runat="server" Height="20px" Width="127px" BorderColor="#BCBCBC"></asp:TextBox> <asp:TextBoxWatermarkExtender ID="TextBox3_TextBoxWatermarkExtender" runat="server" Enabled="True" TargetControlID="TextBox3" WatermarkCssClass="watermarked " WatermarkText="Enter First Name"> </asp:TextBoxWatermarkExtender> <asp:FilteredTextBoxExtender ID="TextBox3_FilteredTextBoxExtender" runat="server" Enabled="True" FilterMode="InvalidChars" InvalidChars="1234567890" TargetControlID="TextBox3"> </asp:FilteredTextBoxExtender> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBox3" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style69" colspan="2"> </td> <td class="style16"> </td> </tr> <tr> <td class="style69" colspan="2"> &nbsp;</td> <td class="style16"> &nbsp;</td> </tr> <tr> <td align="right" colspan="2" style="font-family: 'times New Roman', Times, serif; font-size: medium; font-weight: normal"

126

Page 127: LMS Report

class="style69"> Father Name&nbsp;&nbsp;&nbsp; </td> <td class="style18" colspan="3" align="left"> <asp:TextBox ID="TextBox5" runat="server" Height="20px" Width="127px" BorderColor="#CCCCFF"></asp:TextBox> <asp:FilteredTextBoxExtender ID="TextBox5_FilteredTextBoxExtender" runat="server" Enabled="True" FilterMode="InvalidChars" InvalidChars="1234567890" TargetControlID="TextBox5"> </asp:FilteredTextBoxExtender> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBox5" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style69" colspan="2"> &nbsp;</td> <td class="style16"> &nbsp;</td> </tr> <tr> <td align="right" colspan="2" style="font-family: 'times New Roman', Times, serif; font-size: medium; font-weight: normal" class="style69"> Date Of Birth&nbsp;&nbsp;&nbsp; </td> <td class="style18" colspan="3" align="left"> <asp:TextBox ID="TextBox7" runat="server" Height="20px" Width="127px" BorderColor="#CCCCFF"></asp:TextBox> <asp:CalendarExtender ID="TextBox7_CalendarExtender" runat="server" Enabled="True" TargetControlID="TextBox7"> </asp:CalendarExtender> <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TextBox6" ErrorMessage="*"></asp:RequiredFieldValidator> </td>

127

Page 128: LMS Report

</tr> <tr> <td class="style69" colspan="2"> &nbsp;</td> <td class="style16"> &nbsp;</td> <td class="style9" colspan="2"> &nbsp;</td> </tr> <tr> <td align="right" colspan="2" style="font-family: 'times New Roman', Times, serif; font-size: medium; font-weight: normal" class="style69"> Address&nbsp;&nbsp;&nbsp; </td> <td class="style14" colspan="3" valign="top" align="left"> <asp:TextBox ID="TextBox6" runat="server" Height="75px" TextMode="MultiLine" Width="196px" CssClass="rounded-corners" BorderColor="#CCCCFF" BorderStyle="Outset"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TextBox7" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style69" colspan="2"> &nbsp;</td> <td class="style16"> &nbsp;</td> <td class="style9" colspan="2"> &nbsp;</td> </tr> <tr> <td align="right" colspan="2" style="font-family: 'times New Roman', Times, serif; font-size: medium; font-weight: normal" class="style69">

128

Page 129: LMS Report

Contact No&nbsp;&nbsp;&nbsp; </td> <td class="style18" colspan="3" align="left"> <asp:TextBox ID="TextBox8" runat="server" BorderColor="#CCCCFF" Height="24px" Width="127px" MaxLength="10"></asp:TextBox> <asp:FilteredTextBoxExtender ID="TextBox8_FilteredTextBoxExtender" runat="server" Enabled="True" FilterType="Numbers" TargetControlID="TextBox8"> </asp:FilteredTextBoxExtender> <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="TextBox8" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style69" colspan="2"> &nbsp;</td> <td class="style16"> &nbsp;</td> <td class="style9" colspan="2"> &nbsp;</td> </tr> <tr> <td colspan="2" class="style69"> <table class="style7"> <tr> <td align="right" style="font-family: 'times New Roman', Times, serif; font-size: medium; font-weight: normal"> Course&nbsp;&nbsp;&nbsp; </td> </tr> </table> </td> <td class="style18" colspan="3" align="left"> <asp:DropDownList ID="DropDownList1" runat="server" Height="24px" Width="121px" DataSourceID="SqlDataSource3" DataTextField="CourseName" DataValueField="CourseName"> <asp:ListItem>---Courses---</asp:ListItem> </asp:DropDownList>

129

Page 130: LMS Report

<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="DropDownList1" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style69" colspan="2"> &nbsp;</td> <td class="style16"> &nbsp;</td> <td class="style9" colspan="2"> &nbsp;</td> </tr> <tr> <td align="right" colspan="2" style="font-family: 'times New Roman', Times, serif; font-size: medium; font-weight: normal" class="style69"> Duration&nbsp;&nbsp;&nbsp; </td> <td class="style18" colspan="3" align="left"> <asp:DropDownList ID="DropDownList2" runat="server" Height="24px" Width="124px" DataSourceID="SqlDataSource4" DataTextField="Duration" DataValueField="Duration"> <asp:ListItem>One Month</asp:ListItem> <asp:ListItem>12 Months</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="DropDownList2" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style69" colspan="2"> &nbsp;</td> <td class="style16"> &nbsp;</td> <td class="style9" colspan="2"> &nbsp;</td> </tr>

130

Page 131: LMS Report

<tr> <td align="right" colspan="2" style="font-family: 'times New Roman', Times, serif; font-size: medium; font-weight: normal" class="style69"> Admission Date&nbsp;&nbsp;&nbsp; </td> <td class="style18" colspan="3" align="left"> <asp:TextBox ID="TextBox9" runat="server" BorderColor="#CCCCFF" Height="24px" Width="124px"></asp:TextBox> <asp:CalendarExtender ID="TextBox9_CalendarExtender" runat="server" Enabled="True" TargetControlID="TextBox9"> </asp:CalendarExtender> <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="TextBox9" ErrorMessage="*"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style69" colspan="2" align="left"> <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" SelectCommand="SELECT [Duration] FROM [Courses]"></asp:SqlDataSource> </td> <td class="style18" colspan="2"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style69" colspan="2" align="left"> <asp:SqlDataSource ID="SqlDataSource5" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" SelectCommand="SELECT [CenterCode] FROM [CenterCode]"></asp:SqlDataSource> </td> <td class="style16" align ="center" >

131

Page 132: LMS Report

<asp:Panel ID="Panel2" runat="server" Height="47px" Width="186px"> <table class="style7"> <tr> <td class="style50"> <asp:Button ID="Button4" runat="server" Height="33px" Text="Submit" Width="94px" onclick="Button4_Click" Font-Italic="True" Font-Names="Footlight MT Light" Font-Size="Medium" ForeColor="White" BackColor="Maroon" Font-Bold="True" /> </td> <td> <asp:Button ID="Button5" runat="server" Height="31px" Text="Cancel" Width="87px" onclick="Button5_Click" Font-Italic="True" Font-Size="Medium" ForeColor="White" BackColor="Maroon" Font-Bold="True" Font-Names="Footlight MT Light" /> </td> </tr> <tr> <td class="style50"> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </asp:Panel> </td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style66" colspan="5"> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>"

132

Page 133: LMS Report

InsertCommand="INSERT INTO StudentProfile(Session, RollNo, CenterCode, RegistrationNo, FirstName, FatherName, DateOfBirth, Address, ContactNo, Course, Duration, EnrollmentDate) VALUES (@Session,@RollNo,@CenterCode,@RegistrationNo,@FirstName,@FatherName,@DateOfBirth,@Address,@ContactNo,@Course,@Duration,@EnrollmentDate)" SelectCommand="SELECT * FROM [StudentProfile]"> <InsertParameters> <asp:ControlParameter ControlID="TextBox10" Name="Session" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox2" Name="RollNo" PropertyName="Text" /> <asp:ControlParameter ControlID="DropDownList3" Name="CenterCode" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="TextBox1" Name="RegistrationNo" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox3" Name="FirstName" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox5" Name="FatherName" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox7" Name="DateOfBirth" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox6" Name="Address" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox8" Name="ContactNo" PropertyName="Text" /> <asp:ControlParameter ControlID="DropDownList1" Name="Course" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="DropDownList2" Name="Duration" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="TextBox9" Name="EnrollmentDate" PropertyName="Text" /> </InsertParameters>

133

Page 134: LMS Report

</asp:SqlDataSource> <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" SelectCommand="SELECT [CourseName] FROM [Courses]"></asp:SqlDataSource> </td> </tr> <tr> <center> <td class="style8" colspan="3"> <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </asp:ToolkitScriptManager> <asp:SqlDataSource ID="SqlDataSource6" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" onselecting="SqlDataSource6_Selecting" SelectCommand="SELECT [CenterCode] FROM [CenterCode]"></asp:SqlDataSource> </td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </asp:Panel> </ContentTemplate> </asp:UpdatePanel> </center> </asp:Content>

134

Page 135: LMS Report

Add Staff Profile:

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="AddStaffProfile.aspx.cs" Inherits="Admin_AddStaffProfile" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

<style type="text/css"> .style7 { width: 100%; margin-right: 0; } .style8 { } .style9 { } .style14 { } .style16 { width: 63px; } .style18 { } .style20 { height: 17px; } .style21 { width: 63px; height: 17px; }

135

Page 136: LMS Report

.style22 { width: 200px; height: 17px; } .style25 { height: 11px; } .style30 { height: 12px; } .style50 { width: 59px; } .style66 { } .style67 { width: 200px; } .style68 { height: 17px; width: 144px; } .style69 { width: 144px; } </style></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <center > <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate > <asp:Panel ID ="Panel1" runat ="server" BorderStyle ="Outset" Height="866px"

136

Page 137: LMS Report

Width="532px" BackColor="#DADAB6" > <table class="style7" style="font-family: 'Arial Unicode MS'; font-weight: bold" align="center"> <tr> <td align="center" colspan="5" valign ="middle" style="font-family: Bigmouth; font-weight: bold; color: #000066"> <h2 align="center" style="font-family: 'Footlight MT Light'; width: 280px; font-size: 2em; font-weight: bolder;"> Add Staff</h2> </td> </tr> <tr> <td colspan="5"> <hr noshade="noshade" /></td> </tr> <tr> <td class="style20" colspan="5" align="center"> <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label> </td> </tr> <tr> <td class="style20" colspan="5"> </td> </tr> <tr> <td class="style68" colspan="2" align="right" style="font-family: 'Times New Roman', Times, serif; font-weight: normal; font-size: medium;"> Session&nbsp;&nbsp;&nbsp; </td> <td colspan="3" align="left"> <asp:TextBox ID="TextBox10" runat="server" Height="20px" Width="127px"

137

Page 138: LMS Report

BorderColor="#CCCCFF"></asp:TextBox> <asp:FilteredTextBoxExtender ID="TextBox10_FilteredTextBoxExtender" runat="server" Enabled="True" FilterMode="InvalidChars" InvalidChars="1234567890" TargetControlID="TextBox10"> </asp:FilteredTextBoxExtender> </td> </tr> <tr> <td align="right" class="style68" colspan="2" style="font-family: 'Times New Roman', Times, serif; font-weight: normal; font-size: medium;"> &nbsp;</td> <td align="left" colspan="3"> &nbsp;</td> </tr> <tr> <td align="right" class="style68" colspan="2" style="font-family: 'Times New Roman', Times, serif; font-weight: normal; font-size: medium;"> Center Code&nbsp;&nbsp; </td> <td align="left" colspan="3"> <asp:DropDownList ID="DropDownList3" runat="server" DataSourceID="SqlDataSource6" DataTextField="CenterCode" DataValueField="CenterCode" Height="24px" Width="127px"> <asp:ListItem>01830</asp:ListItem> <asp:ListItem>01820</asp:ListItem> </asp:DropDownList> </td> </tr> <tr> <td class="style68" colspan="2"> &nbsp;</td> <td class="style21"> &nbsp;</td> <td class="style22" colspan="2"> &nbsp;</td> </tr> <tr> <td class="style68" colspan="2" align="right"

138

Page 139: LMS Report

style="font-family: 'times New Roman', Times, serif; font-size: medium; font-weight: normal"> Staff_ID&nbsp;&nbsp; </td> <td class="style25" colspan="3" align="left"> <asp:TextBox ID="TextBox2" runat="server" Height="20px" Width="127px" MaxLength="15" BorderColor="#CCCCFF" ></asp:TextBox> <asp:TextBoxWatermarkExtender ID="TextBox2_TextBoxWatermarkExtender" runat="server" Enabled="True" TargetControlID="TextBox2" WatermarkCssClass="watermarked " WatermarkText="Enter Only Digit"> </asp:TextBoxWatermarkExtender> <asp:FilteredTextBoxExtender ID="TextBox2_FilteredTextBoxExtender" runat="server" Enabled="True" FilterType="Numbers" TargetControlID="TextBox2"> </asp:FilteredTextBoxExtender> </td> </tr> <tr> <td class="style69" colspan="2"> &nbsp;</td> <td class="style16"> &nbsp;</td> <td class="style9" colspan="2"> <div style="position: absolute; top: 339px; left: 447px;"> <asp:UpdateProgress ID="UpdateProgress1" runat="server"> <ProgressTemplate> <img alt="" src="../image/animated.gif" style="width: 100px; height: 100px" /> </ProgressTemplate> </asp:UpdateProgress> </div> </td> </tr> <tr> <td class="style68" align="right" colspan="2"

139

Page 140: LMS Report

style="font-family: 'times New Roman', Times, serif; font-size: medium; font-weight: normal"> Name&nbsp; </td> <td class="style30" colspan="3" align="left"> <asp:TextBox ID="TextBox14" runat="server"></asp:TextBox> </td> </tr> <tr> <td class="style67"> &nbsp;</td> <td class="style18" colspan="3"> &nbsp;</td> </tr> <tr> <td align="right" colspan="2" style="font-family: 'times New Roman', Times, serif; font-size: medium; font-weight: normal" class="style68"> Department&nbsp;&nbsp;&nbsp; </td> <td class="style18" colspan="3" align="left"> <asp:DropDownList ID="DropDownList4" runat="server" Height="16px" Width="115px"> <asp:ListItem>Computer Science</asp:ListItem> <asp:ListItem>Management</asp:ListItem> <asp:ListItem>Science</asp:ListItem> </asp:DropDownList> </td> </tr> <tr> <td class="style69" colspan="2"> </td> <td class="style16"> </td> </tr> <tr> <td class="style69" colspan="2"> &nbsp;</td> <td class="style16"> &nbsp;</td> </tr>

140

Page 141: LMS Report

<tr> <td align="right" colspan="2" style="font-family: 'times New Roman', Times, serif; font-size: medium; font-weight: normal" class="style68"> Contact Number&nbsp;&nbsp;&nbsp; </td> <td class="style18" colspan="3" align="left"> <asp:TextBox ID="TextBox15" runat="server"></asp:TextBox> </td> </tr> <tr> <td class="style69" colspan="2"> &nbsp;</td> <td class="style16"> &nbsp;</td> <td class="style9" colspan="2"> &nbsp;</td> </tr> <tr> <td align="right" colspan="2" style="font-family: 'times New Roman', Times, serif; font-size: medium; font-weight: normal" class="style68"> Address&nbsp;&nbsp;&nbsp; </td> <td class="style14" colspan="3" valign="top" align="left"> <asp:TextBox ID="TextBox6" runat="server" Height="75px" TextMode="MultiLine" Width="196px" CssClass="rounded-corners" BorderColor="#CCCCFF" BorderStyle="Outset"></asp:TextBox> </td> </tr> <tr> <td class="style69" colspan="2"> &nbsp;</td> <td class="style16"> &nbsp;</td> <td class="style9" colspan="2"> &nbsp;</td> </tr>

141

Page 142: LMS Report

<tr> <td align="right" colspan="2" style="font-family: 'times New Roman', Times, serif; font-size: medium; font-weight: normal" class="style69"> Designation</td> <td class="style18" colspan="3" align="left"> <asp:TextBox ID="TextBox16" runat="server"></asp:TextBox> </td> </tr> <tr> <td class="style69" colspan="2"> &nbsp;</td> <td class="style16"> &nbsp;</td> <td class="style9" colspan="2"> &nbsp;</td> </tr> <tr> <td colspan="2" class="style69"> <table class="style7"> <tr> <td align="right" style="font-family: 'times New Roman', Times, serif; font-size: medium; font-weight: normal" class="style68"> &nbsp;&nbsp; Qualification&nbsp; </td> </tr> </table> </td> <td class="style18" colspan="3" align="left"> <asp:TextBox ID="TextBox11" runat="server"></asp:TextBox> </td> </tr> <tr> <td class="style69" colspan="2"> &nbsp;</td> <td class="style16"> &nbsp;</td> <td class="style9" colspan="2">

142

Page 143: LMS Report

&nbsp;</td> </tr> <tr> <td align="right" colspan="2" style="font-family: 'times New Roman', Times, serif; font-size: medium; font-weight: normal" class="style69"> EMail_ID</td> <td class="style18" colspan="3" align="left"> <asp:TextBox ID="TextBox12" runat="server" TextMode="MultiLine"></asp:TextBox> </td> </tr> <tr> <td class="style69" colspan="2"> &nbsp;</td> <td class="style16"> &nbsp;</td> <td class="style9" colspan="2"> &nbsp;</td> </tr> <tr> <td align="right" colspan="2" style="font-family: 'times New Roman', Times, serif; font-size: medium; font-weight: normal" class="style68"> Exprience</td> <td class="style18" colspan="3" align="left"> <asp:TextBox ID="TextBox13" runat="server"></asp:TextBox> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td> </tr> <tr> <td class="style69" colspan="2" align="left"> &nbsp;</td> <td class="style18" colspan="2"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr>

143

Page 144: LMS Report

<td class="style69" colspan="2" align="left"> &nbsp;</td> <td class="style16" align ="center" > <asp:Panel ID="Panel2" runat="server" Height="47px" Width="186px"> <table class="style7"> <tr> <td class="style50"> <asp:Button ID="Button4" runat="server" Height="33px" Text="Submit" Width="94px" onclick="Button4_Click" Font-Italic="True" Font-Names="Footlight MT Light" Font-Size="Medium" ForeColor="White" BackColor="Maroon" Font-Bold="True" /> </td> <td> <asp:Button ID="Button5" runat="server" Height="31px" Text="Cancel" Width="87px" onclick="Button5_Click" Font-Italic="True" Font-Size="Medium" ForeColor="White" BackColor="Maroon" Font-Bold="True" Font-Names="Footlight MT Light" /> </td> </tr> <tr> <td class="style50"> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </asp:Panel> </td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style66" colspan="5"> <asp:SqlDataSource ID="SqlDataSource1" runat="server"

144

Page 145: LMS Report

ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" SelectCommand="SELECT * FROM [StaffProfile]" InsertCommand="INSERT INTO StaffProfile(Session, CenterCode, Staff_ID, Name, Department, ContactNumber, Address, Designation, Qualification, EMail_ID, Exprience) VALUES (@Session, @CenterCode, @Staff_ID, @Name, @Department, @ContactNumber, @Address, @Designation, @Qualification, @EMail_ID, @Exprience)"> <InsertParameters> <asp:ControlParameter ControlID="TextBox10" Name="Session" PropertyName="Text" /> <asp:ControlParameter ControlID="DropDownList3" Name="CenterCode" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="TextBox2" Name="Staff_ID" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox14" Name="Name" PropertyName="Text" /> <asp:ControlParameter ControlID="DropDownList4" Name="Department" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="TextBox15" Name="ContactNumber" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox6" Name="Address" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox16" Name="Designation" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox11" Name="Qualification" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox12" Name="EMail_ID" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox13" Name="Exprience" PropertyName="Text" /> </InsertParameters> </asp:SqlDataSource> </td>

145

Page 146: LMS Report

</tr> <tr> <center> <td class="style8" colspan="3"> <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </asp:ToolkitScriptManager> <asp:SqlDataSource ID="SqlDataSource6" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" onselecting="SqlDataSource6_Selecting" SelectCommand="SELECT [CenterCode] FROM [CenterCode]"></asp:SqlDataSource> </td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </asp:Panel> </ContentTemplate> </asp:UpdatePanel> </center> </asp:Content>

Add Subject Semester Wise:<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="Addsubjectsemesterwise.aspx.cs" Inherits="Admin_Addsubjectsemesterwise" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css">

146

Page 147: LMS Report

.style2 { width: 215px; } </style></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <center > <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate > <table align="center"> <tr> <td> &nbsp;</td> <td colspan="2" rowspan="2" align ="center "> <asp:Panel ID="Panel1" runat="server" Height="514px" Width="614px"> <table align="center" class="style10"> <tr> <td class="style15"> <asp:Panel ID="Panel2" runat="server" BorderStyle="Outset" Height="321px" Width="549px" BackColor="#CDCD9C"> <table align="center" style="height: 278px; width: 544px"> <tr> <td colspan="6" align="center"> <h2 align="center" style="color: #800000; width: 344px; font-family: 'footlight MT Light'; font-size: 2em; font-weight: bold;"> Add Subject Semester Wise</h2> </td> </tr> <tr> <td colspan="6"> <hr size="3" /> </td> </tr> <tr>

147

Page 148: LMS Report

<td align="center" colspan="6" style="background-color: #C0C0C0"> <asp:Label ID="Label2" runat="server" ForeColor="Red"></asp:Label> </td> </tr> <tr> <td align="center" class="style2"> &nbsp;</td> <td colspan="5"> &nbsp;</td> </tr> <tr> <td align="center" class="style2"> Course Name</td> <td colspan="5" align="left"> <asp:DropDownList ID="DropDownList3" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1" DataTextField="CourseName" DataValueField="CourseName" Height="22px" onselectedindexchanged="DropDownList1_SelectedIndexChanged" Width="116px"> </asp:DropDownList> </td> </tr> <tr> <td class="style2"> &nbsp;</td> <td colspan="5"> &nbsp;</td> </tr> <tr> <td align="center" class="style2"> Semester</td> <td colspan="5" align="left"> <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" Height="22px" Width="116px"> <asp:ListItem>First</asp:ListItem> <asp:ListItem>Second</asp:ListItem> <asp:ListItem>Third</asp:ListItem> <asp:ListItem>Fourth</asp:ListItem>

148

Page 149: LMS Report

<asp:ListItem>Fifth</asp:ListItem> </asp:DropDownList> </td> </tr> <tr> <td class="style2"> &nbsp;</td> <td colspan="5"> &nbsp;</td> </tr> <tr> <td align="center" class="style2"> Subject</td> <td align="left"> <asp:TextBox ID="TextBox1" runat="server" Height="20px" Width="116px" BorderColor="#CCE6FF"></asp:TextBox> <asp:FilteredTextBoxExtender ID="TextBox1_FilteredTextBoxExtender" runat="server" Enabled="True" FilterMode="InvalidChars" InvalidChars="1234567890" TargetControlID="TextBox1"> </asp:FilteredTextBoxExtender> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox1" ErrorMessage="*"></asp:RequiredFieldValidator> </td> <td> &nbsp;</td> <td class="style17" colspan="2"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style2"> &nbsp;</td> <td colspan="5"> <div style="position: absolute; top: 233px; left: 462px;">

149

Page 150: LMS Report

<asp:UpdateProgress ID="UpdateProgress1" runat="server"> <ProgressTemplate> <img alt="" src="../image/animated.gif" style="width: 100px; height: 100px" /> </ProgressTemplate> </asp:UpdateProgress> </div> </td> </tr> <tr> <td class="style2"> &nbsp;</td> <td colspan="3" align="left"> <asp:Button ID="Button3" runat="server" Height="31px" onclick="Button3_Click1" Text="Submit " Width="70px" BackColor="Maroon" Font-Bold="True" ForeColor="White" /> <asp:Button ID="Button5" runat="server" Height="31px" onclick="Button4_Click" Text="Cencel" Width="74px" BackColor="Maroon" Font-Bold="True" ForeColor="White" /> </td> <td colspan="2"> &nbsp;</td> </tr> <tr> <td align="left" colspan="2"> <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </asp:ToolkitScriptManager> </td> <td align="left" colspan="4"> &nbsp;</td> </tr> </table> </asp:Panel> </td> </tr> </table> </asp:Panel>

150

Page 151: LMS Report

</td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" SelectCommand="SELECT [CourseName] FROM [Courses]"></asp:SqlDataSource> <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" InsertCommand="INSERT INTO SubjectSemesterwise(CourseName, Semester, Subject) VALUES (@CourseName,@Semester,@Subject)" SelectCommand="SELECT * FROM [SubjectSemesterwise]"> <InsertParameters> <asp:ControlParameter ControlID="DropDownList3" Name="CourseName" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="DropDownList2" Name="Semester" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="TextBox1" Name="Subject" PropertyName="Text" /> </InsertParameters> </asp:SqlDataSource> <br /> </td> <td> &nbsp;</td> <td> &nbsp;</td>

151

Page 152: LMS Report

</tr> </table> </ContentTemplate> </asp:UpdatePanel> </center></asp:Content>

Admin Master Page:

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="AdminMasterPage.master.cs" Inherits="Admin_MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <script src="accordion-menu/jquery-1.4.2.min.js" type="text/javascript"></script> <script src="accordion-menu/menu.js" type="text/javascript"></script> <link href="accordion-menu/style.css" rel="stylesheet" type="text/css" /> <link href="../watermarkCss/watermarktex.css" rel="stylesheet" type="text/css" /> <link href="textboxrounded.css" rel="stylesheet" type="text/css" /> <link href="Button%20Css/GamerGridView.css" rel="stylesheet" type="text/css" /> <link href="Button%20Css/ChromeBlackGridView.css" rel="stylesheet" type="text/css" /> <%--<link href="Button%20Css/Grid.css" rel="stylesheet" type="text/css" />--%> <link href="Button%20Css/shadow.css" rel="stylesheet" type="text/css" /> <%--<link href="Button%20Css/hr.css" rel="stylesheet" type="text/css" />

152

Page 153: LMS Report

--%> <asp:ContentPlaceHolder ID="head" runat="server"> </asp:ContentPlaceHolder> <style type="text/css"> #tab { width :100%; } .hr { width :100%; } * {

margin: 0 0px 0 0;padding: 0;

}

body {text-align: justify;font-size: 14px;line-height: 24px;font-family: "Trebuchet MS", Helvetica, Sans-Serif;

}

.accordian {width: 400px;margin: 50px auto;

}

.accordian li {list-style-type: none;padding: 0 5px;

}

.dimension {height: 400px;

}

.even, .odd {font-weight: bold;height: 27px;padding-top: 3px;

153

Page 154: LMS Report

padding-left: 10px;}

.even {border: 1px solid #d8d8d8;

background-color: #ececec;}

.odd {border: 1px solid black;background: #333;color: white;

} .style1 { width: 100%; } .style2 { } .style3 { width: 725px; } .style4 { } </style> </head><body><form id="form1" runat="server" >

<table class="style1" > <tr> <td class="style4"> &nbsp;</td>

154

Page 155: LMS Report

<td align="right" class="style3" style="font-family: 'Times New Roman', Times, serif; font-size: medium;"> &nbsp; <asp:LoginStatus ID="LoginStatus1" runat="server" Font-Names="Footlight MT Light" Font-Bold="True" Font-Underline="False" /> </td> </tr> <tr> <td class="style4"> <img src="../image/logo.JPG" /></td> <td align="center" valign="top" class="style3">

<h2 style="font-family: 'footlight MT Light'; font-size: 2em; font-weight: bold; color: #000080"> SITM Knowledge Center</h2><br /> <h5 style="font-family: 'footlight MT Light'; font-size: 16px;"> An ISO 9001:2008</h5>

</td> </tr> <tr> <td class="style2" colspan="2"> <hr noshade="noshade" class ="hr " /></td> </tr> <tr> <td class="style4" valign ="top" style="font-family: 'Footlight MT Light'; font-size: medium; font-weight: bold" > &nbsp;

155

Page 156: LMS Report

Welcome&nbsp;:&nbsp;<asp:LoginName ID="LoginName1" runat="server" Font-Names="Footlight MT Light" /> </td> <td valign="top" class="style3" rowspan="2">

<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </td> </tr> <tr> <td class="style4" valign ="top" > <ul class="menu"> <li><a href="Default.aspx">Home</a></li> </ul> <ul class="menu"> <li><a href="#">Security</a> <ul class="acitem"> <li><a href="createuserr.aspx">Create User</a> </li> <li><a href="createNewRole.aspx">Create New Role</a></li> <li><a href="RoleManage.aspx">Manage Role</a></li> <li><a href="ManageUsers.aspx">Manage User</a></li> <li><a href="RoleBaseAuthorization.aspx">Role Base Authorization</a></li> <li><a href="../ChangePassword.aspx">Change Password</a></li> </ul> </li> <li> <ul class="acitem"> <li><a href="createuserr.aspx">Create User</a> </li>

156

Page 157: LMS Report

<li><a href="createNewRole.aspx">Create New Role</a></li> <li><a href="RoleManage.aspx">Manage Role</a></li> <li><a href="ManageUsers.aspx">Manage User</a></li> <li><a href="RoleBaseAuthorization.aspx">Role Base Authorization</a></li> </ul> </li> <li><a href="#">User Details</a> <ul class="acitem"> <li><a href="userinfo.aspx">User Information</a></li> <li><a href="userInformationaspx.aspx">User Approved</a></li> </ul> </li>

<li><a href="#">Staff</a> <ul class="acitem"> <li><a href="AddStaffProfile.aspx">Add New Staff</a></li> <%--<li><a href="UpdateStudentProfile.aspx">Update Student Profile</a></li>--%> <li><a href="StaffProfile.aspx">Staff Details</a></li> </ul> </li>

<li><a href="#">Student</a> <ul class="acitem"> <li><a href="Addprofile.aspx">Add New Student</a></li> <%--<li><a href="UpdateStudentProfile.aspx">Update Student Profile</a></li>--%> <li><a href="StudentProfileDetails.aspx">Student Details</a></li> <li><a href="Result.aspx">Result</a></li> </ul> </li> <li><a href="#">Courses</a> <ul class="acitem"> <li><a href="Addcourse.aspx">Add New Course</a> <%-- <li><a href="updatecourse.aspx" >Update Course</a></li>--%> </li>

157

Page 158: LMS Report

<li><a href="DetailCourse.aspx">Course Details</a></li> <li><a href="Addsubjectsemesterwise.aspx">Subject Semester Wise</a></li> <li><a href="DetailsSubjectSemesterWise.aspx">Subject Details </a></li> </ul> </li> <li><a href="#">Knowledge Center</a> <ul class=" acitem"> <li><a href="AddCenterCode.aspx">Add New Center </a></li> <li><a href="DetailsKCProfie.aspx">Center Details</a></li> <%--<li><a href="UpdateCenterProfiel.aspx">Update Center Profile</a></li>--%> </ul> </li> <li><a href="TimeTable.aspx">TimeTable</a></li> <li><a href="Notice.aspx">Notice</a></li> <li><a href="Syllabus.aspx">Syllabus</a></li> </ul> </td> </tr> <tr> <td class="style4" colspan="2"> <hr noshade="noshade" size="3" style="font-weight: bold" /></td> </tr> <tr> <td class="style4"> &nbsp;</td> <td class="style3" align="center" style="color: #000000; font-weight: bold;" class="style9"> Learning Management System</td> </tr> </table> </form> </body></html>

158

Page 159: LMS Report

Create New Role:

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="createNewRole.aspx.cs" Inherits="Role_createNewRole" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css">

.style13 { width: 100%; } .style14 { width: 68px; } .style16 { height: 36px; } .style17 { height: 33px; } .style18 { width: 237px; } .style19 { height: 33px; width: 237px; } .style20 { } .style21 { width: 380px; }

159

Page 160: LMS Report

.style22 { width: 149px; } </style></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <table class="style5" align="center"> <tr> <td class="style14"> &nbsp;</td> <td> <asp:Panel ID="Panel1" runat="server" Height="448px" Width="578px"> <table align="center" class="style13"> <tr> <td class="style16" align="center" colspan="4" bgcolor="#CCCCCC" > <h2 style="color: #000066; font-family: 'footlight MT Light'; font-size: 2em; font-weight: bolder;"> Manage Role</h2> </td> </tr> <tr> <td colspan="4" align="center"> &nbsp;</td> </tr> <tr> <td align="center" colspan="4" style="background-color: #C0C0C0"> <asp:Label ID="Label2" runat="server" Font-Bold="True" ForeColor="#FF3300"></asp:Label> </td> </tr> <tr> <td align="center" colspan="4"> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="You must enter a role name"></asp:RequiredFieldValidator> </td> </tr>

160

Page 161: LMS Report

<tr> <td align="right" class="style21"> <asp:Label ID="Label1" runat="server" Font-Bold="True" Text="Create a New Role :"></asp:Label> </td> <td align="left" class="style22"> <asp:TextBox ID="TextBox1" runat="server" ontextchanged="TextBox1_TextChanged"></asp:TextBox> </td> <td align="left" class="style18"> <asp:Button ID="Button1" runat="server" Font-Italic="False" Font-Names="Footlight MT Light" Font-Size="Medium" ForeColor="Black" Height="28px" onclick="Button1_Click" style="margin-left: 0" Text="Create Role" UseSubmitBehavior="False" Width="89px" /> </td> <td> &nbsp;</td> </tr> <tr> <td align="center" class="style21"> &nbsp;</td> <td align="center" class="style18" colspan="2"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style21"> &nbsp;</td> <td class="style18" colspan="2"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style20" colspan="4" align="center" > <asp:GridView ID="Rolelist" runat="server" AutoGenerateColumns="False" CssClass="GridViewStyle" Height="16px" OnRowDeleting="Rolelist_RowDeleting"

161

Page 162: LMS Report

Width="281px"> <RowStyle HorizontalAlign="Center" /> <Columns> <asp:CommandField DeleteText="Delete Role" ShowDeleteButton="True" /> <asp:TemplateField HeaderText="Role"> <ItemTemplate> <asp:Label ID="RoleNameLabel" runat="server" Text="<%# Container.DataItem %>" /> </ItemTemplate> </asp:TemplateField> </Columns> <PagerStyle CssClass="PagerStyle" /> <SelectedRowStyle CssClass="SelectedRowStyle " /> <HeaderStyle CssClass="PagerStyle" ForeColor="White" /> <EditRowStyle CssClass="EditRowStyle" /> <AlternatingRowStyle CssClass="AltRowStyle" /> </asp:GridView> </td> </tr> <tr> <td class="style21"> </td> <td class="style19" colspan="2"> &nbsp;</td> <td class="style17"> </td> </tr> <tr> <td class="style21"> &nbsp;</td> <td class="style18" colspan="2"> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </asp:Panel> </td> <td> &nbsp;</td> </tr>

162

Page 163: LMS Report

<tr> <td align="left" class="style14"> &nbsp;</td> <td align="left"> &nbsp;</td> <td align="left"> &nbsp;</td> </tr> </table></asp:Content>

Create User:

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="createuserr.aspx.cs" Inherits="Admin_createuserr" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .style6 { } .style11 { width: 773px; } .style12 { width: 123px; } .style13

163

Page 164: LMS Report

{ width: 268435424px; } </style></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <center > <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate > <table style="width: 504px" align="center"> <tr> <td class="style12"> &nbsp;</td> <td class="style11" align="center" > <asp:Panel ID="Panel1" runat="server" BorderStyle="Outset" Height="499px" Width="392px"> <table cellpadding="2" class="style1" style="height: 521px; width: 380px" align="center"> <tr> <td colspan="2" align="center" style="font-size: 16px; font-weight: bold; color: #FFFFFF; background-color: #000080"> Create New User</td> </tr> <tr> <td rowspan="16" align ="center" > <asp:CreateUserWizard ID="RegisterUserWithRoles" runat="server" ContinueDestinationPageUrl="createuserr.aspx" Height="462px" LoginCreatedUser="False" oncreateduser="RegisterUserWithRoles_CreatedUser" Width="371px" onactivestepchanged="RegisterUserWithRoles_ActiveStepChanged"> <WizardSteps>

164

Page 165: LMS Report

<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server"> </asp:CreateUserWizardStep> <asp:WizardStep ID="SpecifyRolesStep" runat="server" AllowReturn="false" StepType="Step" Title="Specify Roles"> <asp:CheckBoxList ID="RoleList" runat="server"> </asp:CheckBoxList> </asp:WizardStep> <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server"> </asp:CompleteWizardStep> </WizardSteps> </asp:CreateUserWizard> <div style="position: absolute; top: 253px; left: 467px;"> <asp:UpdateProgress ID="UpdateProgress1" runat="server"> <ProgressTemplate> <img alt="" src="../image/animated.gif" style="width: 100px; height: 100px" /> </ProgressTemplate> </asp:UpdateProgress> </div> </td> </tr> <tr> <td class="style13"> &nbsp;</td> </tr> <tr> <td class="style13"> &nbsp;</td> </tr> <tr> <td class="style13"> &nbsp;</td> </tr> <tr> <td class="style13"> &nbsp;</td>

165

Page 166: LMS Report

</tr> <tr> <td class="style13"> &nbsp;</td> </tr> <tr> <td class="style13"> &nbsp;</td> </tr> <tr> <td class="style13"> &nbsp;</td> </tr> <tr> <td class="style13"> &nbsp;</td> </tr> <tr> <td class="style13"> &nbsp;</td> </tr> <tr> <td class="style13"> &nbsp;</td> </tr> <tr> <td class="style13"> &nbsp;</td> </tr> <tr> <td class="style13"> &nbsp;</td> </tr> <tr> <td class="style13"> &nbsp;</td> </tr> <tr> <td class="style13"> &nbsp;</td> </tr> <tr> <td class="style13">

166

Page 167: LMS Report

&nbsp;</td> </tr> <tr> <td> &nbsp;</td> </tr> </table> </asp:Panel> </td> </tr> <tr> <td class="style12"> &nbsp;</td> <td class="style11"> &nbsp;</td> </tr> <tr> <td class="style12"> &nbsp;</td> <td class="style11"> <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </asp:ToolkitScriptManager> </td> </tr> <tr> <td class="style12"> &nbsp;</td> <td class="style11"> &nbsp;</td> </tr> </table> </ContentTemplate> </asp:UpdatePanel> </center>

</asp:Content>

167

Page 168: LMS Report

Admin Default Master Page:

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Admin_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .style6 { width: 100%; }</style></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <p> &nbsp;</p><table align="center" class="style6"> <tr> <td align="center"> <img alt="" src="Button%20Css/admin.psd" style="width: 0; height: 0" /><img alt="" src="Button%20Css/admin.psd" style="width: 0; height: 0" /><img alt="" src="Button%20Css/admin.psd" style="width: 0; height: 0" /><img alt="" src="Button%20Css/Images/admin%20copy.jpg" style="width: 600px; height: 448px" /></td> </tr></table></asp:Content>

Course Detail:

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="DetailCourse.aspx.cs" Inherits="Admin_DetailCourse" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">168

Page 169: LMS Report

<style type="text/css"> .style7 { width: 100%; } </style></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <table class="style7"> <tr> <td> &nbsp;</td> <td colspan="2" align="center" style="font-family: 'footlight MT Light'; font-size: 2em; font-weight: bold; color: #000051; background-color: #CCCCCC;"> Course Details</td> </tr> <tr> <td> &nbsp;</td> <td align="center" colspan="2"> <asp:Label ID="Label1" runat="server" Font-Size="Medium" ForeColor="Red"></asp:Label> </td> </tr> <tr> <td> &nbsp;</td> <td rowspan="2" align = "center" > <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AutoGenerateDeleteButton="True" DataKeyNames="CourseName" DataSourceID="SqlDataSource1" Height="90px" onrowdeleted="GridView1_RowDeleted" Width="530px" CssClass="GridViewStyle" onselectedindexchanged="GridView1_SelectedIndexChanged" AutoGenerateEditButton="True" onrowediting="GridView1_RowEditing"> <RowStyle HorizontalAlign="Center" /> <Columns>

169

Page 170: LMS Report

<asp:CommandField ShowSelectButton="True" /> <asp:HyperLinkField NavigateUrl="~/Admin/Addcourse.aspx" Text="Add New " /> <asp:BoundField DataField="CourseName" HeaderText="CourseName" ReadOnly="True" SortExpression="CourseName" /> <asp:BoundField DataField="Duration" HeaderText="Duration" SortExpression="Duration" /> <asp:BoundField DataField="FeeStructure" HeaderText="FeeStructure" SortExpression="FeeStructure" /> </Columns> <FooterStyle ForeColor="White" /> <PagerStyle CssClass="PagerStyle" /> <SelectedRowStyle CssClass="SelectedRowStyle " ForeColor="Black" /> <HeaderStyle CssClass="PagerStyle" ForeColor="White" /> <EditRowStyle CssClass="EditRowStyle" /> <AlternatingRowStyle CssClass="AltRowStyle" /> </asp:GridView> </td> <td rowspan="2" align = "left" valign="top" > &nbsp;</td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td colspan="2"> <div></div></td> </tr> <tr> <td> &nbsp;</td> <td colspan="2"> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" SelectCommand="SELECT * FROM [Courses] "

170

Page 171: LMS Report

DeleteCommand="DELETE FROM Courses where CourseName=@CourseName" UpdateCommand="UPDATE Courses SET CourseName =@CourseName, Duration =@Duration, FeeStructure =@FeeStructure where CourseName=@CourseName"></asp:SqlDataSource> <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" SelectCommand="SELECT * FROM [Courses] where CourseName=@c" UpdateCommand="UPDATE Courses SET CourseName =@CourseName, Duration =@Duration, FeeStructure =@FeeStructure where CourseName=@CourseName" InsertCommand="INSERT INTO Courses(CourseName, Duration, FeeStructure) VALUES (@CourseName,@Duration,@FeeStructure)"> <SelectParameters> <asp:ControlParameter ControlID="GridView1" Name="c" PropertyName="SelectedValue" /> </SelectParameters> <InsertParameters> <asp:ControlParameter ControlID="DetailsView1" Name="CourseName" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="DetailsView1" Name="Duration" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="DetailsView1" Name="FeeStructure" PropertyName="SelectedValue" /> </InsertParameters> </asp:SqlDataSource> </td> </tr> </table></asp:Content>

171

Page 172: LMS Report

Course Detail:

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="DetailsKCProfie.aspx.cs" Inherits="Admin_UpdateKCProfie" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .style7 { width: 100%; } </style></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <table class="style7"> <tr> <td> &nbsp;</td> <td align="center" style="font-family: 'footlight MT Light'; font-size: 2em; font-weight: bolder; color: #000066"> &nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td align="center" style="font-family: 'footlight MT Light'; font-size: 2em; font-weight: bolder; color: #000066"> <h4 style="width: 498px">KC Profiel Details</h4></td> <td> </td> <td> &nbsp;</td> </tr> <tr>

172

Page 173: LMS Report

<td> &nbsp;</td> <td> <hr noshade="noshade" /></td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td align="center"> <asp:Label ID="LabelDetailKcProfiel" runat="server" Font-Bold="True" ForeColor="#CC0000"></asp:Label> </td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td colspan="2" rowspan="2"> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="CenterCode" DataSourceID="SqlDataSource1" Height="16px" Width="1167px" AllowPaging="True" AllowSorting="True" CssClass="GridViewStyle" onrowdeleted="GridView1_RowDeleted" onselectedindexchanged="GridView1_SelectedIndexChanged"> <RowStyle HorizontalAlign="Center" /> <Columns> <asp:CommandField ShowDeleteButton="True" ShowSelectButton="True" /> <asp:HyperLinkField NavigateUrl="~/Admin/AddCenterCode.aspx" Text="Add New " /> <asp:BoundField DataField="CenterCode" HeaderText="Center Code" ReadOnly="True" SortExpression="CenterCode" />

173

Page 174: LMS Report

<asp:BoundField DataField="InstitueName" HeaderText="Institue Name" SortExpression="InstitueName" /> <asp:BoundField DataField="CenterHeadName" HeaderText="Center Head Name" SortExpression="CenterHeadName" /> <asp:BoundField DataField="Address" HeaderText="Address" SortExpression="Address" /> <asp:BoundField DataField="ContactNo" HeaderText="Contact No" SortExpression="ContactNo" /> <asp:BoundField DataField="EmailId" HeaderText="Email Id" SortExpression="EmailId" /> <asp:BoundField DataField="Block" HeaderText="Block" SortExpression="Block" /> <asp:BoundField DataField="District" HeaderText="District" SortExpression="District" /> <asp:BoundField DataField="ValidationDateofKc" HeaderText="Validation Date Of KC" SortExpression="ValidationDateofKc" DataFormatString="{0:d}" /> </Columns> <FooterStyle CssClass="PagerStyle" ForeColor="White" /> <PagerStyle CssClass="PagerStyle" /> <SelectedRowStyle CssClass="SelectedRowStyle " ForeColor="Black" /> <HeaderStyle CssClass="PagerStyle" ForeColor="White" /> <EditRowStyle CssClass="EditRowStyle" /> <AlternatingRowStyle CssClass="AltRowStyle" /> </asp:GridView> </td> <td> &nbsp;</td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> &nbsp;</td>

174

Page 175: LMS Report

<td> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" DeleteCommand="DELETE FROM CenterCode where CenterCode=@CenterCode" SelectCommand="SELECT * FROM [CenterCode]" UpdateCommand="UPDATE CenterCode SET CenterCode =@CenterCode, InstitueName =@InstitueName, CenterHeadName =@CenterHeadName, Address =@Address, ContactNo =@ContactNo, EmailId =@EmailId, Block =@Block, District =@District, ValidationDateofKc =@ValidationDateofKc "> <UpdateParameters> <asp:ControlParameter ControlID="GridView1" Name="CenterCode" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="GridView1" Name="InstitueName" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="GridView1" Name="CenterHeadName" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="GridView1" Name="Address" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="GridView1" Name="ContactNo" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="GridView1" Name="EmailId" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="GridView1" Name="Block" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="GridView1" Name="District" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="GridView1" Name="ValidationofKc" PropertyName="SelectedValue" /> </UpdateParameters> </asp:SqlDataSource>

175

Page 176: LMS Report

<br /> <br /> <br /> </td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> </table></asp:Content>

Subject Semester wise Detail:

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="DetailsSubjectSemesterWise.aspx.cs" Inherits="Admin_DetailsSubjectSemesterWise" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .style5 { width: 100%; }</style></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <table class="style5"> <tr> <td> &nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td>

176

Page 177: LMS Report

&nbsp;</td> <td colspan="2" rowspan="2" align="center"> <asp:DetailsView ID="DetailsView1" runat="server" AllowPaging="True" AutoGenerateDeleteButton="True" AutoGenerateEditButton="True" AutoGenerateRows="False" DataSourceID="SqlDataSource1" Height="340px" Width="275px" BackColor="Maroon" BorderColor="#993300" BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2" ForeColor="Black"> <FooterStyle BackColor="#CCCCCC" /> <RowStyle BackColor="White" HorizontalAlign="Center" /> <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Center" /> <Fields> <asp:BoundField DataField="CourseName" HeaderText="Course Name" SortExpression="CourseName" /> <asp:BoundField DataField="Semester" HeaderText="Semester" SortExpression="Semester" /> <asp:BoundField DataField="Subject" HeaderText="Subject" SortExpression="Subject" /> </Fields> <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" /> <InsertRowStyle BackColor="#FFFFCC" /> <EditRowStyle BackColor="Maroon" Font-Bold="True" ForeColor="White" /> </asp:DetailsView> </td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td>

177

Page 178: LMS Report

&nbsp;</td> <td> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" DeleteCommand="DELETE FROM SubjectSemesterwise where Subject=@Subject" SelectCommand="SELECT * FROM [SubjectSemesterwise]" UpdateCommand="UPDATE SubjectSemesterwise SET CourseName =@CourseName, Semester =@Semester, Subject =@Subject where Subject=@Subject"> </asp:SqlDataSource> </td> <td> &nbsp;</td> <td> &nbsp;</td> </tr></table></asp:Content>

Manage User:

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="ManageUsers.aspx.cs" Inherits="Admin_ManageUsers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .style6 { width: 100%; } .style7 { } </style></asp:Content>

178

Page 179: LMS Report

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <table class="style6"> <tr> <td class="style7" colspan="3" align ="center" > <h2 align="center" style="font-family: 'footlight MT Light'; font-size: 2em; font-weight: bold; color: #990033; height: 32px; width: 211px;"> Manage User&nbsp;</h2> </td> </tr> <tr> <td class="style7"> &nbsp;</td> <td align="center"> <asp:GridView ID="UserAccounts" runat="server" AutoGenerateColumns="False" PageSize="5" AllowPaging="True" CssClass="GridViewStyle" Height="179px" Width="571px" onrowdeleted="UserAccounts_RowDeleted" onselectedindexchanged="UserAccounts_SelectedIndexChanged"> <RowStyle HorizontalAlign="Center" /> <Columns> <asp:HyperLinkField DataNavigateUrlFields="UserName" DataNavigateUrlFormatString="userInformationaspx.aspx?user={0}" Text="Manage" /> <asp:BoundField DataField="UserName" HeaderText="UserName" /> <asp:BoundField DataField="Email" HeaderText="Email" /> <asp:CheckBoxField DataField="IsApproved" HeaderText="Approved?" /> <asp:CheckBoxField DataField="IsLockedOut" HeaderText="Locked Out?" /> <asp:CheckBoxField DataField="IsOnline" HeaderText="Online?" /> <asp:BoundField DataField="Comment" HeaderText="Comment" /> </Columns> <FooterStyle CssClass="PagerStyle" /> <PagerStyle CssClass="PagerStyle" />

179

Page 180: LMS Report

<SelectedRowStyle CssClass="SelectedRowStyle " ForeColor="Black" HorizontalAlign="Center" /> <HeaderStyle CssClass="PagerStyle" ForeColor="White" /> <EditRowStyle CssClass="EditRowStyle" /> <AlternatingRowStyle CssClass="AltRowStyle" /> </asp:GridView> </td> <td> &nbsp;</td> </tr> <tr> <td class="style7"> &nbsp;</td> <td align="center" style="background-color: #C0C0C0"> <asp:Repeater ID="FilteringUI" runat="server" onitemcommand="FilteringUI_ItemCommand"> <ItemTemplate> <asp:LinkButton runat="server" ID="lnkFilter" Text='<%# Container.DataItem %>' CommandName='<%# Container.DataItem %>'></asp:LinkButton> </ItemTemplate> <SeparatorTemplate>|</SeparatorTemplate> </asp:Repeater>&nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style7"> &nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style7"> &nbsp;</td> <td align="center"> &nbsp;</td> <td>

180

Page 181: LMS Report

&nbsp;</td> </tr> <tr> <td class="style7"> &nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style7"> &nbsp;</td> <td align="center" style="background-color: #C0C0C0"> <asp:LinkButton ID="lnkFirst" runat="server" onclick="lnkFirst_Click">&lt;&lt; First</asp:LinkButton> |&nbsp; <asp:LinkButton ID="lnkPrev" runat="server" onclick="lnkPrev_Click">&lt; Prev</asp:LinkButton> |&nbsp; <asp:LinkButton ID="lnkNext" runat="server" onclick="lnkNext_Click">Next &gt;</asp:LinkButton> |&nbsp; <asp:LinkButton ID="lnkLast" runat="server" onclick="lnkLast_Click">Last &gt;&gt;</asp:LinkButton>&nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style7"> &nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> </table></asp:Content>

Notice:

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="Notice.aspx.cs" Inherits="Admin_Notice" %>

181

Page 182: LMS Report

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .style5 { width: 144px; } .style6 { width: 141px; } .style7 { width: 143px; } .style8 { width: 142px; } .style9 { font-family: "Footlight MT Light"; } .style10 { font-family: "Footlight MT Light"; font-size: large; } .style11 { font-size: large; } .style12 { width: 143px; font-family: "Footlight MT Light"; font-size: large; } </style></asp:Content>

182

Page 183: LMS Report

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <asp:Panel ID="Panel1" runat="server" Height="551px" BackColor="#DCDCB8" BorderStyle="Outset" HorizontalAlign="Center" Width="491px"> <table align="center" class="hr"> <tr> <td> &nbsp;<h2 style="width: 388px; font-family: 'Footlight MT Light'; font-size: 2em; color: #800000; height: 28px;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Notice</h2> <hr /> <p style="width: 388px; font-family: 'Footlight MT Light'; font-size: 2em; color: #800000; height: 28px;"> &nbsp;</p> </td> </tr> <tr> <td> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:Label ID="LabelNotice" runat="server" Font-Bold="False" Font-Size="Medium" ForeColor="Red"></asp:Label> </td> </tr> <tr> <td> <table align="center" class="hr"> <tr> <td class="style5"> &nbsp;&nbsp;&nbsp;&nbsp; <span class="style10">Notice_ID</span></td> <td> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

183

Page 184: LMS Report

</td> <td> &nbsp;</td> </tr> </table> </td> </tr> <tr> <td> <table align="center" class="hr"> <tr> <td class="style5"> &nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </td> </tr> <tr> <td> <table align="center" class="hr"> <tr> <td> <table align="center" class="hr"> <tr> <td class="style6"> &nbsp;&nbsp;<span class="style9">&nbsp; <span class="style11">Date</span>&nbsp;</span></td> <td> <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox> <asp:CalendarExtender ID="TextBox2_CalendarExtender" runat="server" Enabled="True" TargetControlID="TextBox2"> </asp:CalendarExtender> </td> <td> &nbsp;</td> </tr> </table>

184

Page 185: LMS Report

</td> </tr> </table> </td> </tr> <tr> <td> <table align="center" class="hr"> <tr> <td class="style7"> &nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style12"> Topic Name</td> <td> <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox> </td> <td> &nbsp;</td> </tr> <tr> <td class="style7"> &nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </td> </tr> <tr> <td> <table align="center" class="hr"> <tr> <td class="style8">

185

Page 186: LMS Report

&nbsp;&nbsp;&nbsp; <span class="style9"><span class="style11">CourseName</span>&nbsp;</span></td> <td> <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1" DataTextField="CourseName" DataValueField="CourseName"> </asp:DropDownList> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" SelectCommand="SELECT [CourseName] FROM [Courses]"></asp:SqlDataSource> </td> <td> &nbsp;</td> </tr> </table> </td> </tr> <tr> <td> <table align="center" class="hr"> <tr> <td class="style8"> &nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;&nbsp;&nbsp;<span class="style9"> <span class="style11">Choose File</span>&nbsp;</span></td> <td> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:FileUpload ID="FileUpload1" runat="server" /> </td> <td>

186

Page 187: LMS Report

</td> </tr> </table> </td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </asp:ToolkitScriptManager> <asp:Button ID="Button1" runat="server" Text="Submit" Height="29px" Width="72px" BackColor="#00004F" Font-Bold="True" ForeColor="White" onclick="Button1_Click" /> &nbsp;&nbsp;&nbsp; <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Admin/SeeNotice.aspx">See Notice</asp:HyperLink> <br /> </td> </tr> </table> </asp:Panel> <p> <br /> </p></asp:Content>

Add Student Result:

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="Result.aspx.cs" Inherits="Admin_Result" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css">

187

Page 188: LMS Report

.style15 { width: 147px; } .style17 { width: 133px; }

.style18 { width: 128px; }

.style19 { width: 108px; }

</style></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <br /> <table align="center" class="style10"> <tr> <td> &nbsp;</td> <td colspan="3" rowspan="2" valign="top" align ="center" > <asp:Panel ID="Panel1" runat="server" Height="542px" Width="660px" BorderStyle="Outset" BackColor="#D8D8AF" BorderColor="#996633"> <table align="center" class="style10"> <tr> <td colspan="4" style="font-family: 'Footlight MT Light'; font-size: xx-large; font-weight: bold; color: #336699; text-decoration: underline;" align="center"> Result</td> </tr> <tr>

188

Page 189: LMS Report

<td colspan="4"> &nbsp;</td> </tr> <tr> <td colspan="4" style="background-color: #CCCCCC"> <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label> </td> </tr> <tr> <td align="right" class="style19"> Center Code&nbsp;&nbsp;&nbsp; </td> <td class="style18"> <asp:DropDownList ID="DropDownList1" runat="server" Height="20px" Width="114px" DataSourceID="SqlDataSource1" DataTextField="CenterCode" DataValueField="CenterCode"> </asp:DropDownList> </td> <td align="right" class="style17"> Roll No&nbsp;&nbsp;&nbsp; </td> <td class="style15"> <asp:DropDownList ID="DropDownList6" runat="server" Height="20px" Width="114px" DataSourceID="SqlDataSource2" DataTextField="RollNo" DataValueField="RollNo" AutoPostBack="True"> </asp:DropDownList> </td> </tr> <tr> <td class="style19"> &nbsp;</td> <td class="style18"> &nbsp;</td> <td class="style17"> &nbsp;</td> <td class="style15"> &nbsp;</td> </tr> <tr> <td align="right" class="style19">

189

Page 190: LMS Report

Name&nbsp;&nbsp;&nbsp;&nbsp; </td> <td class="style18"> <asp:DropDownList ID="DropDownList7" runat="server" Height="20px" Width="114px" DataSourceID="SqlDataSource3" DataTextField="FirstName" DataValueField="FirstName"> </asp:DropDownList> </td> <td class="style17" align ="right" > Course Name&nbsp;&nbsp;&nbsp; </td> <td class="style15"> <asp:DropDownList ID="DropDownList4" runat="server" Height="20px" Width="114px" DataSourceID="SqlDataSource4" DataTextField="CourseName" DataValueField="CourseName"> </asp:DropDownList> </td> </tr> <tr> <td class="style19"> &nbsp;</td> <td class="style18"> &nbsp;</td> <td class="style17"> &nbsp;</td> <td class="style15"> &nbsp;</td> </tr> <tr> <td align="right" class="style19"> Session&nbsp;&nbsp;&nbsp; </td> <td class="style18"> <asp:DropDownList ID="DropDownList5" runat="server" Height="20px" Width="114px" DataSourceID="SqlDataSource8" DataTextField="Session" DataValueField="Session"> </asp:DropDownList> </td> <td class="style17" align ="right" > Division&nbsp;&nbsp;&nbsp; </td> <td class="style15">

190

Page 191: LMS Report

<asp:TextBox ID="TextBox1" runat="server" Height="18px" Width="112px"></asp:TextBox> </td> </tr> <tr> <td class="style19"> &nbsp;</td> <td class="style18"> &nbsp;</td> <td class="style17"> &nbsp;</td> <td class="style15"> &nbsp;</td> </tr> <tr> <td align="right" class="style19"> Division&nbsp;&nbsp;&nbsp;&nbsp; </td> <td class="style18"> <asp:DropDownList ID="DropDownList8" runat="server" Height="20px" Width="114px" onselectedindexchanged="DropDownList8_SelectedIndexChanged" AutoPostBack="True"> <asp:ListItem>First</asp:ListItem> <asp:ListItem>Second</asp:ListItem> <asp:ListItem>Third</asp:ListItem> <asp:ListItem></asp:ListItem> </asp:DropDownList> </td> <td class="style17"> &nbsp;</td> <td class="style15"> &nbsp;</td> </tr> <tr> <td class="style19"> &nbsp;</td> <td class="style18"> &nbsp;</td> <td class="style17"> &nbsp;</td> <td class="style15"> &nbsp;</td>

191

Page 192: LMS Report

</tr> <tr style="color: #000080; background-color: #C0C0C0"> <td class="style19"> </td> <td class="style18" align ="center" > Subject</td> <td class="style17" align ="center" > Practical</td> <td align="center" class="style15"> Record+Viva+Internal</td> </tr> <tr> <td class="style19"> </td> <td class="style18"> &nbsp;</td> <td class="style17"> &nbsp;</td> <td class="style15"> &nbsp;</td> </tr> <tr> <td class="style19"> &nbsp;</td> <td class="style18"> <asp:DropDownList ID="DropDownList9" runat="server" DataSourceID="SqlDataSource6" DataTextField="Subject" DataValueField="Subject" Height="20px" Width="114px"> </asp:DropDownList> </td> <td class="style17" align="center"> <asp:TextBox ID="TextBox3" runat="server" Height="20px" Width="112px"></asp:TextBox> </td> <td align="center" class="style15"> <asp:TextBox ID="TextBox10" runat="server" Height="20px" Width="112px"></asp:TextBox> </td> </tr> <tr> <td class="style19"> &nbsp;</td>

192

Page 193: LMS Report

<td class="style18"> &nbsp;</td> <td class="style17"> &nbsp;</td> <td class="style15"> &nbsp;</td> </tr> <tr> <td class="style19" style="background-color: #CCCCCC"> </td> <td class="style18" align="center" style="color: #000066; background-color: #CCCCCC"> Mark in Figure</td> <td class="style17" align="center" style="color: #000066; background-color: #C0C0C0"> Min Marks</td> <td align="center" class="style12" style="color: #000066; background-color: #C0C0C0"> Max Marks</td> </tr> <tr> <td class="style19"> &nbsp;</td> <td class="style18"> &nbsp;</td> <td class="style17"> &nbsp;</td> <td class="style15"> &nbsp;</td> </tr> <tr> <td class="style19"> &nbsp;</td> <td class="style18" align ="center" > <asp:TextBox ID="TextBox5" runat="server" Height="20px" Width="112px"></asp:TextBox> </td> <td align="center" class="style17"> <asp:TextBox ID="TextBox8" runat="server" Height="20px" Width="112px"></asp:TextBox> </td> <td align="center" class="style15">

193

Page 194: LMS Report

<asp:TextBox ID="TextBox9" runat="server" Height="20px" Width="112px"></asp:TextBox> </td> </tr> <tr> <td class="style19"> &nbsp;</td> <td align="center" class="style18"> &nbsp;</td> <td align="center" class="style17"> &nbsp;</td> <td class="style15"> &nbsp;</td> </tr> <tr> <td class="style19"> &nbsp;</td> <td align="right" class="style18" > <asp:Button ID="Button1" runat="server" Height="30px" Text="Submit" Width="108px" onclick="Button1_Click" BackColor="Maroon" Font-Bold="True" ForeColor="White" /> </td> <td align="left" class="style17"> <asp:Button ID="Button2" runat="server" Height="30px" Text="Cancel" Width="108px" BackColor="Maroon" Font-Bold="True" ForeColor="White" /> </td> <td class="style15"> &nbsp;</td> </tr> </table> </asp:Panel> </td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td>

194

Page 195: LMS Report

&nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" SelectCommand="SELECT [CenterCode] FROM [CenterCode]"></asp:SqlDataSource> <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" SelectCommand="SELECT [RollNo] FROM [StudentProfile] "></asp:SqlDataSource> </td> <td> <asp:SqlDataSource ID="SqlDataSource5" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" SelectCommand="SELECT [Semester] FROM [SubjectSemesterwise] "> </asp:SqlDataSource> <asp:SqlDataSource ID="SqlDataSource6" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" SelectCommand="SELECT [Subject] FROM [SubjectSemesterwise] where Semester=@s"> <SelectParameters> <asp:ControlParameter ControlID="DropDownList8" Name="s" PropertyName="SelectedValue" /> </SelectParameters> </asp:SqlDataSource> <br /> <asp:SqlDataSource ID="SqlDataSource7" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" InsertCommand="INSERT INTO Result(CenterCode, RollNo, Name, CourseName, Session, Division, Semester, Subject, Practical,

195

Page 196: LMS Report

RecordViva, MarksinFig, MinMarks, Maxmarks) VALUES (@CenterCode,@RollNo,@Name,@CourseName,@Session,@Division,@Semester,@Subject,@Practical,@RecordViva,@MarksinFig,@MinMarks,@Maxmarks)" SelectCommand="SELECT * FROM [Result]"> <InsertParameters> <asp:ControlParameter ControlID="DropDownList1" Name="CenterCode" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="DropDownList6" Name="RollNo" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="DropDownList7" Name="Name" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="DropDownList4" Name="CourseName" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="DropDownList5" Name="Session" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="TextBox1" Name="Division" PropertyName="Text" /> <asp:ControlParameter ControlID="DropDownList8" Name="Semester" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="DropDownList9" Name="Subject" PropertyName="SelectedValue" /> <asp:ControlParameter ControlID="TextBox3" Name="Practical" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox10" Name="RecordViva" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox5" Name="MarksinFig" PropertyName="Text" /> <asp:ControlParameter ControlID="TextBox8" Name="MinMarks" PropertyName="Text" />

196

Page 197: LMS Report

<asp:ControlParameter ControlID="TextBox9" Name="Maxmarks" PropertyName="Text" /> </InsertParameters> </asp:SqlDataSource> </td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td> <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" SelectCommand="SELECT FirstName from [StudentProfile] where RollNo=@r"> <SelectParameters> <asp:ControlParameter ControlID="DropDownList6" Name="r" PropertyName="SelectedValue" /> </SelectParameters> </asp:SqlDataSource> <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" SelectCommand="SELECT [CourseName] FROM [Courses]"></asp:SqlDataSource> </td> <td> <asp:SqlDataSource ID="SqlDataSource8" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" SelectCommand="SELECT [Session] FROM [StudentProfile]"></asp:SqlDataSource> </td> <td> &nbsp;</td> <td> &nbsp;</td>

197

Page 198: LMS Report

</tr> </table></asp:Content>

Role Based Authorization:

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="RoleBaseAuthorization.aspx.cs" Inherits="Admin_RoleBaseAuthorization" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .style6 { width: 100%; } .style7 { } .style9 { height: 18px; } </style></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <table class="style6" > <tr> <td class="style9" align="center" style="font-family: 'footlight MT Light'; font-size: 2em; font-weight: bolder; color: #000000"> </td> </tr> <tr> <td class="style7" align="center"

198

Page 199: LMS Report

style="font-family: 'footlight MT Light'; font-size: 2em; font-weight: bolder; color: #000028" bgcolor="#D9D9C6"> Role Based Authorization</td> </tr> <tr> <td class="style7" > </td> </tr> <tr> <td class="style7" align="center" </td> <asp:Label ID="Labelrolebasedauthorization" runat="server" Font-Bold="True" ForeColor="#CC0000"></asp:Label> </tr> <tr> <td class="style7" align="center" style="font-family: 'footlight MT Light'; font-size: 2em; font-weight: bolder; color: #000000" valign="top"> <%--<asp:LoginView ID="LoginView1" runat="server"> <RoleGroups> <asp:RoleGroup Roles="Admin"> <ContentTemplate> As an Administrator, you may edit and delete user accounts. Remember: With great power comes great responsibility! </ContentTemplate> </asp:RoleGroup> <asp:RoleGroup Roles="Admin"> <ContentTemplate> As a Admin, you may edit users&#39; Email and Comment information. Simply click the Edit button, make your changes, and then click Update. </ContentTemplate> </asp:RoleGroup> </RoleGroups> <LoggedInTemplate> You are not a member of the Supervisors or Administrators roles. Therefore you cannot edit or delete any user information.

199

Page 200: LMS Report

</LoggedInTemplate> <AnonymousTemplate> You are not logged into the system. Therefore you cannot edit or delete any user information. </AnonymousTemplate> </asp:LoginView>--%> <asp:GridView ID="UserGrid" runat="server" AutoGenerateColumns="False" DataKeyNames="UserName" OnRowDeleting="UserGrid_RowDeleting" OnRowEditing="UserGrid_RowEditing" OnRowUpdating ="UserGrid_RowUpdating" OnRowCancelingEdit ="UserGrid_RowCancelingEdit" onselectedindexchanged="UserGrid_SelectedIndexChanged" Height="16px" Width="716px" AllowPaging="True" CssClass="GridViewStyle"> <RowStyle HorizontalAlign="Center" /> <Columns> <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" /> <asp:BoundField DataField="UserName" HeaderText="User Name" ReadOnly="True" /> <asp:BoundField DataField="LastLoginDate" DataFormatString="{0:d}" HeaderText="Last Login" HtmlEncode="False" ReadOnly="True" /> <asp:TemplateField HeaderText="Email"> <ItemTemplate > <asp:Label runat ="server" ID ="Label1" Text ='<%#Eval("Email") %>'> </asp:Label> </ItemTemplate> <EditItemTemplate > <asp:TextBox runat ="server" ID ="Email" Text ='<%#Bind ("Email") %>'> </asp:TextBox> <asp:RequiredFieldValidator ID = "RequiredFieldValidator1" runat ="server" ControlToValidate ="Email"

200

Page 201: LMS Report

Display ="Dynamic" ErrorMessage ="You must provide an email address" SetFocusOnError ="true" >* </asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID ="RegularExpressionValidator1" runat ="server" ControlToValidate="Email" Display ="Dynamic" ErrorMessage ="The email address you have entered is not valid. Please fix this and try again." SetFocusOnError ="true" ValidationExpression ="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator> </EditItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Comment"> <ItemTemplate > <asp:Label runat ="server" ID ="Label2" Text ='<%#Eval("Comment") %>'> </asp:Label> </ItemTemplate> <EditItemTemplate > <asp:TextBox runat ="server" ID ="Comment" TextMode ="MultiLine" Columns ="40" Rows ="4" Text ='<%#Bind ("Comment") %>'> </asp:TextBox> </EditItemTemplate> </asp:TemplateField> </Columns> <FooterStyle CssClass="PagerStyle" ForeColor="White" /> <PagerStyle CssClass="PagerStyle" /> <SelectedRowStyle CssClass="SelectedRowStyle " ForeColor="Black" /> <HeaderStyle CssClass="PagerStyle" ForeColor="White" /> <EditRowStyle CssClass="EditRowStyle" /> <AlternatingRowStyle CssClass="AltRowStyle" /> </asp:GridView> <br /> </td> </tr> <tr> <td class="style7" align="left">

201

Page 202: LMS Report

<asp:ValidationSummary ID ="ValidationSummary1" runat ="server" ShowMessageBox ="true" ShowSummary ="false" /> </td> </tr> </table> </p> </asp:Content>

Manage Role:

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="RoleManage.aspx.cs" Inherits="Admin_RoleManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .style16 { } .style17 { width: 101%; height: 186px; } .style18 { height: 35px; } .style19 {

202

Page 203: LMS Report

height: 30px; } .style20 { width: 419px; } </style></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <table class="style1"> <tr> <td class="style18" align="center" colspan="2" style="font-size: 2em; color: #800000; font-weight: bold; font-family: 'footlight MT Light';" bgcolor="#C8C8C8"> Manage Role By Admin</td> </tr> <tr> <td cl colspan="2"> </td> </tr> <tr> <td class="style9" align="center" colspan="2" bgcolor="#CCCCCC"> <asp:Label ID="ActionStatus" runat="server" ForeColor="#CC0000"></asp:Label> </td> </tr> <tr> <td class="style20"> </td> <td> </td> </tr> <tr>

203

Page 204: LMS Report

<td valign="top" align="center" colspan="2"> <asp:Panel ID="Panel1" runat="server" Height="193px" Width="403px"> <table class="style17"> <tr> <td align="right" style="font-weight: bold"> &nbsp;</td> <td align="left"> &nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td align="right" style="font-weight: bold"> Select User&nbsp;&nbsp;</td> <td align="left"> <asp:DropDownList ID="UserList" runat="server" AutoPostBack="True" DataTextField="UserName" DataValueField="UserName" Height="21px" Width="92px" onselectedindexchanged="UserList_SelectedIndexChanged"> </asp:DropDownList> </td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td align="left" rowspan="6"> <asp:Repeater ID="UsersRoleList" runat="server"> <ItemTemplate> <asp:CheckBox ID="RoleCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="RoleCheckBox_CheckChanged" Text="<%# Container.DataItem %>" />

204

Page 205: LMS Report

<br /> </ItemTemplate> </asp:Repeater> </td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td>

205

Page 206: LMS Report

&nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </asp:Panel> </td> </tr> <tr> <td align="center" class="style7" colspan="2" style="font-size: 16px; color: #800000; font-weight: bold; "> &nbsp;</td> </tr> <tr> <td align="center" class="style19" colspan="2"

206

Page 207: LMS Report

style="font-size: 2em; color: #000040; font-family: 'footlight MT Light';" bgcolor="#C8C8C8"> Manage User By Role</td> </tr> <tr> <td colspan="2"> &nbsp;</td> </tr> <tr> <td style="font-weight: bold" align="right" class="style20"> Select a Role :</td> <td class="style23"> <asp:DropDownList ID="RoleList" runat="server" Height="21px" Width="92px" AutoPostBack="True" OnSelectedIndexChanged ="RoleList_SelectedIndexChanged" style="margin-left: 5"> </asp:DropDownList> <br /> </td> </tr> <tr> <td class="style20"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style16" align="center" colspan="2"> <asp:GridView ID="RolesUserList" runat="server" AutoGenerateColumns="False" Height="16px" Width="270px" EmptyDataText="No users belong to this role." OnRowDeleting ="RolesUserList_RowDeleting" AllowPaging="True" CssClass="GridViewStyle"> <RowStyle HorizontalAlign="Center" /> <Columns> <asp:CommandField DeleteText="Remove" ShowDeleteButton="True" />

207

Page 208: LMS Report

<asp:TemplateField HeaderText="Users"> <ItemTemplate > <asp:Label runat ="server" ID = "UserNameLabel" Text='<%#Container.DataItem %>'></asp:Label> </ItemTemplate> </asp:TemplateField> </Columns> <FooterStyle CssClass="PagerStyle" ForeColor="White" /> <PagerStyle CssClass="PagerStyle" HorizontalAlign="Center" /> <SelectedRowStyle CssClass="SelectedRowStyle " ForeColor="Black" /> <HeaderStyle CssClass="PagerStyle" ForeColor="White" /> <EditRowStyle CssClass="EditRowStyle" /> <AlternatingRowStyle CssClass="AltRowStyle" /> </asp:GridView> </td> </tr> <tr> <td class="style20"> </td> <td class="style21"> </td> </tr> <tr> <td class="style20"> &nbsp;</td> <td class="style21"> &nbsp;</td> </tr> <tr> <td align="right" style="font-weight: bold" class="style20" > User Name :</td> <td> <asp:TextBox ID="UserNameToAddToRole" runat="server" Width="150px" BackColor="#F4FFFF"></asp:TextBox> </td> </tr> <tr> <td class="style20">

208

Page 209: LMS Report

&nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style20"> &nbsp;</td> <td> <asp:Button ID="AddUserToRoleButton" runat="server" Text="Add User to Role" OnClick ="AddUserToRoleButton_Click" BorderColor="Black" BorderStyle="Outset" Height="38px" Width="143px" BackColor="#00003C" Font-Bold="True" ForeColor="White"/> </td> </tr> <tr> <td class="style20"> &nbsp;</td> <td> &nbsp;</td> </tr> </table> <br /> <br /> <br /> <br /> <br /></asp:Content>

See Notice:

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="SeeNotice.aspx.cs" Inherits="Admin_SeeNotice" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

209

Page 210: LMS Report

<table align="center" class="hr"> <tr> <td> &nbsp;</td> </tr> <tr> <td align="center"> <h2 style="width: 388px; font-family: 'Footlight MT Light'; font-size: 2em; color: #800000; height: 28px;" __designer:mapid="1ba"> See Notice</h2> </td> </tr> <tr> <td> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Admin/Notice.aspx">Back</asp:HyperLink> &nbsp;</td> </tr> <tr> <td align="center"> &nbsp;</td> </tr> <tr> <td align="center"> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" OnRowDataBound="GridView1_RowDataBound" onselectedindexchanged="GridView1_SelectedIndexChanged"> <AlternatingRowStyle BackColor="White" ForeColor="#284775" /> <Columns>

<asp:BoundField DataField="Notice_ID" HeaderText="Notice_ID" /> <asp:BoundField DataField="TopicName" HeaderText="TopicName" /> <asp:BoundField DataField="Date" HeaderText="Date" /> <asp:BoundField DataField="Course" HeaderText="Course" />

210

Page 211: LMS Report

<asp:TemplateField HeaderText="Click To Open Notice"> <ItemTemplate> <asp:LinkButton ID="lbnOpen" runat="server" CommandName='<%# Eval("Path") %>' Text="open"></asp:LinkButton> </ItemTemplate> </asp:TemplateField> </Columns> <EditRowStyle BackColor="#999999" /> <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> <SortedAscendingCellStyle BackColor="#E9E7E2" /> <SortedAscendingHeaderStyle BackColor="#506C8C" /> <SortedDescendingCellStyle BackColor="#FFFDF8" /> <SortedDescendingHeaderStyle BackColor="#6F8DAE" /> </asp:GridView> </td> </tr> <tr> <td> &nbsp;</td> </tr> </table></asp:Content>

See Syllabus:

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="SeeSyllabus.aspx.cs" Inherits="Admin_SeeSyllabus" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"></asp:Content>

211

Page 212: LMS Report

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <table align="center" class="hr"> <tr> <td> &nbsp;</td> </tr> <tr> <td align="center"> <h2 style="width: 388px; font-family: 'Footlight MT Light'; font-size: 2em; color: #800000; height: 28px;" __designer:mapid="1ba"> See Syllabus</h2> </td> </tr> <tr> <td> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Admin/Syllabus.aspx">Back</asp:HyperLink> &nbsp;</td> </tr> <tr> <td> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td> </tr> <tr> <td align="center"> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" OnRowDataBound="GridView1_RowDataBound" onselectedindexchanged="GridView1_SelectedIndexChanged"> <AlternatingRowStyle BackColor="White" ForeColor="#284775" /> <Columns>

212

Page 213: LMS Report

<asp:BoundField DataField="Course_ID" HeaderText="Course_ID" /> <asp:BoundField DataField="Course" HeaderText="Course" /> <asp:BoundField DataField="Semester" HeaderText="Semester" /> <asp:TemplateField HeaderText="Click To Open Syllabus"> <ItemTemplate> <asp:LinkButton ID="lbnOpen" runat="server" CommandName='<%# Eval("Path") %>' Text="open"></asp:LinkButton> </ItemTemplate> </asp:TemplateField> </Columns> <EditRowStyle BackColor="#999999" /> <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> <SortedAscendingCellStyle BackColor="#E9E7E2" /> <SortedAscendingHeaderStyle BackColor="#506C8C" /> <SortedDescendingCellStyle BackColor="#FFFDF8" /> <SortedDescendingHeaderStyle BackColor="#6F8DAE" /> </asp:GridView> </td> </tr> <tr> <td> &nbsp;</td> </tr> </table></asp:Content>

213

Page 214: LMS Report

See Time Table:

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="SeeTimeTable.aspx.cs" Inherits="Admin_SeeTimeTable" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .style5 { height: 26px; } </style></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <table align="center" class="hr"> <tr> <td> <table align="center" class="hr"> <tr> <td> &nbsp;</td> </tr> <tr> <td align="center"> <h2 style="width: 388px; font-family: 'Footlight MT Light'; font-size: 2em; color: #800000; height: 28px;" __designer:mapid="1ba"> See Time Table</h2> </td> </tr> <tr> <td> &nbsp;</td> </tr> </table> </td> </tr> <tr> <td> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

214

Page 215: LMS Report

<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Admin/TimeTable.aspx">Back</asp:HyperLink> &nbsp;</td> </tr> <tr> <td align="center"> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" OnRowDataBound="GridView1_RowDataBound" onselectedindexchanged="GridView1_SelectedIndexChanged"> <AlternatingRowStyle BackColor="White" ForeColor="#284775" /> <Columns>

<asp:BoundField DataField="Course" HeaderText="Course" /> <asp:TemplateField HeaderText="Click To Open TimeTable"> <ItemTemplate> <asp:LinkButton ID="lbnOpen" runat="server" CommandName='<%# Eval("Path") %>' Text="open"></asp:LinkButton> </ItemTemplate> </asp:TemplateField> </Columns> <EditRowStyle BackColor="#999999" /> <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> <SortedAscendingCellStyle BackColor="#E9E7E2" /> <SortedAscendingHeaderStyle BackColor="#506C8C" /> <SortedDescendingCellStyle BackColor="#FFFDF8" /> <SortedDescendingHeaderStyle BackColor="#6F8DAE" /> </asp:GridView> </td> </tr> <tr> <td class="style5">

215

Page 216: LMS Report

</td> </tr> </table></asp:Content>

Staff Profile Detail:

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="StaffProfile.aspx.cs" Inherits="Admin_StaffProfile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <table align="center" class="hr"> <tr> <td align="center" style="font-family: 'footlight MT Light'; font-size: large; font-weight: bold; color: #000046" class="style8"> <h2> Staff Profiel Details</h2> </td> </tr> <tr> <td align="center" style="background-color: #CCCCCC"> <asp:Label ID="Label1" runat="server" style="font-size: large; font-family: 'Footlight MT Light'" ForeColor="#CC0000" Font-Bold="True" Text="LabelStaffProfile"></asp:Label> </td> </tr> <tr> <td> <br /> </tr> <tr> <td>

216

Page 217: LMS Report

<asp:GridView ID="GridView1" runat="server" AllowPaging="True" FooterStyle-ForeColor="White" HeaderStyle-ForeColor ="White" AutoGenerateColumns="False" DataKeyNames="Staff_ID" CssClass= "GridViewStyle" AlternatingRowStyle-CssClass="alt" PagerStyle-CssClass="PagerStyle" Height="16px" Width="311px" HeaderStyle-CssClass="PagerStyle" SelectedRowStyle-CssClass ="SelectedRowStyle " DataSourceID="SqlDataSource1" AutoGenerateDeleteButton="True" AutoGenerateSelectButton="True" HorizontalAlign="Center" onselectedindexchanged="GridView1_SelectedIndexChanged"> <RowStyle HorizontalAlign="Center" /> <Columns> <asp:BoundField DataField="Session" HeaderText="Session" SortExpression="Session" /> <asp:BoundField DataField="CenterCode" HeaderText="CenterCode" SortExpression="CenterCode" /> <asp:BoundField DataField="Staff_ID" HeaderText="Staff_ID" ReadOnly="True" SortExpression="Staff_ID" /> <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" /> <asp:BoundField DataField="Department" HeaderText="Department" SortExpression="Department" /> <asp:BoundField DataField="ContactNumber" HeaderText="ContactNumber" SortExpression="ContactNumber" /> <asp:BoundField DataField="Address" HeaderText="Address" SortExpression="Address" /> <asp:BoundField DataField="Designation" HeaderText="Designation" SortExpression="Designation" /> <asp:BoundField DataField="Qualification" HeaderText="Qualification" SortExpression="Qualification" /> <asp:BoundField DataField="EMail_ID" HeaderText="EMail_ID"

217

Page 218: LMS Report

SortExpression="EMail_ID" /> <asp:BoundField DataField="Exprience" HeaderText="Exprience" SortExpression="Exprience" /> </Columns> <FooterStyle ForeColor="White"></FooterStyle>

<PagerStyle /> <SelectedRowStyle CssClass="SelectedRowStyle " ForeColor="Black" /> <HeaderStyle /> <EditRowStyle CssClass="EditRowStyle" /> <AlternatingRowStyle CssClass="AltRowStyle" /> </asp:GridView> </td> <td> &nbsp;</td> </tr> <tr> <td> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SecurityRoleConnectionString %>" SelectCommand="SELECT * FROM [StaffProfile]" DeleteCommand="DELETE FROM StaffProfile where Staff_ID=@Staff_ID"> </asp:SqlDataSource> </td> <td> &nbsp;</td> </tr> </table></asp:Content>

218

Page 219: LMS Report

Code Efficiency:

Due to modular and Object Oriented nature of C#.NET the code efficiency was easy to implement in the software. Most of codes are efficient enough to perform quick, accurate retrieval of data, validation and showing outputs. In this software, most of codes are used which were designed and tested by famous vendors, such as, Microsoft, Crystal Corporation etc. I used ADO.NET technology in disconnected mode which accumulates records in Data Sets on client machine and reduces traffic on server.

I used full capabilities of Object Oriented Nature of C#.NET while developing the project, on line course management. I used single connection class which has its own member functions to access class level private variables and thus I reduced lots of code and also applied concept of Data Hidings and Encapsulation for writing secure code. This implies that the data of the class can not access straightforwardly. The only way is to use member function of the connection class to access connection object and thus I tried to avoid security breaches wherever possible.

Code Optimization:

Most of codes are reused to reduce repeated coding. Modular approach of coding is adopted to optimize coding. The lines of code which are repeated are placed in separate function and then called each time; as they needed. The following points represent the code optimization.

Use of single Connection Class Fixed type variable

Short and meaning full variable names

Disconnected Architecture

Connection established once

Use of In-built function

Maximum use of independent procedure

Different scope of variable for different purpose

Use of functions to avoid repeated codes.

219

Page 220: LMS Report

Use of single Connection Class: I used of single Connection Class to establish connection with server and created its object wherever required.

Fixed Type Variable: I am using fixed type variable not a variant for example: when we want input date I have used date picker in numeric value, use integer or float, for character use string.

Short and Meaning Full Name: I have use short and meaning full name for example name for name adds for address etc.

Disconnected Architecture: I used disconnected mode of connection architecture, in which Data Sets accumulates records on client machine and reduces traffic on server.

In Built Function and controls: I used in built function and controls of C#.NET i.e. MessageBox etc.

Procedure: I have used procedure i.e. fetch the record, clear the text or caption etc.

Validation Checks:

Validation checks are used to avoid run time errors which resulted due to data-type mismatch, more length that is defined to accepted, violation of constraints etc. I used following type of validation checks:

Data type length constraints blank field format

Data type: I have use character type for character, number for numeric, and date for date type. No numeric field insert in date. Character never inputted in numeric field as phone no never accept character if any person input wrongly give message. When this problem is removed then user perform further operation

220

Page 221: LMS Report

Length: When we define a max length. Then it never accepts more data .for example if I define numeric length is 5 then it store either equal to length or less than length. If user gives more character than required then display message and stop processing.

Constraints: In this I am defining range of data if data is less than then display error with message. For example code of product is four character purchases. The field of date must comprise 8 characters.

Blank field: When users add data and some field is blank then system displays message with out halt, but stop processing.

Format: The pre define format is used not change daily to daily for example format of date DDMMYYYY: 01012002 is used in all date type field. If user inserts another format then message gets display. For example the format of Email ID is [email protected]. If user inserts invalid format of email id then error message display.

The flowchart below shows validation checks being implemented during input of data. If any of the necessary field is empty, the data does not get saved instead it keeps on asking for the values and saves the data when all these fields are provided.

221

Page 222: LMS Report

Validation Checks during Fetching of Data:

The flowchart below shows validation checks fetching of data. If there is no data in the database corresponding to the criteria then message will be display that “There is no data please enter the data then fetch”.

222

Page 223: LMS Report

Validation Checks during Number Entry:

The textbox which is defined for the number should be take only numeric value .To prevent the entry of any other value except number value we use some method of checking number value.

Validation checks for duplicate entry data:

The flowchart drew below portrays validation checks being implemented during addition of data. If the data being added already exists then a proper message is displayed else the data is added.

223

Page 224: LMS Report

TESTING

Testing is the major quality control measure used during software development. Its basic function is to detect errors in the software. During requirement analysis and design, the output is a document that is usually Textual and non executable. After the coding phase, computer programs are available that can be executed for testing purposes. This implies that testing not only has to uncovers errors introduced during coding, but also errors introduced during the previous phases. Thus, the goal of testing is to uncover requirement, design, and coding errors in the programs. Consequently, different levels of testing are used.

The starting point of testing is unit testing. In this, a module is tested separately and is often performed by the coder himself simultaneously along with the coding of the module. The purpose is to exercise the different parts of the module code to detect coding errors. After this, the modules are gradually integrated into subsystems, which are then integrated to eventually form the entire system. During integration of modules, integration testing is performed to detect design errors by focusing on testing the interconnection between the modules.

After the system is put together, system testing is performed. Here the system is tested against the system requirements to see if all the requirements are met and if the system performs as specified by the requirements. Finally, acceptance testing is performed to demonstrate to the client, on the real-life data of the client, the operation of the system.

Testing is an extremely critical and time –consuming activity. It requires proper planning of the overall testing process. Frequently the testing process starts with a test plan that identifies all the testing-related activities that must be performed and specifies the schedule, allocates the resource, and specifies guidelines for testing. The test plan specifies conditions that should be, different units to be tested, and the manner in which the modules will be integrated together. Then for different test units, a test case specification document is produced, which lists all the different test cases, together with the expected outputs. During the testing of the units, together with the expected output. The final output of the testing phase is the test report and the error

224

Page 225: LMS Report

report, or a set of such report(one for each unit tested). Each test report contains the set of test cases and the result of executing the code with these test cases and the result of executing the code with these test cases. The error report describes the error encountered and the action taken to remove the errors.

To test my system I too adopted these testing processes. First of all unit testing is done. In it all the programs are tested in their alone that whether they are properly performing their task or not. In this phases all the forms are tested which are for budgetary proposal, sanctioned budget received fund, loan application, recovery schedule, loan sanctioned, scheme wise loan distribution, loan ledger, beneficiary detail, recovery district wise, employee wise, recovery by employee and district month wise, account status of beneficiary, beneficiary card, one time settlement of loan, all master files etc. All these forms are tested individually against all test cases and if their in any problem then it was removed. Thus unit testing is performed.

Then come integration testing. Once all the forms are tested then they are integrated to form some modules. Here design of modules are tested that whether there is any error in interconnection of various modules. Different modules used here are: master, funds management, disbursement, loan recovery, monitoring. During this phase it is tested that whether all these modules are properly connected or not.

After integration system testing is done. In it all modules are combined together to form the complete system and it was checked that whether the complete system perform the work properly. Proper connectivity is established between all the modules so that they are interdependent on each other for proper functioning of the system. Here also all the modules are so connected that they together are able to perform the whole task. During system testing it was evaluated that whether all the requirements which are needed from the system are properly fulfilled or not. All that is find out during requirement analysis must met or not and here in this system we find out that all the requirements that are required are fulfilled.

Then come the last testing procedure and that is acceptance testing. We test our system at client’s side to find out that whether it is working properly with real data. For it we run the software at Uttar Pradesh Schedule Caste

225

Page 226: LMS Report

Finance and Development Corporation and came to the conclusion that it was giving proper result when run under real environment and with real data.

Thus we perform all the testing methods which are necessary for the testing of this system. With this we come to a conclusion that the system is a quality system and it is satisfying all the needs of the client. In case of any further changes in the requirements of the client, changes are made in the system and after the necessary amendments in the system, the system is again tested from the beginning i.e. unit testing then integration testing then system and then acceptance testing. This is the methodology used for testing of the software to find out that whether it is working properly or there are some loop holes in the software. And if any loop hole is find out at any level of testing i.e, any among the four methods then that error is removed at that moment i.e. at that level itself. Without proper working at one level of testing we can’t proceed further.

226

Page 227: LMS Report

T EST C ASES

Login Form

S.no Test id DO Expected Result

1. QT1_001 Enter user id, password in the text box specified.

Click on the Login button.

Successful login to the system if the values are found in the database.

For Creating New User

S.no Test id DO Expected Result

1. QT1_002 Fill the required fields which contain the information of the user.

All the data is stored in the table associated with the database.

227

Page 228: LMS Report

D EBUGGING

Debugging occurs as a consequence of successful testing. Debugging refers to the process of identifying the cause for defective behavior of a system and addressing that problem. In less complex terms- fixing a bug. When a test case uncovers an error, debugging is the process that results in the removal of the error. Referring to figure below debugging process begins with the execution of a test case. Results are assessed and a lack of correspondence between expected and actual performance is encountered. The debugging process attempts to match symptoms with cause, thereby leading to error correction. The following are two alternative outcomes of the debugging:

1. The cause will be found and necessary action such as correction will be taken.

2. The cause will not be found.

228

Page 229: LMS Report

SYSTEM MAINTENANCE AND EVALUATION

System Maintenance:

Software needs to be maintained not because some of its components wear out and need to be replaces but because there are often some residual errors remaining in the system that must be removed as they are discovered. Many of the errors surfaces only after the system have been in operation, sometimes for a long time. To discovered & removed such type of errors called Corrective Maintenance.

Up gradation, enhancement, modification, include some more features & added some more services are the such type of changes which a software must adapt to the needs of the changed environment. The changed software then changes the environment, which in turn requires further changes, called Adaptive Maintenance.

As software is used, the user will recognize additional functions that will provide benefit,

It comes under Perfective maintenance. This maintenance extends the software beyond its original functional requirements.

For maintenance point of view, we have taken all three approaches:

1. Corrective Maintenance

2. Adaptive Maintenance

3. Perfective Maintenance

Corrective Maintenance: In Transportation System Automation Process, we have checked the system with original data of the user. We will collect the errors which surfaces after system has started working & will remove them immediately by repairing processing. Because there are often some residual errors remaining in the system so in future prospects we shall also discover the errors on regular basis, which can be remaining in the system and all will be removed by us day to day.

229

Page 230: LMS Report

Adaptive Maintenance: we have adopted such type of approach that after up gradation or modification or any further enhancement, the software should be environment compatible but if it requires further changes according to the needs we will maintain it as needed.

Perfective Maintenance: We have taken a lot of care at the time of analysis but after the user starts using the software, if suggested we will add additional functions to enhance the functionality of the software.

If the user is looking for any additional enhancement in this system like, Addition of any new module or any modification in any module or any up gradation in any of the existing module can be added, modify and up graded easily with out any difficulty or major changes.

After the completion of any further changes like modification, up gradation or any enhancement we have also a step of regression testing. In this step we will execute the old test cases to check that if there is any error occurs after changes has taken place.

System EvaluationEvaluation of the system is performed to identify its strengths and weakness.

Operational evaluation : In this, assessment of the system functions, ease of use, response time, and suitability of information’s formats, overall reliability, and level of utilization is undertaken.

All the above aspects were very well taken into consideration from the very beginning. Reliability of this project is high. Recovery methods are well written, even if something exceptional occurs user has a way to come out of the undesirable situation and carry on with the work. Records are saved only if they are valid.

230

Page 231: LMS Report

FUTURE SCOPE OF THE PROJECT

1. This website is design on the basis of single server and multiple clients

therefore this website can be further design to run on multiple server with

full-fledged computing scalability.

2. This website is design keeping in the mind database vender changes.

Therefore backend changes do not affect the application logic.

3. This website can also be extended to be accessed on own PC more

comprehensively.

231

Page 232: LMS Report

BIBLIOGRAPHY

1. Software Engineering ‘A practitioner’s approach’ – Roger S. Pressman, (McGraw-Hill International Edition)

2. Mastering Sql-Server.

3. Software engineering –Pressman

4. ASP.NET-Mastering Asp.Net(Black Book) ASP.NET-Mastering Asp.Net (Apress e-book)

5. www.google.com

6. www.wikipedia.com

7. Ignoue Book For DFD

232

Page 233: LMS Report

233