Professional Documents
Culture Documents
PROJECT REPORT
ON
BY
Faiz khan(1504031)
Under Guidance of
Information Technology)
AKNOWLEDGEMENT
I would like to thank my project guide Dr. Mazhar Khaliq for his valuable
guidance and advice inspired us greatly to work in this project. His willingness to
motivate us contributed tremendously to our project.
In addition WE express gratitude to all the faculty member for the guidance and
support rendered to us throughout my academic career as a student in the
University.
Also I would like to take the opportunity to thank my family members for giving
me full support, without whose help the completion of this project report was not
possible.
FAIZ KHAN
(1504031)
INDEX
2. Introduction
3. Modules
4. Project scope
5. Objective
6. Literature survey
7. Requirement Analysis
8. Introduction Of ASP.Net
12. Introduction of C#
23. Coding
24. Testing
30. Bibliography
Project
On
INTRANET MAILING IN VIRTUAL
OFFICE
INTRODUCTION
The ‘VIRTUAL OFFICE’ is an Enterprise Intranet Application that automates and
improves procedures within organizations. It is a useful technology for delineating
the steps that must be taken, the dependencies that must be enforced, and the
approvals that must be obtained during the completion of projects. It keeps track
the information about the employees and also it keeps track of the task assigned to
each employee. The super users of the system are the ‘ADMIN’ and the
‘EMPLOYEES’ of the different departments allocated by the admin in an
organization or company.
Module Description
Administrative Module
Login module
Bulletin board
E-forum
Address book
Administrative Module
In the administrative module administrator the admin may be the owner of the site,
he can create a new employee and can assign a password to them.
Login module
Bulletin Board
The Bulletin board is an important module where all the employees can see the
articles which were putted on notice board. Not only they can view they can also
post their own articles. It just acts like notice board where one can get all the
information about the activities which were going on in all departments. A bulletin
board (pin board, pin board or notice board in British English) is a place where
people can leave public messages, for example, to advertise things to buy or sell,
announce events, or provide information. Bulletin boards are often made of a
material such as cork to facilitate addition and removal of messages or it can be
placed on the computer so people can leave and erase messages for other people to
read and see.
Bulletin boards are particularly prevalent at universities. Many sport dozens, if not
hundreds or thousands of public bulletin boards, used for everything from
advertisements by extracurricular groups and local shops to official notices.
Dormitory corridors, well-trafficked hallways, lobbies, and freestanding kiosks
often have cork boards attached to facilitate the posting of notices. At some
universities, lampposts, bollards, trees, and walls often become impromptu
posturing sites in areas where official boards are sparse in number.
E-Forum
Project management module gives employees task status reports. We can assign a
task to an employee, can view status of all tasks and also can view today’s report of
all tasks. We can allocate the project tasks to various employees in the office.
Project manager can view the employees work details like how many hours have
been completed.
Documents Library
Page. Fill out the fields as completely as possible. Remember, the information you
Provide about the document is used to allow other users (or even yourself) to
search For and find the document later:
1. Document Title - a brief document name.
3. Owner - the user who is currently uploading this document. This field is filled
in automatically by the Virtual Office, which recognizes each user? NOTE: If this
User is not you, you should log out and log in again as yourself.
4. Category - the document category that best fits the document you are uploading.
5. File - click the button to locate the file on your local computer that you wish to
Upload. Filenames should always include a proper 3-letter extension, or users will
have problems trying to download the file. Rename suspicious files before
uploading them to the Virtual Office.
6. Who may view (download) this file - the list of groups you would like to have
access to this file. By default, a document will be accessible to all groups, meaning
that any other user can download the file. You can restrict download of the file to
one or more groups by selecting only those groups from the list. Select and
unselect multiple groups by holding down the "Control" key as you click on each
selection.
7. Who may replace or delete this file - the list of groups you would like to have
the ability to edit or replace this file. By default, a document will be accessible to
"(all groups)", meaning that any other user can edit the file. You can restrict edit
ability of the file to one or more groups by selecting only those groups from the
list. Select and unselect multiple groups by holding down the "Control" key as you
click on each
Project Scope
PROJECT SCOPE
It keeps track the information about the employees and also it keeps track of the
task assigned to each employee. The super users of the system are the ‘ADMIN’
and the ‘EMPLOYEES’ of the different departments allocated by the admin in an
organization or company.
Objective
OBJECTIVE
Objective of the project is to develop an Intra net Mailing application that can
facilitate a communication system between members of a department. Members
can group chat between them and send email with attachment that can be
downloaded. The Application starts with a login page, which is an html file where
the user can
Login to the company’s website where he can access his account details, he can do
his
Work of doing project tasks there, where he can have an access to the company’s
There is link in the page for the Registration of New user and another link for the
forget password for the employees who have forgot their password. After entering
the user details there is an Authentication of the user can be done using login page.
After the login session has been completed he can access to the home page where
all the tasks regarding the employees like view task status, project status and
Bulletin board, E-forum. After doing his work the logout details of the employee
will be stored in the database where we can access those details for further use.
Administration
projects underway within the organization are strategically aligned to the business
and that the important projects are receiving the priority required. It also allows
management to check that the project is being managed effectively.There are many
when investigating, initiating and managing projects. Some of these benefits are:
User role
Project specification
This facility enables the easy sharing of documentation by team members and also
assists in ensuring that the latest version is always centrally available to the team
members. It avoids the unnecessary emailing of large documents to several team
members and the risk that documentation could be mislaid. Up-to-date, relevant
documentation is a critical requirement for a successful project.
Literature Survey
LITERATURE SURVEY
The Virtual office is being character to decrease the wastage of time for the
employee. Employee can interact through online for doing his regular works
which will be done at regular conventional office.
Today’s world is computer world because most of work is doing with the help of
computer. Dependency on computer is behind the few reasons. We cannot easily
manage to store large number of data or information single handily. If we will be
need some information or data in urgency then we cannot manage in manually
these works are very difficult if we cannot use computer.
The cost of using project portal is based on the number of users requiring access to
the portal with annual and monthly payment options available.
• Customization requirements
• Support requirements
This project is started towards systematically automating all the work that is done
manually at present. Their aim is to focus following aspects:
Visualization. Using tools that promote better understanding of the desired end-
product such as visualization and simulation.
Consistent use of templates. Producing a consistent set of models and templates
to document the requirements.
As the existing system increases the paper work and record maintenance tedious
there is a need of new system which makes the record maintenance easy that is the
common requirement the college attendance management system. So the
completion of this project can successfully eliminate the existing problems with the
present system.
SYSTEM ARCHITECTURE
Client/Presentation Tier: This tier includes all the HTML content or forms to be
displayed on the client browser. It is the form which provides the user interface to
end user. Programmer uses this tier to get or set the data back and forth.
Business Logic Layer: In the Business logic tier, the actual processing of the data
and the logic behind the implementation of the application will be present. This tier
can contain a class, which can be used to write the functions, and also works as a
mediator between the presentation tier and data tiers.
Data Tier: Data Tier contains methods and classes that deal with passing and
storing data to the data Storage Layer. Queries or stored procedures are used to
access the data from the database or to perform any operation to the database. It
stores the data passed by the presentation tier.
Is there sufficient support for the project from the implementation? From user? If
the present system is well liked and used to the extent that persons will not be able
to see reasons for change, there may be resistance.
Are current business methods acceptable to the user? If they are not, user may
welcome a change that will bring about a more operational and useful system
Have the user been involved in the planning and development of the project? If
they are involved at the earliest stage of project development, the chances of
resistance can be possibly reduced.
Will the proposed system cause harm? Will it produce poorer result in any case or
area?
Will the performance of staff member fall down after implementation? Issue that
appears to be quite minor at the early stage can grow into major problem after
implementation
The system is developed keeping in mind that it should be user friendly and easy to
operate hence the system is operational feasible.
INTRODUCTION OF
ASP.NET
ASP.NET
ASP.NET is an open-source[2] server-side web application framework designed
for web development to produce dynamic web pages. It was developed
by Microsoft to allow 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.
ASP.NET's successor is ASP.NET Core. It is a re-implementation of ASP.NET as a
modular web framework, together with other frameworks like Entity Framework.
The new framework uses the new open-source .NET Compiler
Platform (codename "Roslyn") and is cross platform. ASP.NET MVC, ASP.NET
Web API, and ASP.NET Web Pages (a platform using only Razor pages) have
merged into a unified MVC 6.[3]
Visual Studio supports 36 different programming languages and allows the code
editor and debugger to support (to varying degrees) nearly any programming
language, provided a language-specific service exists. Built-in languages
include C,[6] C++, C++/CLI, Visual Basic .NET, C#, F#,
[7]
JavaScript, TypeScript, XML, XSLT, HTML and CSS. Support for other
languages such as Python,[8] Ruby, Node.js, and among others is available
via plug-ins. Java (and J#) were supported in the past.
The most basic edition of Visual Studio, the Community edition, is available free
of charge.
Introduction Of
Microsoft
SQL Server
Microsoft SQL Server
Browsers do not display the HTML tags, but use them to render the content
of the page
Example
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>
Example Explained
Introduction of
C#
C#
. It is component oriented.
It is easy to learn.
It is a tructured language.
Boolean Condition
Standard Library
Assembly Versioning
Easy-to-use Generics
Simple Multithreading
1. SIMPLE
7. "==" is used for comparison operation and "=" is used for assignment
operation.
2. MODERN
1. C# has been based according to the current trend and is very powerful and
simple for building interoperable ,scable, robust applications.
2. C# includes built in support to turn any component into a web service that
can be invoked over the internet from any application running on any
platform.
3. OBJECT ORIENTED
int i=1;
string a=i Tostring(); //conversion (or) Boxing
4. TYPE SAFE
5. INTEROPERABILITY
1. C# includes native support for the COM and windows based applications.
2. Allowing restriced use of native pointers.
3. Users no longer have to explicityly implement the unknown and other COM
interfacers, those features are built in.
4. C# allows the users to use pointers as unsafe code blocks to manipulate your
old code.
5. Components from VB NET and other managed code languages and directlyt
be used in C#.
1. .NET has introduced assemblies which are self describing by means of their
manifest. manifest establishes the assembly identity, version, culture and
digital signature etc. Assemblies need not to be register anywhere.
2. To scale our application we delete the old files and updating them with new
ones. No registering of dynamic linking library.
Windows applications
Web applications
Web services
The framework has been designed in such a way that it can be used from any of
the following languages: C#, C++, Visual Basic, Jscript, COBOL, etc. All these
languages can access the framework as well as communicate with each other.
The .Net framework consists of an enormous library of codes used by the client
languages such as C#. Following are some of the components of the .Net
framework:
LINQ
Software Engineering
Paradigm
Software Engineering Paradigm
Software is more than just a program code. A program is an executable code,
which serves some computational purpose. Software is considered to be collection
of executable programming code, associated libraries and documentations.
Software, when made for a specific requirement is called software product.
Engineering on the other hand, is all about developing products, using well-
defined, scientific principles and methods. Software engineering is an
engineering branch associated with development of software product using well-
defined scientific principles, methods and procedures. The outcome of software
engineering is an efficient and reliable software product.
Determine the order of states involved in software development and evolution, and
to establish the transitions criteria for the next stage.
The software engineering paradigm provides the guidance to the software engineer.
The techniques, tools procedures and methods in developing software systems are
heavily dependent on the selected paradigm.
There are common software process tasks, phases and activities that are modeled
by software models. They are heavily affected by selected software paradigms.
These tasks, phases and activities include:
Software Testing and Validation: Activity that assures that customer specifications
are met
System Delivery.
Requirement gathering
Software design
Programming
Design
Maintenance
Programming
Programming Paradigm
This paradigm is related closely to programming aspect of software development.
This includes
Coding
Testing
Integration
Need of Software Engineering
The need of software engineering arises because of higher rate of change in user
requirements and environment on which the software is working.
Cost- As hardware industry has shown its skills and huge manufacturing has
lower down he price of computer and electronic hardware. But the cost of
software remains high if proper process is not adapted.
Development Model
The first formal description of the waterfall model is often cited as a 1970 article
by Winston W. Royce, although Royce did not use the term waterfall in that article.
Royce presented this model as an example of a flawed, non-working model; which
is how the term is generally used in writing about software development—to
describe a critical view of a commonly used software development practice.
The earliest use of the term "waterfall" may have been a 1976 paper by Bell and
Thayer.
In 1985, the United States Department of Defense captured this approach in DOD-
STD-2167A, their standards for working with software development contractors,
which stated that "the contractor shall implement a software development cycle
that includes the following six phases: Preliminary Design, Detailed Design,
Coding and Unit Testing, Integration, and Testing".
In Royce's original waterfall model, the following phases are followed in order:
1. System and software requirements: captured in a product requirements
document
2. Analysis: resulting in models, schema, and business rules
Developer Side:
Operating System Windows 7
Application System IIS 5.4
Database SQL Server 2012
Programming ASP.Net with C#
language
Development IDE Visual Studio 2012
Client Side:
Operating System Any
Web Browser Any
Server side:
Operating system Any
Application Server IIS 5.1
Hardware Interface:
Developer side:
Processor RAM Disk Space
Intel p4 or 2 GB
equivalent 512MB
Client Side:
Intel p4 or 512MB 1 GB
equivalent
Server Side:
Server 2 GB As per the Size
Environment of the required
Data base
Capable Hardware
Communication Interface:
Constraints:
SYSTEM DESIGN
A DFD shows what kind of information will be input to and output from the
system, how the data will advance through the system, and where the data will be
stored. It does not show information about process timing or whether processes
will operate in sequence or in parallel, unlike a traditional
structured flowchart which focuses on control flow, or a UML activity workflow
diagram, which presents both control and data flows as a unified model.
DFD SYMBOLS:
Data Flow
Data Store
Constructing a DFD:
2. The direction of flow is from top to bottom and from left to right. Data
traditionally flow from source to the destination although they may flow
back to the source. One way to indicate this is to draw long flow line back to
a source. An alternative way is to repeat the source symbol as a destination.
Since it is used more than once in the DFD it is marked with a short
diagonal.
3. When a process is exploded into lower level details, they are numbered.
4. The names of data stores and destinations are written in capital letters.
Process and dataflow names have the first letter of each work capitalized.
A DFD typically shows the minimum contents of data store. Each data store should
contain all the data elements that flow in and out.
Questionnaires should contain all the data elements that flow in and out. Missing
interfaces redundancies and like is then accounted for often through interviews.
The DFD does not indicate the time factor involved in any process whether the
data flow take place daily, weekly or monthly.
1. Physical DFD:
Structured analysis states that the current system should be first understand
correctly. The physical DFD is the model of the current system and is used to
ensure that the current system has been clearly understood. Physical DFDs shows
actual devices, departments, and people etc., involved in the current system
2. Logical DFD:
Logical DFDs are the model of the proposed system. They clearly should show the
requirements on which the new system should be built. Later during design activity
this is taken as the basis for drawing the system’s structure charts.
Process
2. No process can have only inputs. If an object has only inputs than it must be
a sink.
Data Store
1. Data cannot move directly from one data store to another data store, a
process must move data.
2. Data cannot move directly from an outside source to a data store, a process,
which retrieves, must move data from the source and place the data into data
store.
Level 0:
Intranet
Mailing
NOTICE
USER UserInfo Notice Info
Level1:
ER Diagram
ER DIAGRAMS
First Normal Form: A relation R is in first normal form if and only if all
underlying domains contained atomic values only
Chat
Identity Column
News varchar(500) Not Null
Register
Column name Data type Description(Allow
Null)
Id Int Primary key
Identity Column
Password varchar(50) Not Null
Name varchar(50) Not Null
Email varchar(50) Not Null
Dob varchar(50) Not Null
City varchar(50)
Gender varchar(50)
Photo varchar(50)
PROJECT
SCREENSHOT
INTERFACE DESIGN
Snap shot
Home
Registration
User Home
About us
Chat
Inbox
SentMail
Sent Mail
Admin Panel:
Admin Home
Edit Member
Sent Mail (Admin)
Design Page Coding
DESIGN PAGE CODING
Registration Page
&
nbsp;
<asp:TextBox ID="TextBox1" runat="server" style="border-
radius:10px" BorderStyle="Groove" Height="35px"
Width="305px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ErrorMessage="*" Font-Bold="True" ForeColor="#CC0000"
ControlToValidate="TextBox1"
EnableClientScript="False"></asp:RequiredFieldValidator>
<br />
<br />
</td>
</tr>
<tr>
<td class="auto-style3" style="color: #FF0000"><asp:Label
ID="Label2" runat="server" Text="Password" Font-Bold="True" Font-
Names="Times New Roman" Font-Size="Medium"
ForeColor="#6600FF"></asp:Label>* </td>
<td>
&
nbsp; <asp:TextBox
ID="TextBox2" runat="server" style="border-radius:10px"
BorderStyle="Groove" Height="35px" Width="305px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server" ErrorMessage="*" Font-Bold="True" ForeColor="#CC0000"
ControlToValidate="TextBox2"
EnableClientScript="False"></asp:RequiredFieldValidator>
<br />
<br />
</td>
</tr>
<tr>
<td class="auto-style4" style="color: #FF0000"><asp:Label
ID="Label8" runat="server" Text="Confirm Password" Font-Bold="True" Font-
Names="Times New Roman" Font-Size="Medium"
ForeColor="#6600FF"></asp:Label></td>
<td class="auto-style5">
&
nbsp; <asp:TextBox
ID="TextBox6" runat="server" style="border-radius:10px"
BorderStyle="Groove" Height="35px" Width="305px"></asp:TextBox>
<asp:CompareValidator ID="CompareValidator1"
runat="server" ErrorMessage="*" Font-Bold="True" ForeColor="#CC0000"
ControlToCompare="TextBox2" ControlToValidate="TextBox6"
EnableClientScript="False"></asp:CompareValidator>
<br />
</td>
</tr>
<tr>
<td class="auto-style3" style="color: #FF0000"><asp:Label
ID="Label3" runat="server" Text="Gender" Font-Bold="True" Font-
Names="Times New Roman" Font-Size="Medium"
ForeColor="#6600FF"></asp:Label>* </td>
<td>
&
nbsp; &n
bsp; &nb
sp; &nbs
p;  
;
<asp:RadioButtonList ID="RadioButtonList1" runat="server"
RepeatDirection="Horizontal" Font-Bold="True" Font-Names="Times New
Roman" Font-Size="Medium" ForeColor="#6600FF" Height="21px" Width="223px"
style="margin-left: 143px"><asp:ListItem>Male</asp:ListItem>
<asp:ListItem>Female</asp:ListItem></asp:RadioButtonList>
<br />
</td>
</tr>
<tr>
<td class="auto-style3" style="color: #FF0000"><asp:Label
ID="Label4" runat="server" Text="Email-id" Font-Bold="True" Font-
Names="Times New Roman" Font-Size="Medium"
ForeColor="#6600FF"></asp:Label>* </td>
<td>
&
nbsp; <asp:TextBox ID="TextBox3"
runat="server" style="border-radius:10px" BorderStyle="Groove"
Height="35px" Width="305px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
runat="server" ErrorMessage="*" Font-Bold="True" ForeColor="#CC0000"
ControlToValidate="TextBox3"
EnableClientScript="False"></asp:RequiredFieldValidator>
<br />
<br />
</td>
</tr>
<tr>
<td class="auto-style3" style="color: #FF0000"><asp:Label
ID="Label5" runat="server" Text="D.O.B" Font-Bold="True" Font-
Names="Times New Roman" Font-Size="Medium"
ForeColor="#6600FF"></asp:Label>* </td>
<td>
&
nbsp; <asp:TextBox ID="TextBox4"
runat="server" style="border-radius:10px" BorderStyle="Groove"
Height="35px" Width="305px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4"
runat="server" ErrorMessage="*" Font-Bold="True" ForeColor="#CC0000"
ControlToValidate="TextBox4"
EnableClientScript="False"></asp:RequiredFieldValidator>
<br />
<br />
</td>
</tr>
<tr>
<td class="auto-style3" style="color: #FF0000"><asp:Label
ID="Label6" runat="server" Text="Home-Town" Font-Bold="True" Font-
Names="Times New Roman" Font-Size="Medium"
ForeColor="#6600FF"></asp:Label>* </td>
<td>
&
nbsp; <asp:TextBox
ID="TextBox5" runat="server" style="border-radius:10px"
BorderStyle="Groove" Height="35px" Width="305px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5"
runat="server" ErrorMessage="*" Font-Bold="True" ForeColor="#CC0000"
ControlToValidate="TextBox5"
EnableClientScript="False"></asp:RequiredFieldValidator>
<br />
<br />
</td>
</tr>
<tr>
<td class="auto-style3" style="color: #FF0000"><asp:Label
ID="Label7" runat="server" Text="Upload-Photo" Font-Bold="True" Font-
Names="Times New Roman" Font-Size="Medium"
ForeColor="#6600FF"></asp:Label>* </td>
<td>
&
nbsp; <asp:FileUpload ID="FileUpload1"
runat="server" Height="35px" Width="305px" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator6"
runat="server" ErrorMessage="*" Font-Bold="True" ForeColor="#CC0000"
ControlToValidate="FileUpload1"
EnableClientScript="False"></asp:RequiredFieldValidator>
<br />
<br />
</td>
</tr>
<tr>
<td class="auto-style2" colspan="2">
&
nbsp; &n
bsp; &nb
sp; &nbs
p;
<br />
&
nbsp;
<asp:Button ID="Button1" runat="server" Text="Register"
BackColor="Blue" Font-Bold="True" Font-Size="Medium" ForeColor="#99FF99"
OnClick="Button1_Click" Height="36px" Width="100px" style="border-
radius:10px"/>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT * FROM [register]"></asp:SqlDataSource>
</td>
</tr>
</table>
</center>
</asp:Content>
<script type="text/javascript">
function makeobject() {
var p;
try {
p = new XMLHttpRequest();
}
catch (e) {
try {
p = new ActiveXObject("Msxml2.HttpRequest");
}
catch (e) {
try {
p = new
ActiveXObject("Microsoft.HttpRequest");
}
catch (e) {
alert("your browser does not support Ajax");
}
}
}
return p;
}
function loadUser() {
var a = document.getElementById("TextBox1").value;
var b = document.getElementById("TextBox2").value;
var r = makeobject();
var s = Math.random();
r.onreadystatechange = function () {
if (r.readyState == 4) {
alert(r.responseText);
}
}
if (a == "")
{
alert("shbdhbj");
}
else if(b=="")
{
alert("jhcfj");
}
else if(a==b)
{
alert("vgh");
}
else
{
r.open("post", "loginUser.aspx?t=" + s + "&uname=" + a +
"&pass=" + b);
r.send();
}
}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2"
Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<br />
&
nbsp; &n
bsp; &nb
sp; &nbs
p;  
;
&
nbsp;
<br />
&
nbsp; &n
bsp; &nb
sp; &nbs
p;  
;
<asp:Button ID="Button2" runat="server"
BackColor="Blue" Font-Bold="True" Font-Size="Medium" ForeColor="#99FF99"
OnClick="Button2_Click" Text="Login" Width="79px" />
<br />
&
nbsp; &n
bsp; &nb
sp; &nbs
p;  
; <asp:HyperLink ID="HyperLink1"
runat="server">Forget Password</asp:HyperLink>
<asp:HyperLink ID="HyperLink2"
runat="server" NavigateUrl="~/registration.aspx">Create an
Account</asp:HyperLink>
<br />
<br />
<br />
&
nbsp;
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</asp:Panel>
<br />
&
nbsp; &n
bsp; &nb
sp; &nbs
p;  
;
&
nbsp; &n
bsp; &nb
sp; &nbs
p;  
;
</td>
</tr>
</table>
</asp:Content>
Home Page
Aboutus Page
<table>
<tr>
<td style="vertical-align: top; font-family: calibri; font-
size: medium; color: #2E566C; text-align: justify;" class="auto-style1">
Intranet Mailing System is a web based applicationwhich
provides facility to the members or employees connected within a LAN
(Local Area Network) to communicate and exchange file and
folders among them.<br />
</td>
</tr>
<tr>
<td style="vertical-align: top; font-family: calibri; font-
size: medium; color: #2E566C; text-align: justify;" class="auto-style1">
<br />
In Intranet Mailing Facility as per its name
it provides facility to mail the members connected
within a local area
network, here one can share any kind of attachement and
subject to other
employee by providing specific mail id of receiver mail.
</td>
</tr>
<tr>
<td style="vertical-align: top; font-family: calibri; font-
size: medium; color: #2E566C; text-align: justify;" class="auto-style1">
<br />
In this Local area netwok mailing
system one could not get egistered by
himself/herself
employees working in a same
Local area netwok are provided
their ID & password by
administrator so that they could gain the facility
provided by application.</td>
</tr>
<tr>
<td style="vertical-align: top; font-family: calibri; font-
size: medium; color: #2E566C; text-align: justify;" class="auto-style1">
<br />
In Intranet Mailing System facility of communication is
been provide by one on
one chatting facility where
inbox and sent item are
also available to have your chatting
history.</td>
</tr>
<tr>
<td style="vertical-align: top; font-family: calibri; font-
size: medium; color: #2E566C; text-align: justify;" class="auto-style1">
</td>
</tr>
<tr>
<td style="vertical-align: top; font-family: calibri; font-
size: medium; color: #2E566C; text-align: justify;" class="auto-style2">
<table style="width:100%;">
<tr>
<td>
<asp:Image ID="Image1" runat="server"
Height="200px"
ImageUrl="~/images3/internet-
intranet.jpg" Width="200px" />
</td>
<td>
</td>
<td>
<asp:Image ID="Image2" runat="server"
Height="200px"
ImageUrl="~/images3/internet-
intranet.jpg" Width="200px" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Content>
Chat Page
&
nbsp; &n
bsp; &nb
sp; &nbs
p; You are
chatting too:
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</td>
</tr>
<tr>
<td class="auto-style2" style="background-color:
#FF6699">
<asp:Panel ID="Panel1" runat="server" Width="228px">
<asp:GridView ID="GridViewmember" runat="server"
AllowPaging="True" BackColor="#FF99CC" BorderStyle="Groove">
<Columns>
<asp:TemplateField ShowHeader="False">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1"
runat="server" CausesValidation="False" CommandName="Select"
OnClick="LinkButton1_Click" Text="Chat"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</asp:Panel>
</td>
<td class="auto-style2">
<asp:Panel ID="Panel2" runat="server" Visible="False"
BackColor="#CC33FF" Width="581px">
<br />
<asp:GridView ID="GridView4" runat="server">
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1"
runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString
%>" SelectCommand="SELECT [message], [date], [time], [sender] FROM
[chat]"></asp:SqlDataSource>
<br />
<br />
<br />
<asp:TextBox ID="TextBox1" runat="server"
TextMode="MultiLine" Width="291px" Height="58px"></asp:TextBox>
<asp:Button ID="Button1" runat="server"
BackColor="Blue" Font-Bold="True" Font-Size="Large" ForeColor="#66FF99"
OnClick="Button1_Click" Text="Send" Width="68px" />
</asp:Panel>
</td>
</tr>
<tr>
<td style="background-color: #FF6699"> </td>
<td style="background-color: #FF6699">
<br />
<asp:Panel ID="Panel3" runat="server">
</asp:Panel>
<br />
<br />
<br />
<br />
</td>
</tr>
</table>
</asp:Content>
Mail Page
<p>
<table class="auto-style1">
<tr>
<td class="auto-style4">
<asp:Label ID="Label6" runat="server" Text="To" Font-
Bold="True" Font-Names="Times New Roman" Font-Size="Medium"
ForeColor="#6600FF"></asp:Label>
</td>
<td class="auto-style5">
&
nbsp; &n
bsp;
<asp:TextBox ID="TextBox1" runat="server"
style="border-radius:10px" BorderStyle="Groove" Height="36px"
Width="305px"></asp:TextBox>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator4" runat="server" ErrorMessage="*"
ControlToValidate="TextBox1" ForeColor="#FF3300"
EnableClientScript="False"></asp:RequiredFieldValidator>
<br />
</td>
</tr>
<tr>
<td class="auto-style3">
<asp:Label ID="Label7" runat="server" Text="Subject"
Font-Bold="True" Font-Names="Times New Roman" Font-Size="Medium"
ForeColor="#6600FF"></asp:Label>
</td>
<td>
&
nbsp; &n
bsp;
<asp:TextBox ID="TextBox2" runat="server"
style="border-radius:10px" BorderStyle="Groove" Height="35px"
Width="305px"></asp:TextBox>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
ControlToValidate="TextBox2" EnableClientScript="False"
ForeColor="#FF3300"></asp:RequiredFieldValidator>
<br />
</td>
</tr>
<tr>
<td class="auto-style3">
<asp:Label ID="Label8" runat="server" Text="Body"
Font-Bold="True" Font-Names="Times New Roman" Font-Size="Medium"
ForeColor="#6600FF"></asp:Label>
</td>
<td>
&
nbsp; &n
bsp;
<asp:TextBox ID="TextBox3" runat="server"
TextMode="MultiLine" style="border-radius:10px" BorderStyle="Groove"
Height="74px" Width="305px"></asp:TextBox>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
ControlToValidate="TextBox3" EnableClientScript="False"
ForeColor="#FF3300"></asp:RequiredFieldValidator>
<br />
</td>
</tr>
<tr>
<td class="auto-style3">
<asp:Label ID="Label9" runat="server" Text="Attach"
Font-Bold="True" Font-Names="Times New Roman" Font-Size="Medium"
ForeColor="#6600FF"></asp:Label>
</td>
<td>
&
nbsp; &n
bsp;
<asp:FileUpload ID="FileUpload1" runat="server" />
<br />
<br />
</td>
</tr>
<tr>
<td class="auto-style2" colspan="2">
&
nbsp; &n
bsp;
&
nbsp; &n
bsp; &nb
sp; &nbs
p;  
;
&
nbsp;
<asp:Button ID="Button1" runat="server"
BackColor="Blue" Font-Bold="True" Font-Size="Medium" ForeColor="#99FF99"
Text="Send" OnClick="Button1_Click" Style="border-radius:10px" />
<asp:Label ID="Label10" runat="server" Text="Label"
Visible="False"></asp:Label>
<br />
</td>
</tr>
</table>
</p>
</asp:Content>
Inbox Page
Admin LogIn
&
nbsp;
<asp:TextBox ID="TextBox1" runat="server" Height="27px"
Width="311px" Style="border-radius:10px"></asp:TextBox>
<br />
<br />
</td>
</tr>
<tr>
<td class="auto-style8">
<asp:Label ID="Label2" runat="server" Text="Password"
Font-Bold="True" Font-Size="Medium" ForeColor="#9900CC"></asp:Label>
</td>
<td class="auto-style9">
<asp:TextBox ID="TextBox2" runat="server" Height="27px"
Width="311px" style="border-radius:10px"
TextMode="Password"></asp:TextBox>
<br />
<br />
</td>
</tr>
<tr>
<td class="auto-style6"
colspan="2"> &
nbsp; &n
bsp; &nb
sp; &nbs
p;  
;
&
nbsp; &n
bsp;
<asp:Button ID="Button1" runat="server" BackColor="Blue"
Font-Bold="True" Font-Size="Medium" ForeColor="#66FFFF" Height="36px"
Text="Login" Width="100px" Style="border-radius:10px"
OnClick="Button1_Click" />
</td>
</tr>
</table>
</asp:Content>
&
nbsp;
<asp:TextBox ID="TextBox2" runat="server" Style="border-
radius:20px" Height="28px" Width="305px"></asp:TextBox>
</td>
</tr>
<tr>
<td style="font-size: medium; font-weight: bold; color:
#9900CC" class="auto-style6">attachment</td>
<td>
&
nbsp;
<asp:FileUpload ID="FileUpload1" runat="server" Font-
Bold="True" Font-Size="Medium" ForeColor="#9900CC" Height="27px"
Width="286px" />
<br />
<br />
</td>
</tr>
<tr>
<td style="font-size: medium; font-weight: bold; color:
#9900CC" class="auto-style6">
<asp:Label ID="Label1" runat="server"
Text="Message"></asp:Label>
</td>
<td>
&
nbsp;
<asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine"
Height="81px" Width="574px" Style="border-radius:20px"></asp:TextBox>
<br />
</td>
</tr>
</table>
<br />
&
nbsp; &n
bsp; &nb
sp; &nbs
p;  
;
&
nbsp;
<br /> <br /> <br />
&
nbsp; &n
bsp; &nb
sp; &nbs
p;  
;
&
nbsp; &n
bsp; &nb
sp; &nbs
p;  
;
&
nbsp; &n
bsp; &nb
sp; &nbs
p;  
;
&
nbsp; &n
bsp;
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click"
Text="Send Mail" BackColor="Blue" Font-Bold="True" Font-Size="Medium"
ForeColor="White" style="border-radius:10px" Height="33px"/> <br/> <br
/> <br /> <br />
</asp:Content>
Forget Password Page
LogIn Page
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
using System.Data;
public partial class login : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button2_Click(object sender, EventArgs e)
{
string a = "";
string b = "";
SqlConnection con = new
SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].
ConnectionString);
SqlCommand cmd = new SqlCommand("select email,password from
register where email=@email and password=@password",con);
cmd.Parameters.AddWithValue("@email", TextBox1.Text);
cmd.Parameters.AddWithValue("@password", TextBox2.Text);
con.Open();
SqlDataReader dr = cmd.ExecuteReader();
while (dr.Read())
{
a = dr[0].ToString();
b = dr[1].ToString();
}
}
protected void ImageButton1_Click(object sender, ImageClickEventArgs
e)
{
Response.Redirect("adminlogin.aspx");
}
protected void ImageButton2_Click(object sender, ImageClickEventArgs
e)
{
Response.Redirect("login.aspx");
}
}
Registration Page
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
using System.Data;
}
protected void Button1_Click(object sender, EventArgs e)
{
{
SqlConnection con = new
SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].
ConnectionString);
try
{
con.Open();
SqlCommand cmd = new SqlCommand("INSERT INTO
register(name,password,email,dob,city,gender,photo) VALUES
(@name,@password,@email,@dob,@city,@gender,@photo)", con);
cmd.Parameters.AddWithValue("@name", TextBox1.Text);
cmd.Parameters.AddWithValue("@password", TextBox2.Text);
cmd.Parameters.AddWithValue("@email", TextBox3.Text);
cmd.Parameters.AddWithValue("@dob", TextBox4.Text);
cmd.Parameters.AddWithValue("@city", TextBox5.Text);
cmd.Parameters.AddWithValue("@gender",
RadioButtonList1.SelectedItem.ToString());
cmd.Parameters.AddWithValue("@photo", "~/photo/" +
FileUpload1.FileName);
}
catch (Exception ex)
{
Response.Write(ex.Message);
Response.Write("Unsucessfull Registration");
}
finally
{
con.Close();
}
}
}
}
Mail Page
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
using System.Data;
}
protected void Button1_Click(object sender, EventArgs e)
{
Session["receiver"] = TextBox1.Text;
string email = "";
email = Session["email"].ToString();
con.Open();
SqlCommand cmd = new SqlCommand("insert into
mail(sender,receiver,subject,attach,date,time,body)values('" + email +
"','" + TextBox1.Text + "','" + TextBox2.Text + "','" + path + "','" +
DateTime.Now.ToShortDateString() + "','" +
DateTime.Now.ToShortTimeString() + "','" + TextBox3.Text + "')", con);
cmd.ExecuteNonQuery();
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
con.Close();
Label10.Visible = true;
}
}
Chat Page
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
LinkButton lnkbtn = sender as LinkButton;
GridViewRow gvrow = lnkbtn.NamingContainer as GridViewRow;
string filePath =
GridViewmember.Rows[gvrow.RowIndex].Cells[1].Text;
Label1.Text = filePath;
Panel2.Visible = true;
}
private void gridsentitem()
{
//SqlCommand cmd = new SqlCommand("SELECT
date,time,subject,receiver FROM mail WHERE sender='" + str + "'", con);
//SqlDataAdapter da = new SqlDataAdapter(cmd);
//DataTable dt = new DataTable();
//da.Fill(dt);
//con.Close();
//GridView3.DataSource = dt;
//GridView3.DataBind();
}
protected void Button2_Click(object sender, EventArgs e)
{
Panel2.Visible = true;
//gridsentitem();
SqlCommand cmd = new SqlCommand("SELECT
date,time,subject,receiver, body FROM mail WHERE sender='" + str + "'",
con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
da.Fill(dt);
con.Close();
GridView5.DataSource = dt;
GridView5.DataBind();
}
}
Admin LogIn
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
}
protected void Button1_Click(object sender, EventArgs e)
{
string a = "";
string b = "";
SqlConnection con = new
SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].
ConnectionString);
SqlCommand cmd = new SqlCommand("select * from login where
name='"+TextBox1.Text+"' and password='"+TextBox2.Text+"'",con);
con.Open();
SqlDataReader dr = cmd.ExecuteReader();
while (dr.Read())
{
a = dr[0].ToString();
b = dr[1].ToString();
}
TESTING
Testing is a process, which reveals errors in the program. It is the major quality
measure employed during software development. During testing, the program is
executed with a set of conditions known as test cases and the output is evaluated to
determine whether the program is performing as expected.
In order to make sure that the system does not have errors, the different levels of
testing strategies that are applied at differing phases of software development are:
Levels of Testing:
Testing execute program with the aim to finding error. A good test is one which
uncover a new error with a high degree of probabilities. A successful test is one
which find an error not yet discovered
We have to prepare the test cases to test the software. This is done to check the
complete functionalities of the system----Black Box testing
The internal working of the code, logic, path, loops etc.--- White Box testing
TYPES OF TESTING
Unit Testing
Unit Testing is done on individual modules as they are completed and become
executable. It is confined only to the designer's requirements.
Unit testing refers to tests that verify the functionality of a specific section of code,
usually at the function level. In an object-oriented environment, this is usually at
the class level, and the minimal unit tests include the constructors and destructors.
[23]
These types of tests are usually written by developers as they work on code (white-
box style), to ensure that the specific function is working as expected. One function
might have multiple tests, to catch corner cases or other branches in the code. Unit
testing alone cannot verify the functionality of a piece of software, but rather is
used to ensure that the building blocks of the software work independently from
each other.
Unit testing is a software development process that involves a synchronized
application of a broad spectrum of defect prevention and detection strategies in
order to reduce software development risks, time, and costs. It is performed by the
software developer or engineer during the construction phase of the software
development lifecycle. Unit testing aims to eliminate construction errors before
code is promoted to additional testing; this strategy is intended to increase the
quality of the resulting software as well as the efficiency of the overall
development process.
In this strategy some test cases are generated as input conditions that fully execute
all functional requirements for the program. This testing has been uses to find
errors in the following categories:
In this the test cases are generated on the logic of each module by drawing flow
graphs of that module and logical decisions are tested on all the cases.
It has been uses to generate the test cases in the following cases:
Integrating Testing
Integration testing ensures that software and subsystems work together as a whole.
It tests the interface of all the modules to make sure that the modules behave
properly when integrated together.
System Testing
Involves in-house testing of the entire system before delivery to the user. Its aim
is to satisfy the user the system meets all requirements of the client's specifications.
Acceptance Testing
The system has been tested and implemented successfully and thus ensured that all
the requirements as listed in the software requirements specification are completely
fulfilled. In case of erroneous input corresponding error messages are displayed.
Compilation Test:
It was a good idea to do our stress testing early on, because it gave us time to fix
some of the unexpected deadlocks and stability problems that only occurred when
components were exposed to very high transaction volumes.
Execution Test:
Output Test:
The successful output screens are placed in the output screens.
19 PERT CHART
A PERT chart is a project management tools used to schedule, organize, and
coordinate tasks within a project. PERT stands for Program Evaluation Review
Technique. A PERT chart presents a graphic illustration of a project as network
diagram consisting of numbered nodes(either circles or rectangles) representing
events, or milestones in the project linked by labeled vectors (directional lines)
representing tasks in the project. The direction of the arrows on the lines indicates
the sequence of tasks.
Alpha Testing
10 15 30 10 10
1 2
4 6 7 9 11
3 10 10 10 5
User
Requirement
Installation Training
And Analysis
Gantt chart
Gantt Chart is also known as Time Line Charts. A Gantt Chart can be developed
for the entire project or a separate chart can be developed for each function. A
tabular form is maintained where rows indicate the tasks with milestones and
columns indicate duration (weeks/months). The horizontal bars that spans across
columns indicate duration of the tasks.
Design
Test Cases
Coding
Testing
Build
Error Handling
Error handling in ASP.NET has three aspects:
To understand the concepts, create the following sample application. It has a label
control, a dropdown list, and a link. The dropdown list loads an array list of
famous quotes and the selected quote is shown in the label below. It also has a
hyperlink which has points to a nonexistent link.
<head runat="server">
<title>
Tracing, debugging and error handling
</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="lblheading" runat="server" Text="Tracing, Debuggin
and Error Handling">
</asp:Label>
</form>
</body>
</html>
Hence, to intercept such occurrence, you can add error handing settings in the
web.config file of the application. It is application-wide error handling. For
example, you can add the following lines in the web.config file:
<configuration>
<system.web>
</system.web>
<configuration>
Mode : It enables or disables custom error pages. It has the three possible
values:
To implement page level error handling, the Page directive could be modified:
So for all the above mentioned scenarios, if we take the user input without
validation, then chances are that we will end up having wrong data with us
(perhaps in database). If it is a bad day for us then possibly our application might
also end up behaving in an unexpected manner and even crash on us (like if we try
to convert a non numeric string to int). Worst case scenario, the user will use the
input field to perform SQL injection and cause serious damage to our database. So
it is always a good idea to have validation in place whenever we are taking input
from the user.
Types of Validation
It is something that will happen on users' browser. The validation will occur before
the data gets posted back to server. It is a good idea to have client side validation as
the user gets to know what needs to be changed immediately, i.e., no trips to
servers are made. So from the users' point of view, it gives him fast response and
from the developers' point of view, it saves valuable resources of server.
JavaScript is most widely used to perform client side validation. From decades,
developers have been using JavaScript for client side validation. It is always a
good idea to have knowledge of JavaScript as it gives us full control over client
side validation. Now Microsoft is also embracing jQuery in its current versions so
perhaps JavaScript and/or Jquery should be the right thing to use for client side
validation.
Server side validation occurs at server. The benefit of having server side validation
is that if the user somehow bypasses the client side validation (accidentally or
deliberately), then we can catch the problem on the server side. So having server
side validation provides more security and ensures that no invalid data gets
processed by the application.
Server side validation is done by writing our custom logic for validating all the
input. ASP.NET also provides us some controls which will facilitate the server side
validation and provides a framework for the developers to do the same.
RequiredFiledValidator –
This validation control will be used when we are mandating the user input for any
particular field. Let's say we have a simple form with name field and we don't want
this to be empty. so what we can do is add a Required Field Validator to the page,
set the ControlToValidate to the ID of the name input field, set the error message
property.
CompareValidator-
RangeValidator-
In scenarios where we want to ensure that the value entered by the user is in some
predefined range, we can use this control.
RegularExpressionValidator-
CustomValidator-
If with all these validation controls provided by ASP.NET, we still find ourselves a
scenario where we need customized validation behavior, we can use
the CustomValidator Control. Let us try to use this control and perform custom
client side as well as server side validation. What we will do is we will check for '-'
character in user input and reject the input if '-' is present in any field (assuming a
SQL injection attempt). So let us see how can we use CustomValidator for it.
ValidationSummary
- Although we can do all the client side and server side validations ourselves using
JavaScript and server side code, we could find the validation controls provided by
ASP.NET useful in many scenarios. These validation controls give us the
flexibility of validating on client side or server side. We can use
the ValidationGroup,Page.IsValid properties and Page.validate method to have fine
grained control on the validation process.
Future Scope:
BIBLIOGRAPHY
FOR .NET INSTALLATION
www.support.mircosoft.com
FOR SQL
www.msdn.microsoft.com
FOR ASP.NET
www.asp.net
www.asptoday.com
www.aspfree.com
REFERENCE BOOKS