Project Report
Project Report
SUBMITTED BY
MITUL VOHRA
I.T
039
03914803113
ACKNOWLEDGEMENT
On the very outset of this report, I would like to extend my sincere
obligation towards all the personages who have helped me in this endeavor.
Without their active guidance, help, cooperation & encouragement, I would
not have made headway in the project.
The training opportunity I had with Aptech was a great chance for learning
and professional development. I extend my gratitude to Aptech for giving
me this opportunity. During my summer training, the staff at Aptech was
very helpful and extended their valuable guidance and help whenever
required.
I express my deepest thanks to Mr. Narendra Kr Sharma for taking part in
useful decision & giving necessary advices and guidance and arranged all
facilities to make life easier. I choose this moment to acknowledge his
contribution gratefully. I also thank who helped me by sharing her vast
experience and giving valuable direction during my work term.
I am thankful to my fellow trainees Rohit Sharma and Dhruv Sharma for
great cooperation and friendly support during my term.
I express my deepest thanks to //College Faculty// who in spite of being very
busy with his duties, took time out to guide and keep me on the right path.
I would like to thank MAIT, GGSIP University, Rohini for introducing me to
this great opportunity in which I have developed myself both academically,
professionally and socially.
Any omission in the brief acknowledgement does not mean a lack of
gratitude.
Thanking You,
Mitul Vohra
(03914803113)
DECLARATION
Mitul Vohra
(03914803113 )
SIGNATURE
LIST OF ABBREVIATIONS
The following are the list of conventions and acronyms used in this
document and the project as well:
C#- C Sharp
JS-JavaScript
TABLE OF CONTENTS
1. Preface
2. Organization Introduction
3. Project Review
18
3.1. Introduction
18
21
22
3.4. Database 23
3.5. E-R Diagram---------------------------------------------------------------------------------24
7.6 Project Work
25
7.6.1. Homepage
7.6.2. Login
25
26
7.6.3. Discussion
27
7.6.4. Contact 28
7.6.5. About
29
7.6.6. Question
30
7.6.7. Tutorial 31
7.6.8. Sign Up
32
7.6.9. My profile
33
7.6.10. Admin 34
8. Conclusion 35
9. Bibliography
36
10. Certificate 37
PREFACE
Learning is a very complex process. Not only a student requires the right
material to learn but he/she also requires expert guidance to learn and
consequently perform efficiently. He requires active participation of not only
himself but also his peers who in the process help him in learning efficiently
and show him the right path which they themselves follow.
ORGANIZATION INTRODUCTION
Aptech's reputation as a leader in IT training over the past 29 years & a wide network
of centres all over India make it a sound investment for starting your own business.
Aptech Ltd is the pioneer in IT education franchising with many industry awards for its
expertise & experience in the franchisee business model. It also boasts of training
students in various sectors like animation, hardware & networking, aviation all over the
world.
Aptech offers a variety of courses technology courses for IT students, career
programs for students
wanting to enter the IT sector, certification courses for IT professionals to enhance their
career and basic IT programs for school students, housewives/senior citizens etc.
TRAINING DESCRIPTION
INTRODUCTION
A website, also written as web site, or simply site, is a set of related web
pages typically served from a single web domain. A website is hosted on at
least one web server, accessible via a network such as the Internet or a
private local area network through an Internet address known as a uniform
resource locator (URL). All publicly accessible websites collectively
constitute the World Wide Web.
Web pages, which are the building blocks of websites, are documents,
typically written in plain text interspersed with formatting instructions of
Hypertext Markup Language (HTML, XHTML). They may incorporate
elements from other websites with suitable markup anchors. Webpages are
accessed and transported with the Hypertext Transfer Protocol (HTTP),
which may optionally employ encryption (HTTP Secure, HTTPS) to provide
security and privacy for the user of the webpage content. The user's
application, often a web browser, renders the page content according to its
HTML markup instructions onto a display terminal.
10
etc.
It allows students to register for an account
11
USERS
Student:
A user is a person who runs the website on his web browser. He is defined by the
various attributes which include his username, Date of Birth, Password, Country of
Origin, Name and Gender.
She/he can simply access the various written programming tutorials presented by
the website without logging in.
The user can also login to the website
Administrator:
An administrator is a user who has special rights above the rights of the normal
user.
She/he can do everything that a normal user can as mentioned above.
Above that She/he also has the following rights:
The admin can revoke the authority of a particular user by deleting his account
from her/his end.
The admin can also grant authority by adding a new user from his end.
The admin can view all the details every user who is registered on the website.
12
DATABASE:
The database of the following project consists of 4 tables organized in the order of their
use:
1. The User table consists of all the information entered by the student at the time
of signup which can be used for further reference.
2. The Faculty table lists all the questions asked by a particular user along with a
question ID and a distinguishing username. It stores all the questions so that it
can be referenced in the future to store the answers or to view the question data.
3. The POST table stores all the answers given by the users for the questions put
forward by their fellow programmers.
AID
1001
QID
101
USERNAME
ajain7447
ANSWER
The <div> tag is
nothing more than a
container unit that
encapsulates other
page elements and
divides the HTML
document into
sections.
USERNAME
ajain7447
COMMENT
It is a good website!!
13
E-R DAIGRAM:
14
1.1 C# (C Sharp)
C# (pronounced as see sharp) is a multi-paradigm programming
language encompassing strong
typing, imperative, declarative, functional,generic, object-oriented (class-based),
and component-oriented programming disciplines. It was developed
by Microsoft within its .NET initiative and later approved as a standard
by Ecma (ECMA-334) and ISO (ISO/IEC 23270:2006). C# is one of the programming
languages designed for the Common Language Infrastructure.
C# is intended to be a simple, modern, general-purpose, object-oriented programming
language. Its development team is led by Anders Hejlsberg. The most recent version is
C# 6.0, which was released on July 20, 2015
The language, and implementations thereof, should provide support for software
engineering principles such as strong type checking, array bounds checking,
detection of attempts to use uninitialized variables, and automatic garbage
collection. Software robustness, durability, and programmer productivity are
important.
1.2 Syntax
The core syntax of C# language is similar to that of other C-style languages such as C,
C++ and Java. In particular:
Curly brackets are used to group statements. Statements are commonly grouped
into methods (functions), methods into classes, and classes into namespaces.
Variables are assigned using an equals sign, but compared using two
consecutive equals signs.
Square brackets are used with arrays, both to declare them and to get a value at
a given index in one of them.
1.3.1 Portability
By design, C# is the programming language that most directly reflects the
underlying Common Language Infrastructure (CLI). Most of its intrinsic types
correspond to value-types implemented by the CLI framework. However, the language
specification does not state the code generation requirements of the compiler: that is, it
16
does not state that a C# compiler must target a Common Language Runtime, or
generate Common Intermediate Language (CIL), or generate any other specific format.
Theoretically, a C# compiler could generate machine code like traditional compilers of
C++ or FORTRAN.
1.3.2 Typing
C# supports strongly typed implicit variable declarations with the keyword var , and
implicitly typed arrays with the keyword new[] followed by a collection initializer.
C# supports a strict Boolean data type, bool . Statements that take conditions, such
as while and if , require an expression of a type that implements the true operator,
such as the Boolean type. While C++ also has a Boolean type, it can be freely
converted to and from integers, and expressions such as if(a) require only that a is
convertible to bool, allowing a to be an int, or a pointer. C# disallows this "integer
meaning true or false" approach, on the grounds that forcing programmers to use
expressions that return exactly bool can prevent certain types of programming
mistakes such as if (a = b) (use of assignment = instead of equality == , which while
not an error in C or C++, will be caught by the compiler anyway).
C# is more type safe than C++. The only implicit conversions by default are those that
are considered safe, such as widening of integers. This is enforced at compile-time,
during JIT, and, in some cases, at runtime. No implicit conversions occur between
Booleans and integers, nor between enumeration members and integers (except for
literal 0, which can be implicitly converted to any enumerated type). Any user-defined
conversion must be explicitly marked as explicit or implicit, unlike C++ copy
constructors and conversion operators, which are both implicit by default.
C# has explicit support for covariance and contravariance in generic types, unlike C++
which has some degree of support for contravariance simply through the semantics of
return types on virtual methods.
Enumeration members are placed in their own scope.
The C# language does not allow for global variables or functions. All methods and
members must be declared within classes. Static members of public classes can
substitute for global variables and functions.
Local variables cannot shadow variables of the enclosing block, unlike C and C++.
17
18
1.3.6 Namespace
A C# namespace provides the same level of code isolation as a Java package or a C+
+ namespace , with very similar rules and features to a package .
1.3.7 Memory access
In C#, memory address pointers can only be used within blocks specifically marked
as unsafe, and programs with unsafe code need appropriate permissions to run. Most
object access is done through safe object references, which always either point to a
"live" object or have the well-defined null value; it is impossible to obtain a reference
to a "dead" object (one that has been garbage collected), or to a random block of
memory. An unsafe pointer can point to an instance of a value-type, array, string, or a
block of memory allocated on a stack. Code that is not marked as unsafe can still store
and manipulate pointers through the System.IntPtr type, but it cannot dereference
them.
Managed memory cannot be explicitly freed; instead, it is automatically garbage
collected. Garbage collection addresses the problem of memory leaks by freeing the
programmer of responsibility for releasing memory that is no longer needed.
1.3.8 Exception
Checked exceptions are not present in C# (in contrast to Java). This has been a
conscious decision based on the issues of scalability and versionability.
1.3.9Polymorphism
Unlike C++, multiple inheritance is not supported by C#, although a class can
implement any number of interfaces. This was a design decision by the language's lead
architect to avoid complication and simplify architectural requirements throughout CLI.
When implementing multiple interfaces that contain a method with the same signature,
C# allows the programmer to implement each method depending on which interface
that method is being called through, or, like Java, allows the programmer to implement
the method once and have that be the single invocation on a call through any of the
class's interfaces.
19
However, C#, unlike Java, supports operator overloading. Only the most commonly
overloaded operators in C++ may be overloaded in C#.
1.3.10 Functional programming
Though primarily an imperative language, C# 2.0 offered limited support for functional
programming through first-class functions and closures in the form of anonymous
delegates. C# 3.0 expanded support for functional programming with the introduction
of a light weight syntax for lambda expressions, extension methods (an affordance for
modules), and a list comprehension syntax in the form of a "query comprehension"
language.
2. ASP.NET
ASP.NET is an open-source server-side Web application framework designed for Web
development to produce dynamic Web pages. It was developed by Microsoft to a
llow programmers to build dynamic web sites, web applications and web services.
It was first released in January 2002 with version 1.0 of the .NET Framework, and is
the
successor to Microsoft's Active Server Pages (ASP) technology. ASP.NET is built on
the Common Language Runtime (CLR), allowing programmers to write ASP.NET code
using
any supported.NET language. The ASP.NET SOAP extension framework allows
ASP.NET
components to process SOAP messages.
2.1 Characteristics
ASP.NET Web pages, known officially as Web Forms, are the main building blocks for
application development in ASP.NET. Web forms are contained in files with a ".aspx"
extension; these files typically contain static (X)HTML markup, as well as markup
defining server-side Web Controls and User Controls where the developers place all the
rc content for the Web page. Additionally, dynamic code, which runs on the server, can
be placed in a page within a block <% -- dynamic code -- %> , which is similar to other
Web development technologies such as PHP, JSP, and ASP. With ASP.NET
Framework 2.0, Microsoft introduced a new code-behind model which allows static
text to remain on the .aspx page, while dynamic code remains in an .aspx.vb or .aspx.cs
or .aspx.fs file (depending on the programming language used).
2.2 Code-behind model
Microsoft recommends dealing with dynamic program code by using the code-behind
model, which places this code in a separate file or in a specially designated script tag.
Code-behind files typically have names like MyPage.aspx.cs or MyPage.aspx.vb while
22
the page file is MyPage.aspx (same filename as the page file (ASPX), but with the final
extension denoting the page language). This practice is automatic in Microsoft Visual
Studio and other IDEs. When using this style of programming, the developer writes
code to respond to different events, like the page being loaded, or a control being
clicked, rather than a procedural walkthrough of the document.
ASP.NET's code-behind model marks a departure from Classic ASP in that it
encourages developers to build applications with separation of presentation and
content in mind. In theory, this would allow a Web designer, for example, to focus on
the design markup with less potential for disturbing the programming code that drives
it.
2.4 Performance
ASP.NET aims for performance benefits over other script-based technologies
(including classic ASP) by compiling the server-side code the first time it is used to one
or more DLL files on theWeb server. These dll files or assemblies contain Microsoft
Intermediate Language (MSIL) for running within the common language runtime; this
provides a performance boost over pure scripted languages and is similar to the
approach used by Python and not dissimilar to java server pages.[16] This compilation
happens automatically the first time a page is requested (which means the developer
need not perform a separate compilation step for pages).
This feature provides the ease of development offered by scripting languages with the
performance benefits of a compiled binary. However, the compilation might cause a
noticeable but short delay to the Web user when the newly edited page is first requested
from the Web server, but will not again unless the page requested is updated further.
The ASPX and other resource files are placed in a virtual host on an Internet
Information Services server (or other compatible ASP.NET servers; see Other
implementations, below). The first time a client requests a page, the .NET Framework
23
parses and compiles the file(s) into a .NET assembly and sends the response;
subsequent requests are served from the DLL files. By default ASP.NET will compile
the entire site in batches of 1000 files upon first request. If the compilation delay is
causing problems, the batch size or the compilation strategy may be tweaked.
Developers can also choose to pre-compile their "codebehind" files before deployment,
using Microsoft Visual Studio, eliminating the need for just-in-time compilation in a
production environment. This also eliminates the need of having the source code on the
Web server. It also supports pre-compile text.
core2duo or higher
RAM
1GB minimum
HARD DISK
KEYBOARD
MONITOR
VGA/SVGA/XGA
( Color Monitor)
SOFTWARE:
BACK END
FRONT END
DATABASE
24
WORKING
1. HOMEPAGE (Default.aspx):
25
Homepage
The Homepage of the website utilizes mdl libraries to build a fast and responsive
website.
It consist of a header menu bar which floats (i.e fixed) when user scrolls the page. It
consists of a menu button on the extreme left which opens a slide-out menu for links to
various pages. On the right we have four button placed which are Browse, Connect,
Register, Contact each having a separate page
An image automatic slider is placed which shows pictures of the institution and
changes between them regularly.
Below the image slider , 3 buttons are placed for quick access and towards the right a
Login Web User Control is placed which is in a separate file and utilizes ASP.NET and
C# to run server side code.
The user has to select the type of login (Student/Faculty) and then provide enroll no or
ID respectively along with the password. Validation controls are placed on both of the
text box to prevent the user from submitting the form with both the textboxes empty.
On click of the button login, the website connects with the database table and searches
for a user with the supplied ID and password, if such a match is found, the server
transfers the user to the respective logged in page. A session object is also created to
keep track of the user status.
If no user exists, then a label controls text is changed to indicate that login was a
failure due to either wrong ID or Password.
26
2. Learn More
About us
Static Page which provides additional information for the institution.
27
3. AFTER LOGIN:
Logged in page
If the log in is successful, the server transfer the user to this page.
This page retains most of the layout of the homepage with the same header but now
instead of register, a logout link is added to the header menu.
28
This page provides all of the functions as a list of buttons, on click of any of the button,
the <div> element of the page is switched. Each button has an associated web user
control.
The default element is the Home. Home consist of basic information and the user image
on the extreme right.
It opens connection with the database and retrieves the information, then it changes the
labels text property to reflect the user information.
4. POSTS:
Posts page
29
By clicking on the POSTS button the div element associated with it is switched and
other are hidden.
This page utilizes two web user controls, one displays posts made by other users to the
current user and the other control allows the logged in user to send message to other
users which can be selected by the dropdown list.
The Posts web user control creates labels dynamically based on count of posts from the
table Posts.
The Send message web user control inserts the message to the table posts on click of
the button.
30
5. CONTACT:
Contact Us page
This page allows guest to get information of the institution and contact the institute by
using the controls provided.
The controls send a mail to the admin of the site with the question and email id of the
guest.
31
6. NOTICES:
Notices Page
When the user clicks on notices button, the div element associated with the button is
made visible.
this page contains a list of all the notices which are retrieved from the Notices table
from the database. The notices are ordered in decreasing order according to the submit
time of the notice.
The user can only see the list of notices but only a faculty can insert a new notice.
32
7. SIGNUP:
Signup page
This page consist of various asp.net controls along with validation controls.
It allows a guest to create an account on the website database. The information asked is
first name, last name, branch, emailId, enroll no, password, confirmation password.
If the account is successfully created, inserted values successfully is displayed to the
user.
33
CONCLUSION
As an undergraduate of the MAIT, GGSIP University, I would like to say that this
training program was an excellent opportunity for me to get to the ground level and
experience things that I would have never learned by simply reading a book. I am
grateful to NIIT Ltd and MAIT, GGSIP University for giving me this wonderful
opportunity. The main objective of the industrial training is to provide an opportunity to
under graduates to identify, observe and practice Java and its applications and develop
real time projects for the same. It is not only to get experience on technical practices
but also to observe management practices and to interact with fellow workers.
The main thing that I have learned through this training is time management skills as
well as self-motivation. When I first started I did not think that I was going to be able
to make myself learn a lot and implement it as aptly as possible. Once I realized what I
had to do, I organized my day and work so that I was not overlapping or wasting my
hours. I learned that I needed to be organized and have questions ready for when it was
the correct time to get feedback. I have gained new knowledge, skills and met many
new people. I got insight into professional practice. I learned the different facets of
creating a live project and working with individuals with different interests. I learnt the
ways of work in an organization, the importance of being punctual, the importance of
maximum commitment, and the importance of team spirit. I increased my interaction
during this period which helped my personality to improve. I learned how to implement
my knowledge in the most appropriate way and learn as much as possible. At last this
training has given me new insights and motivation to pursue my career.
34
BIBLIOGRAPHY
https://en.wikipedia.org/wiki/Database
35