SlideShare a Scribd company logo
1 of 107
Download to read offline
E-Learning
E-Learning
A PROJECT REPORT
Submitted by
Talima Afreen
Tasmiya Arzoo
Shahana Zuber Ansari
for the award of the degree
of
Bachelor of Technology
IN
Computer Science and Engineering
INTEGRAL UNIVERSITY LUCKNOW
April 2016
E-Learning
INTEGRAL UNIVERSITY: LUCKNOW
UNDERTAKING
We, Talima Afreen, Tasmiya Arzoo and Shahana Zuber Ansari, student of
B.Tech. (CSE), hereby declare that the work detailed in this Project
entitled “E-Learning” submitted to the Department of Computer Science
and Engineering, Integral University, Lucknow for the award of the
Bachelor of Technology degree is our original work. We have neither
plagiarized nor submitted this work for the award of any other degree.
In case, this undertaking is found incorrect, We accept that my degree
may be unconditionally withdrawn.
Talima Afreen
Tasmiya Arzoo
Shahana Zuber Ansari
E-Learning
INTEGRAL UNIVERSITY:LUCKNOW
CERTIFICATE
This is to certify that the work contained in this project report entitled “E-
Learning” by Talima Afreen, Tasmiya Arzoo and Shahana Zuber Ansari
is a faithful record of work that has been carried out by the students,
under my supervision and the level of work is good for submission. To
the best of our knowledge, this work has not been submitted for award of
any degree or diploma to this University or elsewhere.
Manish Madhav Tripathi
Associate Professor
Computer Science and Engineering Department
Integral University, Dasauli, Kursi Road ,Lucknow
E-Learning
INTEGRAL UNIVERSITY:LUCKNOW
RECOMMENDATION
On the basis of the declaration submitted by Talima Afreen, Tasmiya
Arzoo, Shahana Zuber Ansari, internal assessment carried out by
department on date 19/04/2016 and the certificate issued by the Guide
Manish Madhav Tripathi the work entitle “E-Learning” submitted to
department of CSE, is recommended for final examination.
Jameel Ahmad Mrs. Kavita Agarwal
Project Coordinator Head
(Associate Professor) Department of CS/IT
E-Learning
INTEGRAL UNIVERSITY: LUCKNOW
ACKNOWLEDGEMENT
It gives us a great pleasure to present before you our project report on “E-
LEARNING” completed under the guidance of our HOD “Mrs.
KAVITA AGARWAL”department of Computer Science & Eng. Under
whose valuable guidance, contant interest and encouragement , which
have devoted his ever-precious time from her busy schedule and thus
helped in completing the project.
This co-operation is not only useful for this project but will be constant
source of inspiration for us in future life. We are also thankful to all
faculty member who help us intellectually in preparation of this project
directly or indirectly.
Last but not the least our gratefulness is there for our friends who gave
their constructive & helpful comments to make this report a success.
SHAHANA ZUBER ANSARI(1200112195)
TALIMA AFREEN(1200112227)
TASMIYA ARZOO(1200112229)
E-Learning
TABLE OF CONTENT
Chapter
No.
CONTENTS PAGE
No.
1 INTRODUCTION Vii
1.1. PURPOSE Vii
1.2. INTENDED AUDIENCE AND EVOLUTION OF
DOCUMENT
vii-viii
1.3. SCOPE OF THE DEVELOPMENT PROJECT Ix
1.4. DEFINITIONS, ACRONYMS, AND
ABBREVIATIONS
Ix
1.5. OVERVIEW X
2 PREVIOUS WORK Xi
2.1. EXISTING SYSTEM Xi-xii
2.2. OTHER SIMILAR ENTITY Xii
3 REQUIREMENT ANALYSIS xii-xviii
4 PROPOSED WORK
4.1. OBJECTIVE OF PROPOSED SYSTEM Xix
4.2. ADVANTAGE OF PROPOSED SYSTEM Xx
4.3. SCOPE OF PROPOSED SYSTEM Xx
5 HARDWARE AND SOFTWARE
SPECIFICATION
xxi-xxiv
5.1. HARDWARE REQUIREMENT Xxi
5.2. SOFTWARE REQUIREMENT Xxii
5.3. TECHNOLOGIES USED Xxii
5.3.1 FRONT END TOOLS Xxiii
5.3.2 BACK END TOOL xxiv
6 DESIGN xxv-xxx
6.1. DFD Xxv-xxvi
6.2. ER DIAGRAM Xxvii
6.3. DECISION TREE Xxviii
6.4. STRUCTURED ENGLISH Xxix
6.5. DESCRIPTION OF DESIGNING TOOLS xxx
7 OVERALL DESCRIPTION xxxi-xxxii
E-Learning
7.1. USER CLASSES AND CHARACTERISTICS Xxxi
7.2. OPERATING ENVIRONMENT Xxxi
7.3. DESIGN AND IMPLEMENTATIONS
CONSTRAINTS
xxxii
7.4. ASSUMPTION & DEPENDENCIES xxxii
8 TABLES USED IN THE PROJECT xxxiii-xxxvi
9 CODING BEHIND PAGE xxxvii-xcvii
10 SCREEN SHOTS OF THE PROJECT xcviii-civ
11 FUTURE WORK cv
12 CONCLUSION cvi
13
14
REFERENCES
BIO-DATA
cvi
cvii-cx
E-Learning
ABSTRACT
The paper presents an investigation into the role of virtual reality and web
technologies in the field of distance education. Within this frame, special
emphasis is given on the building of web-based virtual learning
environments so as to successfully fulfill their educational objectives.
Finally, an innovative virtual reality environment for distance education
is demonstrated. The proposed environment reproduces conditions of the
real learning process and enhances learning through a real-time
interactive simulator.
Virtual education is an emerging concept. Here the classes are not taken
face-to-face in a classroom but through an electronic medium as a
substitute. These virtual classrooms are gaining importance everyday and
very soon they are going to be an integral part of our world.
Taking up these virtual classes through an electronic medium is
termed as E-Learning. Today E-Learning is no more a technical word that
only a few people know. It is turning to be a part of everyone's life
whether a student, employee or a housewife all tend to use E-Learning in
one way or another. Larger organizations are turning towards E-Learning
solution for proving training digitally.
As the number of Internet access points are growing rapidly, E-Learning
is also gaining a new peak. This electronic medium serves best for
dissemination of information. E-Learning is proving itself as a boon for
students especially for the disabled who are not able to go and attend the
lectures. All these emphasize the need for developing Open Source
software that can be used to generate rich multimedia presentation.
E-Learning
INTRODUCTION
Today, we have moved to the digital age. It is now possible to
accomplish anything from shopping to socializing online. It is
Therefore only natural that learning should move to the digital form
too. Our product strives to achieve this transition of education from
manual classroom teaching to a virtual environment where a student can
learn at anytime from any place.
1.1 PURPOSE:
E-Learning aims to replace the role of a school and teachers by
providing students a virtual environment which makes it easy for them to
study. This is not only provides students the convenience of studying at
anytime they wish, but also facilitates distance learning. It enables a
school to cater to students from all across the globe without requiring
them to come to the country where the school is located. Even if applied
only within a particular region for security reasons, it would still save
time, costs and energy. Decreased road congestion and pollution would
be positive consequences of its application since millions of students
every day would not be travelling to and from school.
E-Learning does more than providing students an alternative to
attending school. It takes education to a whole new level where
education is a continuous process. It enables students to attend the school
of their choice without worrying about travelling or even boarding. A
student from India can study from Houston University without having to
travel there. Students from China, Australia and Italy can all be members
of the same class even while sitting in their own homes.
1.2 INTENDED AUDIENCE AND EVOLUTION OF DOCUMENT:
This document is meant for professors, students and developers who
consider virtual classroom as a useful means for distance education. This
E-Learning
document aims at explaining in an easy manner. It aims to introduce to
professors and students and also general users (For e.g. People working
in a company) the main features of E-Learning and how the developers
aim to achieve their goals. Future development objectives are also
discussed.
2.3 SCOPE OF THE DEVELOPMENT PROJECT:
E-Learning is a virtual classroom based on ASP.Net. It is being made in
response to a growing demand for eLearning software. This can be used
as a stand-alone model for education in a school or can be used to
supplement the existing system of a school. Either ways, it will be
accessible to all students of an institution and they can use it to view
tutorials or submit assignments/tests.
2.4 DEFINITIONS, ACRONYMS, AND ABBREVIATIONS:
E-learning: Refers to the Virtual Classroom software version 1.0
being developed.
E-Learning Management System: A software package to assist
administrator/teachers with the creation of online courses for their
students.
2.5 OVERVIEW:
This Software Requirements Specification specifies the requirements of
the E-Learning tool using which people can generate multimedia
presentations combining video, HTML, images and slides and publish it
as a web page that is viewable an all popular web browsers.
E-Learning
2.PREVIOUS WORK
2.1 EXISTING SYSTEM:
The existing education system requires students to reside near the
Institution they wish to study in. This is problematic when the college a
student wishes to attend is in another city or, worse, another country.
Costs automatically go up due to travelling and renting a room or paying
Hostel fee.
Further, students are supposed to simultaneously report to college
at a specific time each day. No provision is made for students who are
unable to attend college on time on a particular day. There is no way to
go through a lecture that has been missed. The best a student can do is
copy the notes taken by his friends.
A school building is a huge structure, requiring ample lighting and
cooling. Rooms, even when not in use, might be lit up. This leads to
inefficient use of energy, something which can be avoided with the use
of e-learning. Further, millions of students travelling to and from college
everyday automatically leads to congestion on the roads, which in turn
leads to increased pollution.
2.2 OTHER SIMILAR ENTITY:
After the analysis of other similar entities it has been found that
although they are working in their respective institutes but they still need
to be more refined and also be ADD-Ones with other facilities as well.
There are many works still left to work on, such as: Online Class Test,
Online Database of the particular student, Online payment of the fees,
Viewing and downloading of recorded Lectures.
E-Learning
3.PROBLEM IDENTIFICATION AND
FEASIBILITY STUDY
3.1 PROBLEM IDENTIFICATION:
As we know, we have moved to the digital age. It is now possible to
accomplish anything from shopping to socializing online. It is
therefore only natural that learning should move to the digital form
too. Our product strives to achieve this transition of education from
manual classroom teaching to a virtual environment where a student can
learn at anytime from any place.
This software aims to replace the role of a school and teachers by
providing students a virtual environment which makes it easy for them to
study. This not only provides students the convenience of studying at
anytime they wish, but also facilitates distance learning. It enables a
school to cater to students from all across the globe without requiring
them to come to the country where the school is located. Even if applied
only within a particular region for security reasons, it would still save
time, costs and energy. Decreased road congestion and pollution would
be positive consequences of its application since millions of students
every day would not be travelling to and from school.
E-Learning does more than providing students an alternative to
attending school. It takes education to a whole new level where
education is a continuous process. It enables students to attend the school
of their choice without worrying about travelling or even boarding. A
student from India can study from Houston University without having to
travel there. Students from China, Australia and Italy can all be members
of the same class even while sitting in their own homes.
E-Learning
3.2 FEASIBILITY STUDY:
(a)ECONOMIC FEASIBILITY:
The proposed system would save
millions of dollars in the education system. Money spent on providing
infrastructure which itself amounts to millions of dollars would
automatically saved. There would be further savings due to saving of
energy that was earlier being wasted in the building. Students would not
have to pay for travelling and lodging, or even food from outside. They
would further save on fees since most colleges would cut down on the
part of fees they charge for development of infrastructure and its
maintenance.
In contrast to the huge cash requirements of the existing system, the
proposed system is a simple online interface that can be accessed by
anyone at a minimal cost. The only expenditure, apart from the existing
ones on staff, will be on software maintenance staff.
(b)TECHNICAL FEASIBILITY:
The software only relies on a high-
speed internet connection on the student end to enable access to videos.
Even on a low-speed connection, a student can still read textual
materials.
The college would have to invest in secure servers and ensure proper
maintenance of the software. Both these are easily achievable at
low cost.
(c) OPERATIONAL FEASIBILITY:
The system will be used if it is
developed well, and then there will be resistance for users that
undetermined:
 No major training and new skills are required as it is based on
DBMS model and Virtual Reality.
E-Learning
 It will help in the time saving and fast processing and dispersal of
student’s requests.
 New product will provide all the benefits of present system with
better performance.
 Improved information, better management and collection of the
reports.
 User support.
 User involvement in the building of present system is sought to
keep in mind the user specific requirement and needs.
E-Learning
4. REQUIREMENT ANALYSIS
Problem Definition:
Since, we have investigated through many aspects of current teachings
system, and also into the merits-demerits which emerges out from it.
It is found that E-Learning aims to replace the role of a school and
teachers by providing students a virtual environment which makes it
easy for them to study. This not only provides students the convenience
of studying at anytime they wish, but also facilitates distance learning. It
enables a school to cater to students from all across the globe without
requiring them to come to the country where the school is located. Even
if applied only within a particular region for security reasons, it would
still save time, costs and energy. Decreased road congestion and
pollution would be positive consequences of its application since
millions of students every day would not be travelling to and from
school.
E-Learning does more than providing students an alternative to attending
school. It takes education to a whole new level where education is a
continuous process. It enables students to attend the school of their
choice without worrying about travelling or even boarding. A student
from India can study from Houston University without having to travel
there. Students from China, Australia and Italy can all be members of the
same class even while sitting in their own homes.
Analyst, working closely with the Teachers and the students, must study
the Counseling Process as follows:
These key questions:
 What is being done?
 How is it being done?
 How frequent does it occur?
 How great is the volume of interaction?
E-Learning
 How well is the task being performed?
 Does a problem exist?
 If problems exist, how serious is it?
 If a problem exists, what is the underlying cause?
Apart from this, almost all the aspects of teaching environment were
closely monitored in order to develop fine software. The other steps
which were carried out were:
 Analysis of teaching materials.
 Analysis of teaching methods.
 Analysis of Class Test being conducted.
 Interview the Teachers and the students.
 Observe the overview of Administrative section.
 Onsite observations.
 Analysis of Scheduling of classes.
 Analysis of Time Management.
OUTCOME OF THE REQUIREMENTS ANALYSIS:
After our team has done the analysis on the requirement, we find that
there are various requirements for the development of this project, they
have been divided into four sections, and they are as follow:
(1)VISITORS SECTION:
 Home page
 About us
 Login Student
 Login Teacher
 Login Administrator
 Current Courses
 Current Faculties
 Fee Structure
 Why us
 Upcoming Batches
 Picture Gallery
 Registration instructions
 Registration Form
E-Learning
 Search
 Offline query
 Feedbacks
(2)STUDENTS SECTION
 Home page
 Attend Lectures
 Mark Attendance
 Download Assignments
 Download eBooks
 Download Notes
 Download Presentation
 Upload Completed Assignment
 Online Examination
 View e-Grade card
 View Recorded Lectures
 Voting
 Time Table
 Feedback
 Change Password
 View attendance record
 View Grades record.
 Offline query
 Forums
 Log out
(3)TEACHERS SECTION
 Home page
 Take Lectures
 Mark Attendance
 Upload Assignments
 Upload eBooks
 Upload Notes
 Upload Presentation
 Download Completed Assignment
 Take Online Examination
 Change Password
 Time Table
 Feedback
 Offline query
 Generate e-Grade card
E-Learning
 View Students Attendance
 Voting
 Prepare online Question paper
 Offline queries
 Teachers Forums
 Log out
(4)Administrator’s Section
 Add student
 Remove student
 Add Teacher
 Remove Teacher
 Add Course
 Remove Course
 Add Batch
 Remove batch
 Change Password
 Manage attendance
 Assign Teacher with Course
 Generate Student’s Certificate
 Manage student’s fee
 Manage teacher’s salary
 Log out
Note: These are all requirements which we gathered, we tried our best
to implement maximum of them, and remaining features can be
supplemented for Future upgradations.
E-Learning
5. PROPOSED WORK
E-Leanings a virtual classroom environment that provides students
with all the learning facilities provided to them in a school. Notes to
refer to, videos of lectures, online tests are the most important features of
the product.
5.1 OBJECTIVE OF PROPOSED SYSTEM:
E-Learning aims to provide students with:
 Presentations, eBooks and other necessary notes.
 Videos of lectures.
 Online submission of assignments, projects and tests.
 Ability to check their marks and details online.
It strives to facilitate distance learning and better interaction between
students from different geographical locations.
5.2 ADVANTAGE OF PROPOSED SYSTEM:
The new system provides students with the convenience of learning
at any time they wish and from any place. Reading in a comfortable
environment and a time suited to the particular student leads to better
understanding of the subject.
It also enables students to go through a particular lecture as many
times as they wish since they only have to replay a video.
Learning/revising a subject from a video is better than revising from a
book.
It automatically cuts down on costs for students since they do not
have to worry about travel and lodging. It also saves costs for an
institution since it no longer requires a huge building and the
infrastructure it would have otherwise had to build.
It also allows a new institution to get off the ground immediately,
instead of having to wait for years to simply build a building for its
students.
E-Learning
As a direct consequence, it will save time and energy for both
students and teachers. As an indirect consequence, it will decrease road
traffic and pollution.
5.3 SCOPE OF PROPOSED SYSTEM:
The proposed system can be used as an independent learning tool or in
conjunction with a school’s existing system. A school wouldn’t find it
too difficult to replace their existing system with the new one since it
only requires granting student’s access to the system.
If a school wishes for actual interaction between students and
faculty, or in an institution where presentations in front of live audiences
are required, this product can be used to supplement the existing system.
Student can do most of the learning from home and come to school for
only the interactive sessions. In the later combinational system, however,
the advantages of global education would be nullified.
E-Learning
6. HARDWARE AND SOFTWARE SPECIFICATION
6.1 HARDWARE REQUIREMENT:
Main Processor Pentium IV
Hard-disk Capacity 80 GB
RAM 1 GB
INTERNET CONNECT 256 Kbps
(These are the least configuration which should hold.)
6.2 SOFTWARE REQUIREMENT:
Operating System Windows 8
Backend tool SQL Server 2008
Front-end tool ASP.NET 3.5, JavaScript
Web Browser MS Internet Explorer 8.0
Note: With all the above requirements, the software is technically
feasible.
E-Learning
6.3 TECHNOLOGIES USED
6.3.1 FRONT END TOOLS:
HTML (Hyper Text Markup Language)
A markup language used to structure text and multimedia documents
and to set up hypertext links between documents, used extensively on the
World Wide Web. HTML is a designing language, not a programming
language. HTML is a markup language that uses a fixed set of markup
tags.
 HTML itself is the set of customizable “markup” tags that are
inserted into HTML document govern its format, multimedia
content, and hyperlinks. Any HTML viewer can display such
documents but they are normally viewed using a Web browser.
 HTML is a programming language in that an HTML document is a
program that, when “run” by a browser, displays its text as
hypermedia (multimedia with hyperlinks).
 The “language” HTML is really only a collection of predefined
tags which, when inserted into regular text, tell a web browser how
to work.
JAVASCRIPT
JavaScript is a compact, object-based scripting language. It can
provide interactive web pages, validate from data, and make your web
page clearer. JavaScript is a lightweight interpreted scripting language.
The language is most well known for its use in websites. It was
E-Learning
originally developed by Brendan Each of Netscape Communications.
It adds interactive functions to HTML pages, which are otherwise
static. JavaScript is easier to use than Java, but not as powerful and
deals mainly with the elements on the Web page. On the client,
JavaScript is maintained as source code embedded into an HTML
page. On the Server, it is compiled into byte code (intermediate
language), similar Java programs.
ASP.NET
 ASP Stands for Active Server Pages.
 Microsoft ASP. Net is a technology that allows Programmer to
create Dynamic Web Application.
 ASP. Net is a program that runs inside IIS.
 IIS (Internet Information Services) is Microsoft’s Internet Server.
 ASP. Net file can contain HTML, XML and scripts.
 The .NET Framework is an architecture that’s makes it easier to
design.
 The Common Language Runtime (CLR) provides a set of services
for all ASP.Net Languages.
PROGRAMMING LANGUAGE (C#)
 C# is purely Object Oriented Language.
 C# directly related to C, C++ and Java.
E-Learning
6.3.2 BACK END TOOL:
SQL SERVER 2008
 Microsoft Server-2008 is a full featured Relational Database
Management System (RDBMS).
 Online Transaction Processing (OLTP) system must be capable of
handling thousands of order placed at the same time.
 MSSQL Server-2008 has variety of Tools.
 Enterprise Manager.
 Query Analyzer.
 SQL Profile.
 Service Manager.
 Data Transformation Service.
 Books Online.
E-Learning
7. DESIGN
7.1 DFD:
LEVEL 1
TEACHER
TEACHER DETAILS
LOG-IN SELECT
TASK
E-Learning
VALIDATE
VALIDATE
VALIDATE
STUDENT LOGIN SELECT
TASK
STUDENT‘s
DETAIL
ADMIN LOG-IN SELECT
TASK
ADMIN‘s DETAIL
E-Learning
LEVEL 2
DETAILED DATABASE
VISITOR
STUDENT
LOG-IN ADMIN
TEACHER
VIEW
UPDATE
TEACHERSTUDENT
SELECT
TASK
LOG-INUSER
E-Learning
7.2 ER DIAGRAM:
E-Learning
7.3 DECISION TREE:
7.4 STRUCTURED ENGLISH:
E-Learning
7.5 DESCRIPTION OF DESIGNING TOOLS:
DATA FLOW DIAGRAM (DFD):
 DFD are commonly used during problem analysis.
 A DFD shows the flow of data through a system.
 The DFD aims to capture the transformation that take place
within the System to the input data so that eventually the output
data is produced.
 A DFD does not represent procedural information.
 DFD is a logical design of the flow of information between the
modules.
The DFD shows the interaction of one module with the other module.
There are several level of DFD are used to describe the flow of
information
ENTITY RELATIONSHIP DIAGRAM:
 ERD can express the overall logical structure of a database
graphically.
 ERD are simple and clear qualities that may well account in large
part for the widespread use of the ER-Model.
 The basic object that the ER model represents is an entity, which is
a “Thing” in the real world with an independent existence.
 A particular entity will have a value for each of its attributes.
 The attribute values that describe each entity become a major part
of the data stored in the database.
E-Learning
8. OVERALL DESCRIPTION
8.1 USER CLASSES AND CHARACTERISTICS:
Students: Students will have ability to read the data in “reading
materials” section. This includes videos, eBooks, notes etc. They will
also have the ability to modify and submit data in the “work” section
which will include tests, assignments, reports etc.
Teachers: Apart from the functionalities granted to students, teachers
will be able to upload data to the “materials” and “work” section. It will
be automatically categorized into the correct subject section by the
system depending on which teacher account has uploaded it. Teachers
can delete/modify data uploaded by themselves but not by other
teachers.
Administrator: An administrator has access to all parts of the
system.He possesses the power to delete any material. He will also have
access to the back-end of the system using which he can access
details of teachers and students.
8.2 OPERATING ENVIRONMENT:
The proposed product requires a web browser to work. It can work on
any operating system that contains a web browser with support for:
 ASP.Net
 Java Script
 Flash or Silverlight (For Videos)
E-Learning
8.3 DESIGN AND IMPLEMENTATIONS CONSTRAINTS
Though schools would prefer it, the current development
environment makes it difficult for us to prevent unauthorized
download and distribution of files by students. To ensure that students do
not cheat on tests, it could be possible to use webcam technology to
ensure that no one else is in the room with the student. A biometric scan
should be done to verify the identity of the student. However, current
levels of sophistication of webcam technologies and biometric scans
restrict us from implementing these features in E-Learning1.0.
8.4 ASSUMPTION & DEPENDENCIES
The product relies on a high-speed internet connection on part of the
student. A high bandwidth is required for streaming videos.
E-Learning
9. TABLES USED IN THE PROJECT
REGISTRATION TABLE:
LOGIN TABLE:
COURSE TABLE:
E-Learning
ATTENDENCE TABLE:
FACULTY ALLOTMENT TABLE:
ANNOUNCEMENT TABLE:
E-Learning
BANK TABLE:
CHAT TABLE:
FEEDBACK TABLE:
E-Learning
INBOX TABLE:
E-Learning
10. CODING BEHIND PAGE
Visitor Section
(a)Login Page:
using System;
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 _Default : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
Label3.Visible = false;
if (DropDownList1.SelectedIndex.ToString() == "0")
{
Label3.Text = "Select User Type";
Label3.Visible = true;
}
if (DropDownList1.SelectedItem.Text == "Student")
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_student where user_id='" + TextBox1.Text + "'and
password='" + TextBox2.Text + "' ";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
string p = "";
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
p = dr["status"].ToString();
}
if (p == "True")
{
ob.con.Open();
ob.cmd.CommandText = "update reg_student set onlineStatus='True' where user_id='" +
TextBox1.Text + "'and password='" + TextBox2.Text + "'";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
Session["Student"] = TextBox1.Text;
Response.Redirect("~/student/welcome(student).aspx");
}
else
{
Label3.Text = "Wait For Approval";
Label3.Visible = true;
}
}
else
{
E-Learning
Label3.Text = "Invalid User";
Label3.Visible = true;
}
}
if (DropDownList1.SelectedItem.Text == "Faculty")
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_faculty where user_id='" + TextBox1.Text + "'and
password='" + TextBox2.Text + "' ";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
string p = "";
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
p = dr["status"].ToString();
}
if (p == "True")
{
ob.con.Open();
ob.cmd.CommandText = "update reg_faculty set onlineStatus='True' where user_id='"
+ TextBox1.Text + "'and password='" + TextBox2.Text + "'";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
Session["Faculty"] = TextBox1.Text;
Response.Redirect("~/faculty/welcome(faculty).aspx");
}
else
{
Label3.Text = "Wait For Approval";
Label3.Visible = true;
}
}
else
{
Label3.Text = "Invalid User";
Label3.Visible = true;
}
}
if (DropDownList1.SelectedItem.Text == "Administrator")
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_admin where user_id='" + TextBox1.Text + "'and
password='" + TextBox2.Text + "' ";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
ob.con.Open();
ob.cmd.CommandText = "update reg_admin set onlineStatus='True' where user_id='" +
TextBox1.Text + "'and password='" + TextBox2.Text + "'";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
Session["Admin"] = TextBox1.Text;
Response.Redirect("~/admin/welcome(admin).aspx");
}
else
{
Label3.Text = "Invalid User";
Label3.Visible = true;
}
}
}
protected void registration(object sender, EventArgs e)
{
Response.Redirect("reg.aspx");
}
protected void forget_password(object sender, EventArgs e)
E-Learning
{
Response.Redirect("forget.aspx");
}
}
(b)Registration Page:
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 visitor_try_reg : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
MultiView1.Visible = true;
MultiView1.SetActiveView(View1);
ob.ddlBinding(DropDownList7, "select *from country_reg order by country_name asc",
"country_name", "country_id");
ob.ddlBinding(DropDownList18, "select *from states where country_id='" +
DropDownList7.Text + "'", "state_name", "state_id");
ob.ddlBinding(DropDownList2, "select *from cities where state_id='" +
DropDownList18.SelectedValue + "'", "city_name", "city_id");
}
}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
if (DropDownList1.SelectedItem.Text == "Administrator")
{
Button4.Visible = true;
Button6.Visible = false;
}
else
{
Button6.Visible = true;
}
Label39.Visible = false;
Label15.Visible = false;
Label17.Visible = false;
Label16.Visible = false;
Label34.Visible = false;
Button1.Visible = false;
Button2.Visible = false;
Button4.Visible = false;
TextBox1.Visible = false;
TextBox10.Visible = false;
TextBox12.Visible = false;
if (DropDownList1.SelectedItem.Text == "Student")
{
Button1.Visible = true;
TextBox1.Visible = true;
E-Learning
}
if (DropDownList1.SelectedItem.Text == "Faculty")
{
TextBox10.Visible = true;
Button2.Visible = true;
}
if (DropDownList1.SelectedItem.Text == "Administrator")
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_admin";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label16.Text = "Sorry! Admin is Registered";
Label16.Visible = true;
}
else
{
Label16.Visible = false;
Button4.Visible = true;
TextBox12.Visible = true;
}
}
}
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
Label34.Visible = false;
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_student where user_id='" + TextBox1.Text + "'";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label17.Text = "Not Available";
Label17.Visible = true;
}
else
{
Label17.Text = "Available";
Label17.Visible = true;
}
}
protected void TextBox10_TextChanged(object sender, EventArgs e)
{
Label34.Visible = false;
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_faculty where user_id='" + TextBox10.Text + "'";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label17.Text = "Not Available";
Label17.Visible = true;
}
else
{
Label17.Text = "Available";
Label17.Visible = true;
}
}
protected void TextBox12_TextChanged(object sender, EventArgs e)
{
Label34.Visible = false;
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_admin where user_id='" + TextBox12.Text + "'";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
E-Learning
Label17.Text = "Not Available";
Label17.Visible = true;
}
else
{
Label17.Text = "Available";
Label17.Visible = true;
}
}
protected void faculty_signup(object sender, EventArgs e)
{
int a = 0;
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_faculty where user_id='" + TextBox10.Text + "'";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label87.Text = "Already Registered";
Label87.Visible = true;
}
else
{
Label87.Visible = false;
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_faculty";
ob.adp.Fill(ob.ds, "vt");
ob.dr = ob.ds.Tables["vt"].NewRow();
ob.dr["user_id"] = TextBox10.Text;
ob.dr["password"] = ViewState["pass"].ToString();
ob.dr["first_name"] = TextBox4.Text;
ob.dr["last_name"] = TextBox5.Text;
ob.dr["image_path"] = ViewState["file_path"].ToString();
ob.dr["dob"] = DropDownList4.SelectedItem.Text + "-" +
DropDownList5.SelectedItem.Text + "-" + DropDownList6.SelectedItem.Text;
if (RadioButton1.Checked)
{
ob.dr["gender"] = RadioButton1.Text;
}
else
{
ob.dr["gender"] = RadioButton2.Text;
}
ob.dr["country"] = DropDownList7.SelectedItem.Text;
ob.dr["state"] = DropDownList18.SelectedItem.Text;
ob.dr["city"] = DropDownList2.SelectedItem.Text;
ob.dr["address"] = TextBox14.Text;
ob.dr["profession"] = DropDownList9.SelectedItem.Text;
if (RadioButton3.Checked)
{
ob.dr["marital_status"] = RadioButton3.Text;
}
else
{
ob.dr["marital_status"] = RadioButton4.Text;
}
ob.dr["mobile_no"] = TextBox8.Text;
ob.dr["email_id"] = TextBox13.Text;
if (RadioButton5.Checked)
{
ob.dr["skill_level"] = RadioButton5.Text;
}
else if (RadioButton6.Checked)
{
ob.dr["skill_level"] = RadioButton6.Text;
}
else if (RadioButton7.Checked)
E-Learning
{
ob.dr["skill_level"] = RadioButton7.Text;
}
ob.dr["SQ"] = DropDownList3.SelectedItem.Text;
ob.dr["SA"] = TextBox9.Text;
ob.dr["course_applied"] = DropDownList12.Text;
if (RadioButton10.Checked)
{
ob.dr["Highest_Qualification"] = RadioButton10.Text;
}
else if (RadioButton11.Checked)
{
ob.dr["Highest_Qualification"] = RadioButton11.Text;
}
if (DropDownList13.SelectedItem.Text == "Other")
{
ob.dr["Degree"] = TextBox27.Text;
}
else
{
ob.dr["Degree"] = DropDownList13.SelectedItem.Text;
}
ob.dr["percentage"] = DropDownList14.SelectedItem.Text;
ob.dr["college_name"] = TextBox15.Text;
ob.dr["experience"] = DropDownList19.SelectedItem.Text;
ob.dr["status"] = "False";
ob.dr["allotmentStatus"] = "False";
ob.dr["onlineStatus"] = "False";
ob.ds.Tables["vt"].Rows.Add(ob.dr);
ob.scb.DataAdapter = ob.adp;
ob.adp.Update(ob.ds.Tables["vt"]);
Label87.Text = "Sign Up Successfull";
Label87.Visible = true;
Label87.Focus();
}
}
}
protected void admin_signup(object sender, EventArgs e)
{
if (Label34.Text == "* Fields are necessary")
{
Label34.Focus();
}
else
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_admin where user_id='" + TextBox12.Text + "'";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label34.Text = "Admin Is Registered";
Label34.Visible = true;
}
else
{
Label34.Visible = false;
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_admin";
ob.adp.Fill(ob.ds, "vt");
ob.dr = ob.ds.Tables["vt"].NewRow();
ob.dr["user_id"] = TextBox12.Text;
ob.dr["image_path"] = ViewState["file_path"].ToString();
ob.dr["first_name"] = TextBox4.Text;
ob.dr["last_name"] = TextBox5.Text;
ob.dr["password"] = TextBox7.Text;
if (RadioButton1.Checked)
{
ob.dr["gender"] = RadioButton1.Text;
E-Learning
}
else
{
ob.dr["gender"] = RadioButton2.Text;
}
ob.dr["country"] = DropDownList7.SelectedItem.Text;
ob.dr["state"] = DropDownList18.SelectedItem.Text;
ob.dr["city"] = DropDownList2.SelectedItem.Text;
ob.dr["dob"] = DropDownList4.SelectedItem.Text + "-" +
DropDownList5.SelectedItem.Text + "-" + DropDownList6.SelectedItem.Text;
if (RadioButton3.Checked)
{
ob.dr["marital_status"] = RadioButton3.Text;
}
else
{
ob.dr["marital_status"] = RadioButton4.Text;
}
ob.dr["mobile_no"] = TextBox8.Text;
ob.dr["email_id"] = TextBox13.Text;
ob.dr["profession"] = DropDownList9.SelectedItem.Text;
ob.dr["SQ"] = DropDownList3.SelectedItem.Text;
ob.dr["SA"] = TextBox9.Text;
ob.dr["onlineStatus"] = "False";
ob.ds.Tables["vt"].Rows.Add(ob.dr);
ob.scb.DataAdapter = ob.adp;
ob.adp.Update(ob.ds.Tables["vt"]);
Label34.Text = "Sign Up Successful";
Label34.Visible = true;
Label34.Focus();
}
}
}
protected void LinkButton2_Click(object sender, EventArgs e)
{
Response.Redirect("loginPage.aspx");
}
protected void Button6_Click(object sender, EventArgs e)
{
ob.ds.Clear();
ob.cmd.CommandText = "select * from reg_student where user_id='" + TextBox1.Text + "'";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label86.Text = "User Already Registered";
Label86.Visible = true;
}
else
{
ob.ds.Clear();
Label86.Visible = false;
ob.cmd.CommandText = "select * from reg_student";
ob.adp.Fill(ob.ds, "vt");
ob.dr = ob.ds.Tables["vt"].NewRow();
ob.dr["user_id"] = TextBox1.Text;
ob.dr["password"] = ViewState["pass"].ToString();
ob.dr["first_name"] = TextBox4.Text;
ob.dr["last_name"] = TextBox5.Text;
ob.dr["image_path"] = ViewState["file_path"].ToString();
ob.dr["dob"] = DropDownList4.SelectedItem.Text + "-" +
DropDownList5.SelectedItem.Text + "-" + DropDownList6.SelectedItem.Text;
if (RadioButton1.Checked)
{
E-Learning
ob.dr["gender"] = RadioButton1.Text;
}
else
{
ob.dr["gender"] = RadioButton2.Text;
}
ob.dr["country"] = DropDownList7.SelectedItem.Text;
ob.dr["state"] = DropDownList18.SelectedItem.Text;
ob.dr["city"] = DropDownList2.SelectedItem.Text;
ob.dr["address"] = TextBox14.Text;
ob.dr["profession"] = DropDownList9.SelectedItem.Text;
if (RadioButton3.Checked)
{
ob.dr["marital_status"] = RadioButton3.Text;
}
else
{
ob.dr["marital_status"] = RadioButton4.Text;
}
ob.dr["mobile_no"] = TextBox8.Text;
ob.dr["email_id"] = TextBox13.Text;
if (RadioButton5.Checked)
{
ob.dr["skill_level"] = RadioButton5.Text;
}
else if (RadioButton6.Checked)
{
ob.dr["skill_level"] = RadioButton6.Text;
}
else if (RadioButton7.Checked)
{
ob.dr["skill_level"] = RadioButton7.Text;
}
ob.dr["SQ"] = DropDownList3.SelectedItem.Text;
ob.dr["SA"] = TextBox9.Text;
ob.dr["course_applied"] = DropDownList11.Text;
ob.dr["paid_amount"] = ViewState["amnt"].ToString();
if(RadioButton8.Checked)
{
ob.dr["payment_mode"]=RadioButton8.Text;
}
if(RadioButton9.Checked)
{
ob.dr["payment_mode"] = RadioButton9.Text;
}
ob.dr["class_time"] = DropDownList10.SelectedItem.Text;
ob.dr["status"] = "False";
ob.dr["onlineStatus"] = "False";
ob.ds.Tables["vt"].Rows.Add(ob.dr);
ob.scb.DataAdapter = ob.adp;
ob.adp.Update(ob.ds.Tables["vt"]);
ob.con.Open();
ob.cmd.CommandText = "insert into studentCreditCardPayment values('Credit','" +
DropDownList15.SelectedItem.Text + "','" + DropDownList16.SelectedItem.Text + "','" +
TextBox16.Text + "','" + TextBox17.Text + "','" + Label47.Text + "','" + TextBox19.Text + "')";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
Label86.Text = "Sign Up Successfull";
Label86.Visible = true;
Label86.Focus();
string updateQuery = "";
if (Label86.Text == "Sign Up Successfull")
{
int temp = Convert.ToInt32(Label47.Text);
if (DropDownList15.Text == "SBI")
{
updateQuery = "update bank_sbi set amount=amount-'" + temp + "' where
bank_name='" + DropDownList15.Text + "' and card_owner='"+TextBox17.Text+"'";
}
E-Learning
if (DropDownList15.Text == "PNB")
{
updateQuery = "update bank_pnb set amount=amount-'" + temp + "' where
bank_name='" + DropDownList15.Text + "' and card_owner='" + TextBox17.Text + "' ";
}
if (DropDownList15.Text == "Baroda Bank")
{
updateQuery = "update bank_BOB set amount=amount-'" + temp + "' where
bank_name='" + DropDownList15.Text + "' and card_owner='" + TextBox17.Text + "' ";
}
ob.con.Open();
ob.cmd.CommandText = updateQuery;
ob.cmd.ExecuteNonQuery();
ob.con.Close();
}
Label86.Focus();
}
}
}
}
protected void student_signup_draft(object sender, EventArgs e)
{
int cd = 0;
if (cd == 1)
{
}
else
{
if (RadioButton8.Checked)
{
//insert values into reg_student & studentDraftPayment
ob.ds.Clear();
ob.cmd.CommandText = "select * from reg_student where user_id='" + TextBox1.Text + "'";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label85.Text = "User Already Registered";
Label85.Visible = true;
}
else
{
ob.ds.Clear();
Label85.Visible = false;
ob.cmd.CommandText = "select * from reg_student";
ob.adp.Fill(ob.ds, "vt");
ob.dr = ob.ds.Tables["vt"].NewRow();
ob.dr["user_id"] = TextBox1.Text;
ob.dr["password"] = ViewState["pass"].ToString();
ob.dr["first_name"] = TextBox4.Text;
ob.dr["last_name"] = TextBox5.Text;
ob.dr["image_path"] = ViewState["file_path"].ToString();
ob.dr["dob"] = DropDownList4.SelectedItem.Text + "-" +
DropDownList5.SelectedItem.Text + "-" + DropDownList6.SelectedItem.Text;
if (RadioButton1.Checked)
{
ob.dr["gender"] = RadioButton1.Text;
}
else
{
ob.dr["gender"] = RadioButton2.Text;
}
ob.dr["country"] = DropDownList7.SelectedItem.Text;
ob.dr["state"] = DropDownList18.SelectedItem.Text;
ob.dr["city"] = DropDownList2.SelectedItem.Text;
E-Learning
ob.dr["address"] = TextBox14.Text;
ob.dr["profession"] = DropDownList9.SelectedItem.Text;
if (RadioButton3.Checked)
{
ob.dr["marital_status"] = RadioButton3.Text;
}
else
{
ob.dr["marital_status"] = RadioButton4.Text;
}
ob.dr["mobile_no"] = TextBox8.Text;
ob.dr["email_id"] = TextBox13.Text;
if (RadioButton5.Checked)
{
ob.dr["skill_level"] = RadioButton5.Text;
}
else if (RadioButton6.Checked)
{
ob.dr["skill_level"] = RadioButton6.Text;
}
else if (RadioButton7.Checked)
{
ob.dr["skill_level"] = RadioButton7.Text;
}
ob.dr["SQ"] = DropDownList3.SelectedItem.Text;
ob.dr["SA"] = TextBox9.Text;
ob.dr["course_applied"] = DropDownList11.Text;
ob.dr["paid_amount"] = TextBox22.Text;
if(RadioButton8.Checked)
{
ob.dr["payment_mode"]=RadioButton8.Text;
}
if(RadioButton9.Checked)
{
ob.dr["payment_mode"] = RadioButton9.Text;
}
ob.dr["class_time"] = DropDownList10.SelectedItem.Text;
ob.dr["status"] = "False";
ob.dr["onlineStatus"] = "False";
ob.ds.Tables["vt"].Rows.Add(ob.dr);
ob.scb.DataAdapter = ob.adp;
ob.adp.Update(ob.ds.Tables["vt"]);
//*****************************************
ob.ds.Clear();
ob.cmd.CommandText = "select *from studentDraftPayment where draft_no='" +
TextBox25.Text + "' ";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label85.Text = "Draft No. Already Used";
Label85.Visible = true;
}
else
{
Label85.Visible = false;
ob.con.Open();
ob.cmd.CommandText = "insert into studentDraftPayment values('Draft','" +
DropDownList17.Text + "','" + TextBox22.Text + "','" + TextBox23.Text + "','" +
TextBox24.Text +"','" + TextBox25.Text + "','" + TextBox26.Text + "')";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
Label85.Text = "Sign Up Successfull";
Label88.Focus();
Label85.Visible = true;
Label88.Text = "You can Login After Your Draft Is Recieved";
Label88.Visible = true;
}
}
}
}
}
E-Learning
Admin Section:
(a)Home Page:
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_welcome_admin_ : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_admin where user_id='" +
Session["Admin"].ToString() + "' ";
ob.adp.Fill(ob.ds,"vt");
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
Image1.ImageUrl=dr["image_path"].ToString();
Label1.Text = dr["first_name"].ToString();
Label2.Text = dr["city"].ToString();
}
ob.gridBinding(GridView1, "select *from reg_student where status='False'");
ob.ddlBinding(DropDownList4, "select *from coarse1 where status='False'",
"coarse_name", "");
ob.ddlBinding(DropDownList2, "select *from reg_faculty where status='True' and
allotmentStatus='False' and course_applied='" + DropDownList4.SelectedItem.Text + "'",
"user_id", "");
ob.gridBinding(GridView2, "select *from reg_faculty where status='False'");
MultiView1.SetActiveView(View1);
}
}
protected void Button1_Click(object sender, EventArgs e)
{
if (TextBox1.Text == "")
{
Label4.Text = "Invalid Message";
Label4.Visible = true;
}
else
{
if (DropDownList1.SelectedItem.Text == "Student")
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from announcement where tooUser='Student' and
anncmntsText='" + TextBox1.Text + "'";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label4.Text = "Already Sent";
Label4.Visible = true;
}
else
E-Learning
{
ob.con.Open();
ob.cmd.CommandText = "insert into announcement values('" +
DropDownList1.SelectedItem.Text + "','Admin','" + Session["Admin"].ToString() + "','" +
TextBox1.Text + "','" + System.DateTime.Now.ToShortDateString() + "')";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
Label4.Text = "Announcement Successfull";
Label4.Visible = true;
}
}
if (DropDownList1.SelectedItem.Text == "Faculty")
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from announcement where tooUser='Faculty' and
anncmntsText='" + TextBox1.Text + "'";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label4.Text = "Already Sent";
Label4.Visible = true;
}
else
{
ob.con.Open();
ob.cmd.CommandText = "insert into announcement values('" +
DropDownList1.SelectedItem.Text + "','Admin','" + Session["Admin"].ToString() + "','" +
TextBox1.Text + "','" + System.DateTime.Now.ToShortDateString() + "')";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
Label4.Text = "Announcement Successfull";
Label4.Visible = true;
}
}
if (DropDownList1.Text == "All")
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from announcement where
anncmntsText='"+TextBox1.Text+"'";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label4.Text = "Already Sent";
Label4.Visible = true;
}
else
{
ob.con.Open();
ob.cmd.CommandText = "insert into announcement
values('Student','Admin','"+Session["Admin"].ToString() + "','" + TextBox1.Text + "','" +
System.DateTime.Now.ToShortDateString() + "')";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
ob.con.Open();
ob.cmd.CommandText = "insert into announcement values('Faculty','Admin','" +
Session["Admin"].ToString() + "','" + TextBox1.Text + "','" +
System.DateTime.Now.ToShortDateString() + "')";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
Label4.Text = "Announcement Successfull";
Label4.Visible = true;
}
}
}
}
foreach (GridViewRow gr in GridView1.Rows)
{
cc = (CheckBox)gr.FindControl("chkchild");
E-Learning
cc.Checked = false;
}
}
{
CheckBox ch, cc;
ch = (CheckBox)GridView2.HeaderRow.FindControl("chkhead2");
if (ch.Checked)
{
foreach (GridViewRow gr in GridView2.Rows)
{
cc = (CheckBox)gr.FindControl("chkchild2");
cc.Checked = true;
}
}
(b)View Profile:
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_ViewProfile : System.Web.UI.Page
{
myClass1 ob=new myClass1();
int i = 0;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string r = "";
ob.ds.Clear();
ob.cmd.CommandText="select*from reg_admin where user_id='"+ Session["Admin"].ToString() + "' ";
ob.adp.Fill(ob.ds, "vt");
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
Label2.Text = dr["user_id"].ToString();
Label4.Text = dr["first_name"].ToString();
Label6.Text = dr["last_name"].ToString();
Label8.Text = dr["password"].ToString();
Label10.Text = dr["gender"].ToString();
Label12.Text = dr["country"].ToString();
Label14.Text = dr["state"].ToString();
Label16.Text = dr["city"].ToString();
Label18.Text = dr["dob"].ToString();
Label20.Text = dr["marital_status"].ToString();
Label26.Text = dr["mobile_no"].ToString();
Label27.Text = dr["email_id"].ToString();
Label28.Text = dr["profession"].ToString();
r = dr["image_path"].ToString();
}
Label2.Visible = true;
E-Learning
Label4.Visible = true;
Label6.Visible = true;
Label8.Visible = true;
Label10.Visible = true;
Label12.Visible = true;
Label14.Visible = true;
Label16.Visible = true;
Label18.Visible = true;
Label20.Visible = true;
Label26.Visible = true;
Label27.Visible = true;
Label28.Visible = true;
Image1.ImageUrl = r;
}
}
protected void Button3_Click(object sender, EventArgs e)
{
/*Binding of ddl*/
ob.ds.Clear();
ob.cmd.CommandText = "select *from country_reg";
ob.adp.Fill(ob.ds,"vt");
DropDownList2.DataSource = ob.ds.Tables["vt"];
DropDownList2.DataTextField = "country_name";
DropDownList2.DataValueField = "country_id";
DropDownList2.DataBind();
if (DropDownList2.Text != "")
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from states where
country_id='"+DropDownList2.SelectedValue+"'";
ob.adp.Fill(ob.ds, "vt");
DropDownList3.DataSource = ob.ds.Tables["vt"];
DropDownList3.DataTextField = "state_name";
DropDownList3.DataValueField = "state_id";
DropDownList3.DataBind();
}
if (DropDownList3.Text != "")
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from cities where state_id='" + DropDownList3.SelectedValue
+ "'";
ob.adp.Fill(ob.ds, "vt");
DropDownList4.DataSource = ob.ds.Tables["vt"];
DropDownList4.DataTextField = "city_name";
DropDownList4.DataValueField = "city_id";
DropDownList4.DataBind();
}
Button3.Visible = false;
Button1.Visible = true;
Button2.Visible = true;
Label2.Visible =true;
Label4.Visible = false;
Label6.Visible = false;
Label8.Visible = false;
Label10.Visible = false;
Label12.Visible = false;
Label14.Visible =false;
Label16.Visible = false;
Label18.Visible = false;
Label20.Visible = false;
Label26.Visible = false;
Label27.Visible = false;
Label28.Visible = false;
/*********************/
E-Learning
TextBox2.Visible = true;
TextBox3.Visible = true;
TextBox4.Visible = true;
TextBox5.Visible = true;
TextBox6.Visible = true;
RadioButton1.Visible = true;
RadioButton2.Visible = true;
RadioButton3.Visible = true;
RadioButton4.Visible = true;
DropDownList1.Visible = true;
DropDownList2.Visible = true;
DropDownList3.Visible = true;
DropDownList4.Visible = true;
DropDownList5.Visible = true;
DropDownList6.Visible = true;
DropDownList7.Visible = true;
}
protected void Button2_Click(object sender, EventArgs e)
{
Button1.Visible = false;
Button2.Visible = false;
Button3.Visible = true;
/**********/
Label2.Visible = true;
Label4.Visible = true;
Label6.Visible = true;
Label8.Visible = true;
Label10.Visible = true;
Label12.Visible = true;
Label14.Visible = true;
Label16.Visible = true;
Label18.Visible = true;
Label20.Visible = true;
Label26.Visible = true;
Label27.Visible = true;
Label28.Visible = true;
/*********************/
TextBox2.Visible = false;
TextBox3.Visible = false;
TextBox4.Visible = false;
TextBox5.Visible = false;
TextBox6.Visible = false;
RadioButton1.Visible = false;
RadioButton2.Visible = false;
RadioButton3.Visible = false;
RadioButton4.Visible = false;
DropDownList1.Visible = false;
DropDownList2.Visible = false;
DropDownList3.Visible = false;
DropDownList4.Visible = false;
DropDownList5.Visible = false;
DropDownList6.Visible = false;
DropDownList7.Visible = false;
}
protected void Button1_Click1(object sender, EventArgs e)
{
TextBox2.Visible = false;
TextBox3.Visible = false;
TextBox4.Visible = false;
TextBox5.Visible = false;
TextBox6.Visible = false;
RadioButton1.Visible = false;
RadioButton2.Visible = false;
RadioButton3.Visible = false;
RadioButton4.Visible = false;
DropDownList1.Visible = false;
DropDownList2.Visible = false;
E-Learning
DropDownList3.Visible = false;
DropDownList4.Visible = false;
DropDownList5.Visible = false;
DropDownList6.Visible = false;
DropDownList7.Visible = false;
/***************/
string p = "";
if (RadioButton1.Checked)
{
p = RadioButton1.Text;
}
else
{
p = RadioButton2.Text;
}
string h = "";
if (RadioButton3.Checked)
{
h = RadioButton3.Text;
}
else
{
h = RadioButton4.Text;
}
string d=DropDownList5.Text+"-"+DropDownList6.Text+"-"+DropDownList7.Text;
if(i<1)
{
ViewState["pass"] = TextBox4.Text;
}
ob.con.Open();
ob.cmd.CommandText = "update reg_admin set first_name='" + TextBox2.Text + "', last_name='" +
TextBox3.Text + "', password='" + ViewState["pass"].ToString() + "',gender='" + p + "',country='" +
DropDownList2.SelectedItem.Text + "',state='" + DropDownList3.SelectedItem.Text + "',city='" +
DropDownList4.SelectedItem.Text + "',dob='" + d + "', marital_status='" + h + "',mobile_no='" +
TextBox5.Text + "',email_id='" + TextBox6.Text + "',profession='" + DropDownList1.SelectedItem.Text +
"' ";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_admin where user_id='" + Session["Admin"].ToString()
+ "' ";
ob.adp.Fill(ob.ds, "vt");
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
Label2.Text = dr["user_id"].ToString();
Label4.Text = dr["first_name"].ToString();
Label6.Text = dr["last_name"].ToString();
Label8.Text = dr["password"].ToString();
Label10.Text = dr["gender"].ToString();
Label12.Text = dr["country"].ToString();
Label14.Text = dr["state"].ToString();
Label16.Text = dr["city"].ToString();
Label18.Text = dr["dob"].ToString();
Label20.Text = dr["marital_status"].ToString();
Label26.Text = dr["mobile_no"].ToString();
Label27.Text = dr["email_id"].ToString();
Label28.Text = dr["profession"].ToString();
}
/********************/
Label2.Visible = true;
Label4.Visible = true;
Label6.Visible = true;
Label8.Visible = true;
Label10.Visible = true;
Label12.Visible = true;
Label14.Visible = true;
E-Learning
Label16.Visible = true;
Label18.Visible = true;
Label20.Visible = true;
Label26.Visible = true;
Label27.Visible = true;
Label28.Visible = true;
Button1.Visible = false;
Button2.Visible = false;
Button3.Visible = true;
}
protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
{
if (i<1)
{
ViewState["pass"] = TextBox4.Text;
}
i = i + 1;
ob.ds.Clear();
ob.cmd.CommandText = "select *from states where country_id='" + DropDownList2.SelectedValue
+ "'";
ob.adp.Fill(ob.ds, "vt");
DropDownList3.DataSource = ob.ds.Tables["vt"];
DropDownList3.DataTextField = "state_name";
DropDownList3.DataValueField = "state_id";
DropDownList3.DataBind();
if (DropDownList3.Text != "")
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from cities where state_id='" + DropDownList3.SelectedValue
+ "'";
ob.adp.Fill(ob.ds, "vt");
DropDownList4.DataSource = ob.ds.Tables["vt"];
DropDownList4.DataTextField = "city_name";
DropDownList4.DataValueField = "city_id";
DropDownList4.DataBind();
}
else
{
DropDownList4.Items.Clear();
}
}
protected void DropDownList3_SelectedIndexChanged(object sender, EventArgs e)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from cities where state_id='" + DropDownList3.SelectedValue +
"'";
ob.adp.Fill(ob.ds, "vt");
DropDownList4.DataSource = ob.ds.Tables["vt"];
DropDownList4.DataTextField = "city_name";
DropDownList4.DataValueField = "city_id";
DropDownList4.DataBind();
}
protected void TextBox4_TextChanged(object sender, EventArgs e)
{
}
}
(c) Inbox:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
E-Learning
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_Inbox : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_admin where user_id='" +
Session["Admin"].ToString() + "' ";
ob.adp.Fill(ob.ds, "vt");
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
Image1.ImageUrl = dr["image_path"].ToString();
}
//***************
MultiView1.SetActiveView(View1);
ob.gridBinding(GridView1, "select *from inbox where recieverId='" +
Session["Admin"].ToString() + "' and status='True'");
}
}
protected void Button1_Click(object sender, EventArgs e)
{
int i = 0;
if (DropDownList1.SelectedIndex.ToString() == "0")
{
i = 1;
}
if (TextBox2.Text =="")
{
i = 1;
}
if (TextBox3.Text == "")
{
i = 1;
}
if (i == 1)
{
Label35.Text = "Invalid Message";
Label35.Visible = true;
}
else
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from inbox where message_text='" + TextBox2.Text + "' and
senderType='Admin' ";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label35.Text = "Already Sent";
Label35.Visible = true;
}
else
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from inbox";
ob.adp.Fill(ob.ds, "vt");
ob.dr = ob.ds.Tables["vt"].NewRow();
ob.dr["recieverId"] = DropDownList2.SelectedItem.Text;
ob.dr["senderType"] = "Admin";
ob.dr["senderId"] = Session["Admin"].ToString();
ob.dr["subject"] = TextBox3.Text;
E-Learning
ob.dr["message_text"] = TextBox2.Text;
ob.dr["date"] = System.DateTime.Now.ToShortDateString();
ob.dr["status"] = "True";
ob.ds.Tables["vt"].Rows.Add(ob.dr);
ob.scb.DataAdapter = ob.adp;
ob.adp.Update(ob.ds.Tables["vt"]);
Label35.Text = "Successfull";
Label35.Visible = true;
}
}
}
protected void Button2_Click(object sender, EventArgs e)
{
MultiView1.SetActiveView(View1);
TextBox2.Text = "";
TextBox3.Text = "";
}
(d) Join Chatting:
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_gotochat : System.Web.UI.Page
{
static int f = 0;
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_admin where user_id='" +
Session["Admin"].ToString() + "'";
ob.adp.Fill(ob.ds, "vt");
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
Label26.Text= dr["city"].ToString();
Image1.ImageUrl = dr["image_path"].ToString();
}
Label25.Text = Session["Admin"].ToString();
if(DropDownList5.SelectedItem.Text=="Faculties")
{
Label28.Text = "Present Faculties";
Label28.Visible = true;
Label29.Text = "Absent Faculties";
Label29.Visible = true;
ob.gridBinding(GridView1, "select *from reg_faculty where onlineStatus='True' and status='True'");
ob.gridBinding(GridView2, "select *from reg_faculty where onlineStatus='False' and status='True'");
}
if (DropDownList2.SelectedItem.Text == "Students")
{
ob.ddlBinding(DropDownList3, "select *from faculty_allotment", "coarse_name", "");
ob.ddlBinding(DropDownList4, "select *from reg_student where onlineStatus='True' and
status='True' and course_applied='" + DropDownList3.SelectedItem.Text + "'", "user_id", "");
}}
E-Learning
(e) Create Course:
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_createCourses : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
int i = 0;
Label9.Visible = false;
Label10.Visible = false;
ob.ds.Clear();
ob.cmd.CommandText = "select *from coarse1 where coarse_code='" + TextBox2.Text + "'";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label9.Text = "Not Available";
Label9.Visible = true;
i = 1;
}
ob.ds.Clear();
ob.cmd.CommandText = "select *from coarse1 where coarse_name='" + TextBox1.Text + "'";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label10.Text = "Not Available";
Label10.Visible = true;
i = 1;
}
if (i != 1)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from coarse1";
ob.adp.Fill(ob.ds, "vt");
ob.dr = ob.ds.Tables["vt"].NewRow();
ob.dr["coarse_code"] = TextBox2.Text.Trim();
ob.dr["coarse_name"] = TextBox1.Text;
ob.dr["coarse_duration"] = DropDownList1.Text;
ob.dr["fee"] = TextBox3.Text;
ob.dr["image_path"] = ViewState["image_path"].ToString();
ob.dr["status"] = "False";
ob.ds.Tables["vt"].Rows.Add(ob.dr);
ob.scb.DataAdapter = ob.adp;
ob.adp.Update(ob.ds.Tables["vt"]);
Label7.Text = TextBox1.Text + " " + "Added";
Label7.Visible = true;
}
}
}
E-Learning
(f) View All Courses:
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_ViewAllCourses : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from coarse1";
ob.adp.Fill(ob.ds,"vt");
DataList1.DataSource = ob.ds.Tables["vt"];
DataList1.DataBind();
ob.ddlBinding(DropDownList1, "select *from coarse1", "coarse_code", "");
}
}
protected void Button1_Click(object sender, EventArgs e)
{
Label3.Visible = false;
ob.con.Open();
ob.cmd.CommandText = "delete from coarse1 where coarse_code='" + DropDownList1.Text + "'";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
Label3.Text = "Successfull";
Label3.Visible = true;
Response.Redirect("ViewAllCourses.aspx");
}
}
(g)View All Students:
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_Student_ViewAll : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.gridBinding(GridView1, "select *from reg_student where status='True'");
}
}
}
E-Learning
(h)View Attendence:
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_viewAttendence : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.ddlBinding(DropDownList1, "select *from faculty_allotment", "coarse_name", "");
ob.ddlBinding(DropDownList2, "select * from reg_student where course_applied='" +
DropDownList1.SelectedItem.Text + "'", "user_id", "");
if (DropDownList2.Text != "")
{
Label4.Text = DropDownList2.SelectedItem.Text;
ob.ds.Clear();
ob.cmd.CommandText = "select *from attendence where student_name='" +
DropDownList2.SelectedItem.Text + "'";
ob.adp.Fill(ob.ds, "vt");
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
Label6.Text = dr["classtime"].ToString();
}
ob.gridBinding(GridView1, "select *from attendence where student_name='" +
DropDownList2.SelectedItem.Text + "'");
}
Label5.Text = DropDownList1.SelectedItem.Text;
}
}
protected void Button1_Click(object sender, EventArgs e)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from attendence where student_name='" + Label4.Text + "'
and coarse_name='" + Label5.Text + "' and status='Present' ";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label12.Text = "= " + Convert.ToString(ob.ds.Tables["vt"].Rows.Count) + " Days";
Label12.Visible = true;
}
else
{
Label12.Text = "= " + "0" + " Days";
Label12.Visible = true;
}}}
(i) View All Faculties:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
E-Learning
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_Faculties_ViewAll : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.gridBinding(GridView1, "select *from reg_faculty where status='True'");
}
}
}
(j) View Feedback:
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_ViewFeedback : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.gridBinding(GridView1, "select *from feedback where status='True' and
reciever_name='" + Session["Admin"].ToString() + "' and sender_type='Student' and
reciever_type='Admin'");
ob.gridBinding(GridView2, "select *from feedback where status='True' and
reciever_name='" + Session["Admin"].ToString() + "' and sender_type='Faculty' and
reciever_type='Admin' ");
MultiView1.Visible = true;
MultiView1.SetActiveView(View1);
}
}
protected void Faculty_delete_all(object sender,EventArgs e)
{
CheckBox cc;
Label l;
foreach (GridViewRow gr in GridView2.Rows)
{
cc = (CheckBox)gr.FindControl("chkchild2");
if (cc.Checked)
{
l = (Label)gr.FindControl("lbl12");
ob.con.Open();
ob.cmd.CommandText = "delete from feedback where msg='" + l.Text + "' and
sender_type='Faculty' and reciever_type='Admin' ";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
}
E-Learning
}
ob.gridBinding(GridView2, "select *from feedback where status='True' and reciever_name='"
+ Session["Admin"].ToString() + "' and sender_type='Faculty' and reciever_type='Admin'");
}
protected void view_all(object sender, EventArgs e)
{
ob.gridBinding(GridView1, "select *from feedback where reciever_name='" +
Session["Admin"].ToString() + "' and sender_type='Student' and reciever_type='Admin'");
}
protected void LinkButton2_Click(object sender, EventArgs e)
{
MultiView1.Visible = true;
MultiView1.SetActiveView(View2);
}
}
Faculty Section:
(a)Home Page:
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 faculty_welcome_faculty_ : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_faculty where user_id='" +
Session["Faculty"].ToString() + "' ";
ob.adp.Fill(ob.ds, "vt");
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
Image1.ImageUrl=dr["image_path"].ToString();
Label1.Text = dr["first_name"].ToString();
Label2.Text = dr["city"].ToString();
}
/********************/
ob.gridBinding(GridView1, "select *from announcement where tooUser='Faculty' order by
date desc");
}
}
protected void Button1_Click(object sender, EventArgs e)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from announcement where tooUser='Student' and
anncmntsText='" + TextBox1.Text + "'";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label4.Text = "Already Sent";
Label4.Visible = true;
}
else
{
E-Learning
ob.con.Open();
ob.cmd.CommandText="insert into announcement values('Student','Faculty','"
+Session["Faculty"].ToString()+"','"+TextBox1.Text+"','"
+ System.DateTime.Now.ToShortDateString() + "')";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
Label4.Text = "Successfull";
Label4.Visible = true;
}
}
(b)View Profile:
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 faculty_ViewProfile : System.Web.UI.Page
{
myClass1 ob = new myClass1();
int i = 0;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string r = "";
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_faculty where user_id='" +
Session["Faculty"].ToString() + "' ";
ob.adp.Fill(ob.ds, "vt");
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
Label2.Text = dr["user_id"].ToString();
Label4.Text = dr["first_name"].ToString();
Label6.Text = dr["last_name"].ToString();
Label8.Text = dr["password"].ToString();
Label10.Text = dr["gender"].ToString();
Label12.Text = dr["country"].ToString();
Label14.Text = dr["state"].ToString();
Label16.Text = dr["city"].ToString();
Label18.Text = dr["dob"].ToString();
Label20.Text = dr["marital_status"].ToString();
Label26.Text = dr["mobile_no"].ToString();
Label27.Text = dr["email_id"].ToString();
Label28.Text = dr["profession"].ToString();
r = dr["image_path"].ToString();
}
Image1.ImageUrl = r;
}
}
protected void Button1_Click1(object sender, EventArgs e)
{
string p = "";
if (RadioButton1.Checked)
{
p = RadioButton1.Text;
}
else
{
E-Learning
p = RadioButton2.Text;
}
string h = "";
if (RadioButton3.Checked)
{
h = RadioButton3.Text;
}
else
{
h = RadioButton4.Text;
}
string d = DropDownList5.Text + "-" + DropDownList6.Text + "-" + DropDownList7.Text;
if (i < 1)
{
ViewState["pass"] = TextBox4.Text;
}
ob.con.Open();
ob.cmd.CommandText = "update reg_faculty set first_name='" + TextBox2.Text + "',
last_name='" + TextBox3.Text + "', password='" + ViewState["pass"].ToString() + "',gender='" + p +
"',country='" + DropDownList2.SelectedItem.Text + "',state='" + DropDownList3.SelectedItem.Text +
"',city='" + DropDownList4.SelectedItem.Text + "',dob='" + d + "', marital_status='" + h +
"',mobile_no='" + TextBox5.Text + "',email_id='" + TextBox6.Text + "',profession='" +
DropDownList1.SelectedItem.Text + "' ";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_faculty where user_id='" +
Session["Faculty"].ToString() + "' ";
ob.adp.Fill(ob.ds, "vt");
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
Label2.Text = dr["user_id"].ToString();
Label4.Text = dr["first_name"].ToString();
Label6.Text = dr["last_name"].ToString();
Label8.Text = dr["password"].ToString();
Label10.Text = dr["gender"].ToString();
Label12.Text = dr["country"].ToString();
Label14.Text = dr["state"].ToString();
Label16.Text = dr["city"].ToString();
Label18.Text = dr["dob"].ToString();
Label20.Text = dr["marital_status"].ToString();
Label26.Text = dr["mobile_no"].ToString();
Label27.Text = dr["email_id"].ToString();
Label28.Text = dr["profession"].ToString();
}
}
protected void Button2_Click(object sender, EventArgs e)
{
Button1.Visible = false;
Button2.Visible = false;
Button3.Visible = true;
/**********/
/*********************/
}
protected void Button3_Click(object sender, EventArgs e)
{
/*Binding of ddl*/
ob.ds.Clear();
ob.cmd.CommandText = "select *from country_reg";
ob.adp.Fill(ob.ds, "vt");
DropDownList2.DataSource = ob.ds.Tables["vt"];
DropDownList2.DataTextField = "country_name";
DropDownList2.DataValueField = "country_id";
DropDownList2.DataBind();
E-Learning
if (DropDownList2.Text != "")
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from states where country_id='" +
DropDownList2.SelectedValue + "'";
ob.adp.Fill(ob.ds, "vt");
DropDownList3.DataSource = ob.ds.Tables["vt"];
DropDownList3.DataTextField = "state_name";
DropDownList3.DataValueField = "state_id";
DropDownList3.DataBind();
}
if (DropDownList3.Text != "")
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from cities where state_id='" +
DropDownList3.SelectedValue + "'";
ob.adp.Fill(ob.ds, "vt");
DropDownList4.DataSource = ob.ds.Tables["vt"];
DropDownList4.DataTextField = "city_name";
DropDownList4.DataValueField = "city_id";
DropDownList4.DataBind();
}
}
protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
{
string p=TextBox4.Text;
TextBox4.Attributes.Add("value", p);
if (i < 1)
{
ViewState["pass"] = TextBox4.Text;
}
i = i + 1;
ob.ds.Clear();
ob.cmd.CommandText = "select *from states where country_id='" +
DropDownList2.SelectedValue + "'";
ob.adp.Fill(ob.ds, "vt");
DropDownList3.DataSource = ob.ds.Tables["vt"];
DropDownList3.DataTextField = "state_name";
DropDownList3.DataValueField = "state_id";
DropDownList3.DataBind();
if (DropDownList3.Text != "")
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from cities where state_id='" +
DropDownList3.SelectedValue + "'";
ob.adp.Fill(ob.ds, "vt");
DropDownList4.DataSource = ob.ds.Tables["vt"];
DropDownList4.DataTextField = "city_name";
DropDownList4.DataValueField = "city_id";
DropDownList4.DataBind();
}
else
{
DropDownList4.Items.Clear();
}
}
protected void DropDownList3_SelectedIndexChanged(object sender, EventArgs e)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from cities where state_id='" + DropDownList3.SelectedValue
+ "'";
E-Learning
ob.adp.Fill(ob.ds, "vt");
DropDownList4.DataSource = ob.ds.Tables["vt"];
DropDownList4.DataTextField = "city_name";
DropDownList4.DataValueField = "city_id";
DropDownList4.DataBind();
}
}
(c) Inbox:
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 faculty_Inbox : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_faculty where user_id='" +
Session["Faculty"].ToString() + "' ";
ob.adp.Fill(ob.ds, "vt");
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
Image1.ImageUrl = dr["image_path"].ToString();
}
//***************
MultiView1.SetActiveView(View1);
ob.gridBinding(GridView1, "select *from inbox where recieverId='" +
Session["Faculty"].ToString() + "' and status='True'");
}
}
protected void delete_all(object sender, EventArgs e)
{
CheckBox cc;
Label l;
foreach (GridViewRow gr in GridView1.Rows)
{
cc = (CheckBox)gr.FindControl("chkchild");
if (cc.Checked == true)
{
l = (Label)gr.FindControl("label34");
ob.con.Open();
ob.cmd.CommandText = "delete from inbox where message_text='" + l.Text + "'";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
}
}
ob.gridBinding(GridView1, "select *from inbox where recieverId='" + Session["Faculty"].ToString()
+ "' and status='True'");
}
protected void Button2_Click(object sender, EventArgs e)
{
MultiView1.SetActiveView(View1);
E-Learning
TextBox2.Text = "";
TextBox3.Text = "";
}
protected void Button1_Click(object sender, EventArgs e)
{
int i = 0;
if (DropDownList1.SelectedIndex.ToString() == "0")
{
i = 1;
}
if (TextBox2.Text =="")
{
i = 1;
}
if (TextBox3.Text == "")
{
i = 1;
}
if (i == 1)
{
Label35.Text = "Invalid Message";
Label35.Visible = true;
}
else
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from inbox where message_text='" + TextBox2.Text + "' and
senderType='Faculty' ";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label35.Text = "Already Sent";
Label35.Visible = true;
}
else
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from inbox";
ob.adp.Fill(ob.ds, "vt");
ob.dr = ob.ds.Tables["vt"].NewRow();
ob.dr["recieverId"] = DropDownList2.SelectedItem.Text;
ob.dr["senderType"] = "Faculty";
ob.dr["senderId"] = Session["Faculty"].ToString();
ob.dr["subject"] = TextBox3.Text;
ob.dr["message_text"] = TextBox2.Text;
ob.dr["date"] = System.DateTime.Now.ToShortDateString();
ob.dr["status"] = "True";
ob.ds.Tables["vt"].Rows.Add(ob.dr);
ob.scb.DataAdapter = ob.adp;
ob.adp.Update(ob.ds.Tables["vt"]);
Label35.Text = "Successfull";
Label35.Visible = true;
}
}
}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
Label35.Visible = false;
if (DropDownList1.SelectedIndex.ToString() == "0")
{
DropDownList2.Items.Clear();
}
if (DropDownList1.SelectedItem.Text == "Student")
{
ob.ddlBinding(DropDownList2, "select *from reg_student where status='True'", "user_id", "");
E-Learning
}
if (DropDownList1.SelectedItem.Text == "Admin")
{
ob.ddlBinding(DropDownList2, "select *from reg_admin", "user_id", "");
}
if (DropDownList1.SelectedItem.Text == "Faculty")
{
ob.ddlBinding(DropDownList2, "select *from reg_faculty", "user_id", "");
}
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
MultiView1.Visible = true;
MultiView1.SetActiveView(View2);
}
protected void LinkButton2_Click(object sender, EventArgs e)
{
MultiView1.Visible = true;
MultiView1.SetActiveView(View1);
}
protected void select_all(object sender, EventArgs e)
{
CheckBox ch, cc;
ch = (CheckBox)GridView1.HeaderRow.FindControl("chkhead");
if (ch.Checked)
{
foreach (GridViewRow gr in GridView1.Rows)
{
cc = (CheckBox)gr.FindControl("chkchild");
cc.Checked = true;
}
}
else
{
foreach (GridViewRow gr in GridView1.Rows)
{
cc = (CheckBox)gr.FindControl("chkchild");
cc.Checked = false;
}
}
}
protected void do_delete(object sender, GridViewDeleteEventArgs e)
{
GridViewRow g = (GridViewRow)GridView1.Rows[e.RowIndex];
Label l;
l = (Label)g.FindControl("label34");
ob.con.Open();
ob.cmd.CommandText = "delete from inbox where message_text='" + l.Text + "'";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
ob.gridBinding(GridView1, "select *from inbox where recieverId='" + Session["Faculty"].ToString()
+ "' and status='True'");
}
}
(d)My Class Time:
using System;
using System.Collections;
E-Learning
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 faculty_MyClassTime : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from faculty_allotment where faculty_name='" +
Session["Faculty"].ToString() + "'";
ob.adp.Fill(ob.ds,"vt");
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
Label1.Text=dr["class_time"].ToString();
Label1.Visible = true;
}
ob.gridBinding(GridView1, "select *from faculty_allotment");
}}}
(e) Upload Contents:
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 faculty_UploadCoarseContents : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
RadioButton1.Checked = true;
MultiView1.SetActiveView(View1);
ob.ddlBinding(DropDownList2, "select *from coarse1", "coarse_code","");
ob.ddlBinding(DropDownList3, "select *from coarse1 where coarse_code='" +
DropDownList2.Text + "'", "coarse_name", "");
}
}
protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
{
ob.ddlBinding(DropDownList3, "select *from coarse1 where coarse_code='" +
DropDownList2.Text + "'", "coarse_name", "");
}
protected void Button1_Click(object sender, EventArgs e)
{
FileUpload1.SaveAs(Server.MapPath("~/faculty/contents/" + ViewState["p1"].ToString()));
E-Learning
Label9.Visible = false;
Label10.Visible = false;
ob.ds.Clear();
ob.cmd.CommandText = "select *from upload_course where book_name='" + TextBox1.Text +
"' and content_type='E-Books' ";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label13.Text = "Already Added";
Label13.Visible = true;
Label7.Visible = false;
}
else
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from upload_course";
ob.adp.Fill(ob.ds, "vt");
ob.dr = ob.ds.Tables["vt"].NewRow();
ob.dr["content_type"] = "E-Books";
ob.dr["course_code"] = DropDownList2.Text;
ob.dr["course_name"] = DropDownList3.Text;
ob.dr["book_name"] = TextBox1.Text;
ob.dr["content_path"] = "~/faculty/contents/" + ViewState["p1"].ToString();
ob.dr["contentImage_path"] = "~/faculty/image_content/" + ViewState["p2"].ToString();
ob.ds.Tables["vt"].Rows.Add(ob.dr);
ob.scb.DataAdapter = ob.adp;
ob.adp.Update(ob.ds.Tables["vt"]);
Label7.Text = TextBox1.Text+" "+"Added";
Label7.Visible = true;
Label13.Visible = false;
}
}
protected void Button2_Click(object sender, EventArgs e)
{
Image1.Visible = true;
ViewState["p1"] = FileUpload1.FileName;
ViewState["p2"] = FileUpload2.FileName;
FileUpload2.SaveAs(Server.MapPath("~/faculty/image_content/" + ViewState["p2"].ToString()));
Image1.ImageUrl = "~/faculty/image_content/" + ViewState["p2"].ToString();
}
protected void RadioButton2_CheckedChanged(object sender, EventArgs e)
{
MultiView1.SetActiveView(View2);
ob.ddlBinding(DropDownList4, "select *from coarse1", "coarse_code", "");
ob.ddlBinding(DropDownList5, "select *from coarse1 where coarse_code='" +
DropDownList2.Text + "'", "coarse_name", "");
}
protected void RadioButton1_CheckedChanged(object sender, EventArgs e)
{
MultiView1.SetActiveView(View1);
}
protected void DropDownList4_SelectedIndexChanged(object sender, EventArgs e)
{
ob.ddlBinding(DropDownList5, "select *from coarse1 where coarse_code='" +
DropDownList4.Text + "'", "coarse_name", "");
}
protected void DropDownList5_SelectedIndexChanged(object sender, EventArgs e)
{
}
protected void preview_paper(object sender, EventArgs e)
{
E-Learning
Image2.Visible = true;
ViewState["p1"] = FileUpload3.FileName;
ViewState["p2"] = FileUpload4.FileName;
FileUpload4.SaveAs(Server.MapPath("~/faculty/image_content/" + ViewState["p2"].ToString()));
Image2.ImageUrl = "~/faculty/image_content/" + ViewState["p2"].ToString();
}
protected void save_paper(object sender, EventArgs e)
{
FileUpload3.SaveAs(Server.MapPath("~/faculty/contents/" + ViewState["p1"].ToString()));
Label16.Visible = false;
Label18.Visible = false;
ob.ds.Clear();
ob.cmd.CommandText = "select *from upload_course where book_name='" + TextBox2.Text
+ "' and content_type='Questionpaper'";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label20.Text = "Already Added";
Label20.Visible = true;
Label23.Visible = false;
}
else
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from upload_course";
ob.adp.Fill(ob.ds, "vt");
ob.dr = ob.ds.Tables["vt"].NewRow();
ob.dr["content_type"] = "Questionpaper";
ob.dr["course_code"] = DropDownList4.Text;
ob.dr["course_name"] = DropDownList5.Text;
ob.dr["book_name"] = TextBox2.Text;
ob.dr["content_path"] = "~/faculty/contents/" + ViewState["p1"].ToString();
ob.dr["contentImage_path"] = "~/faculty/image_content/" + ViewState["p2"].ToString();
ob.ds.Tables["vt"].Rows.Add(ob.dr);
ob.scb.DataAdapter = ob.adp;
ob.adp.Update(ob.ds.Tables["vt"]);
Label23.Text = TextBox2.Text + " " + "Added";
Label23.Visible = true;
Label20.Visible = false;
}
}
}
(f) View All e-Books:
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 faculty_ViewAllContents : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.datalist_binding(DataList1,"select *from upload_course where content_type='E-Books'");
ob.ddlBinding(DropDownList1, "select *from upload_course where content_type='E-
Books'", "book_name", "");
}
E-Learning
}
protected void Button1_Click(object sender, EventArgs e)
{
Label3.Visible = false;
ob.con.Open();
ob.cmd.CommandText="delete from upload_course where book_name='"
+DropDownList1.Text
+"' and content_type='E-Books'";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
Label3.Text = "Successfull";
Label3.Visible = true;
ob.datalist_binding(DataList1, "select *from upload_course where content_type='E-Books'");
ob.ddlBinding(DropDownList1, "select *from upload_course where content_type='E-Books'",
"book_name", "");
}
protected void DataList1_SelectedIndexChanged(object sender, EventArgs e)
{
}
}
(g)View Question Papers:
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 faculty_viewQuesPapers : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.datalist_binding(DataList1, "select * from upload_course
where content_type='Questionpaper'");
ob.ddlBinding(DropDownList1, "select *from upload_course where
content_type='Questionpaper'", "book_name", "");
}
}
protected void Button1_Click(object sender, EventArgs e)
{
Label3.Visible = false;
ob.con.Open();
ob.cmd.CommandText = "delete from upload_course where book_name='" +
DropDownList1.Text + "' and content_type='Questionpaper'";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
Label3.Text = "Successfull";
Label3.Visible = true;
ob.datalist_binding(DataList1, "select *from upload_course where
content_type='Questionpaper'");
ob.ddlBinding(DropDownList1, "select *from upload_course where
content_type='Questionpaper'", "book_name", "");
E-Learning
}
}
(h)View All Courses:
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 faculty_ViewAllCourses : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from coarse1";
ob.adp.Fill(ob.ds, "vt");
DataList1.DataSource = ob.ds.Tables["vt"];
DataList1.DataBind();
}
}
}
(i) Go To Class:
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 faculty_JoinTeaching : System.Web.UI.Page
{
myClass1 ob = new myClass1();
static int q = 0;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from faculty_allotment where faculty_name='" +
Session["Faculty"].ToString() + "'";
ob.adp.Fill(ob.ds,"vt");
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
ViewState["crse"]=dr["coarse_name"].ToString();
Image1.ImageUrl = dr["img_path"].ToString();
ViewState["classTime"]=dr["class_time"].ToString();
Label26.Text = ViewState["crse"].ToString();
}
Label25.Text = Session["Faculty"].ToString();
ob.gridBinding(GridView1, "select *from reg_student where course_applied='" +
ViewState["crse"].ToString() + "' and onlineStatus='True' and status='True'");
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning
E  learning

More Related Content

What's hot

Moodlemoot fiona-strawbridge
Moodlemoot fiona-strawbridgeMoodlemoot fiona-strawbridge
Moodlemoot fiona-strawbridgeFiona Strawbridge
 
Online assignment
Online assignment Online assignment
Online assignment rahulkuttu
 
benefits-and-challenges-of-elearning
benefits-and-challenges-of-elearningbenefits-and-challenges-of-elearning
benefits-and-challenges-of-elearningMaarten Cannaerts
 
EFFECTIVE WAYS CLOUD COMPUTING CAN CONTRIBUTE TO EDUCATION SUCCESS
EFFECTIVE WAYS CLOUD COMPUTING CAN CONTRIBUTE TO EDUCATION SUCCESSEFFECTIVE WAYS CLOUD COMPUTING CAN CONTRIBUTE TO EDUCATION SUCCESS
EFFECTIVE WAYS CLOUD COMPUTING CAN CONTRIBUTE TO EDUCATION SUCCESSacijjournal
 
Classroom Of The Future
Classroom Of The FutureClassroom Of The Future
Classroom Of The FutureEducause
 
Thailand OER & MOOCs Country Report
Thailand OER & MOOCs Country ReportThailand OER & MOOCs Country Report
Thailand OER & MOOCs Country ReportAva Chen
 
eLearning advances to new levels in New York City - New York Gadgets
eLearning advances to new levels in New York City - New York GadgetseLearning advances to new levels in New York City - New York Gadgets
eLearning advances to new levels in New York City - New York Gadgets5onlinelearning
 
Important Trends in Online Education
Important Trends in Online EducationImportant Trends in Online Education
Important Trends in Online EducationMorten Flate Paulsen
 
Edtc6340 Connection with Administrators - Multimedia Presentation
Edtc6340 Connection with Administrators - Multimedia PresentationEdtc6340 Connection with Administrators - Multimedia Presentation
Edtc6340 Connection with Administrators - Multimedia PresentationSylviaReza
 
Analysis on ABCSTTU Model of Homdepot
Analysis on ABCSTTU Model of HomdepotAnalysis on ABCSTTU Model of Homdepot
Analysis on ABCSTTU Model of HomdepotMJ Ferdous
 
Converge08 E Assessment
Converge08 E AssessmentConverge08 E Assessment
Converge08 E AssessmentJason Price
 
Kids tek auto presentation 2010
Kids tek auto presentation 2010Kids tek auto presentation 2010
Kids tek auto presentation 2010abissland
 
Web 2.0 tools for Education - Thiyagu
Web 2.0 tools for Education - ThiyaguWeb 2.0 tools for Education - Thiyagu
Web 2.0 tools for Education - ThiyaguThiyagu K
 
Merv Stapleton from City of Sunderland College discusses The Comport Project
Merv Stapleton from City of Sunderland College discusses The Comport ProjectMerv Stapleton from City of Sunderland College discusses The Comport Project
Merv Stapleton from City of Sunderland College discusses The Comport ProjectJISC Netskills
 
How MOOCs, tablets and apps are changing how we teach
How MOOCs, tablets and apps are changing how we teachHow MOOCs, tablets and apps are changing how we teach
How MOOCs, tablets and apps are changing how we teachMark S. Steed
 

What's hot (20)

Classroom of the Future
Classroom of the FutureClassroom of the Future
Classroom of the Future
 
Moodlemoot fiona-strawbridge
Moodlemoot fiona-strawbridgeMoodlemoot fiona-strawbridge
Moodlemoot fiona-strawbridge
 
Virtual classroom
Virtual classroomVirtual classroom
Virtual classroom
 
Online assignment
Online assignment Online assignment
Online assignment
 
benefits-and-challenges-of-elearning
benefits-and-challenges-of-elearningbenefits-and-challenges-of-elearning
benefits-and-challenges-of-elearning
 
EFFECTIVE WAYS CLOUD COMPUTING CAN CONTRIBUTE TO EDUCATION SUCCESS
EFFECTIVE WAYS CLOUD COMPUTING CAN CONTRIBUTE TO EDUCATION SUCCESSEFFECTIVE WAYS CLOUD COMPUTING CAN CONTRIBUTE TO EDUCATION SUCCESS
EFFECTIVE WAYS CLOUD COMPUTING CAN CONTRIBUTE TO EDUCATION SUCCESS
 
Classroom Of The Future
Classroom Of The FutureClassroom Of The Future
Classroom Of The Future
 
Thailand OER & MOOCs Country Report
Thailand OER & MOOCs Country ReportThailand OER & MOOCs Country Report
Thailand OER & MOOCs Country Report
 
eLearning advances to new levels in New York City - New York Gadgets
eLearning advances to new levels in New York City - New York GadgetseLearning advances to new levels in New York City - New York Gadgets
eLearning advances to new levels in New York City - New York Gadgets
 
Important Trends in Online Education
Important Trends in Online EducationImportant Trends in Online Education
Important Trends in Online Education
 
Edtc6340 Connection with Administrators - Multimedia Presentation
Edtc6340 Connection with Administrators - Multimedia PresentationEdtc6340 Connection with Administrators - Multimedia Presentation
Edtc6340 Connection with Administrators - Multimedia Presentation
 
Analysis on ABCSTTU Model of Homdepot
Analysis on ABCSTTU Model of HomdepotAnalysis on ABCSTTU Model of Homdepot
Analysis on ABCSTTU Model of Homdepot
 
Converge08 E Assessment
Converge08 E AssessmentConverge08 E Assessment
Converge08 E Assessment
 
Kids tek auto presentation 2010
Kids tek auto presentation 2010Kids tek auto presentation 2010
Kids tek auto presentation 2010
 
what is e learning and e resources
what is e learning and e resources what is e learning and e resources
what is e learning and e resources
 
E learning and science
E learning and scienceE learning and science
E learning and science
 
Web 2.0 tools for Education - Thiyagu
Web 2.0 tools for Education - ThiyaguWeb 2.0 tools for Education - Thiyagu
Web 2.0 tools for Education - Thiyagu
 
ppt
pptppt
ppt
 
Merv Stapleton from City of Sunderland College discusses The Comport Project
Merv Stapleton from City of Sunderland College discusses The Comport ProjectMerv Stapleton from City of Sunderland College discusses The Comport Project
Merv Stapleton from City of Sunderland College discusses The Comport Project
 
How MOOCs, tablets and apps are changing how we teach
How MOOCs, tablets and apps are changing how we teachHow MOOCs, tablets and apps are changing how we teach
How MOOCs, tablets and apps are changing how we teach
 

Similar to E learning

GROUP 116 PROJECT SLIDE.pptx
GROUP 116 PROJECT SLIDE.pptxGROUP 116 PROJECT SLIDE.pptx
GROUP 116 PROJECT SLIDE.pptxTemitope84
 
THE WEB-BASED EDUCATION JOURNEY: A CONSTANT LIFELINE
THE WEB-BASED EDUCATION JOURNEY: A CONSTANT LIFELINETHE WEB-BASED EDUCATION JOURNEY: A CONSTANT LIFELINE
THE WEB-BASED EDUCATION JOURNEY: A CONSTANT LIFELINEcscpconf
 
Design and Implementation Of A Virtual Learning System (A case study of Adele...
Design and Implementation Of A Virtual Learning System (A case study of Adele...Design and Implementation Of A Virtual Learning System (A case study of Adele...
Design and Implementation Of A Virtual Learning System (A case study of Adele...Mekitmfon AwakEssien
 
E learning vs conventional learning
E learning vs conventional learningE learning vs conventional learning
E learning vs conventional learningARAVIND18MCS1004
 
INCITE - INtegrated Components for Interactive TEaching
INCITE - INtegrated Components for Interactive TEachingINCITE - INtegrated Components for Interactive TEaching
INCITE - INtegrated Components for Interactive TEachingDragos Sbîrlea
 
Establishment of Educational Network among the Undergraduate with Mobile Appl...
Establishment of Educational Network among the Undergraduate with Mobile Appl...Establishment of Educational Network among the Undergraduate with Mobile Appl...
Establishment of Educational Network among the Undergraduate with Mobile Appl...Cahit Berkay Kazangirler
 
Virtual education, and Future of Virtual education in Pakistan.
Virtual education, and Future of Virtual education in Pakistan.Virtual education, and Future of Virtual education in Pakistan.
Virtual education, and Future of Virtual education in Pakistan.Syed Farjad Zia Zaidi
 
How Edtech is Transforming the Classroom?
 How Edtech is Transforming the Classroom? How Edtech is Transforming the Classroom?
How Edtech is Transforming the Classroom?Kavika Roy
 
A TOUR OF THE STUDENT’S E-LEARNING PUDDLE
A TOUR OF THE STUDENT’S E-LEARNING PUDDLEA TOUR OF THE STUDENT’S E-LEARNING PUDDLE
A TOUR OF THE STUDENT’S E-LEARNING PUDDLEacijjournal
 
Spicing up the classroom
Spicing up the classroomSpicing up the classroom
Spicing up the classroomguest942ab7
 
Spicing up the classroom
Spicing up the classroomSpicing up the classroom
Spicing up the classroomguest942ab7
 

Similar to E learning (20)

GROUP 116 PROJECT SLIDE.pptx
GROUP 116 PROJECT SLIDE.pptxGROUP 116 PROJECT SLIDE.pptx
GROUP 116 PROJECT SLIDE.pptx
 
Introduction
IntroductionIntroduction
Introduction
 
THE WEB-BASED EDUCATION JOURNEY: A CONSTANT LIFELINE
THE WEB-BASED EDUCATION JOURNEY: A CONSTANT LIFELINETHE WEB-BASED EDUCATION JOURNEY: A CONSTANT LIFELINE
THE WEB-BASED EDUCATION JOURNEY: A CONSTANT LIFELINE
 
Design and Implementation Of A Virtual Learning System (A case study of Adele...
Design and Implementation Of A Virtual Learning System (A case study of Adele...Design and Implementation Of A Virtual Learning System (A case study of Adele...
Design and Implementation Of A Virtual Learning System (A case study of Adele...
 
E learning vs conventional learning
E learning vs conventional learningE learning vs conventional learning
E learning vs conventional learning
 
Online education
Online educationOnline education
Online education
 
INCITE - INtegrated Components for Interactive TEaching
INCITE - INtegrated Components for Interactive TEachingINCITE - INtegrated Components for Interactive TEaching
INCITE - INtegrated Components for Interactive TEaching
 
Establishment of Educational Network among the Undergraduate with Mobile Appl...
Establishment of Educational Network among the Undergraduate with Mobile Appl...Establishment of Educational Network among the Undergraduate with Mobile Appl...
Establishment of Educational Network among the Undergraduate with Mobile Appl...
 
Advance Mobile Education Service for College Students
Advance Mobile Education Service for College StudentsAdvance Mobile Education Service for College Students
Advance Mobile Education Service for College Students
 
T player emerging technology
T player  emerging technologyT player  emerging technology
T player emerging technology
 
Virtual education, and Future of Virtual education in Pakistan.
Virtual education, and Future of Virtual education in Pakistan.Virtual education, and Future of Virtual education in Pakistan.
Virtual education, and Future of Virtual education in Pakistan.
 
How Edtech is Transforming the Classroom?
 How Edtech is Transforming the Classroom? How Edtech is Transforming the Classroom?
How Edtech is Transforming the Classroom?
 
M3 a9coxm
M3 a9coxmM3 a9coxm
M3 a9coxm
 
A TOUR OF THE STUDENT’S E-LEARNING PUDDLE
A TOUR OF THE STUDENT’S E-LEARNING PUDDLEA TOUR OF THE STUDENT’S E-LEARNING PUDDLE
A TOUR OF THE STUDENT’S E-LEARNING PUDDLE
 
Spicing up the classroom
Spicing up the classroomSpicing up the classroom
Spicing up the classroom
 
Spicing up the classroom
Spicing up the classroomSpicing up the classroom
Spicing up the classroom
 
Virtual Class Room
Virtual Class RoomVirtual Class Room
Virtual Class Room
 
MYSS PL 2014
MYSS PL 2014MYSS PL 2014
MYSS PL 2014
 
E learning
E learningE learning
E learning
 
Unit 6
Unit  6Unit  6
Unit 6
 

Recently uploaded

Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 

Recently uploaded (20)

🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 

E learning

  • 1. E-Learning E-Learning A PROJECT REPORT Submitted by Talima Afreen Tasmiya Arzoo Shahana Zuber Ansari for the award of the degree of Bachelor of Technology IN Computer Science and Engineering INTEGRAL UNIVERSITY LUCKNOW April 2016
  • 2. E-Learning INTEGRAL UNIVERSITY: LUCKNOW UNDERTAKING We, Talima Afreen, Tasmiya Arzoo and Shahana Zuber Ansari, student of B.Tech. (CSE), hereby declare that the work detailed in this Project entitled “E-Learning” submitted to the Department of Computer Science and Engineering, Integral University, Lucknow for the award of the Bachelor of Technology degree is our original work. We have neither plagiarized nor submitted this work for the award of any other degree. In case, this undertaking is found incorrect, We accept that my degree may be unconditionally withdrawn. Talima Afreen Tasmiya Arzoo Shahana Zuber Ansari
  • 3. E-Learning INTEGRAL UNIVERSITY:LUCKNOW CERTIFICATE This is to certify that the work contained in this project report entitled “E- Learning” by Talima Afreen, Tasmiya Arzoo and Shahana Zuber Ansari is a faithful record of work that has been carried out by the students, under my supervision and the level of work is good for submission. To the best of our knowledge, this work has not been submitted for award of any degree or diploma to this University or elsewhere. Manish Madhav Tripathi Associate Professor Computer Science and Engineering Department Integral University, Dasauli, Kursi Road ,Lucknow
  • 4. E-Learning INTEGRAL UNIVERSITY:LUCKNOW RECOMMENDATION On the basis of the declaration submitted by Talima Afreen, Tasmiya Arzoo, Shahana Zuber Ansari, internal assessment carried out by department on date 19/04/2016 and the certificate issued by the Guide Manish Madhav Tripathi the work entitle “E-Learning” submitted to department of CSE, is recommended for final examination. Jameel Ahmad Mrs. Kavita Agarwal Project Coordinator Head (Associate Professor) Department of CS/IT
  • 5. E-Learning INTEGRAL UNIVERSITY: LUCKNOW ACKNOWLEDGEMENT It gives us a great pleasure to present before you our project report on “E- LEARNING” completed under the guidance of our HOD “Mrs. KAVITA AGARWAL”department of Computer Science & Eng. Under whose valuable guidance, contant interest and encouragement , which have devoted his ever-precious time from her busy schedule and thus helped in completing the project. This co-operation is not only useful for this project but will be constant source of inspiration for us in future life. We are also thankful to all faculty member who help us intellectually in preparation of this project directly or indirectly. Last but not the least our gratefulness is there for our friends who gave their constructive & helpful comments to make this report a success. SHAHANA ZUBER ANSARI(1200112195) TALIMA AFREEN(1200112227) TASMIYA ARZOO(1200112229)
  • 6. E-Learning TABLE OF CONTENT Chapter No. CONTENTS PAGE No. 1 INTRODUCTION Vii 1.1. PURPOSE Vii 1.2. INTENDED AUDIENCE AND EVOLUTION OF DOCUMENT vii-viii 1.3. SCOPE OF THE DEVELOPMENT PROJECT Ix 1.4. DEFINITIONS, ACRONYMS, AND ABBREVIATIONS Ix 1.5. OVERVIEW X 2 PREVIOUS WORK Xi 2.1. EXISTING SYSTEM Xi-xii 2.2. OTHER SIMILAR ENTITY Xii 3 REQUIREMENT ANALYSIS xii-xviii 4 PROPOSED WORK 4.1. OBJECTIVE OF PROPOSED SYSTEM Xix 4.2. ADVANTAGE OF PROPOSED SYSTEM Xx 4.3. SCOPE OF PROPOSED SYSTEM Xx 5 HARDWARE AND SOFTWARE SPECIFICATION xxi-xxiv 5.1. HARDWARE REQUIREMENT Xxi 5.2. SOFTWARE REQUIREMENT Xxii 5.3. TECHNOLOGIES USED Xxii 5.3.1 FRONT END TOOLS Xxiii 5.3.2 BACK END TOOL xxiv 6 DESIGN xxv-xxx 6.1. DFD Xxv-xxvi 6.2. ER DIAGRAM Xxvii 6.3. DECISION TREE Xxviii 6.4. STRUCTURED ENGLISH Xxix 6.5. DESCRIPTION OF DESIGNING TOOLS xxx 7 OVERALL DESCRIPTION xxxi-xxxii
  • 7. E-Learning 7.1. USER CLASSES AND CHARACTERISTICS Xxxi 7.2. OPERATING ENVIRONMENT Xxxi 7.3. DESIGN AND IMPLEMENTATIONS CONSTRAINTS xxxii 7.4. ASSUMPTION & DEPENDENCIES xxxii 8 TABLES USED IN THE PROJECT xxxiii-xxxvi 9 CODING BEHIND PAGE xxxvii-xcvii 10 SCREEN SHOTS OF THE PROJECT xcviii-civ 11 FUTURE WORK cv 12 CONCLUSION cvi 13 14 REFERENCES BIO-DATA cvi cvii-cx
  • 8. E-Learning ABSTRACT The paper presents an investigation into the role of virtual reality and web technologies in the field of distance education. Within this frame, special emphasis is given on the building of web-based virtual learning environments so as to successfully fulfill their educational objectives. Finally, an innovative virtual reality environment for distance education is demonstrated. The proposed environment reproduces conditions of the real learning process and enhances learning through a real-time interactive simulator. Virtual education is an emerging concept. Here the classes are not taken face-to-face in a classroom but through an electronic medium as a substitute. These virtual classrooms are gaining importance everyday and very soon they are going to be an integral part of our world. Taking up these virtual classes through an electronic medium is termed as E-Learning. Today E-Learning is no more a technical word that only a few people know. It is turning to be a part of everyone's life whether a student, employee or a housewife all tend to use E-Learning in one way or another. Larger organizations are turning towards E-Learning solution for proving training digitally. As the number of Internet access points are growing rapidly, E-Learning is also gaining a new peak. This electronic medium serves best for dissemination of information. E-Learning is proving itself as a boon for students especially for the disabled who are not able to go and attend the lectures. All these emphasize the need for developing Open Source software that can be used to generate rich multimedia presentation.
  • 9. E-Learning INTRODUCTION Today, we have moved to the digital age. It is now possible to accomplish anything from shopping to socializing online. It is Therefore only natural that learning should move to the digital form too. Our product strives to achieve this transition of education from manual classroom teaching to a virtual environment where a student can learn at anytime from any place. 1.1 PURPOSE: E-Learning aims to replace the role of a school and teachers by providing students a virtual environment which makes it easy for them to study. This is not only provides students the convenience of studying at anytime they wish, but also facilitates distance learning. It enables a school to cater to students from all across the globe without requiring them to come to the country where the school is located. Even if applied only within a particular region for security reasons, it would still save time, costs and energy. Decreased road congestion and pollution would be positive consequences of its application since millions of students every day would not be travelling to and from school. E-Learning does more than providing students an alternative to attending school. It takes education to a whole new level where education is a continuous process. It enables students to attend the school of their choice without worrying about travelling or even boarding. A student from India can study from Houston University without having to travel there. Students from China, Australia and Italy can all be members of the same class even while sitting in their own homes. 1.2 INTENDED AUDIENCE AND EVOLUTION OF DOCUMENT: This document is meant for professors, students and developers who consider virtual classroom as a useful means for distance education. This
  • 10. E-Learning document aims at explaining in an easy manner. It aims to introduce to professors and students and also general users (For e.g. People working in a company) the main features of E-Learning and how the developers aim to achieve their goals. Future development objectives are also discussed. 2.3 SCOPE OF THE DEVELOPMENT PROJECT: E-Learning is a virtual classroom based on ASP.Net. It is being made in response to a growing demand for eLearning software. This can be used as a stand-alone model for education in a school or can be used to supplement the existing system of a school. Either ways, it will be accessible to all students of an institution and they can use it to view tutorials or submit assignments/tests. 2.4 DEFINITIONS, ACRONYMS, AND ABBREVIATIONS: E-learning: Refers to the Virtual Classroom software version 1.0 being developed. E-Learning Management System: A software package to assist administrator/teachers with the creation of online courses for their students. 2.5 OVERVIEW: This Software Requirements Specification specifies the requirements of the E-Learning tool using which people can generate multimedia presentations combining video, HTML, images and slides and publish it as a web page that is viewable an all popular web browsers.
  • 11. E-Learning 2.PREVIOUS WORK 2.1 EXISTING SYSTEM: The existing education system requires students to reside near the Institution they wish to study in. This is problematic when the college a student wishes to attend is in another city or, worse, another country. Costs automatically go up due to travelling and renting a room or paying Hostel fee. Further, students are supposed to simultaneously report to college at a specific time each day. No provision is made for students who are unable to attend college on time on a particular day. There is no way to go through a lecture that has been missed. The best a student can do is copy the notes taken by his friends. A school building is a huge structure, requiring ample lighting and cooling. Rooms, even when not in use, might be lit up. This leads to inefficient use of energy, something which can be avoided with the use of e-learning. Further, millions of students travelling to and from college everyday automatically leads to congestion on the roads, which in turn leads to increased pollution. 2.2 OTHER SIMILAR ENTITY: After the analysis of other similar entities it has been found that although they are working in their respective institutes but they still need to be more refined and also be ADD-Ones with other facilities as well. There are many works still left to work on, such as: Online Class Test, Online Database of the particular student, Online payment of the fees, Viewing and downloading of recorded Lectures.
  • 12. E-Learning 3.PROBLEM IDENTIFICATION AND FEASIBILITY STUDY 3.1 PROBLEM IDENTIFICATION: As we know, we have moved to the digital age. It is now possible to accomplish anything from shopping to socializing online. It is therefore only natural that learning should move to the digital form too. Our product strives to achieve this transition of education from manual classroom teaching to a virtual environment where a student can learn at anytime from any place. This software aims to replace the role of a school and teachers by providing students a virtual environment which makes it easy for them to study. This not only provides students the convenience of studying at anytime they wish, but also facilitates distance learning. It enables a school to cater to students from all across the globe without requiring them to come to the country where the school is located. Even if applied only within a particular region for security reasons, it would still save time, costs and energy. Decreased road congestion and pollution would be positive consequences of its application since millions of students every day would not be travelling to and from school. E-Learning does more than providing students an alternative to attending school. It takes education to a whole new level where education is a continuous process. It enables students to attend the school of their choice without worrying about travelling or even boarding. A student from India can study from Houston University without having to travel there. Students from China, Australia and Italy can all be members of the same class even while sitting in their own homes.
  • 13. E-Learning 3.2 FEASIBILITY STUDY: (a)ECONOMIC FEASIBILITY: The proposed system would save millions of dollars in the education system. Money spent on providing infrastructure which itself amounts to millions of dollars would automatically saved. There would be further savings due to saving of energy that was earlier being wasted in the building. Students would not have to pay for travelling and lodging, or even food from outside. They would further save on fees since most colleges would cut down on the part of fees they charge for development of infrastructure and its maintenance. In contrast to the huge cash requirements of the existing system, the proposed system is a simple online interface that can be accessed by anyone at a minimal cost. The only expenditure, apart from the existing ones on staff, will be on software maintenance staff. (b)TECHNICAL FEASIBILITY: The software only relies on a high- speed internet connection on the student end to enable access to videos. Even on a low-speed connection, a student can still read textual materials. The college would have to invest in secure servers and ensure proper maintenance of the software. Both these are easily achievable at low cost. (c) OPERATIONAL FEASIBILITY: The system will be used if it is developed well, and then there will be resistance for users that undetermined:  No major training and new skills are required as it is based on DBMS model and Virtual Reality.
  • 14. E-Learning  It will help in the time saving and fast processing and dispersal of student’s requests.  New product will provide all the benefits of present system with better performance.  Improved information, better management and collection of the reports.  User support.  User involvement in the building of present system is sought to keep in mind the user specific requirement and needs.
  • 15. E-Learning 4. REQUIREMENT ANALYSIS Problem Definition: Since, we have investigated through many aspects of current teachings system, and also into the merits-demerits which emerges out from it. It is found that E-Learning aims to replace the role of a school and teachers by providing students a virtual environment which makes it easy for them to study. This not only provides students the convenience of studying at anytime they wish, but also facilitates distance learning. It enables a school to cater to students from all across the globe without requiring them to come to the country where the school is located. Even if applied only within a particular region for security reasons, it would still save time, costs and energy. Decreased road congestion and pollution would be positive consequences of its application since millions of students every day would not be travelling to and from school. E-Learning does more than providing students an alternative to attending school. It takes education to a whole new level where education is a continuous process. It enables students to attend the school of their choice without worrying about travelling or even boarding. A student from India can study from Houston University without having to travel there. Students from China, Australia and Italy can all be members of the same class even while sitting in their own homes. Analyst, working closely with the Teachers and the students, must study the Counseling Process as follows: These key questions:  What is being done?  How is it being done?  How frequent does it occur?  How great is the volume of interaction?
  • 16. E-Learning  How well is the task being performed?  Does a problem exist?  If problems exist, how serious is it?  If a problem exists, what is the underlying cause? Apart from this, almost all the aspects of teaching environment were closely monitored in order to develop fine software. The other steps which were carried out were:  Analysis of teaching materials.  Analysis of teaching methods.  Analysis of Class Test being conducted.  Interview the Teachers and the students.  Observe the overview of Administrative section.  Onsite observations.  Analysis of Scheduling of classes.  Analysis of Time Management. OUTCOME OF THE REQUIREMENTS ANALYSIS: After our team has done the analysis on the requirement, we find that there are various requirements for the development of this project, they have been divided into four sections, and they are as follow: (1)VISITORS SECTION:  Home page  About us  Login Student  Login Teacher  Login Administrator  Current Courses  Current Faculties  Fee Structure  Why us  Upcoming Batches  Picture Gallery  Registration instructions  Registration Form
  • 17. E-Learning  Search  Offline query  Feedbacks (2)STUDENTS SECTION  Home page  Attend Lectures  Mark Attendance  Download Assignments  Download eBooks  Download Notes  Download Presentation  Upload Completed Assignment  Online Examination  View e-Grade card  View Recorded Lectures  Voting  Time Table  Feedback  Change Password  View attendance record  View Grades record.  Offline query  Forums  Log out (3)TEACHERS SECTION  Home page  Take Lectures  Mark Attendance  Upload Assignments  Upload eBooks  Upload Notes  Upload Presentation  Download Completed Assignment  Take Online Examination  Change Password  Time Table  Feedback  Offline query  Generate e-Grade card
  • 18. E-Learning  View Students Attendance  Voting  Prepare online Question paper  Offline queries  Teachers Forums  Log out (4)Administrator’s Section  Add student  Remove student  Add Teacher  Remove Teacher  Add Course  Remove Course  Add Batch  Remove batch  Change Password  Manage attendance  Assign Teacher with Course  Generate Student’s Certificate  Manage student’s fee  Manage teacher’s salary  Log out Note: These are all requirements which we gathered, we tried our best to implement maximum of them, and remaining features can be supplemented for Future upgradations.
  • 19. E-Learning 5. PROPOSED WORK E-Leanings a virtual classroom environment that provides students with all the learning facilities provided to them in a school. Notes to refer to, videos of lectures, online tests are the most important features of the product. 5.1 OBJECTIVE OF PROPOSED SYSTEM: E-Learning aims to provide students with:  Presentations, eBooks and other necessary notes.  Videos of lectures.  Online submission of assignments, projects and tests.  Ability to check their marks and details online. It strives to facilitate distance learning and better interaction between students from different geographical locations. 5.2 ADVANTAGE OF PROPOSED SYSTEM: The new system provides students with the convenience of learning at any time they wish and from any place. Reading in a comfortable environment and a time suited to the particular student leads to better understanding of the subject. It also enables students to go through a particular lecture as many times as they wish since they only have to replay a video. Learning/revising a subject from a video is better than revising from a book. It automatically cuts down on costs for students since they do not have to worry about travel and lodging. It also saves costs for an institution since it no longer requires a huge building and the infrastructure it would have otherwise had to build. It also allows a new institution to get off the ground immediately, instead of having to wait for years to simply build a building for its students.
  • 20. E-Learning As a direct consequence, it will save time and energy for both students and teachers. As an indirect consequence, it will decrease road traffic and pollution. 5.3 SCOPE OF PROPOSED SYSTEM: The proposed system can be used as an independent learning tool or in conjunction with a school’s existing system. A school wouldn’t find it too difficult to replace their existing system with the new one since it only requires granting student’s access to the system. If a school wishes for actual interaction between students and faculty, or in an institution where presentations in front of live audiences are required, this product can be used to supplement the existing system. Student can do most of the learning from home and come to school for only the interactive sessions. In the later combinational system, however, the advantages of global education would be nullified.
  • 21. E-Learning 6. HARDWARE AND SOFTWARE SPECIFICATION 6.1 HARDWARE REQUIREMENT: Main Processor Pentium IV Hard-disk Capacity 80 GB RAM 1 GB INTERNET CONNECT 256 Kbps (These are the least configuration which should hold.) 6.2 SOFTWARE REQUIREMENT: Operating System Windows 8 Backend tool SQL Server 2008 Front-end tool ASP.NET 3.5, JavaScript Web Browser MS Internet Explorer 8.0 Note: With all the above requirements, the software is technically feasible.
  • 22. E-Learning 6.3 TECHNOLOGIES USED 6.3.1 FRONT END TOOLS: HTML (Hyper Text Markup Language) A markup language used to structure text and multimedia documents and to set up hypertext links between documents, used extensively on the World Wide Web. HTML is a designing language, not a programming language. HTML is a markup language that uses a fixed set of markup tags.  HTML itself is the set of customizable “markup” tags that are inserted into HTML document govern its format, multimedia content, and hyperlinks. Any HTML viewer can display such documents but they are normally viewed using a Web browser.  HTML is a programming language in that an HTML document is a program that, when “run” by a browser, displays its text as hypermedia (multimedia with hyperlinks).  The “language” HTML is really only a collection of predefined tags which, when inserted into regular text, tell a web browser how to work. JAVASCRIPT JavaScript is a compact, object-based scripting language. It can provide interactive web pages, validate from data, and make your web page clearer. JavaScript is a lightweight interpreted scripting language. The language is most well known for its use in websites. It was
  • 23. E-Learning originally developed by Brendan Each of Netscape Communications. It adds interactive functions to HTML pages, which are otherwise static. JavaScript is easier to use than Java, but not as powerful and deals mainly with the elements on the Web page. On the client, JavaScript is maintained as source code embedded into an HTML page. On the Server, it is compiled into byte code (intermediate language), similar Java programs. ASP.NET  ASP Stands for Active Server Pages.  Microsoft ASP. Net is a technology that allows Programmer to create Dynamic Web Application.  ASP. Net is a program that runs inside IIS.  IIS (Internet Information Services) is Microsoft’s Internet Server.  ASP. Net file can contain HTML, XML and scripts.  The .NET Framework is an architecture that’s makes it easier to design.  The Common Language Runtime (CLR) provides a set of services for all ASP.Net Languages. PROGRAMMING LANGUAGE (C#)  C# is purely Object Oriented Language.  C# directly related to C, C++ and Java.
  • 24. E-Learning 6.3.2 BACK END TOOL: SQL SERVER 2008  Microsoft Server-2008 is a full featured Relational Database Management System (RDBMS).  Online Transaction Processing (OLTP) system must be capable of handling thousands of order placed at the same time.  MSSQL Server-2008 has variety of Tools.  Enterprise Manager.  Query Analyzer.  SQL Profile.  Service Manager.  Data Transformation Service.  Books Online.
  • 25. E-Learning 7. DESIGN 7.1 DFD: LEVEL 1 TEACHER TEACHER DETAILS LOG-IN SELECT TASK
  • 27. E-Learning LEVEL 2 DETAILED DATABASE VISITOR STUDENT LOG-IN ADMIN TEACHER VIEW UPDATE TEACHERSTUDENT SELECT TASK LOG-INUSER
  • 29. E-Learning 7.3 DECISION TREE: 7.4 STRUCTURED ENGLISH:
  • 30. E-Learning 7.5 DESCRIPTION OF DESIGNING TOOLS: DATA FLOW DIAGRAM (DFD):  DFD are commonly used during problem analysis.  A DFD shows the flow of data through a system.  The DFD aims to capture the transformation that take place within the System to the input data so that eventually the output data is produced.  A DFD does not represent procedural information.  DFD is a logical design of the flow of information between the modules. The DFD shows the interaction of one module with the other module. There are several level of DFD are used to describe the flow of information ENTITY RELATIONSHIP DIAGRAM:  ERD can express the overall logical structure of a database graphically.  ERD are simple and clear qualities that may well account in large part for the widespread use of the ER-Model.  The basic object that the ER model represents is an entity, which is a “Thing” in the real world with an independent existence.  A particular entity will have a value for each of its attributes.  The attribute values that describe each entity become a major part of the data stored in the database.
  • 31. E-Learning 8. OVERALL DESCRIPTION 8.1 USER CLASSES AND CHARACTERISTICS: Students: Students will have ability to read the data in “reading materials” section. This includes videos, eBooks, notes etc. They will also have the ability to modify and submit data in the “work” section which will include tests, assignments, reports etc. Teachers: Apart from the functionalities granted to students, teachers will be able to upload data to the “materials” and “work” section. It will be automatically categorized into the correct subject section by the system depending on which teacher account has uploaded it. Teachers can delete/modify data uploaded by themselves but not by other teachers. Administrator: An administrator has access to all parts of the system.He possesses the power to delete any material. He will also have access to the back-end of the system using which he can access details of teachers and students. 8.2 OPERATING ENVIRONMENT: The proposed product requires a web browser to work. It can work on any operating system that contains a web browser with support for:  ASP.Net  Java Script  Flash or Silverlight (For Videos)
  • 32. E-Learning 8.3 DESIGN AND IMPLEMENTATIONS CONSTRAINTS Though schools would prefer it, the current development environment makes it difficult for us to prevent unauthorized download and distribution of files by students. To ensure that students do not cheat on tests, it could be possible to use webcam technology to ensure that no one else is in the room with the student. A biometric scan should be done to verify the identity of the student. However, current levels of sophistication of webcam technologies and biometric scans restrict us from implementing these features in E-Learning1.0. 8.4 ASSUMPTION & DEPENDENCIES The product relies on a high-speed internet connection on part of the student. A high bandwidth is required for streaming videos.
  • 33. E-Learning 9. TABLES USED IN THE PROJECT REGISTRATION TABLE: LOGIN TABLE: COURSE TABLE:
  • 37. E-Learning 10. CODING BEHIND PAGE Visitor Section (a)Login Page: using System; 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 _Default : System.Web.UI.Page { myClass1 ob = new myClass1(); protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { Label3.Visible = false; if (DropDownList1.SelectedIndex.ToString() == "0") { Label3.Text = "Select User Type"; Label3.Visible = true; } if (DropDownList1.SelectedItem.Text == "Student") { ob.ds.Clear(); ob.cmd.CommandText = "select *from reg_student where user_id='" + TextBox1.Text + "'and password='" + TextBox2.Text + "' "; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { string p = ""; foreach (DataRow dr in ob.ds.Tables["vt"].Rows) { p = dr["status"].ToString(); } if (p == "True") { ob.con.Open(); ob.cmd.CommandText = "update reg_student set onlineStatus='True' where user_id='" + TextBox1.Text + "'and password='" + TextBox2.Text + "'"; ob.cmd.ExecuteNonQuery(); ob.con.Close(); Session["Student"] = TextBox1.Text; Response.Redirect("~/student/welcome(student).aspx"); } else { Label3.Text = "Wait For Approval"; Label3.Visible = true; } } else {
  • 38. E-Learning Label3.Text = "Invalid User"; Label3.Visible = true; } } if (DropDownList1.SelectedItem.Text == "Faculty") { ob.ds.Clear(); ob.cmd.CommandText = "select *from reg_faculty where user_id='" + TextBox1.Text + "'and password='" + TextBox2.Text + "' "; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { string p = ""; foreach (DataRow dr in ob.ds.Tables["vt"].Rows) { p = dr["status"].ToString(); } if (p == "True") { ob.con.Open(); ob.cmd.CommandText = "update reg_faculty set onlineStatus='True' where user_id='" + TextBox1.Text + "'and password='" + TextBox2.Text + "'"; ob.cmd.ExecuteNonQuery(); ob.con.Close(); Session["Faculty"] = TextBox1.Text; Response.Redirect("~/faculty/welcome(faculty).aspx"); } else { Label3.Text = "Wait For Approval"; Label3.Visible = true; } } else { Label3.Text = "Invalid User"; Label3.Visible = true; } } if (DropDownList1.SelectedItem.Text == "Administrator") { ob.ds.Clear(); ob.cmd.CommandText = "select *from reg_admin where user_id='" + TextBox1.Text + "'and password='" + TextBox2.Text + "' "; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { ob.con.Open(); ob.cmd.CommandText = "update reg_admin set onlineStatus='True' where user_id='" + TextBox1.Text + "'and password='" + TextBox2.Text + "'"; ob.cmd.ExecuteNonQuery(); ob.con.Close(); Session["Admin"] = TextBox1.Text; Response.Redirect("~/admin/welcome(admin).aspx"); } else { Label3.Text = "Invalid User"; Label3.Visible = true; } } } protected void registration(object sender, EventArgs e) { Response.Redirect("reg.aspx"); } protected void forget_password(object sender, EventArgs e)
  • 39. E-Learning { Response.Redirect("forget.aspx"); } } (b)Registration Page: 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 visitor_try_reg : System.Web.UI.Page { myClass1 ob = new myClass1(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { MultiView1.Visible = true; MultiView1.SetActiveView(View1); ob.ddlBinding(DropDownList7, "select *from country_reg order by country_name asc", "country_name", "country_id"); ob.ddlBinding(DropDownList18, "select *from states where country_id='" + DropDownList7.Text + "'", "state_name", "state_id"); ob.ddlBinding(DropDownList2, "select *from cities where state_id='" + DropDownList18.SelectedValue + "'", "city_name", "city_id"); } } protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { if (DropDownList1.SelectedItem.Text == "Administrator") { Button4.Visible = true; Button6.Visible = false; } else { Button6.Visible = true; } Label39.Visible = false; Label15.Visible = false; Label17.Visible = false; Label16.Visible = false; Label34.Visible = false; Button1.Visible = false; Button2.Visible = false; Button4.Visible = false; TextBox1.Visible = false; TextBox10.Visible = false; TextBox12.Visible = false; if (DropDownList1.SelectedItem.Text == "Student") { Button1.Visible = true; TextBox1.Visible = true;
  • 40. E-Learning } if (DropDownList1.SelectedItem.Text == "Faculty") { TextBox10.Visible = true; Button2.Visible = true; } if (DropDownList1.SelectedItem.Text == "Administrator") { ob.ds.Clear(); ob.cmd.CommandText = "select *from reg_admin"; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { Label16.Text = "Sorry! Admin is Registered"; Label16.Visible = true; } else { Label16.Visible = false; Button4.Visible = true; TextBox12.Visible = true; } } } protected void TextBox1_TextChanged(object sender, EventArgs e) { Label34.Visible = false; ob.ds.Clear(); ob.cmd.CommandText = "select *from reg_student where user_id='" + TextBox1.Text + "'"; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { Label17.Text = "Not Available"; Label17.Visible = true; } else { Label17.Text = "Available"; Label17.Visible = true; } } protected void TextBox10_TextChanged(object sender, EventArgs e) { Label34.Visible = false; ob.ds.Clear(); ob.cmd.CommandText = "select *from reg_faculty where user_id='" + TextBox10.Text + "'"; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { Label17.Text = "Not Available"; Label17.Visible = true; } else { Label17.Text = "Available"; Label17.Visible = true; } } protected void TextBox12_TextChanged(object sender, EventArgs e) { Label34.Visible = false; ob.ds.Clear(); ob.cmd.CommandText = "select *from reg_admin where user_id='" + TextBox12.Text + "'"; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) {
  • 41. E-Learning Label17.Text = "Not Available"; Label17.Visible = true; } else { Label17.Text = "Available"; Label17.Visible = true; } } protected void faculty_signup(object sender, EventArgs e) { int a = 0; ob.ds.Clear(); ob.cmd.CommandText = "select *from reg_faculty where user_id='" + TextBox10.Text + "'"; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { Label87.Text = "Already Registered"; Label87.Visible = true; } else { Label87.Visible = false; ob.ds.Clear(); ob.cmd.CommandText = "select *from reg_faculty"; ob.adp.Fill(ob.ds, "vt"); ob.dr = ob.ds.Tables["vt"].NewRow(); ob.dr["user_id"] = TextBox10.Text; ob.dr["password"] = ViewState["pass"].ToString(); ob.dr["first_name"] = TextBox4.Text; ob.dr["last_name"] = TextBox5.Text; ob.dr["image_path"] = ViewState["file_path"].ToString(); ob.dr["dob"] = DropDownList4.SelectedItem.Text + "-" + DropDownList5.SelectedItem.Text + "-" + DropDownList6.SelectedItem.Text; if (RadioButton1.Checked) { ob.dr["gender"] = RadioButton1.Text; } else { ob.dr["gender"] = RadioButton2.Text; } ob.dr["country"] = DropDownList7.SelectedItem.Text; ob.dr["state"] = DropDownList18.SelectedItem.Text; ob.dr["city"] = DropDownList2.SelectedItem.Text; ob.dr["address"] = TextBox14.Text; ob.dr["profession"] = DropDownList9.SelectedItem.Text; if (RadioButton3.Checked) { ob.dr["marital_status"] = RadioButton3.Text; } else { ob.dr["marital_status"] = RadioButton4.Text; } ob.dr["mobile_no"] = TextBox8.Text; ob.dr["email_id"] = TextBox13.Text; if (RadioButton5.Checked) { ob.dr["skill_level"] = RadioButton5.Text; } else if (RadioButton6.Checked) { ob.dr["skill_level"] = RadioButton6.Text; } else if (RadioButton7.Checked)
  • 42. E-Learning { ob.dr["skill_level"] = RadioButton7.Text; } ob.dr["SQ"] = DropDownList3.SelectedItem.Text; ob.dr["SA"] = TextBox9.Text; ob.dr["course_applied"] = DropDownList12.Text; if (RadioButton10.Checked) { ob.dr["Highest_Qualification"] = RadioButton10.Text; } else if (RadioButton11.Checked) { ob.dr["Highest_Qualification"] = RadioButton11.Text; } if (DropDownList13.SelectedItem.Text == "Other") { ob.dr["Degree"] = TextBox27.Text; } else { ob.dr["Degree"] = DropDownList13.SelectedItem.Text; } ob.dr["percentage"] = DropDownList14.SelectedItem.Text; ob.dr["college_name"] = TextBox15.Text; ob.dr["experience"] = DropDownList19.SelectedItem.Text; ob.dr["status"] = "False"; ob.dr["allotmentStatus"] = "False"; ob.dr["onlineStatus"] = "False"; ob.ds.Tables["vt"].Rows.Add(ob.dr); ob.scb.DataAdapter = ob.adp; ob.adp.Update(ob.ds.Tables["vt"]); Label87.Text = "Sign Up Successfull"; Label87.Visible = true; Label87.Focus(); } } } protected void admin_signup(object sender, EventArgs e) { if (Label34.Text == "* Fields are necessary") { Label34.Focus(); } else { ob.ds.Clear(); ob.cmd.CommandText = "select *from reg_admin where user_id='" + TextBox12.Text + "'"; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { Label34.Text = "Admin Is Registered"; Label34.Visible = true; } else { Label34.Visible = false; ob.ds.Clear(); ob.cmd.CommandText = "select *from reg_admin"; ob.adp.Fill(ob.ds, "vt"); ob.dr = ob.ds.Tables["vt"].NewRow(); ob.dr["user_id"] = TextBox12.Text; ob.dr["image_path"] = ViewState["file_path"].ToString(); ob.dr["first_name"] = TextBox4.Text; ob.dr["last_name"] = TextBox5.Text; ob.dr["password"] = TextBox7.Text; if (RadioButton1.Checked) { ob.dr["gender"] = RadioButton1.Text;
  • 43. E-Learning } else { ob.dr["gender"] = RadioButton2.Text; } ob.dr["country"] = DropDownList7.SelectedItem.Text; ob.dr["state"] = DropDownList18.SelectedItem.Text; ob.dr["city"] = DropDownList2.SelectedItem.Text; ob.dr["dob"] = DropDownList4.SelectedItem.Text + "-" + DropDownList5.SelectedItem.Text + "-" + DropDownList6.SelectedItem.Text; if (RadioButton3.Checked) { ob.dr["marital_status"] = RadioButton3.Text; } else { ob.dr["marital_status"] = RadioButton4.Text; } ob.dr["mobile_no"] = TextBox8.Text; ob.dr["email_id"] = TextBox13.Text; ob.dr["profession"] = DropDownList9.SelectedItem.Text; ob.dr["SQ"] = DropDownList3.SelectedItem.Text; ob.dr["SA"] = TextBox9.Text; ob.dr["onlineStatus"] = "False"; ob.ds.Tables["vt"].Rows.Add(ob.dr); ob.scb.DataAdapter = ob.adp; ob.adp.Update(ob.ds.Tables["vt"]); Label34.Text = "Sign Up Successful"; Label34.Visible = true; Label34.Focus(); } } } protected void LinkButton2_Click(object sender, EventArgs e) { Response.Redirect("loginPage.aspx"); } protected void Button6_Click(object sender, EventArgs e) { ob.ds.Clear(); ob.cmd.CommandText = "select * from reg_student where user_id='" + TextBox1.Text + "'"; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { Label86.Text = "User Already Registered"; Label86.Visible = true; } else { ob.ds.Clear(); Label86.Visible = false; ob.cmd.CommandText = "select * from reg_student"; ob.adp.Fill(ob.ds, "vt"); ob.dr = ob.ds.Tables["vt"].NewRow(); ob.dr["user_id"] = TextBox1.Text; ob.dr["password"] = ViewState["pass"].ToString(); ob.dr["first_name"] = TextBox4.Text; ob.dr["last_name"] = TextBox5.Text; ob.dr["image_path"] = ViewState["file_path"].ToString(); ob.dr["dob"] = DropDownList4.SelectedItem.Text + "-" + DropDownList5.SelectedItem.Text + "-" + DropDownList6.SelectedItem.Text; if (RadioButton1.Checked) {
  • 44. E-Learning ob.dr["gender"] = RadioButton1.Text; } else { ob.dr["gender"] = RadioButton2.Text; } ob.dr["country"] = DropDownList7.SelectedItem.Text; ob.dr["state"] = DropDownList18.SelectedItem.Text; ob.dr["city"] = DropDownList2.SelectedItem.Text; ob.dr["address"] = TextBox14.Text; ob.dr["profession"] = DropDownList9.SelectedItem.Text; if (RadioButton3.Checked) { ob.dr["marital_status"] = RadioButton3.Text; } else { ob.dr["marital_status"] = RadioButton4.Text; } ob.dr["mobile_no"] = TextBox8.Text; ob.dr["email_id"] = TextBox13.Text; if (RadioButton5.Checked) { ob.dr["skill_level"] = RadioButton5.Text; } else if (RadioButton6.Checked) { ob.dr["skill_level"] = RadioButton6.Text; } else if (RadioButton7.Checked) { ob.dr["skill_level"] = RadioButton7.Text; } ob.dr["SQ"] = DropDownList3.SelectedItem.Text; ob.dr["SA"] = TextBox9.Text; ob.dr["course_applied"] = DropDownList11.Text; ob.dr["paid_amount"] = ViewState["amnt"].ToString(); if(RadioButton8.Checked) { ob.dr["payment_mode"]=RadioButton8.Text; } if(RadioButton9.Checked) { ob.dr["payment_mode"] = RadioButton9.Text; } ob.dr["class_time"] = DropDownList10.SelectedItem.Text; ob.dr["status"] = "False"; ob.dr["onlineStatus"] = "False"; ob.ds.Tables["vt"].Rows.Add(ob.dr); ob.scb.DataAdapter = ob.adp; ob.adp.Update(ob.ds.Tables["vt"]); ob.con.Open(); ob.cmd.CommandText = "insert into studentCreditCardPayment values('Credit','" + DropDownList15.SelectedItem.Text + "','" + DropDownList16.SelectedItem.Text + "','" + TextBox16.Text + "','" + TextBox17.Text + "','" + Label47.Text + "','" + TextBox19.Text + "')"; ob.cmd.ExecuteNonQuery(); ob.con.Close(); Label86.Text = "Sign Up Successfull"; Label86.Visible = true; Label86.Focus(); string updateQuery = ""; if (Label86.Text == "Sign Up Successfull") { int temp = Convert.ToInt32(Label47.Text); if (DropDownList15.Text == "SBI") { updateQuery = "update bank_sbi set amount=amount-'" + temp + "' where bank_name='" + DropDownList15.Text + "' and card_owner='"+TextBox17.Text+"'"; }
  • 45. E-Learning if (DropDownList15.Text == "PNB") { updateQuery = "update bank_pnb set amount=amount-'" + temp + "' where bank_name='" + DropDownList15.Text + "' and card_owner='" + TextBox17.Text + "' "; } if (DropDownList15.Text == "Baroda Bank") { updateQuery = "update bank_BOB set amount=amount-'" + temp + "' where bank_name='" + DropDownList15.Text + "' and card_owner='" + TextBox17.Text + "' "; } ob.con.Open(); ob.cmd.CommandText = updateQuery; ob.cmd.ExecuteNonQuery(); ob.con.Close(); } Label86.Focus(); } } } } protected void student_signup_draft(object sender, EventArgs e) { int cd = 0; if (cd == 1) { } else { if (RadioButton8.Checked) { //insert values into reg_student & studentDraftPayment ob.ds.Clear(); ob.cmd.CommandText = "select * from reg_student where user_id='" + TextBox1.Text + "'"; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { Label85.Text = "User Already Registered"; Label85.Visible = true; } else { ob.ds.Clear(); Label85.Visible = false; ob.cmd.CommandText = "select * from reg_student"; ob.adp.Fill(ob.ds, "vt"); ob.dr = ob.ds.Tables["vt"].NewRow(); ob.dr["user_id"] = TextBox1.Text; ob.dr["password"] = ViewState["pass"].ToString(); ob.dr["first_name"] = TextBox4.Text; ob.dr["last_name"] = TextBox5.Text; ob.dr["image_path"] = ViewState["file_path"].ToString(); ob.dr["dob"] = DropDownList4.SelectedItem.Text + "-" + DropDownList5.SelectedItem.Text + "-" + DropDownList6.SelectedItem.Text; if (RadioButton1.Checked) { ob.dr["gender"] = RadioButton1.Text; } else { ob.dr["gender"] = RadioButton2.Text; } ob.dr["country"] = DropDownList7.SelectedItem.Text; ob.dr["state"] = DropDownList18.SelectedItem.Text; ob.dr["city"] = DropDownList2.SelectedItem.Text;
  • 46. E-Learning ob.dr["address"] = TextBox14.Text; ob.dr["profession"] = DropDownList9.SelectedItem.Text; if (RadioButton3.Checked) { ob.dr["marital_status"] = RadioButton3.Text; } else { ob.dr["marital_status"] = RadioButton4.Text; } ob.dr["mobile_no"] = TextBox8.Text; ob.dr["email_id"] = TextBox13.Text; if (RadioButton5.Checked) { ob.dr["skill_level"] = RadioButton5.Text; } else if (RadioButton6.Checked) { ob.dr["skill_level"] = RadioButton6.Text; } else if (RadioButton7.Checked) { ob.dr["skill_level"] = RadioButton7.Text; } ob.dr["SQ"] = DropDownList3.SelectedItem.Text; ob.dr["SA"] = TextBox9.Text; ob.dr["course_applied"] = DropDownList11.Text; ob.dr["paid_amount"] = TextBox22.Text; if(RadioButton8.Checked) { ob.dr["payment_mode"]=RadioButton8.Text; } if(RadioButton9.Checked) { ob.dr["payment_mode"] = RadioButton9.Text; } ob.dr["class_time"] = DropDownList10.SelectedItem.Text; ob.dr["status"] = "False"; ob.dr["onlineStatus"] = "False"; ob.ds.Tables["vt"].Rows.Add(ob.dr); ob.scb.DataAdapter = ob.adp; ob.adp.Update(ob.ds.Tables["vt"]); //***************************************** ob.ds.Clear(); ob.cmd.CommandText = "select *from studentDraftPayment where draft_no='" + TextBox25.Text + "' "; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { Label85.Text = "Draft No. Already Used"; Label85.Visible = true; } else { Label85.Visible = false; ob.con.Open(); ob.cmd.CommandText = "insert into studentDraftPayment values('Draft','" + DropDownList17.Text + "','" + TextBox22.Text + "','" + TextBox23.Text + "','" + TextBox24.Text +"','" + TextBox25.Text + "','" + TextBox26.Text + "')"; ob.cmd.ExecuteNonQuery(); ob.con.Close(); Label85.Text = "Sign Up Successfull"; Label88.Focus(); Label85.Visible = true; Label88.Text = "You can Login After Your Draft Is Recieved"; Label88.Visible = true; } } } } }
  • 47. E-Learning Admin Section: (a)Home Page: 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_welcome_admin_ : System.Web.UI.Page { myClass1 ob = new myClass1(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ob.ds.Clear(); ob.cmd.CommandText = "select *from reg_admin where user_id='" + Session["Admin"].ToString() + "' "; ob.adp.Fill(ob.ds,"vt"); foreach (DataRow dr in ob.ds.Tables["vt"].Rows) { Image1.ImageUrl=dr["image_path"].ToString(); Label1.Text = dr["first_name"].ToString(); Label2.Text = dr["city"].ToString(); } ob.gridBinding(GridView1, "select *from reg_student where status='False'"); ob.ddlBinding(DropDownList4, "select *from coarse1 where status='False'", "coarse_name", ""); ob.ddlBinding(DropDownList2, "select *from reg_faculty where status='True' and allotmentStatus='False' and course_applied='" + DropDownList4.SelectedItem.Text + "'", "user_id", ""); ob.gridBinding(GridView2, "select *from reg_faculty where status='False'"); MultiView1.SetActiveView(View1); } } protected void Button1_Click(object sender, EventArgs e) { if (TextBox1.Text == "") { Label4.Text = "Invalid Message"; Label4.Visible = true; } else { if (DropDownList1.SelectedItem.Text == "Student") { ob.ds.Clear(); ob.cmd.CommandText = "select *from announcement where tooUser='Student' and anncmntsText='" + TextBox1.Text + "'"; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { Label4.Text = "Already Sent"; Label4.Visible = true; } else
  • 48. E-Learning { ob.con.Open(); ob.cmd.CommandText = "insert into announcement values('" + DropDownList1.SelectedItem.Text + "','Admin','" + Session["Admin"].ToString() + "','" + TextBox1.Text + "','" + System.DateTime.Now.ToShortDateString() + "')"; ob.cmd.ExecuteNonQuery(); ob.con.Close(); Label4.Text = "Announcement Successfull"; Label4.Visible = true; } } if (DropDownList1.SelectedItem.Text == "Faculty") { ob.ds.Clear(); ob.cmd.CommandText = "select *from announcement where tooUser='Faculty' and anncmntsText='" + TextBox1.Text + "'"; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { Label4.Text = "Already Sent"; Label4.Visible = true; } else { ob.con.Open(); ob.cmd.CommandText = "insert into announcement values('" + DropDownList1.SelectedItem.Text + "','Admin','" + Session["Admin"].ToString() + "','" + TextBox1.Text + "','" + System.DateTime.Now.ToShortDateString() + "')"; ob.cmd.ExecuteNonQuery(); ob.con.Close(); Label4.Text = "Announcement Successfull"; Label4.Visible = true; } } if (DropDownList1.Text == "All") { ob.ds.Clear(); ob.cmd.CommandText = "select *from announcement where anncmntsText='"+TextBox1.Text+"'"; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { Label4.Text = "Already Sent"; Label4.Visible = true; } else { ob.con.Open(); ob.cmd.CommandText = "insert into announcement values('Student','Admin','"+Session["Admin"].ToString() + "','" + TextBox1.Text + "','" + System.DateTime.Now.ToShortDateString() + "')"; ob.cmd.ExecuteNonQuery(); ob.con.Close(); ob.con.Open(); ob.cmd.CommandText = "insert into announcement values('Faculty','Admin','" + Session["Admin"].ToString() + "','" + TextBox1.Text + "','" + System.DateTime.Now.ToShortDateString() + "')"; ob.cmd.ExecuteNonQuery(); ob.con.Close(); Label4.Text = "Announcement Successfull"; Label4.Visible = true; } } } } foreach (GridViewRow gr in GridView1.Rows) { cc = (CheckBox)gr.FindControl("chkchild");
  • 49. E-Learning cc.Checked = false; } } { CheckBox ch, cc; ch = (CheckBox)GridView2.HeaderRow.FindControl("chkhead2"); if (ch.Checked) { foreach (GridViewRow gr in GridView2.Rows) { cc = (CheckBox)gr.FindControl("chkchild2"); cc.Checked = true; } } (b)View Profile: 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_ViewProfile : System.Web.UI.Page { myClass1 ob=new myClass1(); int i = 0; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string r = ""; ob.ds.Clear(); ob.cmd.CommandText="select*from reg_admin where user_id='"+ Session["Admin"].ToString() + "' "; ob.adp.Fill(ob.ds, "vt"); foreach (DataRow dr in ob.ds.Tables["vt"].Rows) { Label2.Text = dr["user_id"].ToString(); Label4.Text = dr["first_name"].ToString(); Label6.Text = dr["last_name"].ToString(); Label8.Text = dr["password"].ToString(); Label10.Text = dr["gender"].ToString(); Label12.Text = dr["country"].ToString(); Label14.Text = dr["state"].ToString(); Label16.Text = dr["city"].ToString(); Label18.Text = dr["dob"].ToString(); Label20.Text = dr["marital_status"].ToString(); Label26.Text = dr["mobile_no"].ToString(); Label27.Text = dr["email_id"].ToString(); Label28.Text = dr["profession"].ToString(); r = dr["image_path"].ToString(); } Label2.Visible = true;
  • 50. E-Learning Label4.Visible = true; Label6.Visible = true; Label8.Visible = true; Label10.Visible = true; Label12.Visible = true; Label14.Visible = true; Label16.Visible = true; Label18.Visible = true; Label20.Visible = true; Label26.Visible = true; Label27.Visible = true; Label28.Visible = true; Image1.ImageUrl = r; } } protected void Button3_Click(object sender, EventArgs e) { /*Binding of ddl*/ ob.ds.Clear(); ob.cmd.CommandText = "select *from country_reg"; ob.adp.Fill(ob.ds,"vt"); DropDownList2.DataSource = ob.ds.Tables["vt"]; DropDownList2.DataTextField = "country_name"; DropDownList2.DataValueField = "country_id"; DropDownList2.DataBind(); if (DropDownList2.Text != "") { ob.ds.Clear(); ob.cmd.CommandText = "select *from states where country_id='"+DropDownList2.SelectedValue+"'"; ob.adp.Fill(ob.ds, "vt"); DropDownList3.DataSource = ob.ds.Tables["vt"]; DropDownList3.DataTextField = "state_name"; DropDownList3.DataValueField = "state_id"; DropDownList3.DataBind(); } if (DropDownList3.Text != "") { ob.ds.Clear(); ob.cmd.CommandText = "select *from cities where state_id='" + DropDownList3.SelectedValue + "'"; ob.adp.Fill(ob.ds, "vt"); DropDownList4.DataSource = ob.ds.Tables["vt"]; DropDownList4.DataTextField = "city_name"; DropDownList4.DataValueField = "city_id"; DropDownList4.DataBind(); } Button3.Visible = false; Button1.Visible = true; Button2.Visible = true; Label2.Visible =true; Label4.Visible = false; Label6.Visible = false; Label8.Visible = false; Label10.Visible = false; Label12.Visible = false; Label14.Visible =false; Label16.Visible = false; Label18.Visible = false; Label20.Visible = false; Label26.Visible = false; Label27.Visible = false; Label28.Visible = false; /*********************/
  • 51. E-Learning TextBox2.Visible = true; TextBox3.Visible = true; TextBox4.Visible = true; TextBox5.Visible = true; TextBox6.Visible = true; RadioButton1.Visible = true; RadioButton2.Visible = true; RadioButton3.Visible = true; RadioButton4.Visible = true; DropDownList1.Visible = true; DropDownList2.Visible = true; DropDownList3.Visible = true; DropDownList4.Visible = true; DropDownList5.Visible = true; DropDownList6.Visible = true; DropDownList7.Visible = true; } protected void Button2_Click(object sender, EventArgs e) { Button1.Visible = false; Button2.Visible = false; Button3.Visible = true; /**********/ Label2.Visible = true; Label4.Visible = true; Label6.Visible = true; Label8.Visible = true; Label10.Visible = true; Label12.Visible = true; Label14.Visible = true; Label16.Visible = true; Label18.Visible = true; Label20.Visible = true; Label26.Visible = true; Label27.Visible = true; Label28.Visible = true; /*********************/ TextBox2.Visible = false; TextBox3.Visible = false; TextBox4.Visible = false; TextBox5.Visible = false; TextBox6.Visible = false; RadioButton1.Visible = false; RadioButton2.Visible = false; RadioButton3.Visible = false; RadioButton4.Visible = false; DropDownList1.Visible = false; DropDownList2.Visible = false; DropDownList3.Visible = false; DropDownList4.Visible = false; DropDownList5.Visible = false; DropDownList6.Visible = false; DropDownList7.Visible = false; } protected void Button1_Click1(object sender, EventArgs e) { TextBox2.Visible = false; TextBox3.Visible = false; TextBox4.Visible = false; TextBox5.Visible = false; TextBox6.Visible = false; RadioButton1.Visible = false; RadioButton2.Visible = false; RadioButton3.Visible = false; RadioButton4.Visible = false; DropDownList1.Visible = false; DropDownList2.Visible = false;
  • 52. E-Learning DropDownList3.Visible = false; DropDownList4.Visible = false; DropDownList5.Visible = false; DropDownList6.Visible = false; DropDownList7.Visible = false; /***************/ string p = ""; if (RadioButton1.Checked) { p = RadioButton1.Text; } else { p = RadioButton2.Text; } string h = ""; if (RadioButton3.Checked) { h = RadioButton3.Text; } else { h = RadioButton4.Text; } string d=DropDownList5.Text+"-"+DropDownList6.Text+"-"+DropDownList7.Text; if(i<1) { ViewState["pass"] = TextBox4.Text; } ob.con.Open(); ob.cmd.CommandText = "update reg_admin set first_name='" + TextBox2.Text + "', last_name='" + TextBox3.Text + "', password='" + ViewState["pass"].ToString() + "',gender='" + p + "',country='" + DropDownList2.SelectedItem.Text + "',state='" + DropDownList3.SelectedItem.Text + "',city='" + DropDownList4.SelectedItem.Text + "',dob='" + d + "', marital_status='" + h + "',mobile_no='" + TextBox5.Text + "',email_id='" + TextBox6.Text + "',profession='" + DropDownList1.SelectedItem.Text + "' "; ob.cmd.ExecuteNonQuery(); ob.con.Close(); ob.ds.Clear(); ob.cmd.CommandText = "select *from reg_admin where user_id='" + Session["Admin"].ToString() + "' "; ob.adp.Fill(ob.ds, "vt"); foreach (DataRow dr in ob.ds.Tables["vt"].Rows) { Label2.Text = dr["user_id"].ToString(); Label4.Text = dr["first_name"].ToString(); Label6.Text = dr["last_name"].ToString(); Label8.Text = dr["password"].ToString(); Label10.Text = dr["gender"].ToString(); Label12.Text = dr["country"].ToString(); Label14.Text = dr["state"].ToString(); Label16.Text = dr["city"].ToString(); Label18.Text = dr["dob"].ToString(); Label20.Text = dr["marital_status"].ToString(); Label26.Text = dr["mobile_no"].ToString(); Label27.Text = dr["email_id"].ToString(); Label28.Text = dr["profession"].ToString(); } /********************/ Label2.Visible = true; Label4.Visible = true; Label6.Visible = true; Label8.Visible = true; Label10.Visible = true; Label12.Visible = true; Label14.Visible = true;
  • 53. E-Learning Label16.Visible = true; Label18.Visible = true; Label20.Visible = true; Label26.Visible = true; Label27.Visible = true; Label28.Visible = true; Button1.Visible = false; Button2.Visible = false; Button3.Visible = true; } protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e) { if (i<1) { ViewState["pass"] = TextBox4.Text; } i = i + 1; ob.ds.Clear(); ob.cmd.CommandText = "select *from states where country_id='" + DropDownList2.SelectedValue + "'"; ob.adp.Fill(ob.ds, "vt"); DropDownList3.DataSource = ob.ds.Tables["vt"]; DropDownList3.DataTextField = "state_name"; DropDownList3.DataValueField = "state_id"; DropDownList3.DataBind(); if (DropDownList3.Text != "") { ob.ds.Clear(); ob.cmd.CommandText = "select *from cities where state_id='" + DropDownList3.SelectedValue + "'"; ob.adp.Fill(ob.ds, "vt"); DropDownList4.DataSource = ob.ds.Tables["vt"]; DropDownList4.DataTextField = "city_name"; DropDownList4.DataValueField = "city_id"; DropDownList4.DataBind(); } else { DropDownList4.Items.Clear(); } } protected void DropDownList3_SelectedIndexChanged(object sender, EventArgs e) { ob.ds.Clear(); ob.cmd.CommandText = "select *from cities where state_id='" + DropDownList3.SelectedValue + "'"; ob.adp.Fill(ob.ds, "vt"); DropDownList4.DataSource = ob.ds.Tables["vt"]; DropDownList4.DataTextField = "city_name"; DropDownList4.DataValueField = "city_id"; DropDownList4.DataBind(); } protected void TextBox4_TextChanged(object sender, EventArgs e) { } } (c) Inbox: using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web;
  • 54. E-Learning 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_Inbox : System.Web.UI.Page { myClass1 ob = new myClass1(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ob.ds.Clear(); ob.cmd.CommandText = "select *from reg_admin where user_id='" + Session["Admin"].ToString() + "' "; ob.adp.Fill(ob.ds, "vt"); foreach (DataRow dr in ob.ds.Tables["vt"].Rows) { Image1.ImageUrl = dr["image_path"].ToString(); } //*************** MultiView1.SetActiveView(View1); ob.gridBinding(GridView1, "select *from inbox where recieverId='" + Session["Admin"].ToString() + "' and status='True'"); } } protected void Button1_Click(object sender, EventArgs e) { int i = 0; if (DropDownList1.SelectedIndex.ToString() == "0") { i = 1; } if (TextBox2.Text =="") { i = 1; } if (TextBox3.Text == "") { i = 1; } if (i == 1) { Label35.Text = "Invalid Message"; Label35.Visible = true; } else { ob.ds.Clear(); ob.cmd.CommandText = "select *from inbox where message_text='" + TextBox2.Text + "' and senderType='Admin' "; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { Label35.Text = "Already Sent"; Label35.Visible = true; } else { ob.ds.Clear(); ob.cmd.CommandText = "select *from inbox"; ob.adp.Fill(ob.ds, "vt"); ob.dr = ob.ds.Tables["vt"].NewRow(); ob.dr["recieverId"] = DropDownList2.SelectedItem.Text; ob.dr["senderType"] = "Admin"; ob.dr["senderId"] = Session["Admin"].ToString(); ob.dr["subject"] = TextBox3.Text;
  • 55. E-Learning ob.dr["message_text"] = TextBox2.Text; ob.dr["date"] = System.DateTime.Now.ToShortDateString(); ob.dr["status"] = "True"; ob.ds.Tables["vt"].Rows.Add(ob.dr); ob.scb.DataAdapter = ob.adp; ob.adp.Update(ob.ds.Tables["vt"]); Label35.Text = "Successfull"; Label35.Visible = true; } } } protected void Button2_Click(object sender, EventArgs e) { MultiView1.SetActiveView(View1); TextBox2.Text = ""; TextBox3.Text = ""; } (d) Join Chatting: 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_gotochat : System.Web.UI.Page { static int f = 0; myClass1 ob = new myClass1(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ob.ds.Clear(); ob.cmd.CommandText = "select *from reg_admin where user_id='" + Session["Admin"].ToString() + "'"; ob.adp.Fill(ob.ds, "vt"); foreach (DataRow dr in ob.ds.Tables["vt"].Rows) { Label26.Text= dr["city"].ToString(); Image1.ImageUrl = dr["image_path"].ToString(); } Label25.Text = Session["Admin"].ToString(); if(DropDownList5.SelectedItem.Text=="Faculties") { Label28.Text = "Present Faculties"; Label28.Visible = true; Label29.Text = "Absent Faculties"; Label29.Visible = true; ob.gridBinding(GridView1, "select *from reg_faculty where onlineStatus='True' and status='True'"); ob.gridBinding(GridView2, "select *from reg_faculty where onlineStatus='False' and status='True'"); } if (DropDownList2.SelectedItem.Text == "Students") { ob.ddlBinding(DropDownList3, "select *from faculty_allotment", "coarse_name", ""); ob.ddlBinding(DropDownList4, "select *from reg_student where onlineStatus='True' and status='True' and course_applied='" + DropDownList3.SelectedItem.Text + "'", "user_id", ""); }}
  • 56. E-Learning (e) Create Course: 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_createCourses : System.Web.UI.Page { myClass1 ob = new myClass1(); protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { int i = 0; Label9.Visible = false; Label10.Visible = false; ob.ds.Clear(); ob.cmd.CommandText = "select *from coarse1 where coarse_code='" + TextBox2.Text + "'"; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { Label9.Text = "Not Available"; Label9.Visible = true; i = 1; } ob.ds.Clear(); ob.cmd.CommandText = "select *from coarse1 where coarse_name='" + TextBox1.Text + "'"; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { Label10.Text = "Not Available"; Label10.Visible = true; i = 1; } if (i != 1) { ob.ds.Clear(); ob.cmd.CommandText = "select *from coarse1"; ob.adp.Fill(ob.ds, "vt"); ob.dr = ob.ds.Tables["vt"].NewRow(); ob.dr["coarse_code"] = TextBox2.Text.Trim(); ob.dr["coarse_name"] = TextBox1.Text; ob.dr["coarse_duration"] = DropDownList1.Text; ob.dr["fee"] = TextBox3.Text; ob.dr["image_path"] = ViewState["image_path"].ToString(); ob.dr["status"] = "False"; ob.ds.Tables["vt"].Rows.Add(ob.dr); ob.scb.DataAdapter = ob.adp; ob.adp.Update(ob.ds.Tables["vt"]); Label7.Text = TextBox1.Text + " " + "Added"; Label7.Visible = true; } } }
  • 57. E-Learning (f) View All Courses: 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_ViewAllCourses : System.Web.UI.Page { myClass1 ob = new myClass1(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ob.ds.Clear(); ob.cmd.CommandText = "select *from coarse1"; ob.adp.Fill(ob.ds,"vt"); DataList1.DataSource = ob.ds.Tables["vt"]; DataList1.DataBind(); ob.ddlBinding(DropDownList1, "select *from coarse1", "coarse_code", ""); } } protected void Button1_Click(object sender, EventArgs e) { Label3.Visible = false; ob.con.Open(); ob.cmd.CommandText = "delete from coarse1 where coarse_code='" + DropDownList1.Text + "'"; ob.cmd.ExecuteNonQuery(); ob.con.Close(); Label3.Text = "Successfull"; Label3.Visible = true; Response.Redirect("ViewAllCourses.aspx"); } } (g)View All Students: 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_Student_ViewAll : System.Web.UI.Page { myClass1 ob = new myClass1(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ob.gridBinding(GridView1, "select *from reg_student where status='True'"); } } }
  • 58. E-Learning (h)View Attendence: 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_viewAttendence : System.Web.UI.Page { myClass1 ob = new myClass1(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ob.ddlBinding(DropDownList1, "select *from faculty_allotment", "coarse_name", ""); ob.ddlBinding(DropDownList2, "select * from reg_student where course_applied='" + DropDownList1.SelectedItem.Text + "'", "user_id", ""); if (DropDownList2.Text != "") { Label4.Text = DropDownList2.SelectedItem.Text; ob.ds.Clear(); ob.cmd.CommandText = "select *from attendence where student_name='" + DropDownList2.SelectedItem.Text + "'"; ob.adp.Fill(ob.ds, "vt"); foreach (DataRow dr in ob.ds.Tables["vt"].Rows) { Label6.Text = dr["classtime"].ToString(); } ob.gridBinding(GridView1, "select *from attendence where student_name='" + DropDownList2.SelectedItem.Text + "'"); } Label5.Text = DropDownList1.SelectedItem.Text; } } protected void Button1_Click(object sender, EventArgs e) { ob.ds.Clear(); ob.cmd.CommandText = "select *from attendence where student_name='" + Label4.Text + "' and coarse_name='" + Label5.Text + "' and status='Present' "; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { Label12.Text = "= " + Convert.ToString(ob.ds.Tables["vt"].Rows.Count) + " Days"; Label12.Visible = true; } else { Label12.Text = "= " + "0" + " Days"; Label12.Visible = true; }}} (i) View All Faculties: using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security;
  • 59. E-Learning 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_Faculties_ViewAll : System.Web.UI.Page { myClass1 ob = new myClass1(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ob.gridBinding(GridView1, "select *from reg_faculty where status='True'"); } } } (j) View Feedback: 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_ViewFeedback : System.Web.UI.Page { myClass1 ob = new myClass1(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ob.gridBinding(GridView1, "select *from feedback where status='True' and reciever_name='" + Session["Admin"].ToString() + "' and sender_type='Student' and reciever_type='Admin'"); ob.gridBinding(GridView2, "select *from feedback where status='True' and reciever_name='" + Session["Admin"].ToString() + "' and sender_type='Faculty' and reciever_type='Admin' "); MultiView1.Visible = true; MultiView1.SetActiveView(View1); } } protected void Faculty_delete_all(object sender,EventArgs e) { CheckBox cc; Label l; foreach (GridViewRow gr in GridView2.Rows) { cc = (CheckBox)gr.FindControl("chkchild2"); if (cc.Checked) { l = (Label)gr.FindControl("lbl12"); ob.con.Open(); ob.cmd.CommandText = "delete from feedback where msg='" + l.Text + "' and sender_type='Faculty' and reciever_type='Admin' "; ob.cmd.ExecuteNonQuery(); ob.con.Close(); }
  • 60. E-Learning } ob.gridBinding(GridView2, "select *from feedback where status='True' and reciever_name='" + Session["Admin"].ToString() + "' and sender_type='Faculty' and reciever_type='Admin'"); } protected void view_all(object sender, EventArgs e) { ob.gridBinding(GridView1, "select *from feedback where reciever_name='" + Session["Admin"].ToString() + "' and sender_type='Student' and reciever_type='Admin'"); } protected void LinkButton2_Click(object sender, EventArgs e) { MultiView1.Visible = true; MultiView1.SetActiveView(View2); } } Faculty Section: (a)Home Page: 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 faculty_welcome_faculty_ : System.Web.UI.Page { myClass1 ob = new myClass1(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ob.ds.Clear(); ob.cmd.CommandText = "select *from reg_faculty where user_id='" + Session["Faculty"].ToString() + "' "; ob.adp.Fill(ob.ds, "vt"); foreach (DataRow dr in ob.ds.Tables["vt"].Rows) { Image1.ImageUrl=dr["image_path"].ToString(); Label1.Text = dr["first_name"].ToString(); Label2.Text = dr["city"].ToString(); } /********************/ ob.gridBinding(GridView1, "select *from announcement where tooUser='Faculty' order by date desc"); } } protected void Button1_Click(object sender, EventArgs e) { ob.ds.Clear(); ob.cmd.CommandText = "select *from announcement where tooUser='Student' and anncmntsText='" + TextBox1.Text + "'"; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { Label4.Text = "Already Sent"; Label4.Visible = true; } else {
  • 61. E-Learning ob.con.Open(); ob.cmd.CommandText="insert into announcement values('Student','Faculty','" +Session["Faculty"].ToString()+"','"+TextBox1.Text+"','" + System.DateTime.Now.ToShortDateString() + "')"; ob.cmd.ExecuteNonQuery(); ob.con.Close(); Label4.Text = "Successfull"; Label4.Visible = true; } } (b)View Profile: 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 faculty_ViewProfile : System.Web.UI.Page { myClass1 ob = new myClass1(); int i = 0; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string r = ""; ob.ds.Clear(); ob.cmd.CommandText = "select *from reg_faculty where user_id='" + Session["Faculty"].ToString() + "' "; ob.adp.Fill(ob.ds, "vt"); foreach (DataRow dr in ob.ds.Tables["vt"].Rows) { Label2.Text = dr["user_id"].ToString(); Label4.Text = dr["first_name"].ToString(); Label6.Text = dr["last_name"].ToString(); Label8.Text = dr["password"].ToString(); Label10.Text = dr["gender"].ToString(); Label12.Text = dr["country"].ToString(); Label14.Text = dr["state"].ToString(); Label16.Text = dr["city"].ToString(); Label18.Text = dr["dob"].ToString(); Label20.Text = dr["marital_status"].ToString(); Label26.Text = dr["mobile_no"].ToString(); Label27.Text = dr["email_id"].ToString(); Label28.Text = dr["profession"].ToString(); r = dr["image_path"].ToString(); } Image1.ImageUrl = r; } } protected void Button1_Click1(object sender, EventArgs e) { string p = ""; if (RadioButton1.Checked) { p = RadioButton1.Text; } else {
  • 62. E-Learning p = RadioButton2.Text; } string h = ""; if (RadioButton3.Checked) { h = RadioButton3.Text; } else { h = RadioButton4.Text; } string d = DropDownList5.Text + "-" + DropDownList6.Text + "-" + DropDownList7.Text; if (i < 1) { ViewState["pass"] = TextBox4.Text; } ob.con.Open(); ob.cmd.CommandText = "update reg_faculty set first_name='" + TextBox2.Text + "', last_name='" + TextBox3.Text + "', password='" + ViewState["pass"].ToString() + "',gender='" + p + "',country='" + DropDownList2.SelectedItem.Text + "',state='" + DropDownList3.SelectedItem.Text + "',city='" + DropDownList4.SelectedItem.Text + "',dob='" + d + "', marital_status='" + h + "',mobile_no='" + TextBox5.Text + "',email_id='" + TextBox6.Text + "',profession='" + DropDownList1.SelectedItem.Text + "' "; ob.cmd.ExecuteNonQuery(); ob.con.Close(); ob.ds.Clear(); ob.cmd.CommandText = "select *from reg_faculty where user_id='" + Session["Faculty"].ToString() + "' "; ob.adp.Fill(ob.ds, "vt"); foreach (DataRow dr in ob.ds.Tables["vt"].Rows) { Label2.Text = dr["user_id"].ToString(); Label4.Text = dr["first_name"].ToString(); Label6.Text = dr["last_name"].ToString(); Label8.Text = dr["password"].ToString(); Label10.Text = dr["gender"].ToString(); Label12.Text = dr["country"].ToString(); Label14.Text = dr["state"].ToString(); Label16.Text = dr["city"].ToString(); Label18.Text = dr["dob"].ToString(); Label20.Text = dr["marital_status"].ToString(); Label26.Text = dr["mobile_no"].ToString(); Label27.Text = dr["email_id"].ToString(); Label28.Text = dr["profession"].ToString(); } } protected void Button2_Click(object sender, EventArgs e) { Button1.Visible = false; Button2.Visible = false; Button3.Visible = true; /**********/ /*********************/ } protected void Button3_Click(object sender, EventArgs e) { /*Binding of ddl*/ ob.ds.Clear(); ob.cmd.CommandText = "select *from country_reg"; ob.adp.Fill(ob.ds, "vt"); DropDownList2.DataSource = ob.ds.Tables["vt"]; DropDownList2.DataTextField = "country_name"; DropDownList2.DataValueField = "country_id"; DropDownList2.DataBind();
  • 63. E-Learning if (DropDownList2.Text != "") { ob.ds.Clear(); ob.cmd.CommandText = "select *from states where country_id='" + DropDownList2.SelectedValue + "'"; ob.adp.Fill(ob.ds, "vt"); DropDownList3.DataSource = ob.ds.Tables["vt"]; DropDownList3.DataTextField = "state_name"; DropDownList3.DataValueField = "state_id"; DropDownList3.DataBind(); } if (DropDownList3.Text != "") { ob.ds.Clear(); ob.cmd.CommandText = "select *from cities where state_id='" + DropDownList3.SelectedValue + "'"; ob.adp.Fill(ob.ds, "vt"); DropDownList4.DataSource = ob.ds.Tables["vt"]; DropDownList4.DataTextField = "city_name"; DropDownList4.DataValueField = "city_id"; DropDownList4.DataBind(); } } protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e) { string p=TextBox4.Text; TextBox4.Attributes.Add("value", p); if (i < 1) { ViewState["pass"] = TextBox4.Text; } i = i + 1; ob.ds.Clear(); ob.cmd.CommandText = "select *from states where country_id='" + DropDownList2.SelectedValue + "'"; ob.adp.Fill(ob.ds, "vt"); DropDownList3.DataSource = ob.ds.Tables["vt"]; DropDownList3.DataTextField = "state_name"; DropDownList3.DataValueField = "state_id"; DropDownList3.DataBind(); if (DropDownList3.Text != "") { ob.ds.Clear(); ob.cmd.CommandText = "select *from cities where state_id='" + DropDownList3.SelectedValue + "'"; ob.adp.Fill(ob.ds, "vt"); DropDownList4.DataSource = ob.ds.Tables["vt"]; DropDownList4.DataTextField = "city_name"; DropDownList4.DataValueField = "city_id"; DropDownList4.DataBind(); } else { DropDownList4.Items.Clear(); } } protected void DropDownList3_SelectedIndexChanged(object sender, EventArgs e) { ob.ds.Clear(); ob.cmd.CommandText = "select *from cities where state_id='" + DropDownList3.SelectedValue + "'";
  • 64. E-Learning ob.adp.Fill(ob.ds, "vt"); DropDownList4.DataSource = ob.ds.Tables["vt"]; DropDownList4.DataTextField = "city_name"; DropDownList4.DataValueField = "city_id"; DropDownList4.DataBind(); } } (c) Inbox: 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 faculty_Inbox : System.Web.UI.Page { myClass1 ob = new myClass1(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ob.ds.Clear(); ob.cmd.CommandText = "select *from reg_faculty where user_id='" + Session["Faculty"].ToString() + "' "; ob.adp.Fill(ob.ds, "vt"); foreach (DataRow dr in ob.ds.Tables["vt"].Rows) { Image1.ImageUrl = dr["image_path"].ToString(); } //*************** MultiView1.SetActiveView(View1); ob.gridBinding(GridView1, "select *from inbox where recieverId='" + Session["Faculty"].ToString() + "' and status='True'"); } } protected void delete_all(object sender, EventArgs e) { CheckBox cc; Label l; foreach (GridViewRow gr in GridView1.Rows) { cc = (CheckBox)gr.FindControl("chkchild"); if (cc.Checked == true) { l = (Label)gr.FindControl("label34"); ob.con.Open(); ob.cmd.CommandText = "delete from inbox where message_text='" + l.Text + "'"; ob.cmd.ExecuteNonQuery(); ob.con.Close(); } } ob.gridBinding(GridView1, "select *from inbox where recieverId='" + Session["Faculty"].ToString() + "' and status='True'"); } protected void Button2_Click(object sender, EventArgs e) { MultiView1.SetActiveView(View1);
  • 65. E-Learning TextBox2.Text = ""; TextBox3.Text = ""; } protected void Button1_Click(object sender, EventArgs e) { int i = 0; if (DropDownList1.SelectedIndex.ToString() == "0") { i = 1; } if (TextBox2.Text =="") { i = 1; } if (TextBox3.Text == "") { i = 1; } if (i == 1) { Label35.Text = "Invalid Message"; Label35.Visible = true; } else { ob.ds.Clear(); ob.cmd.CommandText = "select *from inbox where message_text='" + TextBox2.Text + "' and senderType='Faculty' "; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { Label35.Text = "Already Sent"; Label35.Visible = true; } else { ob.ds.Clear(); ob.cmd.CommandText = "select *from inbox"; ob.adp.Fill(ob.ds, "vt"); ob.dr = ob.ds.Tables["vt"].NewRow(); ob.dr["recieverId"] = DropDownList2.SelectedItem.Text; ob.dr["senderType"] = "Faculty"; ob.dr["senderId"] = Session["Faculty"].ToString(); ob.dr["subject"] = TextBox3.Text; ob.dr["message_text"] = TextBox2.Text; ob.dr["date"] = System.DateTime.Now.ToShortDateString(); ob.dr["status"] = "True"; ob.ds.Tables["vt"].Rows.Add(ob.dr); ob.scb.DataAdapter = ob.adp; ob.adp.Update(ob.ds.Tables["vt"]); Label35.Text = "Successfull"; Label35.Visible = true; } } } protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { Label35.Visible = false; if (DropDownList1.SelectedIndex.ToString() == "0") { DropDownList2.Items.Clear(); } if (DropDownList1.SelectedItem.Text == "Student") { ob.ddlBinding(DropDownList2, "select *from reg_student where status='True'", "user_id", "");
  • 66. E-Learning } if (DropDownList1.SelectedItem.Text == "Admin") { ob.ddlBinding(DropDownList2, "select *from reg_admin", "user_id", ""); } if (DropDownList1.SelectedItem.Text == "Faculty") { ob.ddlBinding(DropDownList2, "select *from reg_faculty", "user_id", ""); } } protected void LinkButton1_Click(object sender, EventArgs e) { MultiView1.Visible = true; MultiView1.SetActiveView(View2); } protected void LinkButton2_Click(object sender, EventArgs e) { MultiView1.Visible = true; MultiView1.SetActiveView(View1); } protected void select_all(object sender, EventArgs e) { CheckBox ch, cc; ch = (CheckBox)GridView1.HeaderRow.FindControl("chkhead"); if (ch.Checked) { foreach (GridViewRow gr in GridView1.Rows) { cc = (CheckBox)gr.FindControl("chkchild"); cc.Checked = true; } } else { foreach (GridViewRow gr in GridView1.Rows) { cc = (CheckBox)gr.FindControl("chkchild"); cc.Checked = false; } } } protected void do_delete(object sender, GridViewDeleteEventArgs e) { GridViewRow g = (GridViewRow)GridView1.Rows[e.RowIndex]; Label l; l = (Label)g.FindControl("label34"); ob.con.Open(); ob.cmd.CommandText = "delete from inbox where message_text='" + l.Text + "'"; ob.cmd.ExecuteNonQuery(); ob.con.Close(); ob.gridBinding(GridView1, "select *from inbox where recieverId='" + Session["Faculty"].ToString() + "' and status='True'"); } } (d)My Class Time: using System; using System.Collections;
  • 67. E-Learning 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 faculty_MyClassTime : System.Web.UI.Page { myClass1 ob = new myClass1(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ob.ds.Clear(); ob.cmd.CommandText = "select *from faculty_allotment where faculty_name='" + Session["Faculty"].ToString() + "'"; ob.adp.Fill(ob.ds,"vt"); foreach (DataRow dr in ob.ds.Tables["vt"].Rows) { Label1.Text=dr["class_time"].ToString(); Label1.Visible = true; } ob.gridBinding(GridView1, "select *from faculty_allotment"); }}} (e) Upload Contents: 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 faculty_UploadCoarseContents : System.Web.UI.Page { myClass1 ob = new myClass1(); protected void Page_Load(object sender, EventArgs e) { if(!IsPostBack) { RadioButton1.Checked = true; MultiView1.SetActiveView(View1); ob.ddlBinding(DropDownList2, "select *from coarse1", "coarse_code",""); ob.ddlBinding(DropDownList3, "select *from coarse1 where coarse_code='" + DropDownList2.Text + "'", "coarse_name", ""); } } protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e) { ob.ddlBinding(DropDownList3, "select *from coarse1 where coarse_code='" + DropDownList2.Text + "'", "coarse_name", ""); } protected void Button1_Click(object sender, EventArgs e) { FileUpload1.SaveAs(Server.MapPath("~/faculty/contents/" + ViewState["p1"].ToString()));
  • 68. E-Learning Label9.Visible = false; Label10.Visible = false; ob.ds.Clear(); ob.cmd.CommandText = "select *from upload_course where book_name='" + TextBox1.Text + "' and content_type='E-Books' "; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { Label13.Text = "Already Added"; Label13.Visible = true; Label7.Visible = false; } else { ob.ds.Clear(); ob.cmd.CommandText = "select *from upload_course"; ob.adp.Fill(ob.ds, "vt"); ob.dr = ob.ds.Tables["vt"].NewRow(); ob.dr["content_type"] = "E-Books"; ob.dr["course_code"] = DropDownList2.Text; ob.dr["course_name"] = DropDownList3.Text; ob.dr["book_name"] = TextBox1.Text; ob.dr["content_path"] = "~/faculty/contents/" + ViewState["p1"].ToString(); ob.dr["contentImage_path"] = "~/faculty/image_content/" + ViewState["p2"].ToString(); ob.ds.Tables["vt"].Rows.Add(ob.dr); ob.scb.DataAdapter = ob.adp; ob.adp.Update(ob.ds.Tables["vt"]); Label7.Text = TextBox1.Text+" "+"Added"; Label7.Visible = true; Label13.Visible = false; } } protected void Button2_Click(object sender, EventArgs e) { Image1.Visible = true; ViewState["p1"] = FileUpload1.FileName; ViewState["p2"] = FileUpload2.FileName; FileUpload2.SaveAs(Server.MapPath("~/faculty/image_content/" + ViewState["p2"].ToString())); Image1.ImageUrl = "~/faculty/image_content/" + ViewState["p2"].ToString(); } protected void RadioButton2_CheckedChanged(object sender, EventArgs e) { MultiView1.SetActiveView(View2); ob.ddlBinding(DropDownList4, "select *from coarse1", "coarse_code", ""); ob.ddlBinding(DropDownList5, "select *from coarse1 where coarse_code='" + DropDownList2.Text + "'", "coarse_name", ""); } protected void RadioButton1_CheckedChanged(object sender, EventArgs e) { MultiView1.SetActiveView(View1); } protected void DropDownList4_SelectedIndexChanged(object sender, EventArgs e) { ob.ddlBinding(DropDownList5, "select *from coarse1 where coarse_code='" + DropDownList4.Text + "'", "coarse_name", ""); } protected void DropDownList5_SelectedIndexChanged(object sender, EventArgs e) { } protected void preview_paper(object sender, EventArgs e) {
  • 69. E-Learning Image2.Visible = true; ViewState["p1"] = FileUpload3.FileName; ViewState["p2"] = FileUpload4.FileName; FileUpload4.SaveAs(Server.MapPath("~/faculty/image_content/" + ViewState["p2"].ToString())); Image2.ImageUrl = "~/faculty/image_content/" + ViewState["p2"].ToString(); } protected void save_paper(object sender, EventArgs e) { FileUpload3.SaveAs(Server.MapPath("~/faculty/contents/" + ViewState["p1"].ToString())); Label16.Visible = false; Label18.Visible = false; ob.ds.Clear(); ob.cmd.CommandText = "select *from upload_course where book_name='" + TextBox2.Text + "' and content_type='Questionpaper'"; ob.adp.Fill(ob.ds, "vt"); if (ob.ds.Tables["vt"].Rows.Count > 0) { Label20.Text = "Already Added"; Label20.Visible = true; Label23.Visible = false; } else { ob.ds.Clear(); ob.cmd.CommandText = "select *from upload_course"; ob.adp.Fill(ob.ds, "vt"); ob.dr = ob.ds.Tables["vt"].NewRow(); ob.dr["content_type"] = "Questionpaper"; ob.dr["course_code"] = DropDownList4.Text; ob.dr["course_name"] = DropDownList5.Text; ob.dr["book_name"] = TextBox2.Text; ob.dr["content_path"] = "~/faculty/contents/" + ViewState["p1"].ToString(); ob.dr["contentImage_path"] = "~/faculty/image_content/" + ViewState["p2"].ToString(); ob.ds.Tables["vt"].Rows.Add(ob.dr); ob.scb.DataAdapter = ob.adp; ob.adp.Update(ob.ds.Tables["vt"]); Label23.Text = TextBox2.Text + " " + "Added"; Label23.Visible = true; Label20.Visible = false; } } } (f) View All e-Books: 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 faculty_ViewAllContents : System.Web.UI.Page { myClass1 ob = new myClass1(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ob.datalist_binding(DataList1,"select *from upload_course where content_type='E-Books'"); ob.ddlBinding(DropDownList1, "select *from upload_course where content_type='E- Books'", "book_name", ""); }
  • 70. E-Learning } protected void Button1_Click(object sender, EventArgs e) { Label3.Visible = false; ob.con.Open(); ob.cmd.CommandText="delete from upload_course where book_name='" +DropDownList1.Text +"' and content_type='E-Books'"; ob.cmd.ExecuteNonQuery(); ob.con.Close(); Label3.Text = "Successfull"; Label3.Visible = true; ob.datalist_binding(DataList1, "select *from upload_course where content_type='E-Books'"); ob.ddlBinding(DropDownList1, "select *from upload_course where content_type='E-Books'", "book_name", ""); } protected void DataList1_SelectedIndexChanged(object sender, EventArgs e) { } } (g)View Question Papers: 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 faculty_viewQuesPapers : System.Web.UI.Page { myClass1 ob = new myClass1(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ob.datalist_binding(DataList1, "select * from upload_course where content_type='Questionpaper'"); ob.ddlBinding(DropDownList1, "select *from upload_course where content_type='Questionpaper'", "book_name", ""); } } protected void Button1_Click(object sender, EventArgs e) { Label3.Visible = false; ob.con.Open(); ob.cmd.CommandText = "delete from upload_course where book_name='" + DropDownList1.Text + "' and content_type='Questionpaper'"; ob.cmd.ExecuteNonQuery(); ob.con.Close(); Label3.Text = "Successfull"; Label3.Visible = true; ob.datalist_binding(DataList1, "select *from upload_course where content_type='Questionpaper'"); ob.ddlBinding(DropDownList1, "select *from upload_course where content_type='Questionpaper'", "book_name", "");
  • 71. E-Learning } } (h)View All Courses: 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 faculty_ViewAllCourses : System.Web.UI.Page { myClass1 ob = new myClass1(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ob.ds.Clear(); ob.cmd.CommandText = "select *from coarse1"; ob.adp.Fill(ob.ds, "vt"); DataList1.DataSource = ob.ds.Tables["vt"]; DataList1.DataBind(); } } } (i) Go To Class: 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 faculty_JoinTeaching : System.Web.UI.Page { myClass1 ob = new myClass1(); static int q = 0; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ob.ds.Clear(); ob.cmd.CommandText = "select *from faculty_allotment where faculty_name='" + Session["Faculty"].ToString() + "'"; ob.adp.Fill(ob.ds,"vt"); foreach (DataRow dr in ob.ds.Tables["vt"].Rows) { ViewState["crse"]=dr["coarse_name"].ToString(); Image1.ImageUrl = dr["img_path"].ToString(); ViewState["classTime"]=dr["class_time"].ToString(); Label26.Text = ViewState["crse"].ToString(); } Label25.Text = Session["Faculty"].ToString(); ob.gridBinding(GridView1, "select *from reg_student where course_applied='" + ViewState["crse"].ToString() + "' and onlineStatus='True' and status='True'");