Beruflich Dokumente
Kultur Dokumente
CHAPTER 1
1
1.1. PROJECT INTRODUCTION
Voice over IP (VoIP) offers many unique capabilities to its users. An important driving force
behind the use of IP telephony is cost savings, especially for corporations with large data
networks. By carrying voice traffic over IP-based networks, companies can reduce or eliminate
the toll charges associated with transporting calls over the Public Switched Telephone Network
(PSTN). Other benefits taking advantage of advancements in IP-Telephony (IPTel) include the
integration of voice and data applications and the flexibility of creating new services rapidly and
with lower complexity. n professional world all the communications are being done by emails.
Now a day’s mailing server is playing a very important role in our social and economical life.
It is one of the secure and fast communicating mediums for a modern era. The mail server is also
a good source to connect with your friends; it helps people to be active in social life.
Social network helps a person both continue their existing relationship and finding new friends
3
WORKING ENVIRONMENT
● System : Windows
● Memory space : Less than 1 GB
● Ram : 2 GB
Windows is Microsoft's flagship operating system (OS), the de facto standard for home and
business computers. The graphical user interface (GUI)-based OS was introduced in 1985 and has
been released in many versions since then, as described below. Microsoft got its start with the
partnership of Bill Gates and Paul Allen in 1975. Gates and Allen co-developed Xenix (a version
of Unix) and also collaborated on a BASIC interpreter for the Altair 8800. The company was
incorporated in 1981.
4
2.3.2. Visual studeo Introduction
From the very first versions of Windows, Microsoft created an integrated development
environment (IDE)so that programmers could complete their projects for these operating
systems. We are talking about Visual Studio. With the imminent launch of Windows 8, they
have decided to launch a new version: Visual Studio 2012. . Visual Studio 2012 is the
development environment designed by Microsoft for Windows 8
Visual Studio 2012 includes all the tools necessary to be able to create all kinds of
projects for Microsoft operating systems, but furthermore, it's also perfectly capable
of creating websites or, even, programs for mobiles and tablets.
Thanks to the elements that are part of Visual Studio 2012 any programmer will have
the possibility to complete a full project without any need to resort to other
programs or external elements.
Some of the features of the new version of Microsoft Visual Studio are:
The graphical environment of Visual Studio 2012 has undergone a change, being very
similar to the Metro graphical interface and the general product line that Microsoft
had already marked after launching Microsoft Office 2013 Preview, even though it
does maintain the code color identification which so many users demanded after they
had originally left it out of the Beta version of the program (called Visual Studio
5
2.3.4. Applications
● Windows application
● Web application
● Class design
● Mapping design
● Database design
● Open box design
● Object browser
● Admin
● Office
C# is object oriented programming language. It provides a lot of features that are given
below.
1. Simple
2. Modern programming language
3. Object oriented
4. Type safe
5. Interoperability
6. Scalable and Updateable
7. Component oriented
8. Structured programming language
9. Rich Library
10. Fast speed
6
2.3.6. THE .NET FRAMEWORK
.NET is a software framework which is designed and developed by Microsoft. The first version
of .Net framework was 1.0 which came in the year 2002. In easy words, it is a virtual machine for
compiling and executing programs written in different languages like C#, VB.Net etc.
It is used to develop Form-based applications, Web-based applications, and Web services. There
is a variety of programming languages available on the .Net platform, VB.Net and C# being the
most common ones are . It is used to build applications for Windows, phone, web etc. It provides
Languages which are supported by .NET Framework but not designed and developed by
Microsoft.
C#.NET
VB.NET
C++.NET
J#.NET
F#.NET
JSCRIPT.NET
WINDOWS POWERSHELL
IRON RUBY
IRON PYTHON
C OMEGA
ASML(Abstract State Machine Language)
Common Language Runtime(CLR): CLR is the basic and Virtual Machine component of
the .NET Framework. It is the run-time environment in the .NET Framework that runs the codes
and helps in making the development process easier by providing the various services such as
responsible for managing the execution of .NET programs regardless of any .NET programming
language. It also helps in the management of code, as code that targets the runtime is known as
the Managed Code and code doesn’t target to runtime is known as Unmanaged code.
and methods etc that can be integrated with CLR. Also called the Assemblies. It is just like the
header files in C/C++ and packages in the java. Installing .NET framework basically is the
installation of CLR and FCL into the system. Below is the overview of .NET Framework
Is .NET application platform dependent or platform independent?
The combination of Operating System Architecture and CPU Architecture is known as the
platform. Platform dependent means the programming language code will run only on particular
which is only able to run on the Windows-based operating system. The .Net application is
platform independent also because of Mono framework. Using Mono framework the .Net
application can run on any Operating System including windows. Mono framework is a third
party software developed by Novell Company which is now a part of Micro Focus Company. It
is a paid framework.
There are three types of class libraries that you can use:
Platform-specific class libraries have access to all the APIs in a given platform (for
example, .NET Framework, Xamarin iOS), but can only be used by apps and libraries
that target that platform.
Portable class libraries have access to a subset of APIs, and can be used by apps
and libraries that target multiple platforms.
.NET Standard class libraries are a merger of the platform-specific and portable
library concept into a single model that provides the best of both.
1) APL
2) c++
3) c#
4) Cobol
5) Component Pascal
6) Curriculum
7) Eiffel
8) Forth
9) Fortran
10) Haskell
11) Java Language
12) Microsoft JScript
13) Mercury
14) Mondrian
15) Oberon
16) Oz
17) Pascal
18) Perl
19) Python
20) RPG
21) Scheme
22) Small Talk
23) Standard ML
24) Microsoft Visual Basic
25) j#
26) vb
27) CAT
28) CFML
29) Clarion #
30) Cobra
31) CULE
32) E#
33) Flash
34) BETA
35) Ada
36) ASML
37) Assembly
38) BAsic
39) Basic Variants
40) BF
41) Boo
42) Caml
43) G#
44) IL/MSIL
45) Lexico
46) LISP
47) LISP-like
48) PHP
49) Scala
50) Spry and many more....
9
CHAPTER 3
10
SYSTEM ANALYSIS
This proposed system is feasible because the application deals with normal tasks such as
inbox, sent chat etc.,which is not a complex job, moreover there are various types in this study
which are given below has been satisfied by the application.
The technical features for this application to work is very simple that it requires some
softwares such as
Which are open source softwares that can easily accessible by anyone so by stating all
these we say that our application is technically feasible.
The prerequisites that are needed from the user aspect is an internet connection ,a mobile
phone and from the developers side he/she needs only a normal PC and with associated software
installed in it,thus our application is economically feasible .
11
3.2. Existing system
Many blogs and websites are already in existence for the students to access the notes and
prepare for their exams . In addition to it, there are some applications that can be downloaded and
referred for exam purpose and which also contain sgpa ,cgpa calculator .
design implementation also supports user authentication mechanism used to verify that only
● Add contact
● Send message
● Receive message
● Add group
● Chat Instant message
12
3.6. SCOPE OF THE PROJECT:
13
CHAPTER 4
14
SYSTEM DESIGN
Fig 4.1
15
4.2. Activity Diagram
Fig 4.2
16
CHAPTER 5
17
PROJECT DESCRIPTION
5.1. OBJECTIVE
• This applications aims to develop Introduces the system architecture of the voice mailbox
system based on VoIP
It has a certain guiding significance to the relative projects' development based on digital
voice card
18
5.2.2. SIP network servers
19
5.3. IMPLEMENTATION
GUI is a built on web application for ease of use. The user uses the GUI to enter
the input(posts) and view inbox, sent, with attachment and search facilities.
5.3.2. Model
Advanced concepts like shared information, chat design and animations are
5.4. MAINTENANCE
Any changes will be updated and the product will be re-released. As the data is in the sql
server there will be no problem with the data that is stored within the application.
21
CHAPTER 6
22
SYSTEM TESTING
6.1. TESTING DEFINITION
Testing is vital to the success of the system testing makes a logical assumption that
if all parts of the system are correct,the goal will be successfully achieved. In the testing process
we test the actual system in an organization and gather errors from the new system operates in full
efficiency as stated. System testing is the stage of implementation, which is aimed to ensuring
that the system works accurately and efficiently.
In the testing process we test the actual system in an organization and gather
errors from the new system and take initiatives to correct the same. All the front-end and back-
end connectivity are tested to be sure that the new system operates in full efficiency as stated.
System testing is the stage of implementation,which is aimed at ensuring that the system works
accurately and efficiently.
The main objectives of testing is to uncover errors from the system. For the
uncovering process we have to give proper input data to the system. So we should have more
conscious to give input data. It is important to give correct inputs to efficient testing. So we can
have more conscious to give the input data as a important one.
Testing is done for each module. After testing all the modules are integrated
and testing of the final system is done with the test data, specially designed to show that the
system will operate successfully in all its aspects condition. Thus the system testing is a
confirmation that all is correct and an opportunity to show the user that the system works.
Inadequate testing or non-testing leads to errors that may appear few months later.
23
6.2. TESTING OBJECTIVE
This will create two problems, time delay between the cause and appearance of the
problem. The effect of the system errors on files and records within the system. The purpose of
the system testing is to consider all the likely variation to which it will be suggested and push the
system to its limits.
The testing process focuses on logical intervals of the software ensuring that all the
statements have been tested and on function intervals (i.e….,) conducting the tests to uncover
errors and ensure that defined inputs will produce actual results that agree with the required
results. Testing has to be done using the two common steps Unit testing and Integration testing. In
the project system testing is made as follows:
24
6.4. TEST PLANNING
● Test plan is defined as a strategic document which describes the procedure how to perform
various testing on the total application in the most efficient way.
● Objectives of testing.
● Areas that needed to be tested.
● Areas that should not be tested.
● Scheduling Resources Planning.
● Areas to be automated, various testing tools used.
6.7.RESULT EXECUTION
● Expected value: is nothing but expected behaviour of application.
● Actual value: is nothing but actual behaviour of the application.
25
6.9. REPORTING
Prepare document (status of the application)
6.10 TYPES OF TESTING
● Smoke testing: is the process of initial testing in which tester looks for the availability of
all the functionality of the application in order to perform detailed testing on them. (Main
check is for available forms)
● Sanity testing: is a type of testing that is conducted on an application initially to check for
the proper behaviour of an application that is to check all the functionality are available
before the detailed testing is conducted by on them.
● Regression testing: is one of the best and important testing. Regression testing is the
process in which the functionality, which is already tested before, is once again tested
whenever some new changes is added in order to check whether the existing functionality
remains same.
● Re-testing: is the process in which the testing is performed on some functionality which is
already tested before to make sure that the defects are reproducible and to rule out the
environments issues if at all any defects are there.
● Static testing: is the testing, which is performed on an application when it is not been
executed. Ex: GUI, Document testing.
● Dynamic testing: is the testing which is performed on an application when it is being
executed. Ex:Functional testing.
● Alpha testing: is a type of user acceptance testing, which is conducted on an application
when it is just before released to the customer.
● Beta testing: is a type of UAT that is conducted on an application when it is released to
the customer, when deployed into the real time environment and being accessed by the
real time users.
26
● Monkey testing: is the process in which the abnormal operations,beyond capacity
operations are done on the application to check the stability of it in spite of the user
abnormal behaviour.
● Compatibility testing: it is the testing process in which usually the products are tested on
the environments with different combination of databases (application servers,
browsers….etc)
● Installation testing: is the process of testing in which the tester try to install or try to
deploy the module into the corresponding environment by following the guidelines
produced in the deployment document and check whether the installation is successful or
not.
● Adhoc testing: Adhoc testing is the process of testing in which unlike the formal testing
where in test case document is used, with-out that test case document testing can be done
of an application, to cover that testing of the future which are not covered in that test case
document. Also it is intended to perform GUI testing which may involve the cosmetic
issues.
● Functional testing: There are two basic approaches of functional testing:
27
(b)White box testing
White box testing is concern with testing implementation of the program. The
intent of structural testing is not to exercise all the inputs or outputs but to exercise the different
programming and data structure used in the program. Thus structure testing aims to achieve test
cases that will force the desire coverage of different structures. Two types of path testing are:
1. Statement testing.
2. Branch testing.
28
6.13. TEST CASE REPORT
CONCLUSION
30
7.1. SUMMARY
All modules mentioned above was implemented successfully and tested with sample
inputs and outputs. In professional world all the communications are being done by
emails. Now a day’s mailing server is playing a very important role in our social
and economical life.. The project is made following best practices of android, material design,
cloud etc.
In future, there will be a more improvements made with this project. We will bring more
notes for more departments and we will be add more coding for C# and asp.net in our program
hub. We will also let you notified if there events that are conducted in our departments as well as
other colleges.
31
CHAPTER 8
APPENDIX
8.1. SCREENSHOTS
32
8.1.1. Home Screen
8.1.2 Notes
33
Fig 8.1.2.0 Fig 8.1.2.1
34
8.1.3
8.1.4
35
Fig 8.1.4.0 Fig 8.1.4.1
8.1.5
36
Fig 8.1.5.0 Fig 8.1.5.1
8.1.6
37
Fig 8.1.6.0 Fig 8.1.6.1
38
Fig 8.1.7.0 Fig 8.1.7.1
8.2 Coding
Finecalc.xml
39
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="email_Default" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Voice Mail System</title>
<link href="StyleSheet.css" rel="Stylesheet" />
<style type="text/css">
.style2
{
font-size: medium;
font-weight: bold;
color: #003300;
text-align: right;
font-family: Calibri;
width: 138px;
}
.style3
{
width: 138px;
}
.style4
{
font-size: medium;
font-weight: bold;
color: #FFFFFF;
text-align: right;
font-family: Calibri;
width: 138px;
height: 31px;
}
.style5
{
height: 31px;
}
.style6
{
color: #FFFFFF;
}
.style7
{
font-size: medium;
font-weight: bold;
color: #FFFFFF;
text-align: right;
font-family: Calibri;
width: 138px;
}
</style>
</head>
<body>
<p>
</p>
<form id="form1" runat="server">
<div id="head">
<span lang="en-us"
style="font-size: 55pt; color: #003300; font-family:
Amaranth"> </span><span lang="en-us"
style="font-size: 55pt; font-family: Amaranth"
class="style6"> Voice Mail System</span></div>
<div id="login">
<table class="tbll">
<tr>
<td class="style2">
</td>
<td align="left">
</td>
</tr>
<tr>
<td class="style4">
UserName :</td>
<td align="left" class="style5">
<asp:TextBox ID="txtuname" runat="server" BorderColor="#003300"
placeholder="Enter Name"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="157px"
ontextchanged="txtuname_TextChanged"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server"
ControlToValidate="txtuname" ErrorMessage="Enter Email Id"
Font-Bold="True" style="font-size:
small"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style7">
Password :</td>
<td align="left">
<asp:TextBox ID="txtupass" runat="server" BorderColor="#003300"
placeholder="Enter Password"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="157px"
TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server"
ControlToValidate="txtupass" ErrorMessage="Enter Password"
Font-Bold="True" style="font-size:
small"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style3">
</td>
<td align="left">
<asp:Button ID="btnlogin" runat="server" BorderColor="#006600"
BorderStyle="Solid" BorderWidth="1px" Font-Bold="True"
Height="30px" Text="Sign In" Width="65px"
onclick="btnlogin_Click"
CssClass="btnn" />
</td>
</tr>
<tr>
<td class="style3">
</td>
<td align="left">
<asp:LinkButton ID="LinkButton1" runat="server" Font-Bold="True"
Font-Names="Calibri" ForeColor="#003300"
PostBackUrl="~/Signup.aspx"
CausesValidation="False">Create
an Account ?</asp:LinkButton>
</td>
</tr>
<tr>
<td class="style3">
</td>
<td style="text-align: left">
<asp:Label ID="lblerror" runat="server" Font-Bold="False"
ForeColor="Red"></asp:Label>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
Default.aspx.cs
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;
}
protected void btnlogin_Click(object sender, EventArgs e)
{
lblerror.Text = "";
if (UDT.Rows.Count > 0)
{
Session["uid"] = UDT.Rows[0]["uid"].ToString();
Session["email"] = UDT.Rows[0]["email"].ToString();
Session["password"] = UDT.Rows[0]["password"].ToString();
Session["name"] = UDT.Rows[0]["fname"].ToString();
Session["img"] = UDT.Rows[0]["image"].ToString();
Response.Redirect("Inbox.aspx");
}
else
{
lblerror.Text = "Invalid email or password";
}
}
protected void txtuname_TextChanged(object sender, EventArgs e)
{
}
}
Master
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title> <link href="Style.css" rel="Stylesheet" />
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
<style type="text/css">
.style1
{
width: 90%;
height: 319px;
}
.style4
{
width: 322px;
}
.style5
{
width: 229px;
color: #0066FF;
font-size: 30pt;
text-align: left;
}
.style7
{
}
.style8
{
width: 58px;
}
.style9
{
width: 96px;
}
.style13
{
width: 100px;
}
.style14
{
font-family: Calibri;
font-weight: bold;
}
.style17
{
height: 11px;
}
.style19
{
height: 12px;
}
.style20
{
height: 12px;
}
.style21
{
font-size: large;
font-family: Calibri;
color: #008080;
text-align: right;
}
.style22
{
color: #660066;
}
.style24
{
font-size: medium;
font-family: Calibri;
}
.style26
{
font-size: 35pt;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div id="head" style="border: thin solid #008080">
</div>
<div id="body">
<table class="style1">
<tr>
<td valign="top">
</td>
<td valign="top">
</td>
<td valign="top">
</td>
</tr>
<tr>
<td valign="top">
<div id="left">
<table class="style1" style="border: thin solid #008080; width:
100%;">
<tr>
<td style="border-bottom: thin solid #008080; text-align:
center;"
bgcolor="#D7FFD7">
<asp:Label ID="lblwelcome" runat="server"
BorderColor="#660066"
<asp:LinkButton ID="linkuploadimage" runat="server"
PostBackUrl="~/Account.aspx" style="color:
#006666">Change Image</asp:LinkButton>
</td>
</tr>
<tr>
<td style="border-top: thin solid #008080; text-align:
center;" class="mm">
<a href="Compose.aspx" class="leftmnu">Compose</a></td>
</tr>
<tr>
<td style="text-align: center" class="mm">
<a href="SMS.aspx" class="leftmnu">Send SMS</a></td>
</tr>
<tr>
<td style="text-align: center" class="mm">
<a href="Inbox.aspx" class="leftmnu">Inbox</a></td>
</tr>
<tr>
<td style="text-align: center" class="mm">
<a href="Sent.aspx" class="leftmnu"> Sent</a></td>
</tr>
<tr>
<td style="text-align: center" class="mm">
<a href="Trash.aspx" class="leftmnu"> Trash</a></td>
</tr>
<tr>
<td style="border-bottom-style: solid; border-bottom-
width: thin; border-bottom-color: #008080"
class="style20">
</td>
</tr>
<tr>
<td style="text-align: center">
<a href="Contact.aspx" class="leftmnu"> My
Contact</a></td>
</tr>
<tr>
<td style="text-align: center">
<a href="calender.aspx" class="leftmnu">
Calender</a></td>
</tr>
<tr>
<td style="text-align: center">
<a href="Chat.aspx" class="leftmnu"> Online
Chat</a></td>
</tr>
<tr>
<td>
 
;
<a href="Account.aspx" class="leftmnu">Account</a></td>
</tr>
<tr>
<td class="style19"
style="border-bottom-style: solid; border-bottom-
width: thin; border-bottom-color: #008080">
</td>
</tr>
<tr>
<td>
<asp:Calendar ID="Calendar1" runat="server"
BackColor="White"
BorderColor="#999999" CellPadding="4"
DayNameFormat="Shortest"
Font-Names="Verdana" Font-Size="8pt"
ForeColor="Black" Height="182px"
Width="185px">
<SelectedDayStyle BackColor="#666666" Font-
Bold="True" ForeColor="White" />
<SelectorStyle BackColor="#CCCCCC" />
<WeekendDayStyle BackColor="#FFFFCC" />
<TodayDayStyle BackColor="#CCCCCC"
ForeColor="Black" />
<OtherMonthDayStyle ForeColor="#808080" />
<NextPrevStyle VerticalAlign="Bottom" />
<DayHeaderStyle BackColor="#CCCCCC" Font-
Bold="True" Font-Size="7pt" />
<TitleStyle BackColor="#999999"
BorderColor="Black" Font-Bold="True" />
</asp:Calendar>
</td>
</tr>
</table>
</div></td>
<td valign="top">
<div id="mid">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div></td>
<td valign="top">
<div id="right">
<table class="style13" style="border: thin solid #008080">
<tr>
<td bgcolor="#D7FFD7" class="style14"
style="border-bottom: thin solid #008080; text-align:
center;">
Advertisement</td>
</tr>
<tr>
<td>
<asp:AdRotator ID="AdRotator1" runat="server"
AdvertisementFile="~/XMLFile.xml"
Height="601px" Width="157px" />
</td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
Cs file
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.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
{
DS_Mail.MAILMST_SELECTDataTable MDT = new DS_Mail.MAILMST_SELECTDataTable();
DS_MailTableAdapters.MAILMST_SELECTTableAdapter MAdapter = new
DS_MailTableAdapters.MAILMST_SELECTTableAdapter();
}
protected void btnfind_Click(object sender, EventArgs e)
{
Session["serch"] = txtserch1.Text + "%";
Response.Redirect("Inbox.aspx");
}
Signup
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Voice Mail System</title>
<link href="StyleSheet.css" rel="Stylesheet" />
<style type="text/css">
.style2
{
font-size: medium;
font-weight: bold;
color: #003300;
text-align: right;
font-family: Calibri;
width: 138px;
}
.style3
{
width: 138px;
}
</style>
</head>
<body>
<p>
+</p>
<form id="form1" runat="server">
<div id="head">
<span lang="en-us"
style="font-size: 55pt; color: #003300; font-family:
Amaranth"> Voice Mail System</span></div>
<div id="login">
<table class="tbl">
<tr>
<td class="style2">
</td>
<td align="left">
</td>
</tr>
<tr>
<td class="style2">
Name :</td>
<td align="left">
<asp:TextBox ID="txtfname" runat="server" BorderColor="#003300"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="157px"
CssClass="txtbox"></asp:TextBox>
<asp:RequiredFieldValidator ID="reqfieldvalidatorname" runat="server"
ControlToValidate="txtfname" ErrorMessage="Enter Name"
style="font-size: small"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style2">
Surname :</td>
<td align="left">
<asp:TextBox ID="txtsname" runat="server" BorderColor="#003300"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="157px"
CssClass="txtbox"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server"
ControlToValidate="txtsname" ErrorMessage="Enater Surname"
style="font-size: small"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="lbl">
Mobile :</td>
<td align="left">
<asp:TextBox ID="txtmo" runat="server" BorderColor="#003300"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="157px"
CssClass="txtbox"></asp:TextBox>
<asp:RangeValidator ID="RangeValidator1" runat="server"
ControlToValidate="txtmo" ErrorMessage="Enter Mobile No"
MaximumValue="9999999999"
MinimumValue="1000000000" style="font-size:
small"></asp:RangeValidator>
<asp:RangeValidator ID="RangeValidator3" runat="server"
ControlToValidate="txtmo" ErrorMessage="Invalid "
MaximumValue="9999999999"
MinimumValue="1000000000" Type="Double"></asp:RangeValidator>
</td>
</tr>
<tr>
<td class="lbl">
Address :</td>
<td align="left">
<asp:TextBox ID="txtadd" runat="server" BorderColor="#003300"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="157px"
CssClass="txtbox"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
runat="server"
ControlToValidate="txtadd" ErrorMessage="Enter Your Add"
style="font-size: small"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="lbl">
City :</td>
<td align="left">
<asp:TextBox ID="txtcity" runat="server" BorderColor="#003300"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="157px"
CssClass="txtbox"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4"
runat="server"
ControlToValidate="txtcity" ErrorMessage="Enter Your City"
style="font-size: small"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="lbl">
Pinocode :</td>
<td align="left">
<asp:TextBox ID="txtpin" runat="server" BorderColor="#003300"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="157px"
CssClass="txtbox"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5"
runat="server"
ControlToValidate="txtpin" ErrorMessage="Enter PinCode"
style="font-size: small"></asp:RequiredFieldValidator>
<asp:RangeValidator ID="RangeValidator2" runat="server"
ControlToValidate="txtpin" ErrorMessage="Invalid Pin"
MaximumValue="999999"
MinimumValue="100000" Type="Double"></asp:RangeValidator>
</td>
</tr>
<tr>
<td class="lbl">
BirthDate :</td>
<td align="left">
<asp:DropDownList ID="DrpDD" runat="server">
<asp:ListItem>DD</asp:ListItem>
<asp:ListItem>01</asp:ListItem>
<asp:ListItem>02</asp:ListItem>
<asp:ListItem>03</asp:ListItem>
<asp:ListItem>04</asp:ListItem>
<asp:ListItem>05</asp:ListItem>
<asp:ListItem>06</asp:ListItem>
<asp:ListItem>07</asp:ListItem>
<asp:ListItem>08</asp:ListItem>
<asp:ListItem>09</asp:ListItem>
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>11</asp:ListItem>
<asp:ListItem>12</asp:ListItem>
<asp:ListItem>13</asp:ListItem>
<asp:ListItem>14</asp:ListItem>
<asp:ListItem>15</asp:ListItem>
<asp:ListItem>16</asp:ListItem>
<asp:ListItem>17</asp:ListItem>
<asp:ListItem>18</asp:ListItem>
<asp:ListItem>19</asp:ListItem>
<asp:ListItem>20</asp:ListItem>
<asp:ListItem>21</asp:ListItem>
<asp:ListItem>22</asp:ListItem>
<asp:ListItem>23</asp:ListItem>
<asp:ListItem>24</asp:ListItem>
<asp:ListItem>25</asp:ListItem>
<asp:ListItem>26</asp:ListItem>
<asp:ListItem>27</asp:ListItem>
<asp:ListItem>28</asp:ListItem>
<asp:ListItem>29</asp:ListItem>
<asp:ListItem>30</asp:ListItem>
<asp:ListItem>31</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="Drpmm" runat="server">
<asp:ListItem>MM</asp:ListItem>
<asp:ListItem>jan</asp:ListItem>
<asp:ListItem>feb</asp:ListItem>
<asp:ListItem>mar</asp:ListItem>
<asp:ListItem>apr</asp:ListItem>
<asp:ListItem>may</asp:ListItem>
<asp:ListItem>june</asp:ListItem>
<asp:ListItem>july</asp:ListItem>
<asp:ListItem>aug</asp:ListItem>
<asp:ListItem>sep</asp:ListItem>
<asp:ListItem>oct</asp:ListItem>
<asp:ListItem>nov</asp:ListItem>
<asp:ListItem>dec</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="Drpyyy" runat="server">
<asp:ListItem>YYY</asp:ListItem>
<asp:ListItem>1970</asp:ListItem>
<asp:ListItem>1971</asp:ListItem>
<asp:ListItem>1972</asp:ListItem>
<asp:ListItem>1973</asp:ListItem>
<asp:ListItem>1974</asp:ListItem>
<asp:ListItem>1975</asp:ListItem>
<asp:ListItem>1976</asp:ListItem>
<asp:ListItem>1977</asp:ListItem>
<asp:ListItem>1978</asp:ListItem>
<asp:ListItem>1979</asp:ListItem>
<asp:ListItem>1980</asp:ListItem>
<asp:ListItem>1981</asp:ListItem>
<asp:ListItem>1982</asp:ListItem>
<asp:ListItem>1983</asp:ListItem>
<asp:ListItem>1984</asp:ListItem>
<asp:ListItem>1985</asp:ListItem>
<asp:ListItem>1986</asp:ListItem>
<asp:ListItem>1987</asp:ListItem>
<asp:ListItem>1988</asp:ListItem>
<asp:ListItem>1989</asp:ListItem>
<asp:ListItem>1990</asp:ListItem>
<asp:ListItem>1991</asp:ListItem>
<asp:ListItem>1992</asp:ListItem>
<asp:ListItem>1993</asp:ListItem>
<asp:ListItem>1994</asp:ListItem>
<asp:ListItem>1995</asp:ListItem>
<asp:ListItem>1996</asp:ListItem>
<asp:ListItem>1997</asp:ListItem>
<asp:ListItem>1998</asp:ListItem>
<asp:ListItem>1999</asp:ListItem>
<asp:ListItem>2000</asp:ListItem>
<asp:ListItem>2001</asp:ListItem>
<asp:ListItem>2002</asp:ListItem>
<asp:ListItem>2003</asp:ListItem>
<asp:ListItem>2004</asp:ListItem>
<asp:ListItem>2005</asp:ListItem>
<asp:ListItem>2006</asp:ListItem>
<asp:ListItem>2007</asp:ListItem>
<asp:ListItem>2008</asp:ListItem>
<asp:ListItem>2009</asp:ListItem>
<asp:ListItem>2010</asp:ListItem>
<asp:ListItem>2011</asp:ListItem>
<asp:ListItem>2012</asp:ListItem>
<asp:ListItem>2013</asp:ListItem>
<asp:ListItem>2014</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="lbl">
</td>
<td align="left">
<asp:RadioButton ID="RadioButton1" runat="server" Checked="True"
GroupName="A"
Text="MALE" />
<asp:RadioButton ID="RadioButton2" runat="server" GroupName="A" Text="FEMALE" />
</td>
</tr>
<tr>
<td class="lbl">
Email Id :</td>
<td align="left">
<asp:TextBox ID="txtuname" runat="server" BorderColor="#003300"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="133px"
CssClass="txtbox"></asp:TextBox>
<asp:TextBox ID="txtuname0" runat="server" BorderColor="#003300"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="100px"
CssClass="txtbox" ReadOnly="True">@yahoo.com</asp:TextBox>
</td>
</tr>
<tr>
<td class="lbl">
Password :</td>
<td align="left">
<asp:TextBox ID="txtpass" runat="server" BorderColor="#003300"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="157px"
CssClass="txtbox" TextMode="Password"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style3">
</td>
<td align="left">
<asp:Label ID="lblerror" runat="server" ForeColor="Red"></asp:Label>
</td>
</tr>
<tr>
<td class="style3">
</td>
<td align="left">
<asp:Button ID="Button1" runat="server" BorderColor="#006600"
BorderStyle="Solid" BorderWidth="1px" Font-Bold="True"
ForeColor="#003300"
Height="30px" Text="Register Now" Width="102px"
onclick="Button1_Click"
CssClass="btnn" />
</td>
</tr>
<tr>
<td class="style3">
</td>
<td align="left">
<asp:LinkButton ID="LinkButton1" runat="server" Font-Bold="True"
Font-Names="Calibri" ForeColor="#003300"
PostBackUrl="~/Default.aspx" CausesValidation="False">Allready
have an Account ?</asp:LinkButton>
</td>
</tr>
</table>
</div>
</form>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
</body>
</html>
Cs file
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;
}
protected void Button1_Click(object sender, EventArgs e)
{
lblerror.Text = "";
UDT = UAdapter.SelectForEmailCheck(txtuname.Text+"@yahoo.com");
if (DrpDD.SelectedIndex == 0)
{
if (UDT.Rows.Count == 1)
{
lblerror.Text = "Email already exist !!";
}
else
{
string img = "";
if (RadioButton1.Checked == true)
{
img = "~/img/boy.jpeg";
}
else
{
img = "~/img/girl.jpeg";
}
if (txtpass.Text.Length > 8)
{
if (UDT.Rows.Count > 0)
{
lblerror.Text = "UserName Already Exist";
}
else
{
int inst = UAdapter.Insert(txtfname.Text, txtsname.Text,
Convert.ToDateTime(DrpDD.SelectedItem.Text + " " + Drpmm.SelectedItem.Text + " " +
Drpyyy.SelectedItem.Text), txtadd.Text, txtcity.Text, txtpin.Text, txtmo.Text,
txtuname.Text + txtuname0.Text, txtpass.Text, img);
Response.Redirect("Default.aspx");
}
}
else
{
lblerror.Text = "Password more then 8 char";
}
}
}
}
}
Compose
ontextchanged="txtsubject_TextChanged" CssClass="txt"></asp:TextBox>
</td>
</tr>
<tr>
<td>
</td>
<td class="style17">
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td class="style16">
Message :</td>
<td>
<asp:TextBox
ID="txtmessage" runat="server" Height="149px" TextMode="MultiLine"
Width="515px"
CssClass="txt"></asp:TextBox>
</td>
</tr>
<tr>
<td>
</td>
<td class="style17">
</td>
<td>
<asp:Button ID="Button3"
runat="server" CssClass="btnn" Text="SEND"
Width="90px"
onclick="Button3_Click" Height="30px" />
<asp:LinkButton
ID="LinkButton1" runat="server"
onclick="LinkButton1_Click" ForeColor="#003300">Attachment</asp:LinkButton>
<asp:Label
ID="att1" runat="server"></asp:Label>
<asp:Label ID="att2"
runat="server"></asp:Label>
</td>
</tr>
<tr>
<td>
</td>
<td class="style17">
</td>
<td>
<asp:FileUpload
ID="FileUpload1" runat="server" Visible="False" />
</td>
</tr>
<tr>
<td>
</td>
<td class="style17">
</td>
<td>
<asp:FileUpload
ID="FileUpload2" runat="server" Visible="False" />
<asp:Button
ID="btnuploadsingle" runat="server" CssClass="btnn" Text="Upload"
Visible="False"
onclick="btnuploadsingle_Click" Height="28px"
Width="80px" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:View>
<asp:View ID="View2" runat="server">
<table style="border: thin solid #0000FF"
width="100%">
<tr>
<td class="tl" bgcolor="#8CD98C">
Send Mail to Multiple Person :
</td>
</tr>
<tr>
<td>
<table class="style14">
<tr>
<td>
</td>
<td class="style17">
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td class="style16">
To :</td>
<td>
<asp:CheckBoxList
ID="CheckBoxList1" runat="server" Height="21px"
onselectedindexchanged="CheckBoxList1_SelectedIndexChanged"
RepeatColumns="3">
</asp:CheckBoxList>
</td>
</tr>
<tr>
<td>
</td>
<td class="style16">
Title :</td>
<td>
<asp:TextBox
ID="txtsubjectgroup" runat="server" Height="30px" Width="519px"
CssClass="txt"></asp:TextBox>
</td>
</tr>
<tr>
<td>
</td>
<td class="style17">
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td class="style16">
Message :</td>
<td>
<asp:TextBox
ID="txtmessagegroup" runat="server" Height="149px"
TextMode="MultiLine"
Width="515px"
ontextchanged="txt_TextChanged" CssClass="txt"></asp:TextBox>
</td>
</tr>
<tr>
<td>
</td>
<td class="style17">
</td>
<td>
<asp:Button
ID="sendgroup" runat="server" CssClass="btnn" Text="SEND"
Width="90px"
onclick="Button5_Click" Height="30px" />
<asp:LinkButton
ID="LinkButton2" runat="server" onclick="LinkButton2_Click"
ForeColor="#003300">Attachment</asp:LinkButton>
<asp:Label ID="att3"
runat="server"></asp:Label>
<asp:Label ID="att4"
runat="server"></asp:Label>
<br />
<asp:FileUpload
ID="FileUpload3" runat="server" Visible="False" />
<br />
<asp:FileUpload
ID="FileUpload4" runat="server" Visible="False" />
<asp:Button
ID="btnuploadsinglegroup" runat="server" CssClass="btnn"
Height="30px"></asp:TextBox>
</td>
</tr>
<tr>
<td>
</td>
<td class="style16">
Title :</td>
<td>
<asp:TextBox
ID="txtsubject0" runat="server" BackColor="#F9FFFE" Height="30px"
</asp:Content>
Cs file
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;
using System.Net.Mail;
// MultiView1.ActiveViewIndex = -1;
}
protected void RadioButton1_CheckedChanged(object sender, EventArgs e)
{
MultiView1.ActiveViewIndex = 0;
if (Page.IsPostBack == false)
{
CDT = CAdapter.selectbyemail(Session["email"].ToString());
DropDownList1.DataSource = CDT;
DropDownList1.DataTextField = "Toemail";
DropDownList1.DataValueField = "cid";
DropDownList1.DataBind();
}
}
protected void RadioButton2_CheckedChanged(object sender, EventArgs e)
{
MultiView1.ActiveViewIndex = 1;
CDT = CAdapter.selectbyemail(Session["email"].ToString());
CheckBoxList1.DataSource = CDT;
CheckBoxList1.DataTextField = "Toemail";
CheckBoxList1.DataValueField = "cid";
CheckBoxList1.DataBind();
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
btnuploadsingle.Visible = true;
FileUpload1.Visible = true;
FileUpload2.Visible = true;
}
protected void Button2_Click(object sender, EventArgs e)
{
Label1.Text = DropDownList1.SelectedItem.Text;
}
protected void btnuploadsingle_Click(object sender, EventArgs e)
{
att1.Text = "";
att2.Text = "";
if (FileUpload1.HasFile != false)
{
}
Label1.Text = "";
att1.Text = "";
att2.Text = "";
txtmessage.Text = "";
txtsubject.Text= "";
}
protected void txt_TextChanged(object sender, EventArgs e)
{
}
protected void Button5_Click(object sender, EventArgs e)
{
for (int i = 0; i < CheckBoxList1.Items.Count; i++)
{
if (CheckBoxList1.Items[i].Selected == true)
{
}
}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
Label1.Text = DropDownList1.SelectedItem.Text;
}
protected void txtsubject_TextChanged(object sender, EventArgs e)
{
}
protected void btnuploadsinglegroup_Click(object sender, EventArgs e)
{
att3.Text = "";
att4.Text = "";
if (FileUpload3.HasFile != false)
{
}
protected void LinkButton2_Click(object sender, EventArgs e)
{
btnuploadsinglegroup.Visible = true;
FileUpload3.Visible = true;
FileUpload4.Visible = true;
MultiView1.ActiveViewIndex = 1;
}
protected void CheckBoxList1_SelectedIndexChanged(object sender, EventArgs e)
{
}
protected void btnsend_Web_Click(object sender, EventArgs e)
{
MailMessage mail = new MailMessage();
mail.To.Add(txtemaill.Text);
mail.IsBodyHtml = true;
SmtpClient smtp = new SmtpClient();
smtp.Host = "smtp.gmail.com";
smtp.Credentials = new System.Net.NetworkCredential
("demoemailserver2014@gmail.com", "9574903871");
smtp.EnableSsl = true;
smtp.Send(mail);
txtemaill.Text = "";
txtsubject0.Text= "";
MultiView1.ActiveViewIndex = 2;
lblsnd.Text = txtemaill.Text;
}
protected void RadioButton3_CheckedChanged(object sender, EventArgs e)
{
MultiView1.ActiveViewIndex = 3;
}
}
47
CHAPTER 9
48
https://www.3cx.com/pbx/voicemail-system/
https://www.youtube.com/watch?v=PYyNl_4G55A
49