SlideShare a Scribd company logo
1 of 50
i
Project Report
On
SOCIAL NETWORK
Submitted as a partial fulfillment of the requirements for the award of the
degree of
Bachelors of Technology
In
Computer Science & Engineering
Submitted By:
SANA KHURSHEED
(Roll No- 24400110004)
Under The Guidance of
Mr. Avijit Chowdhuri
(Assistant Professor)
DEPARTMENT OF COMPUTER SCEINCE AND ENGINEERING
ii
TECHNO INDIA , BANIPUR.
(Approved by AICTE and affiliated to WBUT)
May, 2014
Certificate
This is to certify that this project entitled “Social network” submitted by
Sana Khursheed student of Computer Science and Engineering
Department, Techno India , Banipur in the partial fulfillment of the
requirement for the award of Bachelors of Technology (Computer
Science &Engineering) Degree of WBUT, is a record of students own
study carried under my supervision & guidance.
This report has not been submitted to any other university or institution
for the award of any degree.
Name of Project Guide
Designation
Mr. Avijit Chowdhuri
Project Co-ordinator
iii
Acknowledgement
Any task in the world cannot be accomplished on a sole basis. It directly or indirectly
needs the overt or covert support of their acquaintances, beloved ones or their faculty
heads. We have culminated our project with the aid of not only our friends but the
assistance provided by our faculties cannot be neglected.
Thus we would like to give a sincere thanks to my institute “Techno India , Banipur”
for providing me the platform in which we have put my raw knowledge of concepts to
an implementation level. The availabilities of laboratories with skilled technicians
made our job easier. The facility of internet provided us with the ease which helped us
to reach the implementation level fast.
We would like to honor our MentorMr. Avijit Chowdhuri, for the incredible support
he gave us. He fostered and encouraged us to pursue it to finish it to the rising stars.
His motivation acted as a strength for us.
Our acknowledgement cannot be complete without mentioning this name who have
not only supported us but also showered his experience drops on our project which
makes it embellishing and a full-fledged technology. Being a project guide, Mr.Avijit
Chowdhuri was not centralized by vesting all the power of project to himself. In spite
of this he delegated his knowledge to us which helped us to learn a lot.
A special thanks to all faculty members who were keen to respond our queries.
Support of our colleagues cannot be snubbed.
Last but not least we would like to thank our parents for supporting us to complete our
presentation report in all ways.
iv
Abstract
Social network sites (SNSs) are increasingly attracting the attention of academic and
industry researchers intrigued by their affordances and reach. This special theme
section of the Journal of Computer-Mediated Communication brings together
scholarship on these emergent phenomena. In this introductory article, we describe
features of SNSs and propose a comprehensive definition. We then present one
perspective on the history of such sites, discussing key changes and developments.
After briefly summarizing existing scholarship concerning SNSs, we discuss the
articles in this special section and conclude with considerations for future research.
v
INTRODUCTION
Since their introduction, social network sites (SNSs) such as MySpace, Facebook,
Cyworld, and Bebo have attracted millions of users, many of whom have integrated
these sites into their daily practices. As of this writing, there are hundreds of SNSs,
with various technological affordances, supporting a wide range of interests and
practices. While their key technological features are fairly consistent, the cultures that
emerge around SNSs are varied. Most sites support the maintenance of pre-existing
social networks, but others help strangers connect based on shared interests, political
views, or activities. Some sites cater to diverse audiences, while others attract people
based on common language or shared racial, sexual, religious, or nationality-based
identities. Sites also vary in the extent to which they incorporate new information and
communication tools, such as mobile connectivity, blogging, and photo/video-sharing.
Scholars from disparate fields have examined SNSs in order to understand the
practices, implications, culture, and meaning of the sites, as well as users' engagement
with them. This special theme section of the Journal of Computer-Mediated
Communication brings together a unique collection of articles that analyze a wide
spectrum of social network sites using various methodological techniques, theoretical
traditions, and analytic approaches. By collecting these articles in this issue, our goal
is to showcase some of the interdisciplinary scholarship around these sites.
The purpose of this introduction is to provide a conceptual, historical, and scholarly
context for the articles in this collection. We begin by defining what constitutes a
social network site and then present one perspective on the historical development of
SNSs, drawing from personal interviews and public accounts of sites and their
changes over time. Following this, we review recent scholarship on SNSs and attempt
to contextualize and highlight key works. We conclude with a description of the
articles included in this special section and suggestions for future research.
vi
PURPOSE
A social networking service is an online service, platform, or site that focuses on
facilitating the building of social networks or social relations among people who, for
example, share interests, activities, backgrounds, or real-life connections. A social
network service consists of a representation of each user (often a profile), his/her
social links, and a variety of additional services. Most social network services
are web-based and provide means for users to interact over the Internet, such as e-
mail and instant messaging. Online community services are sometimes considered as
a social network service, though in a broader sense, social network service usually
means an individual-centered service whereas online community services are group-
centered. Social networking sites allow users to share ideas, activities, events, and
interests within their individual networks.
Social networking sites are not only for you to communicate or interact with other
people globally but, this is also one effective way for business promotion. A lot of
business minded people these days are now doing business online and use these social
networking sites to respond to customer queries. It isn't just a social media site used to
socialize with your friends but also, represents a huge pool of information from day to
dayliving.
vii
SYSTEM DESCRIPTION
TECHNOLOGIES USED:
C# : Programming Interface
C#
C# is a small, simple, safe, object oriented, interpreted or dynamically optimized, byte
coded, architectural, garbage collected, multithreaded programming language with a
strongly typed exception-handling for writing distributed and dynamically extensible
programs.
C# is an object oriented programming language. C# is a high-level, third generation
language like C, FORTRAN, Small talk, Pearl and many others. You can use C# to
write computer applications that crunch numbers, process words, play games, store
data or do any of the thousands of other things computer software can do.
C# supports this application and the follow features make it one of the best
programming languages.
It is simple and object oriented.
It helps to create user friendly interfaces.
It is very dynamic.
TOOLS USED: 1. ASP.NET technology
2. Visual studio IDE.
Front end – C#
Back end- SQL server 2008.
viii
MODULE DESCRIPTION
The entire project is divided into certain modules –
1. Register / Login part.
2. Send message.
3. Send scraps.
4. Search people.
5. Delete friends.
6. View profile.
ix
SYSTEM SPECIFICATIONS
 Hardware Requirements
• Intel Core2 duo processor.
• 1 GB Ram.
 Software Requirements
• Microsoft Visual Studio 2010
• Microsoft SQL Server 2008 R2
• Microsoft Office 2007
•
 Operating System
• Windows XP/Windows Vista/windows7
•
• These are the minimum requirements to run this software and now a days
we have much better configuration then the above.
•
x
ANALYSIS
FEASIBILITY STUDY
Feasibility study is made to see if the project on completion will serve the purpose of
the organization for the amount of work, effort and the time that spend on it.
Feasibility study lets the developer foresee the future of the project and the usefulness.
A feasibility study of a system proposal is according to its workability, which is the
impact on the organization, ability to meet their user needs and effective use of
resources. Thus when a new application is proposed it normally goes through a
feasibility study before it is approved for development.
The document provide the feasibility of the project that is being designed and lists
various areas that were considered very carefully during the feasibility study of this
project such as Technical, Economic and Operational feasibilities. The following are
its features:
TECHNICAL FEASIBILITY
The system must be evaluated from the technical point of view first. The assessment
of this feasibility must be based on an outline design of the system requirement in the
terms of input, output, programs and procedures. Having identified an outline system,
the investigation must go on to suggest the type of equipment, required method
developing the system, of running the system once it has been designed.
Technical issues raised during the investigation are:
 Does the existing technology sufficient for the suggested one?
 Can the system expand if developed?
The project should be developed such that the necessary functions and
performance are achieved within the constraints. The project is developed within
latest technology. Through the technology may become obsolete after some period of
time, due to the fact that never version of same software supports older versions, the
system may still be used. So there are minimal constraints involved with this project.
The system has been developed using Java the project is technically feasible for
development.
We as Analysts have identified the existing computer systems (hardware & software)
of the concerned department and have determined whether these technical resources
are sufficient for the proposed system or not. We have found out thus, that the project
is technically very much feasible. The hardware and software requirements are:
xi
ECONOMIC FEASIBILITY
The developing system must be justified by cost and benefit. Criteria to ensure that
effort is concentrated on project, which will give best, return at the earliest. One of the
factors, which affect the development of a new system, is the cost it would require.
The following are some of the important financial questions asked during preliminary
investigation:
 The costs conduct a full system investigation.
 The cost of the hardware and software.
 The benefits in the form of reduced costs or fewer costly errors.
Since the system is developed as part of project work, there is no manual cost to
spend for the proposed system. Also all the resources are already available, it give an
indication of the system is economically possible for development.
BEHAVIORAL FEASIBILITY
This includes the following questions:
 Is there sufficient support for the users?
 Will the proposed system cause harm?
The project would be beneficial because it satisfies the objectives when developed
and installed. All behavioral aspects are considered carefully and conclude that the
project is behaviorally feasible.
6.3 USER CHARACTERISTICS:
1. Can login or register
2. Can search people.
3. Can send message.
4. Can delete friends.
5. Can send scraps.
xii
SOFTWARE INTEGRATION & VERIFICATION:
Each unit is developed independently and can be tested for its functionality. This is
the so called Unit Testing. It simply verifies if the modules or units to check if they
meet their specifications. This involves functional tests at the interfaces of the
modules, but also more detailed tests which consider the inner structure of the
software modules. During integration the units which are developed and tested for
their functionalities are brought together. The modules are integrated into a complete
system and tested to check if all modules cooperate as expected.
SYSTEM VERIFICATION:
After successfully integration including the related tests the complete system has to be
tested against its initial requirements. This will include the original hardware and
environment, whereas the previous integration and testing phase may still be
performed in a different environment or on a test bench
.
OPERATION & MAINTENANCE:
The system is handed over to the customer and will be used the first time by him.
Naturally the customer will check if his requirements were implemented as expected
but he will also validate if the correct requirements have been set up in the beginning.
In case there are changes necessary it has to be fixed to make the system usable or to
make it comply with the customer wishes. In most of the "Waterfall Model"
descriptions this phase is extended to a never ending phase of "Operations &
Maintenance". All the problems which did not arise during the previous phases will
be solved in this last phase
.
DESIGN STRATEGY:
A good system design strategy is to organize the program modules in such a way that
are easy to develop and later to, change. Structured design techniques help developers
to deal with the size and complexity of programs. Analysts create instructions for the
developers about how code should be written and how pieces of code should fit
together to form a program. It is important for two reasons:
First, even pre-existing code, if any, needs to be understood, organized and
pieced together.
xiii
Second, it is still common for the product team to have to write some code and
produce original programs that support the application logic of the system.
There are two main design strategies: Top-down and Bottom-up strategies.
BOTTOM-UP
In our project we follow bottom up design strategy because we are aware of the
modules of our project and we decide how to combine these modules to provide larger
ones; to combine those to even larger ones, and so on, till we arrive at one big module
which is the whole of the desired program.
In a bottom-up approach the individual base elements of the system are first specified
in great detail. These elements are then linked together to form larger subsystems,
which then in turn are linked, sometimes in many levels, until a complete top-level
system is formed. This strategy often resembles a "seed" model, whereby the
beginnings are small, but eventually grow in complexity and completeness.
DATA FLOW DIAGRAM
Data flow oriented techniques advocate that the major data items handled by a system
must be first identified and then the processing required on these data items to
produce the desired outputs should be determined. The DFD (also called as bubble
chart) is a simple graphical formalism that can be used to represent a system in terms
of input data to the system, various processing carried out on these data, and the
output generated by the system. It was introduced by De Macro (1978), Gane and
Sarson (1979).The primitive symbols used for constructing DFD’s are:
Symbols used in DFD
A circle represents a process.
A rectangle represents external entity
xiv
A square defines a source or destination of the system.
An arrow identifies dataflow.
Context Diagram
Level 1 DFD
Logout
Login Social like
sharingAdministrator/
User
User Search user
Send Scraps
Check profile
Sent messageDelete friends
xv
Use Case Diagram
Login details for
verification and
validation
Login /
Register
User
Login
Manage users
Manages
Search for user
View scraps
Delete user
Send message
xvi
Entity relation diagram
USER HOME
MESSAGE PEOPLE
LOGIN/
REGISTER
CAN
SEND SEARCH/
DELETE
USER_ID
USER_NAME
USER_PASS
DELETE_FRIENDS
FEEDBACK
CHECK_PROFILE
CHANGE_PASS
SCRAPS
PHOTOGALLERY
xvii
TABLE STRUCTURE
Table login
COLOUMN NAME DATA TYPE
First name Varchar
Middle name Varchar
Last name Varchar
Email (primary key) Varchar
Password Varchar
State Varchar
City Varchar
Pin Int
Table request
Coloumn name Data type
Rid Int
Requestfrom Varchar
Requestto Varchar
Status varchar
Table scrap
Coloumn name Data type
Sid Int
Sname Varchar
Sch Varchar
Sdetails varchar
xviii
Table feed
Coloumn name Data type
Fid Int
Name Varchar
Address Varchar
City Varchar
State Varchar
Country Varchar
Phone Int
Mobile Int
Fdate Date
Feedback varchar
Table news
Coloumn name Data type
Anid Int
Anew
Andate Date
Andetails varchar
Table admin login
Coloumn name Data type
Admin id Varchar
Password varchar
xix
Table add
Coloumn name Data type
Aaid Int
Aid Int
Aadv Varchar
Aadis Varchar
Aatype Varchar
Photo image
Table profile
Coloumn name Data type
Pid Int
Photo Image
First name Varchar
Middle name Varchar
Last name Varchar
Gender Varchar
Birthday Date
City Varchar
State Varchar
Pin Int
Phone Int
Mobile Int
xx
CODING
Login (aspx page)
<%@PageLanguage="C#"MasterPageFile="~/Login.master"AutoEventWireup="true"CodeFi
le="login.aspx.cs"Inherits="login"Title="Login"%>
<asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat="Serve
r">
<tablestyle="width: 100%; position: static">
<tr>
<tdcolspan="2"style="height: 17px; text-align: center">
<strong><spanstyle="font-size: 32pt;"><spanstyle="font-family: Verdana">
<spanstyle="color: #000000">
<span
style="text-decoration: underline; font-size: x-
large;">LogIn</span></span></span></span></strong></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; font-weight: bold; font-size: small;
font-family: Verdana; color: #663300;">
<strong><spanstyle="font-size: small; color: #663300; font-family:
Verdana;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp; UserID:&nbsp;</span></strong></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtemail"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"Width="130px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; height: 28px; font-weight: bold; font-
size: small; font-family: Verdana; color: #663300;">
<strong><spanstyle="font-size: small; color: #663300; font-family:
Verdana;">Password: </span></strong>
</td>
<tdstyle="width: 50%; height: 28px;">
<asp:TextBoxID="txtpass"runat="server"Style="position: static"
TextMode="Password"BorderColor="#3366CC"BorderWidth="1px"Width="130px"></asp:Te
xtBox></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right">
</td>
<tdstyle="width: 50%">
<asp:LabelID="Label1"runat="server"ForeColor="Red"Style="position:
static"></asp:Label></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right">
</td>
xxi
<tdstyle="width: 50%">
<asp:ButtonID="btnlogin"runat="server"BorderColor="Black"Font-
Bold="True"ForeColor="White"
OnClick="Button1_Click"Style="position: static"Text="Login"Width="72px"
BackColor="#009900"BorderWidth="1px"/></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right">
</td>
<tdstyle="width: 50%">
<asp:LinkButtonID="LinkButton1"runat="server"Font-
Bold="True"ForeColor="#000040"
Style="position: static"PostBackUrl="~/Register.aspx">Sign
up</asp:LinkButton></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right">
</td>
<tdstyle="width: 50%">
<asp:LinkButtonID="LinkButton2"runat="server"Font-
Bold="True"ForeColor="#000040"
Style="position: static"PostBackUrl="~/forget.aspx">Forget Password
?</asp:LinkButton></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right">
&nbsp;</td>
<tdstyle="width: 50%">
<asp:SqlDataSourceID="SqlDataSource1"runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString%>"
SelectCommand="SELECT * FROM [profile1]"></asp:SqlDataSource>
</td>
</tr>
</table>
</asp:Content>
Login (cs page)
using System;
using System.Data;
using System.Configuration;
using System.Collections;
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.Data.SqlClient;
publicpartialclasslogin : System.Web.UI.Page
{
SqlConnection cn =
newSqlConnection(ConfigurationManager.ConnectionStrings[1].ConnectionString);
protectedvoid Page_Load(object sender, EventArgs e)
xxii
{
}
protectedvoid Button1_Click(object sender, EventArgs e)
{
try
{
cn.Open();
string sql = "select * from tbllogin where Email='" + txtemail.Text + "' and
Password='" + txtpass.Text + "'and Status='Y'";
SqlCommand cmd = newSqlCommand(sql, cn);
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read() == true)
{
Session["uname"] = dr[3].ToString();
Response.Redirect("~/Profile/profile1.aspx");
}
else
{
Label1.Text = "Email ID and password invalid";
}
cn.Close();
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}
}
Check profile (aspx page)
<%@PageLanguage="C#"MasterPageFile="~/Home/Home.master"AutoEventWireup="true"Co
deFile="checkprofile.aspx.cs"Inherits="Home_checkprofile"Title="Check
Profile"%>
<asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat="Serve
r">
<tablestyle="width: 100%; position: static">
<tr>
<tdcolspan="2"style="text-align: center">
<strong>
<spanstyle="font-size: x-large; font-family: Verdana; text-decoration:
underline;"
class="style1">Update Your Profile</span></strong></td>
</tr>
<tr>
<tdstyle="width: 50%">
</td>
<tdstyle="width: 50%">
xxiii
<asp:TextBoxID="txtProEmail"runat="server"Style="position: static"
Visible="False"BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%">
</td>
<tdstyle="width: 50%">
<asp:ButtonID="Chkprofile"runat="server"BackColor="#009900"Font-
Bold="True"ForeColor="White"
Style="position: static"Text="Check Profile"OnClick="Chkprofile_Click"
BorderColor="Black"BorderWidth="1px"/></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; color: #663300; font-size: small;
font-family: Verdana;">
<strong><spanstyle="color: #663300; font-size: small; font-family:
Verdana;">First Name:</span></strong></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtfnm"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; color: #663300; font-size: small;
font-family: Verdana;">
<strong><spanstyle="color: #663300; font-size: small; font-family:
Verdana;">Middle Name:</span></strong></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtmnm"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; color: #663300; font-size: small;
font-family: Verdana;">
<strong><spanstyle="color: #663300; font-size: small; font-family:
Verdana;">Last Name:</span></strong></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtlnm"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; color: #663300; font-size: small;
font-family: Verdana;">
<strong><spanstyle="color: #663300; font-size: small; font-family:
Verdana;">Gender:</span></strong></td>
<tdstyle="width: 50%">
<asp:RadioButtonID="rbtmale"runat="server"Style="position: static"Text="Male"/>
<asp:RadioButtonID="rbtfemale"runat="server"Style="position: static"
Text="Female"/></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; color: #663300; font-size: small;
font-family: Verdana;">
<strong><spanstyle="color: #663300; font-size: small; font-family:
Verdana;">Birth of date:</span></strong></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtdate"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; color: #663300; font-size: small;
font-family: Verdana;">
xxiv
<spanstyle="color: #663300; font-size: small; font-family:
Verdana;"><strong>City:</strong></span></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtct"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; color: #663300; font-size: small;
font-family: Verdana;">
<strong><spanstyle="color: #663300; font-size: small; font-family:
Verdana;">State:</span></strong></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtstate"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; color: #663300; font-size: small;
font-family: Verdana;">
<strong><spanstyle="color: #663300; font-size: small; font-family:
Verdana;">Pin:</span></strong></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtpin"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; color: #663300; font-size: small;
font-family: Verdana;">
<strong><spanstyle="color: #663300; font-size: small; font-family:
Verdana;">Phone no:</span></strong></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtphone"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; color: #663300; font-size: small;
font-family: Verdana;">
<strong><spanstyle="color: #663300; font-size: small; font-family:
Verdana;">Mobile no:</span></strong></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtmobile"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%">
</td>
<tdstyle="width: 50%">
<asp:ButtonID="Button1"runat="server"BackColor="#009900"Font-
Bold="True"ForeColor="White"
Style="position: static"Text="Update"Width="83px"
OnClick="Button1_Click"BorderColor="Black"BorderWidth="1px"/></td>
</tr>
<tr>
<tdstyle="width: 50%">
</td>
<tdstyle="width: 50%">
<asp:LabelID="lblsuccess"runat="server"Font-
Bold="True"ForeColor="#000040"Style="position: static"></asp:Label></td>
</tr>
</table>
</asp:Content>
xxv
Check profile(cs page)
using System;
using System.Data;
using System.Configuration;
using System.Collections;
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.Data.SqlClient;
publicpartialclassHome_checkprofile : System.Web.UI.Page
{
SqlConnection cn =
newSqlConnection(ConfigurationManager.ConnectionStrings[1].ConnectionString);
protectedvoid Page_Load(object sender, EventArgs e)
{
txtProEmail.Text = Session["uname"].ToString();
}
protectedvoid Chkprofile_Click(object sender, EventArgs e)
{
try
{
cn.Open();
string sql1 = "select * from profile1 where Email='" + txtProEmail.Text + "' ";
SqlCommand cmd1 = newSqlCommand(sql1, cn);
SqlDataReader dr1 = cmd1.ExecuteReader();
if (dr1.Read() == true)
{
txtfnm.Text = dr1[3].ToString();
txtmnm.Text = dr1[4].ToString();
txtlnm.Text = dr1[5].ToString();
txtdate.Text = dr1[7].ToString();
txtct.Text = dr1[8].ToString();
txtstate.Text = dr1[9].ToString();
txtpin.Text = dr1[10].ToString();
txtphone.Text = dr1[11].ToString();
txtmobile.Text = dr1[12].ToString();
if (dr1[6].ToString() == "Male")
{
rbtmale.Checked = true;
}
else
{
rbtfemale.Checked = true;
}
}
cn.Close();
xxvi
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}
protectedvoid Button1_Click(object sender, EventArgs e)
{
try
{
string gender;
if (rbtmale.Checked == true)
{
gender = "Male";
}
else
{
gender = "FeMale";
}
cn.Open();
string sql = "update profile1 set fnm='" + txtfnm.Text + "',mnm='" +
txtmnm.Text + "',lnm='" + txtlnm.Text + "',bdate='" + txtdate.Text +
"',gender='" + gender + "',city='" + txtct.Text +
"',state='"+txtstate.Text+"',pin='" + txtpin.Text + "',phone='" + txtphone.Text
+ "',mobile='" + txtmobile.Text + "' where email='" + txtProEmail.Text + "' ";
SqlCommand cmd = newSqlCommand(sql, cn);
cmd.ExecuteNonQuery();
cn.Close();
lblsuccess.Text = "Information Updated Successfully";
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}
}
Scraps (aspx page)
<%@PageLanguage="C#"MasterPageFile="~/Home/Home.master"AutoEventWireup="true"Co
deFile="scrap.aspx.cs"Inherits="Home_scrap"Title="Scrap"%>
<asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat="Serve
r">
&nbsp;<tablestyle="width: 100%">
<tr>
<tdstyle="width: 100%; background-color: #999966">
<strong>My Scraps..</strong></td>
</tr>
<tr>
xxvii
<tdstyle="width: 100%">
<asp:GridViewID="GridView1"runat="server"AllowPaging="True"AutoGenerateColumns=
"False"
CellPadding="4"DataSourceID="SqlDataSource1"ForeColor="#333333"GridLines="None"
Width="100%">
<FooterStyleBackColor="#5D7B9D"Font-Bold="True"ForeColor="White"/>
<Columns>
<asp:BoundFieldDataField="sname"HeaderText="Sender's
Name"SortExpression="sname"/>
<asp:BoundFieldDataField="sdetails"HeaderText="Scrap
Details"SortExpression="sdetails"/>
<asp:CommandFieldShowDeleteButton="True"ShowSelectButton="True"/>
</Columns>
<RowStyleBackColor="#F7F6F3"ForeColor="#333333"/>
<EditRowStyleBackColor="#999999"/>
<SelectedRowStyleBackColor="#E2DED6"Font-Bold="True"ForeColor="#333333"/>
<PagerStyleBackColor="#284775"ForeColor="White"HorizontalAlign="Center"/>
<HeaderStyleBackColor="#5D7B9D"Font-Bold="True"ForeColor="White"/>
<AlternatingRowStyleBackColor="White"ForeColor="#284775"/>
</asp:GridView>
<asp:SqlDataSourceID="SqlDataSource1"runat="server"ConflictDetection="CompareAl
lValues"
ConnectionString="<%$
ConnectionStrings:ConnectionString%>"DeleteCommand="DELETE FROM [tblScrap]
WHERE [sid] = @original_sid"
InsertCommand="INSERT INTO [tblScrap] ([sdetails], [sname]) VALUES (@sdetails,
@sname)"
OldValuesParameterFormatString="original_{0}"SelectCommand="SELECT [sdetails],
[sname], [sid] FROM [tblScrap] WHERE ([sch] = @sch)"
UpdateCommand="UPDATE [tblScrap] SET [sdetails] = @sdetails, [sname] = @sname
WHERE [sid] = @original_sid AND [sdetails] = @original_sdetails AND [sname] =
@original_sname">
<DeleteParameters>
<asp:ParameterName="original_sid"Type="Int32"/>
<asp:ParameterName="original_sdetails"Type="String"/>
<asp:ParameterName="original_sname"Type="String"/>
</DeleteParameters>
<UpdateParameters>
<asp:ParameterName="sdetails"Type="String"/>
<asp:ParameterName="sname"Type="String"/>
<asp:ParameterName="original_sid"Type="Int32"/>
<asp:ParameterName="original_sdetails"Type="String"/>
<asp:ParameterName="original_sname"Type="String"/>
</UpdateParameters>
<SelectParameters>
<asp:SessionParameterName="sch"SessionField="uname"Type="String"/>
</SelectParameters>
<InsertParameters>
<asp:ParameterName="sdetails"Type="String"/>
<asp:ParameterName="sname"Type="String"/>
</InsertParameters>
</asp:SqlDataSource>
</td>
</tr>
</table>
</asp:Content>
View profile (aspx page)
xxviii
<%@PageLanguage="C#"MasterPageFile="~/Profile/profile1.master"AutoEventWireup="
true"CodeFile="profile1.aspx.cs"Inherits="Profile_profile1"Title="Untitled
Page"%>
<asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat="Serve
r">
<tablestyle="width: 100%; position: static">
<tr>
<tdcolspan="2"style="text-align: center">
<spanstyle="font-size: x-large; color: #ffffff; font-family: Verdana">
<strongstyle="color: #000000">CreateYour Profile</strong></span></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300;
font-size: small; font-family: Verdana;">
<spanstyle="font-size: small; color: #663300; font-family: Verdana;"><strong>
Profile Picture:</strong></span></td>
<tdstyle="width: 50%; text-align: left">
<asp:FileUploadID="FileUpload1"runat="server"
Style="position: static; text-align: left"BorderColor="#3366CC"
BorderWidth="1px"/></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300;
font-size: small; font-family: Verdana;">
<strong><spanstyle="font-size: small; color: #663300; font-family:
Verdana;">First Name:</span></strong></td>
<tdstyle="width: 50%; text-align: left">
<asp:TextBoxID="txtfnm"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300;
font-size: small; font-family: Verdana;">
<strong><spanstyle="font-size: small; color: #663300; font-family:
Verdana;">Middle Name:</span></strong></td>
<tdstyle="width: 50%; text-align: left">
<asp:TextBoxID="txtmnm"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300;
font-size: small; font-family: Verdana;">
<strong><spanstyle="font-size: small; color: #663300; font-family:
Verdana;">Last Name:</span></strong></td>
<tdstyle="width: 50%; text-align: left">
<asp:TextBoxID="txtlnm"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300;
font-size: small; font-family: Verdana;">
<strong><spanstyle="font-size: small; color: #663300; font-family:
Verdana;">Gender:</span></strong></td>
<tdstyle="width: 50%; text-align: left">
<asp:RadioButtonID="rbtmale"runat="server"Style="position: static"
Font-Bold="True"ForeColor="Black"Text="Male"Checked="True"GroupName="1"/>
<asp:RadioButtonID="RadioButton2"runat="server"Style="position: static"
Font-Bold="True"ForeColor="Black"Text="Female"GroupName="1"/></td>
</tr>
<tr>
xxix
<tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300;
font-size: small; font-family: Verdana;">
<strong><spanstyle="font-size: small; color: #663300; font-family:
Verdana;">Birth of date:</span></strong></td>
<tdstyle="width: 50%; text-align: left">
<asp:DropDownListID="ddlday"runat="server"Style="position: static">
</asp:DropDownList>
<asp:DropDownListID="ddlmonth"runat="server"Style="position: static">
</asp:DropDownList>
<asp:DropDownListID="ddlyear"runat="server"Style="position: static">
</asp:DropDownList></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300;
font-size: small; font-family: Verdana;">
<strong><spanstyle="font-size: small; color: #663300; font-family:
Verdana;">City:</span></strong></td>
<tdstyle="width: 50%; text-align: left">
<asp:TextBoxID="txtct"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300;
font-size: small; font-family: Verdana;">
<strong><spanstyle="font-size: small; color: #663300; font-family:
Verdana;">State:</span></strong></td>
<tdstyle="width: 50%; text-align: left">
<asp:TextBoxID="txtstate"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300;
font-size: small; font-family: Verdana;">
<strong><spanstyle="font-size: small; color: #663300; font-family:
Verdana;">Pin:</span></strong></td>
<tdstyle="width: 50%; text-align: left">
<asp:TextBoxID="txtpin"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300;
font-size: small; font-family: Verdana;">
<strong><spanstyle="font-size: small; color: #663300; font-family:
Verdana;">Phone no:</span></strong></td>
<tdstyle="width: 50%; text-align: left">
<asp:TextBoxID="txtphone"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300;
font-size: small; font-family: Verdana;">
<strong><spanstyle="font-size: small; color: #663300; font-family:
Verdana;">Mobile no:</span></strong></td>
<tdstyle="width: 50%; text-align: left">
<asp:TextBoxID="txtmobile"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%">
</td>
<tdstyle="width: 50%; text-align: left">
xxx
<asp:ButtonID="Button1"runat="server"BackColor="#009900"Font-
Bold="True"ForeColor="White"
Style="position: static"Text="Submit"Width="89px"
OnClick="Button1_Click"BorderColor="Black"BorderWidth="1px"Height="28px"/></td>
</tr>
</table>
</asp:Content>
View profile (cs page)
using System;
using System.Data;
using System.Configuration;
using System.Collections;
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.Data.SqlClient;
publicpartialclassProfile_profile1 : System.Web.UI.Page
{
SqlConnection cn =
newSqlConnection(ConfigurationManager.ConnectionStrings[1].ConnectionString);
protectedvoid Page_Load(object sender, EventArgs e)
{
int i;
for (i = 1; i <= 31; i++)
{
ddlday.Items.Add(i.ToString());
}
for (i = 1; i <= 12; i++)
{
ddlmonth.Items.Add(i.ToString());
}
for (i = 1987; i < 2097; i++)
{
ddlyear.Items.Add(i.ToString());
}
try
{
cn.Open();
xxxi
string sql1 = "select * from profile1 where Email='" +
Session["uname"].ToString() + "' ";
SqlCommand cmd1 = newSqlCommand(sql1, cn);
SqlDataReader dr1 = cmd1.ExecuteReader();
if (dr1.Read() == true)
{
Response.Redirect("~/Home/Home.aspx");
}
cn.Close();
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}
protectedvoid Button1_Click(object sender, EventArgs e)
{
try
{
cn.Open();
string dpath; //for the path
dpath = "~/profile/profileImages/";//the path at which we are storing our image
dpath = dpath + FileUpload1.FileName.ToString();
string gender;
if (rbtmale.Checked == true)
{
gender = "Male";
}
else
{
gender = "Female";
}
int i;
string day;
string month;
string date;
string year;
day = ddlday.SelectedValue;
month = ddlmonth.SelectedValue;
year = ddlyear.SelectedValue;
date = day + "/" + month + "/" + year;
string sql = "insert into profile1 values('" + Session["uname"].ToString() +
"','" + dpath + "','" + txtfnm.Text + "','" + txtmnm.Text + "','" + txtlnm.Text
+ "','" + gender + "','" + date + "','" + txtct.Text + "','" + txtstate.Text +
"','" + txtpin.Text + "','" + txtphone.Text + "','" + txtmobile.Text + "')";
SqlCommand cmd = newSqlCommand(sql, cn);
i = cmd.ExecuteNonQuery();
if (i > 0)
{
FileUpload1.SaveAs(MapPath(dpath)); //File will be stored in your folder
}
cn.Close();
Response.Redirect("~/Home/Home.aspx");
}
xxxii
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}
}
Register (aspx page)
<%@PageLanguage="C#"MasterPageFile="~/Register.master"AutoEventWireup="true"Cod
eFile="Register.aspx.cs"Inherits="Register"Title="Registration"%>
<asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat="Serve
r">
<tablestyle="width: 100%; position: static">
<tr>
<tdcolspan="2"style="vertical-align: middle; height: 21px; text-align: center">
<strong><spanstyle="font-size: x-large; color: #000000; font-family:
Verdana">Register
Your Self Here</span></strong></td>
</tr>
<tr>
<tdstyle="vertical-align: top; width: 50%; color: white; text-align: right">
</td>
<tdstyle="width: 50%; text-align: left">
</td>
</tr>
<tr>
<tdstyle="width: 50%; color: #663300; vertical-align: top; text-align: right;
font-weight: bold; font-size: small; font-family: Verdana;">
<strong>FirstName:</strong></td>
<tdstyle="width: 50%; text-align: left">
<asp:TextBoxID="txtfnm"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox>
<asp:RequiredFieldValidatorID="RequiredFieldValidator5"runat="server"ControlToV
alidate="txtfnm"
ErrorMessage="fill the name ">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<tdstyle="width: 50%; color: #663300; vertical-align: top; height: 24px; text-
align: right; font-weight: bold; font-size: small; font-family: Verdana;">
<strong><spanstyle="font-size: small; font-family: Verdana;">Middle
Name:</span></strong></td>
<tdstyle="width: 50%; text-align: left; height: 24px;">
<asp:TextBoxID="txtmnm"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox>
<asp:RequiredFieldValidatorID="RequiredFieldValidator6"runat="server"ControlToV
alidate="txtlmn"
ErrorMessage="fill the Middle name ">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<tdstyle="width: 50%; color: #663300; vertical-align: top; text-align: right;
font-weight: bold; font-size: small; font-family: Verdana;">
xxxiii
<strong><spanstyle="font-size: small; font-family: Verdana;">Last
Name:</span></strong></td>
<tdstyle="width: 50%; text-align: left">
<asp:TextBoxID="txtlmn"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox>
<asp:RequiredFieldValidatorID="RequiredFieldValidator7"runat="server"ControlToV
alidate="txtlmn"
ErrorMessage="fill the Last name ">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<tdstyle="width: 50%; color: #663300; vertical-align: top; text-align: right;
font-weight: bold; font-size: small; font-family: Verdana;">
<strong><spanstyle="font-size: small; font-family:
Verdana;">&nbsp;UserID:</span></strong></td>
<tdstyle="width: 50%; text-align: left">
<asp:TextBoxID="txtemail"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox>
<asp:RequiredFieldValidatorID="RequiredFieldValidator1"runat="server"ControlToV
alidate="txtemail"
ErrorMessage="Enter the Email ID"Style="position:
static">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<tdstyle="width: 50%; color: #663300; vertical-align: top; text-align: right;
font-weight: bold; font-size: small; font-family: Verdana; height: 30px;">
<strong><spanstyle="font-size: small; font-family:
Verdana;">Password:</span></strong></td>
<tdstyle="width: 50%; text-align: left; height: 30px;">
<asp:TextBoxID="txtpass"runat="server"Style="position: static"
TextMode="Password"BorderColor="#3366CC"BorderWidth="1px"Width="126px"></asp:Te
xtBox>
<asp:RequiredFieldValidatorID="RequiredFieldValidator2"runat="server"ControlToV
alidate="txtpass"
ErrorMessage="Enter the Password"Style="position:
static">*</asp:RequiredFieldValidator>
<asp:CompareValidatorID="CompareValidator1"runat="server"ControlToCompare="txtp
ass"
ControlToValidate="txtrepass"ErrorMessage="Does not match
password"Style="position: static">*</asp:CompareValidator></td>
</tr>
<tr>
<tdstyle="width: 50%; color: #663300; vertical-align: top; text-align: right;
font-weight: bold; font-size: small; font-family: Verdana;">
<strong><spanstyle="font-size: small; font-family: Verdana;">Re-
Password:</span></strong></td>
<tdstyle="width: 50%; text-align: left">
<asp:TextBoxID="txtrepass"runat="server"Style="position: static"
TextMode="Password"BorderColor="#3366CC"BorderWidth="1px"Width="126px"></asp:Te
xtBox></td>
</tr>
<tr>
<tdstyle="width: 50%; color: #663300; vertical-align: top; text-align: right;
font-weight: bold; font-size: small; font-family: Verdana;">
<strong><spanstyle="font-size: small; font-family:
Verdana;">State:</span></strong></td>
<tdstyle="width: 50%; text-align: left">
<asp:TextBoxID="txtstate"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox>
<asp:RequiredFieldValidatorID="RequiredFieldValidator8"runat="server"ControlToV
alidate="txtstate"
ErrorMessage="fill the state">*</asp:RequiredFieldValidator></td>
</tr>
xxxiv
<tr>
<tdstyle="width: 50%; color: #663300; vertical-align: top; text-align: right;
font-weight: bold; font-size: small; font-family: Verdana;">
<strong><spanstyle="font-size: small; font-family:
Verdana;">City:</span></strong></td>
<tdstyle="width: 50%; text-align: left">
<asp:TextBoxID="txtct"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox>
<asp:RequiredFieldValidatorID="RequiredFieldValidator9"runat="server"ControlToV
alidate="txtct"
ErrorMessage="fill the City">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<tdstyle="width: 50%; color: #663300; vertical-align: top; text-align: right;
font-weight: bold; font-size: small; font-family: Verdana;">
<strong><spanstyle="font-size: small; font-family:
Verdana;">PinCode:</span></strong></td>
<tdstyle="width: 50%; text-align: left">
<asp:TextBoxID="txtpin"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox>
<asp:RequiredFieldValidatorID="RequiredFieldValidator10"runat="server"ControlTo
Validate="txtpin"
ErrorMessage="fill the Pincode">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<tdstyle="width: 50%; color: #663300; vertical-align: top; height: 26px; text-
align: right; font-weight: bold; font-size: small; font-family: Verdana;">
<strong><spanstyle="font-size: small; font-family: Verdana;">Security
Question:</span></strong></td>
<tdstyle="width: 50%; text-align: left; height: 26px;">
&nbsp;<asp:DropDownListID="ddlseq"runat="server">
<asp:ListItem>What is Your fav Color?</asp:ListItem>
<asp:ListItem>Wat is Your fav sub?</asp:ListItem>
<asp:ListItem>Which is fav holiday place?</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<tdstyle="width: 50%; color: #663300; vertical-align: top; height: 25px; text-
align: right; font-weight: bold; font-size: small; font-family: Verdana;">
<strong><spanstyle="font-size: small; font-family:
Verdana;">Ans:</span></strong></td>
<tdstyle="width: 50%; text-align: left; height: 25px;">
<asp:TextBoxID="txtsans"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox>
<asp:RequiredFieldValidatorID="RequiredFieldValidator4"runat="server"ControlToV
alidate="txtsans"
ErrorMessage="Enter the security Answer"Style="position:
static">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<tdstyle="width: 50%; color: white; vertical-align: top; text-align: right;">
</td>
<tdstyle="width: 50%; text-align: left">
<asp:ButtonID="Button1"runat="server"BackColor="#009900"Font-
Bold="True"ForeColor="White"
Style="position: static"Text="Submit"Width="82px"
OnClick="Button1_Click"BorderColor="Black"BorderWidth="1px"Height="29px"/></td>
</tr>
<tr>
<tdstyle="width: 50%; color: white; vertical-align: top; text-align: right;">
<asp:SqlDataSourceID="SqlDataSource1"runat="server"ConnectionString="<%$
ConnectionStrings:ConnectionString %>"
xxxv
SelectCommand="SELECT * FROM [tbllogin]"></asp:SqlDataSource>
</td>
<tdstyle="width: 50%; text-align: left">
<asp:ValidationSummaryID="ValidationSummary1"runat="server"ShowMessageBox="True
"
Style="position: static"ForeColor="White"/>
&nbsp;&nbsp;&nbsp;
</td>
</tr>
<tr>
<tdstyle="width: 50%; color: white; vertical-align: top; text-align: right;">
</td>
<tdstyle="width: 50%; text-align: left">
<asp:LabelID="lblerror"runat="server"Font-
Bold="True"ForeColor="#000040"Style="position: static"></asp:Label></td>
</tr>
</table>
</asp:Content>
Register (cs page)
using System;
using System.Data;
using System.Configuration;
using System.Collections;
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.Data.SqlClient;
publicpartialclassRegister : System.Web.UI.Page
{
SqlConnection cn =
newSqlConnection(ConfigurationManager.ConnectionStrings[1].ConnectionString);
protectedvoid Page_Load(object sender, EventArgs e)
{
}
protectedvoid Button1_Click(object sender, EventArgs e)
{
try
{
cn.Open();
string sql = "insert into tbllogin values('" + txtfnm.Text + "','" +
txtmnm.Text + "','" + txtlmn.Text + "','" + txtemail.Text + "','" +
txtpass.Text + "','" + txtstate.Text + "','" + txtct.Text + "','" + txtpin.Text
+ "','" + ddlseq.SelectedValue + "','" + txtsans.Text + "','N')";
SqlCommand cmd = newSqlCommand(sql, cn);
cmd.ExecuteNonQuery();
xxxvi
cn.Close();
txtfnm.Text = " ";
txtmnm.Text = " ";
txtlmn.Text = " ";
txtemail.Text = " ";
txtpass.Text = " ";
txtrepass.Text = " ";
txtstate.Text = " ";
txtct.Text = " ";
txtpin.Text = " ";
// txtsque.Text = " ";
txtsans.Text = " ";
//lblerror.Text = "Already exist user ";
Response.Redirect("~/login.aspx");
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}
}
Feedback (aspx page)
<%@PageLanguage="C#"MasterPageFile="~/Home/Home.master"AutoEventWireup="true"Co
deFile="Feedback.aspx.cs"Inherits="Home_Feedback"Title="Give Your Feedback"%>
<asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat="Serve
r">
<tablestyle="width: 100%; position: static">
<tr>
<tdcolspan="2"style="text-align: center">
<strong>
<spanstyle="font-size: x-large; font-family: Verdana; text-decoration:
underline;"
class="style1">Feedback</span></strong></td>
</tr>
<tr>
<tdstyle="width: 65%; text-align: right; color: #663300; font-weight: bold;
font-size: small; font-family: Verdana;">
<spanstyle="color: #663300; font-size: small; font-family:
Verdana;"><strong>Name:</strong></span></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtnm"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 65%; text-align: right; color: #663300; font-weight: bold;
font-size: small; font-family: Verdana;">
<strong><spanstyle="color: #663300; font-size: small; font-family:
Verdana;">Address:</span></strong></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtadd"runat="server"Style="position: static"
xxxvii
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 65%; text-align: right; color: #663300; font-weight: bold;
font-size: small; font-family: Verdana;">
<strong><spanstyle="color: #663300; font-size: small; font-family:
Verdana;">City:</span></strong></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtct"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 65%; text-align: right; color: #663300; font-weight: bold;
font-size: small; font-family: Verdana;">
<strong><spanstyle="color: #663300; font-size: small; font-family:
Verdana;">State:</span></strong></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtstate"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 65%; text-align: right; color: #663300; font-weight: bold;
font-size: small; font-family: Verdana;">
<strong><spanstyle="color: #663300; font-size: small; font-family:
Verdana;">Country:</span></strong></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtcount"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 65%; text-align: right; color: #663300; font-weight: bold;
font-size: small; font-family: Verdana;">
<strong><spanstyle="color: #663300; font-size: small; font-family:
Verdana;">Phone no:</span></strong></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtphone"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 65%; text-align: right; color: #663300; font-weight: bold;
font-size: small; font-family: Verdana;">
<strong><spanstyle="color: #663300; font-size: small; font-family:
Verdana;">Mobile:</span></strong></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtmobile"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 65%; text-align: right; color: #663300; font-weight: bold;
font-size: small; font-family: Verdana;">
<strong><spanstyle="color: #663300; font-size: small; font-family:
Verdana;">F.date:</span></strong></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtdate"runat="server"Style="position: static"
BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 65%; text-align: right">
</td>
<tdstyle="width: 50%">
<asp:CalendarID="Calendar1"runat="server"BackColor="White"BorderColor="#3366CC"
xxxviii
DayNameFormat="Shortest"Font-Names="Times New Roman"Font-
Size="10pt"ForeColor="Black"
Height="220px"NextPrevFormat="FullMonth"OnSelectionChanged="Calendar1_Selection
Changed"
TitleFormat="Month"Width="400px"BorderWidth="1px">
<SelectedDayStyleBackColor="#CC3333"ForeColor="White"/>
<SelectorStyleBackColor="#CCCCCC"Font-Bold="True"Font-Names="Verdana"Font-
Size="8pt"
ForeColor="#333333"Width="1%"/>
<TodayDayStyleBackColor="#CCCC99"/>
<OtherMonthDayStyleForeColor="#999999"/>
<DayStyleWidth="14%"/>
<NextPrevStyleFont-Size="8pt"ForeColor="White"/>
<DayHeaderStyleBackColor="#CCCCCC"Font-Bold="True"Font-
Size="7pt"ForeColor="#333333"
Height="10pt"/>
<TitleStyleBackColor="Black"Font-Bold="True"Font-Size="13pt"ForeColor="White"
Height="14pt"/>
</asp:Calendar>
</td>
</tr>
<tr>
<tdstyle="width: 65%; text-align: right; color: #663300; font-weight: bold;
font-size: small; font-family: Verdana;">
<strong><spanstyle="color: #663300; font-size: small; font-family:
Verdana;">Feedback:</span></strong></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtfeed"runat="server"Style="position: static"
TextMode="MultiLine"BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 65%">
</td>
<tdstyle="width: 50%">
<asp:ButtonID="Button1"runat="server"BackColor="#009900"Font-
Bold="True"ForeColor="White"
Style="position: static"Text="Submit"Width="81px"
OnClick="Button1_Click"BorderColor="Black"BorderWidth="1px"/></td>
</tr>
<tr>
<tdstyle="width: 65%">
</td>
<tdstyle="width: 50%">
<asp:LabelID="lblseccess"runat="server"Font-Bold="True"ForeColor="#FFFFC0"
Style="position: static; color: #FF0000;"></asp:Label></td>
</tr>
</table>
</asp:Content>
Feedback (cs page)
using System;
using System.Data;
using System.Configuration;
xxxix
using System.Collections;
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.Data.SqlClient;
publicpartialclassHome_Feedback : System.Web.UI.Page
{
SqlConnection cn =
newSqlConnection(ConfigurationManager.ConnectionStrings[1].ConnectionString);
protectedvoid Page_Load(object sender, EventArgs e)
{
}
protectedvoid Button1_Click(object sender, EventArgs e)
{
try
{
cn.Open();
string sql = "insert into tblfeed
values('"+txtnm.Text+"','"+txtadd.Text+"','"+txtct.Text + "','" + txtstate.Text
+ "','" + txtcount.Text + "','" + txtphone.Text +
"','"+txtmobile.Text+"','"+txtdate.Text+"','"+txtfeed.Text+"')";
SqlCommand cmd = newSqlCommand(sql, cn);
cmd.ExecuteNonQuery();
cn.Close();
lblseccess.Text = "Feedback is Succesfully";
txtnm.Text = " ";
txtadd.Text = " ";
txtct.Text = " ";
txtstate.Text = " ";
txtcount.Text = " ";
txtphone.Text = " ";
txtmobile.Text =" ";
//txtdate.Text = " ";
txtfeed.Text = " ";
// Response.Redirect("~/Default.aspx");
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}
protectedvoid Calendar1_SelectionChanged(object sender, EventArgs e)
{
txtdate.Text = Calendar1.SelectedDate.ToShortDateString();
}
}
Change password (aspx page)
xl
<%@PageLanguage="C#"MasterPageFile="~/Home/Home.master"AutoEventWireup="true"Co
deFile="changepass.aspx.cs"Inherits="Home_changepass"Title="Change Password"%>
<asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat="Serve
r">
<tablestyle="width: 100%">
<tr>
<tdcolspan="2"style="vertical-align: middle; color: white; font-family:
Chiller;
text-align: center">
<h2class="style1"
style="font-size: x-large; font-family: Verdana; text-decoration:
underline">Change Password</h2></td>
</tr>
<tr>
<tdstyle="width: 50%; color: #663300; text-align: right; font-weight: bold;
font-size: small; font-family: Verdana;">
<strong>Current Password:</strong></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtpass"runat="server"TextMode="Password"
BorderColor="#3366CC"BorderWidth="1px"Width="130px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%; color: #663300; text-align: right; height: 26px; font-
weight: bold; font-size: small; font-family: Verdana;">
<strong>New Password:</strong></td>
<tdstyle="width: 50%; height: 26px;">
<asp:TextBoxID="txtnpass"runat="server"TextMode="Password"
BorderColor="#3366CC"BorderWidth="1px"Width="130px"></asp:TextBox>
<asp:CompareValidatorID="CompareValidator1"runat="server"ErrorMessage="Does not
match
Password"ControlToCompare="txtnpass"ControlToValidate="txtrepass">*</asp:Compar
eValidator></td>
</tr>
<tr>
<tdstyle="width: 50%; color: #663300; text-align: right; font-weight: bold;
font-size: small; font-family: Verdana;">
<strong>Re-Password:</strong></td>
<tdstyle="width: 50%">
<asp:TextBoxID="txtrepass"runat="server"TextMode="Password"
BorderColor="#3366CC"BorderWidth="1px"Width="130px"></asp:TextBox></td>
</tr>
<tr>
<tdstyle="width: 50%; color: white; text-align: right">
</td>
<tdstyle="width: 50%">
<asp:ButtonID="btnsubmit"runat="server"BackColor="#009900"Font-
Bold="True"ForeColor="White"
Text="Submit"OnClick="btnsubmit_Click"BorderColor="Black"
BorderWidth="1px"Height="28px"Width="66px"/></td>
</tr>
</table>
</asp:Content>
xli
Change password (cs page)
using System;
using System.Data;
using System.Configuration;
using System.Collections;
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.Data.SqlClient;
publicpartialclassHome_changepass : System.Web.UI.Page
{
SqlConnection cn =
newSqlConnection(ConfigurationManager.ConnectionStrings[1].ConnectionString);
protectedvoid Page_Load(object sender, EventArgs e)
{
}
protectedvoid btnsubmit_Click(object sender, EventArgs e)
{
try
{
cn.Open();
string sql = "update tbllogin set password='" + txtnpass.Text + "' where
email='" + Session["uname"].ToString() + "' and password='" + txtpass.Text + "'
";
SqlCommand cmd = newSqlCommand(sql, cn);
cmd.ExecuteNonQuery();
cn.Close();
//txt.Text = " ";
//txtapass.Text = " ";
Response.Redirect("~/Home/Home.aspx");
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}
}
xlii
TESTING
WHAT IS TESTING?
Software testing is a specialized discipline in the process of software development.
Testing is the process of demonstrating that errors are not present.
The purpose of testing is to show that a program performs its intended functions
correctly.
Testing is the process of establishing confidence that a program does what it is
supposed to do.
Levels of Testing
There are three levels of testing:
Unit Testing
Unit testing is the process of taking a module and running it in isolation from the rest
of the software product by using prepared test cases and comparing actual results with
the results predicted by the specifications and design of the Module. As we use
waterfall model for designing our software thus we perform unit testing side by side
after coding every individual module.
Integration Testing
We perform integration testing using bottom up integration and we get positive
Results in test.
System Testing
This type of testing is done when the system is ready to execute with full
functionality.
Acceptance Testing
xliii
This type of testing covers all the test cases applied by the customer and comprises of
two main parts
1. Alpha Testing
2.Beta Testing
Functional Testing
Functional testing also known as black box testing is performed on our project. Here
we test the functionality of our program. In functional testing we observe the output
for certain input values and it produces positive results.
xliv
SCREEN SHOTS
xlv
xlvi
xlvii
xlviii
xlix
CONCLUSION
The project Social Network is completed, satisfying the required design
specifications. The system provides a user-friendly interface. The
software is developed with modular approach. All modules in the system
have been tested with valid data and invalid data and everything work
successfully. Thus the system has fulfilled all the objectives identified
and is able to replace the existing system. The constraints are met and
overcome successfully. The system is designed as like it was decided in
the design phase. The system is very user friendly and will reduce time
consumption. This software has a user-friendly screen that enables the
user to use without any inconvenience.The application has been tested
with live data and has provided a successful result. Hence the software
has proved to work efficiently.
l
REFERENCES
1. Wikipedia.
2. W3schools.com
3. ASP.NET black book.

More Related Content

What's hot

Oric introductory session
Oric introductory sessionOric introductory session
Oric introductory sessionoricproject
 
Umant byod 2013 presentation
Umant byod 2013 presentationUmant byod 2013 presentation
Umant byod 2013 presentationRebecca Vice
 
Sound Planning Cop Lisbona07
Sound Planning Cop  Lisbona07Sound Planning Cop  Lisbona07
Sound Planning Cop Lisbona07Imma Citarelli
 
Addressing Diversity with Open Badges
Addressing Diversity with Open BadgesAddressing Diversity with Open Badges
Addressing Diversity with Open BadgesIlona Buchem
 
Em tech reader-v6-111816
Em tech reader-v6-111816Em tech reader-v6-111816
Em tech reader-v6-111816Live Angga
 
SMU CEHD Professional Development Webinar
SMU CEHD Professional Development WebinarSMU CEHD Professional Development Webinar
SMU CEHD Professional Development WebinarRick Reo
 
Enhancing communication and cooperation with web 2.0
Enhancing communication and cooperation with web 2.0Enhancing communication and cooperation with web 2.0
Enhancing communication and cooperation with web 2.0Shady A. Alefrangy
 
Project Proposal Based On Social Media
Project Proposal Based On Social MediaProject Proposal Based On Social Media
Project Proposal Based On Social MediaNahian Sarower
 
Assessment in microblogging enhanced courses
Assessment in microblogging enhanced coursesAssessment in microblogging enhanced courses
Assessment in microblogging enhanced coursesCarmen Holotescu
 
Efficient and effective video sharing in online Social network using revocati...
Efficient and effective video sharing in online Social network using revocati...Efficient and effective video sharing in online Social network using revocati...
Efficient and effective video sharing in online Social network using revocati...IRJET Journal
 

What's hot (13)

sm@jgc Session One
sm@jgc Session Onesm@jgc Session One
sm@jgc Session One
 
Oric introductory session
Oric introductory sessionOric introductory session
Oric introductory session
 
Umant byod 2013 presentation
Umant byod 2013 presentationUmant byod 2013 presentation
Umant byod 2013 presentation
 
Call Tell Wkshp
Call Tell WkshpCall Tell Wkshp
Call Tell Wkshp
 
Sound Planning Cop Lisbona07
Sound Planning Cop  Lisbona07Sound Planning Cop  Lisbona07
Sound Planning Cop Lisbona07
 
Addressing Diversity with Open Badges
Addressing Diversity with Open BadgesAddressing Diversity with Open Badges
Addressing Diversity with Open Badges
 
Em tech reader-v6-111816
Em tech reader-v6-111816Em tech reader-v6-111816
Em tech reader-v6-111816
 
SMU CEHD Professional Development Webinar
SMU CEHD Professional Development WebinarSMU CEHD Professional Development Webinar
SMU CEHD Professional Development Webinar
 
Enhancing communication and cooperation with web 2.0
Enhancing communication and cooperation with web 2.0Enhancing communication and cooperation with web 2.0
Enhancing communication and cooperation with web 2.0
 
Project Proposal Based On Social Media
Project Proposal Based On Social MediaProject Proposal Based On Social Media
Project Proposal Based On Social Media
 
Assessment in microblogging enhanced courses
Assessment in microblogging enhanced coursesAssessment in microblogging enhanced courses
Assessment in microblogging enhanced courses
 
Social Networking
Social NetworkingSocial Networking
Social Networking
 
Efficient and effective video sharing in online Social network using revocati...
Efficient and effective video sharing in online Social network using revocati...Efficient and effective video sharing in online Social network using revocati...
Efficient and effective video sharing in online Social network using revocati...
 

Viewers also liked

Turner nicholas mobile_presentation
Turner nicholas mobile_presentationTurner nicholas mobile_presentation
Turner nicholas mobile_presentationNicholas Turner
 
EnergySaver - Energy saving heating additive
EnergySaver - Energy saving heating additiveEnergySaver - Energy saving heating additive
EnergySaver - Energy saving heating additiveDarren Magee
 
Reutilizacion del dib y del implante en vacas cebú, sometidas a amamantamient...
Reutilizacion del dib y del implante en vacas cebú, sometidas a amamantamient...Reutilizacion del dib y del implante en vacas cebú, sometidas a amamantamient...
Reutilizacion del dib y del implante en vacas cebú, sometidas a amamantamient...Carlos Hernandez
 
Lakia williamstimelinepresentation
Lakia williamstimelinepresentationLakia williamstimelinepresentation
Lakia williamstimelinepresentationLakia Williams
 
Turner nicholas slide show final
 Turner nicholas slide show final Turner nicholas slide show final
Turner nicholas slide show finalNicholas Turner
 
Nicholas Turner Mastery Journey Timeline
Nicholas Turner Mastery Journey TimelineNicholas Turner Mastery Journey Timeline
Nicholas Turner Mastery Journey TimelineNicholas Turner
 
Di gra函館ppt 140310終了
Di gra函館ppt 140310終了Di gra函館ppt 140310終了
Di gra函館ppt 140310終了RyotaNaganuma
 
Perlawanan sebelum tahun 1800
Perlawanan sebelum tahun 1800Perlawanan sebelum tahun 1800
Perlawanan sebelum tahun 1800nastasya1
 
Lezione Dichiarazione Stradini 1
Lezione Dichiarazione Stradini 1Lezione Dichiarazione Stradini 1
Lezione Dichiarazione Stradini 1Thomas Tassani
 
Captcha security for google
Captcha security for googleCaptcha security for google
Captcha security for googleHritesh Saha
 

Viewers also liked (13)

Turner nicholas mobile_presentation
Turner nicholas mobile_presentationTurner nicholas mobile_presentation
Turner nicholas mobile_presentation
 
EnergySaver - Energy saving heating additive
EnergySaver - Energy saving heating additiveEnergySaver - Energy saving heating additive
EnergySaver - Energy saving heating additive
 
Angular js
Angular jsAngular js
Angular js
 
Gestao tempo (1)
Gestao tempo (1)Gestao tempo (1)
Gestao tempo (1)
 
Final ppt
Final pptFinal ppt
Final ppt
 
Reutilizacion del dib y del implante en vacas cebú, sometidas a amamantamient...
Reutilizacion del dib y del implante en vacas cebú, sometidas a amamantamient...Reutilizacion del dib y del implante en vacas cebú, sometidas a amamantamient...
Reutilizacion del dib y del implante en vacas cebú, sometidas a amamantamient...
 
Lakia williamstimelinepresentation
Lakia williamstimelinepresentationLakia williamstimelinepresentation
Lakia williamstimelinepresentation
 
Turner nicholas slide show final
 Turner nicholas slide show final Turner nicholas slide show final
Turner nicholas slide show final
 
Nicholas Turner Mastery Journey Timeline
Nicholas Turner Mastery Journey TimelineNicholas Turner Mastery Journey Timeline
Nicholas Turner Mastery Journey Timeline
 
Di gra函館ppt 140310終了
Di gra函館ppt 140310終了Di gra函館ppt 140310終了
Di gra函館ppt 140310終了
 
Perlawanan sebelum tahun 1800
Perlawanan sebelum tahun 1800Perlawanan sebelum tahun 1800
Perlawanan sebelum tahun 1800
 
Lezione Dichiarazione Stradini 1
Lezione Dichiarazione Stradini 1Lezione Dichiarazione Stradini 1
Lezione Dichiarazione Stradini 1
 
Captcha security for google
Captcha security for googleCaptcha security for google
Captcha security for google
 

Similar to Finalpr 120507110612-phpapp01

Social Media - Transforming B2B Organizations: Contemporary Concerns Study
Social Media - Transforming B2B Organizations: Contemporary Concerns StudySocial Media - Transforming B2B Organizations: Contemporary Concerns Study
Social Media - Transforming B2B Organizations: Contemporary Concerns StudyVishrut Shukla
 
Coaching material about strategic use of ICT and Communication Tools.pdf
Coaching material about strategic use of ICT and Communication Tools.pdfCoaching material about strategic use of ICT and Communication Tools.pdf
Coaching material about strategic use of ICT and Communication Tools.pdfBrodoto
 
Skype, Facebook & Social Networks: Tools for Interactive Online Advising
Skype, Facebook & Social Networks: Tools for Interactive Online AdvisingSkype, Facebook & Social Networks: Tools for Interactive Online Advising
Skype, Facebook & Social Networks: Tools for Interactive Online AdvisingLaura Pasquini
 
A PROJECT REPORT ON “Consumer Preference Towards Social Networking Apps
A PROJECT REPORT ON “Consumer Preference Towards Social Networking Apps A PROJECT REPORT ON “Consumer Preference Towards Social Networking Apps
A PROJECT REPORT ON “Consumer Preference Towards Social Networking Apps Vibhor Agarwal
 
A PROJECT REPORT ON “Consumer Preference Towards Social Networking Apps
A PROJECT REPORT ON “Consumer Preference Towards Social Networking Apps A PROJECT REPORT ON “Consumer Preference Towards Social Networking Apps
A PROJECT REPORT ON “Consumer Preference Towards Social Networking Apps Vibhor Agarwal
 
World Wide Web 2015 and Journalism
World Wide Web 2015 and JournalismWorld Wide Web 2015 and Journalism
World Wide Web 2015 and JournalismAkash Kumar Dey
 
Presentation10-OF-project.pptx
Presentation10-OF-project.pptxPresentation10-OF-project.pptx
Presentation10-OF-project.pptxShaliniKumari491
 
Social media based dissemination strategies for Erarmus project managers
Social media based dissemination strategies for Erarmus project managersSocial media based dissemination strategies for Erarmus project managers
Social media based dissemination strategies for Erarmus project managersWeb2LLP
 
Social media based dissemination strategies for Erarmus project managers
Social media based dissemination strategies for Erarmus project managersSocial media based dissemination strategies for Erarmus project managers
Social media based dissemination strategies for Erarmus project managersWeb2Learn
 
next generation technologies to build sustainable communities of practice
next generation technologies to build sustainable communities of practicenext generation technologies to build sustainable communities of practice
next generation technologies to build sustainable communities of practiceGeorge Roberts
 
How Requirement Engineering And The Saudi Software Firms...
How Requirement Engineering And The Saudi Software Firms...How Requirement Engineering And The Saudi Software Firms...
How Requirement Engineering And The Saudi Software Firms...Liz Sims
 
295B_Report_Sentiment_analysis
295B_Report_Sentiment_analysis295B_Report_Sentiment_analysis
295B_Report_Sentiment_analysisZahid Azam
 
Community Led Activities
Community Led ActivitiesCommunity Led Activities
Community Led Activitieslisbk
 
Project On-Science
Project On-ScienceProject On-Science
Project On-ScienceAmrit Ravi
 
Improving usage and impact of digitised resources
Improving usage and impact of digitised resourcesImproving usage and impact of digitised resources
Improving usage and impact of digitised resourcesAlastair Dunning
 
Improving usage and impact of digitised resources
Improving usage and impact of digitised resourcesImproving usage and impact of digitised resources
Improving usage and impact of digitised resourcesJisc
 
Introduction to Implementing the Balanced Value Impact Model - Workshop for N...
Introduction to Implementing the Balanced Value Impact Model - Workshop for N...Introduction to Implementing the Balanced Value Impact Model - Workshop for N...
Introduction to Implementing the Balanced Value Impact Model - Workshop for N...Simon Tanner
 
Visualization for Software Analytics
Visualization for Software AnalyticsVisualization for Software Analytics
Visualization for Software AnalyticsMargaret-Anne Storey
 

Similar to Finalpr 120507110612-phpapp01 (20)

Social Media - Transforming B2B Organizations: Contemporary Concerns Study
Social Media - Transforming B2B Organizations: Contemporary Concerns StudySocial Media - Transforming B2B Organizations: Contemporary Concerns Study
Social Media - Transforming B2B Organizations: Contemporary Concerns Study
 
Coaching material about strategic use of ICT and Communication Tools.pdf
Coaching material about strategic use of ICT and Communication Tools.pdfCoaching material about strategic use of ICT and Communication Tools.pdf
Coaching material about strategic use of ICT and Communication Tools.pdf
 
Skype, Facebook & Social Networks: Tools for Interactive Online Advising
Skype, Facebook & Social Networks: Tools for Interactive Online AdvisingSkype, Facebook & Social Networks: Tools for Interactive Online Advising
Skype, Facebook & Social Networks: Tools for Interactive Online Advising
 
A PROJECT REPORT ON “Consumer Preference Towards Social Networking Apps
A PROJECT REPORT ON “Consumer Preference Towards Social Networking Apps A PROJECT REPORT ON “Consumer Preference Towards Social Networking Apps
A PROJECT REPORT ON “Consumer Preference Towards Social Networking Apps
 
A PROJECT REPORT ON “Consumer Preference Towards Social Networking Apps
A PROJECT REPORT ON “Consumer Preference Towards Social Networking Apps A PROJECT REPORT ON “Consumer Preference Towards Social Networking Apps
A PROJECT REPORT ON “Consumer Preference Towards Social Networking Apps
 
World Wide Web 2015 and Journalism
World Wide Web 2015 and JournalismWorld Wide Web 2015 and Journalism
World Wide Web 2015 and Journalism
 
Presentation10-OF-project.pptx
Presentation10-OF-project.pptxPresentation10-OF-project.pptx
Presentation10-OF-project.pptx
 
Social media based dissemination strategies for Erarmus project managers
Social media based dissemination strategies for Erarmus project managersSocial media based dissemination strategies for Erarmus project managers
Social media based dissemination strategies for Erarmus project managers
 
Social media based dissemination strategies for Erarmus project managers
Social media based dissemination strategies for Erarmus project managersSocial media based dissemination strategies for Erarmus project managers
Social media based dissemination strategies for Erarmus project managers
 
next generation technologies to build sustainable communities of practice
next generation technologies to build sustainable communities of practicenext generation technologies to build sustainable communities of practice
next generation technologies to build sustainable communities of practice
 
How Requirement Engineering And The Saudi Software Firms...
How Requirement Engineering And The Saudi Software Firms...How Requirement Engineering And The Saudi Software Firms...
How Requirement Engineering And The Saudi Software Firms...
 
Work 2.0 Tech Best Practices Aenc
Work 2.0   Tech Best Practices   AencWork 2.0   Tech Best Practices   Aenc
Work 2.0 Tech Best Practices Aenc
 
Android App Dev.pptx
Android App Dev.pptxAndroid App Dev.pptx
Android App Dev.pptx
 
295B_Report_Sentiment_analysis
295B_Report_Sentiment_analysis295B_Report_Sentiment_analysis
295B_Report_Sentiment_analysis
 
Community Led Activities
Community Led ActivitiesCommunity Led Activities
Community Led Activities
 
Project On-Science
Project On-ScienceProject On-Science
Project On-Science
 
Improving usage and impact of digitised resources
Improving usage and impact of digitised resourcesImproving usage and impact of digitised resources
Improving usage and impact of digitised resources
 
Improving usage and impact of digitised resources
Improving usage and impact of digitised resourcesImproving usage and impact of digitised resources
Improving usage and impact of digitised resources
 
Introduction to Implementing the Balanced Value Impact Model - Workshop for N...
Introduction to Implementing the Balanced Value Impact Model - Workshop for N...Introduction to Implementing the Balanced Value Impact Model - Workshop for N...
Introduction to Implementing the Balanced Value Impact Model - Workshop for N...
 
Visualization for Software Analytics
Visualization for Software AnalyticsVisualization for Software Analytics
Visualization for Software Analytics
 

Recently uploaded

The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 

Recently uploaded (20)

The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 

Finalpr 120507110612-phpapp01

  • 1. i Project Report On SOCIAL NETWORK Submitted as a partial fulfillment of the requirements for the award of the degree of Bachelors of Technology In Computer Science & Engineering Submitted By: SANA KHURSHEED (Roll No- 24400110004) Under The Guidance of Mr. Avijit Chowdhuri (Assistant Professor) DEPARTMENT OF COMPUTER SCEINCE AND ENGINEERING
  • 2. ii TECHNO INDIA , BANIPUR. (Approved by AICTE and affiliated to WBUT) May, 2014 Certificate This is to certify that this project entitled “Social network” submitted by Sana Khursheed student of Computer Science and Engineering Department, Techno India , Banipur in the partial fulfillment of the requirement for the award of Bachelors of Technology (Computer Science &Engineering) Degree of WBUT, is a record of students own study carried under my supervision & guidance. This report has not been submitted to any other university or institution for the award of any degree. Name of Project Guide Designation Mr. Avijit Chowdhuri Project Co-ordinator
  • 3. iii Acknowledgement Any task in the world cannot be accomplished on a sole basis. It directly or indirectly needs the overt or covert support of their acquaintances, beloved ones or their faculty heads. We have culminated our project with the aid of not only our friends but the assistance provided by our faculties cannot be neglected. Thus we would like to give a sincere thanks to my institute “Techno India , Banipur” for providing me the platform in which we have put my raw knowledge of concepts to an implementation level. The availabilities of laboratories with skilled technicians made our job easier. The facility of internet provided us with the ease which helped us to reach the implementation level fast. We would like to honor our MentorMr. Avijit Chowdhuri, for the incredible support he gave us. He fostered and encouraged us to pursue it to finish it to the rising stars. His motivation acted as a strength for us. Our acknowledgement cannot be complete without mentioning this name who have not only supported us but also showered his experience drops on our project which makes it embellishing and a full-fledged technology. Being a project guide, Mr.Avijit Chowdhuri was not centralized by vesting all the power of project to himself. In spite of this he delegated his knowledge to us which helped us to learn a lot. A special thanks to all faculty members who were keen to respond our queries. Support of our colleagues cannot be snubbed. Last but not least we would like to thank our parents for supporting us to complete our presentation report in all ways.
  • 4. iv Abstract Social network sites (SNSs) are increasingly attracting the attention of academic and industry researchers intrigued by their affordances and reach. This special theme section of the Journal of Computer-Mediated Communication brings together scholarship on these emergent phenomena. In this introductory article, we describe features of SNSs and propose a comprehensive definition. We then present one perspective on the history of such sites, discussing key changes and developments. After briefly summarizing existing scholarship concerning SNSs, we discuss the articles in this special section and conclude with considerations for future research.
  • 5. v INTRODUCTION Since their introduction, social network sites (SNSs) such as MySpace, Facebook, Cyworld, and Bebo have attracted millions of users, many of whom have integrated these sites into their daily practices. As of this writing, there are hundreds of SNSs, with various technological affordances, supporting a wide range of interests and practices. While their key technological features are fairly consistent, the cultures that emerge around SNSs are varied. Most sites support the maintenance of pre-existing social networks, but others help strangers connect based on shared interests, political views, or activities. Some sites cater to diverse audiences, while others attract people based on common language or shared racial, sexual, religious, or nationality-based identities. Sites also vary in the extent to which they incorporate new information and communication tools, such as mobile connectivity, blogging, and photo/video-sharing. Scholars from disparate fields have examined SNSs in order to understand the practices, implications, culture, and meaning of the sites, as well as users' engagement with them. This special theme section of the Journal of Computer-Mediated Communication brings together a unique collection of articles that analyze a wide spectrum of social network sites using various methodological techniques, theoretical traditions, and analytic approaches. By collecting these articles in this issue, our goal is to showcase some of the interdisciplinary scholarship around these sites. The purpose of this introduction is to provide a conceptual, historical, and scholarly context for the articles in this collection. We begin by defining what constitutes a social network site and then present one perspective on the historical development of SNSs, drawing from personal interviews and public accounts of sites and their changes over time. Following this, we review recent scholarship on SNSs and attempt to contextualize and highlight key works. We conclude with a description of the articles included in this special section and suggestions for future research.
  • 6. vi PURPOSE A social networking service is an online service, platform, or site that focuses on facilitating the building of social networks or social relations among people who, for example, share interests, activities, backgrounds, or real-life connections. A social network service consists of a representation of each user (often a profile), his/her social links, and a variety of additional services. Most social network services are web-based and provide means for users to interact over the Internet, such as e- mail and instant messaging. Online community services are sometimes considered as a social network service, though in a broader sense, social network service usually means an individual-centered service whereas online community services are group- centered. Social networking sites allow users to share ideas, activities, events, and interests within their individual networks. Social networking sites are not only for you to communicate or interact with other people globally but, this is also one effective way for business promotion. A lot of business minded people these days are now doing business online and use these social networking sites to respond to customer queries. It isn't just a social media site used to socialize with your friends but also, represents a huge pool of information from day to dayliving.
  • 7. vii SYSTEM DESCRIPTION TECHNOLOGIES USED: C# : Programming Interface C# C# is a small, simple, safe, object oriented, interpreted or dynamically optimized, byte coded, architectural, garbage collected, multithreaded programming language with a strongly typed exception-handling for writing distributed and dynamically extensible programs. C# is an object oriented programming language. C# is a high-level, third generation language like C, FORTRAN, Small talk, Pearl and many others. You can use C# to write computer applications that crunch numbers, process words, play games, store data or do any of the thousands of other things computer software can do. C# supports this application and the follow features make it one of the best programming languages. It is simple and object oriented. It helps to create user friendly interfaces. It is very dynamic. TOOLS USED: 1. ASP.NET technology 2. Visual studio IDE. Front end – C# Back end- SQL server 2008.
  • 8. viii MODULE DESCRIPTION The entire project is divided into certain modules – 1. Register / Login part. 2. Send message. 3. Send scraps. 4. Search people. 5. Delete friends. 6. View profile.
  • 9. ix SYSTEM SPECIFICATIONS  Hardware Requirements • Intel Core2 duo processor. • 1 GB Ram.  Software Requirements • Microsoft Visual Studio 2010 • Microsoft SQL Server 2008 R2 • Microsoft Office 2007 •  Operating System • Windows XP/Windows Vista/windows7 • • These are the minimum requirements to run this software and now a days we have much better configuration then the above. •
  • 10. x ANALYSIS FEASIBILITY STUDY Feasibility study is made to see if the project on completion will serve the purpose of the organization for the amount of work, effort and the time that spend on it. Feasibility study lets the developer foresee the future of the project and the usefulness. A feasibility study of a system proposal is according to its workability, which is the impact on the organization, ability to meet their user needs and effective use of resources. Thus when a new application is proposed it normally goes through a feasibility study before it is approved for development. The document provide the feasibility of the project that is being designed and lists various areas that were considered very carefully during the feasibility study of this project such as Technical, Economic and Operational feasibilities. The following are its features: TECHNICAL FEASIBILITY The system must be evaluated from the technical point of view first. The assessment of this feasibility must be based on an outline design of the system requirement in the terms of input, output, programs and procedures. Having identified an outline system, the investigation must go on to suggest the type of equipment, required method developing the system, of running the system once it has been designed. Technical issues raised during the investigation are:  Does the existing technology sufficient for the suggested one?  Can the system expand if developed? The project should be developed such that the necessary functions and performance are achieved within the constraints. The project is developed within latest technology. Through the technology may become obsolete after some period of time, due to the fact that never version of same software supports older versions, the system may still be used. So there are minimal constraints involved with this project. The system has been developed using Java the project is technically feasible for development. We as Analysts have identified the existing computer systems (hardware & software) of the concerned department and have determined whether these technical resources are sufficient for the proposed system or not. We have found out thus, that the project is technically very much feasible. The hardware and software requirements are:
  • 11. xi ECONOMIC FEASIBILITY The developing system must be justified by cost and benefit. Criteria to ensure that effort is concentrated on project, which will give best, return at the earliest. One of the factors, which affect the development of a new system, is the cost it would require. The following are some of the important financial questions asked during preliminary investigation:  The costs conduct a full system investigation.  The cost of the hardware and software.  The benefits in the form of reduced costs or fewer costly errors. Since the system is developed as part of project work, there is no manual cost to spend for the proposed system. Also all the resources are already available, it give an indication of the system is economically possible for development. BEHAVIORAL FEASIBILITY This includes the following questions:  Is there sufficient support for the users?  Will the proposed system cause harm? The project would be beneficial because it satisfies the objectives when developed and installed. All behavioral aspects are considered carefully and conclude that the project is behaviorally feasible. 6.3 USER CHARACTERISTICS: 1. Can login or register 2. Can search people. 3. Can send message. 4. Can delete friends. 5. Can send scraps.
  • 12. xii SOFTWARE INTEGRATION & VERIFICATION: Each unit is developed independently and can be tested for its functionality. This is the so called Unit Testing. It simply verifies if the modules or units to check if they meet their specifications. This involves functional tests at the interfaces of the modules, but also more detailed tests which consider the inner structure of the software modules. During integration the units which are developed and tested for their functionalities are brought together. The modules are integrated into a complete system and tested to check if all modules cooperate as expected. SYSTEM VERIFICATION: After successfully integration including the related tests the complete system has to be tested against its initial requirements. This will include the original hardware and environment, whereas the previous integration and testing phase may still be performed in a different environment or on a test bench . OPERATION & MAINTENANCE: The system is handed over to the customer and will be used the first time by him. Naturally the customer will check if his requirements were implemented as expected but he will also validate if the correct requirements have been set up in the beginning. In case there are changes necessary it has to be fixed to make the system usable or to make it comply with the customer wishes. In most of the "Waterfall Model" descriptions this phase is extended to a never ending phase of "Operations & Maintenance". All the problems which did not arise during the previous phases will be solved in this last phase . DESIGN STRATEGY: A good system design strategy is to organize the program modules in such a way that are easy to develop and later to, change. Structured design techniques help developers to deal with the size and complexity of programs. Analysts create instructions for the developers about how code should be written and how pieces of code should fit together to form a program. It is important for two reasons: First, even pre-existing code, if any, needs to be understood, organized and pieced together.
  • 13. xiii Second, it is still common for the product team to have to write some code and produce original programs that support the application logic of the system. There are two main design strategies: Top-down and Bottom-up strategies. BOTTOM-UP In our project we follow bottom up design strategy because we are aware of the modules of our project and we decide how to combine these modules to provide larger ones; to combine those to even larger ones, and so on, till we arrive at one big module which is the whole of the desired program. In a bottom-up approach the individual base elements of the system are first specified in great detail. These elements are then linked together to form larger subsystems, which then in turn are linked, sometimes in many levels, until a complete top-level system is formed. This strategy often resembles a "seed" model, whereby the beginnings are small, but eventually grow in complexity and completeness. DATA FLOW DIAGRAM Data flow oriented techniques advocate that the major data items handled by a system must be first identified and then the processing required on these data items to produce the desired outputs should be determined. The DFD (also called as bubble chart) is a simple graphical formalism that can be used to represent a system in terms of input data to the system, various processing carried out on these data, and the output generated by the system. It was introduced by De Macro (1978), Gane and Sarson (1979).The primitive symbols used for constructing DFD’s are: Symbols used in DFD A circle represents a process. A rectangle represents external entity
  • 14. xiv A square defines a source or destination of the system. An arrow identifies dataflow. Context Diagram Level 1 DFD Logout Login Social like sharingAdministrator/ User User Search user Send Scraps Check profile Sent messageDelete friends
  • 15. xv Use Case Diagram Login details for verification and validation Login / Register User Login Manage users Manages Search for user View scraps Delete user Send message
  • 16. xvi Entity relation diagram USER HOME MESSAGE PEOPLE LOGIN/ REGISTER CAN SEND SEARCH/ DELETE USER_ID USER_NAME USER_PASS DELETE_FRIENDS FEEDBACK CHECK_PROFILE CHANGE_PASS SCRAPS PHOTOGALLERY
  • 17. xvii TABLE STRUCTURE Table login COLOUMN NAME DATA TYPE First name Varchar Middle name Varchar Last name Varchar Email (primary key) Varchar Password Varchar State Varchar City Varchar Pin Int Table request Coloumn name Data type Rid Int Requestfrom Varchar Requestto Varchar Status varchar Table scrap Coloumn name Data type Sid Int Sname Varchar Sch Varchar Sdetails varchar
  • 18. xviii Table feed Coloumn name Data type Fid Int Name Varchar Address Varchar City Varchar State Varchar Country Varchar Phone Int Mobile Int Fdate Date Feedback varchar Table news Coloumn name Data type Anid Int Anew Andate Date Andetails varchar Table admin login Coloumn name Data type Admin id Varchar Password varchar
  • 19. xix Table add Coloumn name Data type Aaid Int Aid Int Aadv Varchar Aadis Varchar Aatype Varchar Photo image Table profile Coloumn name Data type Pid Int Photo Image First name Varchar Middle name Varchar Last name Varchar Gender Varchar Birthday Date City Varchar State Varchar Pin Int Phone Int Mobile Int
  • 20. xx CODING Login (aspx page) <%@PageLanguage="C#"MasterPageFile="~/Login.master"AutoEventWireup="true"CodeFi le="login.aspx.cs"Inherits="login"Title="Login"%> <asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat="Serve r"> <tablestyle="width: 100%; position: static"> <tr> <tdcolspan="2"style="height: 17px; text-align: center"> <strong><spanstyle="font-size: 32pt;"><spanstyle="font-family: Verdana"> <spanstyle="color: #000000"> <span style="text-decoration: underline; font-size: x- large;">LogIn</span></span></span></span></strong></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; font-weight: bold; font-size: small; font-family: Verdana; color: #663300;"> <strong><spanstyle="font-size: small; color: #663300; font-family: Verdana;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; UserID:&nbsp;</span></strong></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtemail"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"Width="130px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; height: 28px; font-weight: bold; font- size: small; font-family: Verdana; color: #663300;"> <strong><spanstyle="font-size: small; color: #663300; font-family: Verdana;">Password: </span></strong> </td> <tdstyle="width: 50%; height: 28px;"> <asp:TextBoxID="txtpass"runat="server"Style="position: static" TextMode="Password"BorderColor="#3366CC"BorderWidth="1px"Width="130px"></asp:Te xtBox></td> </tr> <tr> <tdstyle="width: 50%; text-align: right"> </td> <tdstyle="width: 50%"> <asp:LabelID="Label1"runat="server"ForeColor="Red"Style="position: static"></asp:Label></td> </tr> <tr> <tdstyle="width: 50%; text-align: right"> </td>
  • 21. xxi <tdstyle="width: 50%"> <asp:ButtonID="btnlogin"runat="server"BorderColor="Black"Font- Bold="True"ForeColor="White" OnClick="Button1_Click"Style="position: static"Text="Login"Width="72px" BackColor="#009900"BorderWidth="1px"/></td> </tr> <tr> <tdstyle="width: 50%; text-align: right"> </td> <tdstyle="width: 50%"> <asp:LinkButtonID="LinkButton1"runat="server"Font- Bold="True"ForeColor="#000040" Style="position: static"PostBackUrl="~/Register.aspx">Sign up</asp:LinkButton></td> </tr> <tr> <tdstyle="width: 50%; text-align: right"> </td> <tdstyle="width: 50%"> <asp:LinkButtonID="LinkButton2"runat="server"Font- Bold="True"ForeColor="#000040" Style="position: static"PostBackUrl="~/forget.aspx">Forget Password ?</asp:LinkButton></td> </tr> <tr> <tdstyle="width: 50%; text-align: right"> &nbsp;</td> <tdstyle="width: 50%"> <asp:SqlDataSourceID="SqlDataSource1"runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString%>" SelectCommand="SELECT * FROM [profile1]"></asp:SqlDataSource> </td> </tr> </table> </asp:Content> Login (cs page) using System; using System.Data; using System.Configuration; using System.Collections; 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.Data.SqlClient; publicpartialclasslogin : System.Web.UI.Page { SqlConnection cn = newSqlConnection(ConfigurationManager.ConnectionStrings[1].ConnectionString); protectedvoid Page_Load(object sender, EventArgs e)
  • 22. xxii { } protectedvoid Button1_Click(object sender, EventArgs e) { try { cn.Open(); string sql = "select * from tbllogin where Email='" + txtemail.Text + "' and Password='" + txtpass.Text + "'and Status='Y'"; SqlCommand cmd = newSqlCommand(sql, cn); SqlDataReader dr = cmd.ExecuteReader(); if (dr.Read() == true) { Session["uname"] = dr[3].ToString(); Response.Redirect("~/Profile/profile1.aspx"); } else { Label1.Text = "Email ID and password invalid"; } cn.Close(); } catch (Exception ex) { Response.Write(ex.ToString()); } } } Check profile (aspx page) <%@PageLanguage="C#"MasterPageFile="~/Home/Home.master"AutoEventWireup="true"Co deFile="checkprofile.aspx.cs"Inherits="Home_checkprofile"Title="Check Profile"%> <asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat="Serve r"> <tablestyle="width: 100%; position: static"> <tr> <tdcolspan="2"style="text-align: center"> <strong> <spanstyle="font-size: x-large; font-family: Verdana; text-decoration: underline;" class="style1">Update Your Profile</span></strong></td> </tr> <tr> <tdstyle="width: 50%"> </td> <tdstyle="width: 50%">
  • 23. xxiii <asp:TextBoxID="txtProEmail"runat="server"Style="position: static" Visible="False"BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%"> </td> <tdstyle="width: 50%"> <asp:ButtonID="Chkprofile"runat="server"BackColor="#009900"Font- Bold="True"ForeColor="White" Style="position: static"Text="Check Profile"OnClick="Chkprofile_Click" BorderColor="Black"BorderWidth="1px"/></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; color: #663300; font-size: small; font-family: Verdana;"> <strong><spanstyle="color: #663300; font-size: small; font-family: Verdana;">First Name:</span></strong></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtfnm"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; color: #663300; font-size: small; font-family: Verdana;"> <strong><spanstyle="color: #663300; font-size: small; font-family: Verdana;">Middle Name:</span></strong></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtmnm"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; color: #663300; font-size: small; font-family: Verdana;"> <strong><spanstyle="color: #663300; font-size: small; font-family: Verdana;">Last Name:</span></strong></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtlnm"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; color: #663300; font-size: small; font-family: Verdana;"> <strong><spanstyle="color: #663300; font-size: small; font-family: Verdana;">Gender:</span></strong></td> <tdstyle="width: 50%"> <asp:RadioButtonID="rbtmale"runat="server"Style="position: static"Text="Male"/> <asp:RadioButtonID="rbtfemale"runat="server"Style="position: static" Text="Female"/></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; color: #663300; font-size: small; font-family: Verdana;"> <strong><spanstyle="color: #663300; font-size: small; font-family: Verdana;">Birth of date:</span></strong></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtdate"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; color: #663300; font-size: small; font-family: Verdana;">
  • 24. xxiv <spanstyle="color: #663300; font-size: small; font-family: Verdana;"><strong>City:</strong></span></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtct"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; color: #663300; font-size: small; font-family: Verdana;"> <strong><spanstyle="color: #663300; font-size: small; font-family: Verdana;">State:</span></strong></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtstate"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; color: #663300; font-size: small; font-family: Verdana;"> <strong><spanstyle="color: #663300; font-size: small; font-family: Verdana;">Pin:</span></strong></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtpin"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; color: #663300; font-size: small; font-family: Verdana;"> <strong><spanstyle="color: #663300; font-size: small; font-family: Verdana;">Phone no:</span></strong></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtphone"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; color: #663300; font-size: small; font-family: Verdana;"> <strong><spanstyle="color: #663300; font-size: small; font-family: Verdana;">Mobile no:</span></strong></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtmobile"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%"> </td> <tdstyle="width: 50%"> <asp:ButtonID="Button1"runat="server"BackColor="#009900"Font- Bold="True"ForeColor="White" Style="position: static"Text="Update"Width="83px" OnClick="Button1_Click"BorderColor="Black"BorderWidth="1px"/></td> </tr> <tr> <tdstyle="width: 50%"> </td> <tdstyle="width: 50%"> <asp:LabelID="lblsuccess"runat="server"Font- Bold="True"ForeColor="#000040"Style="position: static"></asp:Label></td> </tr> </table> </asp:Content>
  • 25. xxv Check profile(cs page) using System; using System.Data; using System.Configuration; using System.Collections; 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.Data.SqlClient; publicpartialclassHome_checkprofile : System.Web.UI.Page { SqlConnection cn = newSqlConnection(ConfigurationManager.ConnectionStrings[1].ConnectionString); protectedvoid Page_Load(object sender, EventArgs e) { txtProEmail.Text = Session["uname"].ToString(); } protectedvoid Chkprofile_Click(object sender, EventArgs e) { try { cn.Open(); string sql1 = "select * from profile1 where Email='" + txtProEmail.Text + "' "; SqlCommand cmd1 = newSqlCommand(sql1, cn); SqlDataReader dr1 = cmd1.ExecuteReader(); if (dr1.Read() == true) { txtfnm.Text = dr1[3].ToString(); txtmnm.Text = dr1[4].ToString(); txtlnm.Text = dr1[5].ToString(); txtdate.Text = dr1[7].ToString(); txtct.Text = dr1[8].ToString(); txtstate.Text = dr1[9].ToString(); txtpin.Text = dr1[10].ToString(); txtphone.Text = dr1[11].ToString(); txtmobile.Text = dr1[12].ToString(); if (dr1[6].ToString() == "Male") { rbtmale.Checked = true; } else { rbtfemale.Checked = true; } } cn.Close();
  • 26. xxvi } catch (Exception ex) { Response.Write(ex.ToString()); } } protectedvoid Button1_Click(object sender, EventArgs e) { try { string gender; if (rbtmale.Checked == true) { gender = "Male"; } else { gender = "FeMale"; } cn.Open(); string sql = "update profile1 set fnm='" + txtfnm.Text + "',mnm='" + txtmnm.Text + "',lnm='" + txtlnm.Text + "',bdate='" + txtdate.Text + "',gender='" + gender + "',city='" + txtct.Text + "',state='"+txtstate.Text+"',pin='" + txtpin.Text + "',phone='" + txtphone.Text + "',mobile='" + txtmobile.Text + "' where email='" + txtProEmail.Text + "' "; SqlCommand cmd = newSqlCommand(sql, cn); cmd.ExecuteNonQuery(); cn.Close(); lblsuccess.Text = "Information Updated Successfully"; } catch (Exception ex) { Response.Write(ex.ToString()); } } } Scraps (aspx page) <%@PageLanguage="C#"MasterPageFile="~/Home/Home.master"AutoEventWireup="true"Co deFile="scrap.aspx.cs"Inherits="Home_scrap"Title="Scrap"%> <asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat="Serve r"> &nbsp;<tablestyle="width: 100%"> <tr> <tdstyle="width: 100%; background-color: #999966"> <strong>My Scraps..</strong></td> </tr> <tr>
  • 27. xxvii <tdstyle="width: 100%"> <asp:GridViewID="GridView1"runat="server"AllowPaging="True"AutoGenerateColumns= "False" CellPadding="4"DataSourceID="SqlDataSource1"ForeColor="#333333"GridLines="None" Width="100%"> <FooterStyleBackColor="#5D7B9D"Font-Bold="True"ForeColor="White"/> <Columns> <asp:BoundFieldDataField="sname"HeaderText="Sender's Name"SortExpression="sname"/> <asp:BoundFieldDataField="sdetails"HeaderText="Scrap Details"SortExpression="sdetails"/> <asp:CommandFieldShowDeleteButton="True"ShowSelectButton="True"/> </Columns> <RowStyleBackColor="#F7F6F3"ForeColor="#333333"/> <EditRowStyleBackColor="#999999"/> <SelectedRowStyleBackColor="#E2DED6"Font-Bold="True"ForeColor="#333333"/> <PagerStyleBackColor="#284775"ForeColor="White"HorizontalAlign="Center"/> <HeaderStyleBackColor="#5D7B9D"Font-Bold="True"ForeColor="White"/> <AlternatingRowStyleBackColor="White"ForeColor="#284775"/> </asp:GridView> <asp:SqlDataSourceID="SqlDataSource1"runat="server"ConflictDetection="CompareAl lValues" ConnectionString="<%$ ConnectionStrings:ConnectionString%>"DeleteCommand="DELETE FROM [tblScrap] WHERE [sid] = @original_sid" InsertCommand="INSERT INTO [tblScrap] ([sdetails], [sname]) VALUES (@sdetails, @sname)" OldValuesParameterFormatString="original_{0}"SelectCommand="SELECT [sdetails], [sname], [sid] FROM [tblScrap] WHERE ([sch] = @sch)" UpdateCommand="UPDATE [tblScrap] SET [sdetails] = @sdetails, [sname] = @sname WHERE [sid] = @original_sid AND [sdetails] = @original_sdetails AND [sname] = @original_sname"> <DeleteParameters> <asp:ParameterName="original_sid"Type="Int32"/> <asp:ParameterName="original_sdetails"Type="String"/> <asp:ParameterName="original_sname"Type="String"/> </DeleteParameters> <UpdateParameters> <asp:ParameterName="sdetails"Type="String"/> <asp:ParameterName="sname"Type="String"/> <asp:ParameterName="original_sid"Type="Int32"/> <asp:ParameterName="original_sdetails"Type="String"/> <asp:ParameterName="original_sname"Type="String"/> </UpdateParameters> <SelectParameters> <asp:SessionParameterName="sch"SessionField="uname"Type="String"/> </SelectParameters> <InsertParameters> <asp:ParameterName="sdetails"Type="String"/> <asp:ParameterName="sname"Type="String"/> </InsertParameters> </asp:SqlDataSource> </td> </tr> </table> </asp:Content> View profile (aspx page)
  • 28. xxviii <%@PageLanguage="C#"MasterPageFile="~/Profile/profile1.master"AutoEventWireup=" true"CodeFile="profile1.aspx.cs"Inherits="Profile_profile1"Title="Untitled Page"%> <asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat="Serve r"> <tablestyle="width: 100%; position: static"> <tr> <tdcolspan="2"style="text-align: center"> <spanstyle="font-size: x-large; color: #ffffff; font-family: Verdana"> <strongstyle="color: #000000">CreateYour Profile</strong></span></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300; font-size: small; font-family: Verdana;"> <spanstyle="font-size: small; color: #663300; font-family: Verdana;"><strong> Profile Picture:</strong></span></td> <tdstyle="width: 50%; text-align: left"> <asp:FileUploadID="FileUpload1"runat="server" Style="position: static; text-align: left"BorderColor="#3366CC" BorderWidth="1px"/></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300; font-size: small; font-family: Verdana;"> <strong><spanstyle="font-size: small; color: #663300; font-family: Verdana;">First Name:</span></strong></td> <tdstyle="width: 50%; text-align: left"> <asp:TextBoxID="txtfnm"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300; font-size: small; font-family: Verdana;"> <strong><spanstyle="font-size: small; color: #663300; font-family: Verdana;">Middle Name:</span></strong></td> <tdstyle="width: 50%; text-align: left"> <asp:TextBoxID="txtmnm"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300; font-size: small; font-family: Verdana;"> <strong><spanstyle="font-size: small; color: #663300; font-family: Verdana;">Last Name:</span></strong></td> <tdstyle="width: 50%; text-align: left"> <asp:TextBoxID="txtlnm"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300; font-size: small; font-family: Verdana;"> <strong><spanstyle="font-size: small; color: #663300; font-family: Verdana;">Gender:</span></strong></td> <tdstyle="width: 50%; text-align: left"> <asp:RadioButtonID="rbtmale"runat="server"Style="position: static" Font-Bold="True"ForeColor="Black"Text="Male"Checked="True"GroupName="1"/> <asp:RadioButtonID="RadioButton2"runat="server"Style="position: static" Font-Bold="True"ForeColor="Black"Text="Female"GroupName="1"/></td> </tr> <tr>
  • 29. xxix <tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300; font-size: small; font-family: Verdana;"> <strong><spanstyle="font-size: small; color: #663300; font-family: Verdana;">Birth of date:</span></strong></td> <tdstyle="width: 50%; text-align: left"> <asp:DropDownListID="ddlday"runat="server"Style="position: static"> </asp:DropDownList> <asp:DropDownListID="ddlmonth"runat="server"Style="position: static"> </asp:DropDownList> <asp:DropDownListID="ddlyear"runat="server"Style="position: static"> </asp:DropDownList></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300; font-size: small; font-family: Verdana;"> <strong><spanstyle="font-size: small; color: #663300; font-family: Verdana;">City:</span></strong></td> <tdstyle="width: 50%; text-align: left"> <asp:TextBoxID="txtct"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300; font-size: small; font-family: Verdana;"> <strong><spanstyle="font-size: small; color: #663300; font-family: Verdana;">State:</span></strong></td> <tdstyle="width: 50%; text-align: left"> <asp:TextBoxID="txtstate"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300; font-size: small; font-family: Verdana;"> <strong><spanstyle="font-size: small; color: #663300; font-family: Verdana;">Pin:</span></strong></td> <tdstyle="width: 50%; text-align: left"> <asp:TextBoxID="txtpin"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300; font-size: small; font-family: Verdana;"> <strong><spanstyle="font-size: small; color: #663300; font-family: Verdana;">Phone no:</span></strong></td> <tdstyle="width: 50%; text-align: left"> <asp:TextBoxID="txtphone"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%; text-align: right; font-weight: bold; color: #663300; font-size: small; font-family: Verdana;"> <strong><spanstyle="font-size: small; color: #663300; font-family: Verdana;">Mobile no:</span></strong></td> <tdstyle="width: 50%; text-align: left"> <asp:TextBoxID="txtmobile"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%"> </td> <tdstyle="width: 50%; text-align: left">
  • 30. xxx <asp:ButtonID="Button1"runat="server"BackColor="#009900"Font- Bold="True"ForeColor="White" Style="position: static"Text="Submit"Width="89px" OnClick="Button1_Click"BorderColor="Black"BorderWidth="1px"Height="28px"/></td> </tr> </table> </asp:Content> View profile (cs page) using System; using System.Data; using System.Configuration; using System.Collections; 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.Data.SqlClient; publicpartialclassProfile_profile1 : System.Web.UI.Page { SqlConnection cn = newSqlConnection(ConfigurationManager.ConnectionStrings[1].ConnectionString); protectedvoid Page_Load(object sender, EventArgs e) { int i; for (i = 1; i <= 31; i++) { ddlday.Items.Add(i.ToString()); } for (i = 1; i <= 12; i++) { ddlmonth.Items.Add(i.ToString()); } for (i = 1987; i < 2097; i++) { ddlyear.Items.Add(i.ToString()); } try { cn.Open();
  • 31. xxxi string sql1 = "select * from profile1 where Email='" + Session["uname"].ToString() + "' "; SqlCommand cmd1 = newSqlCommand(sql1, cn); SqlDataReader dr1 = cmd1.ExecuteReader(); if (dr1.Read() == true) { Response.Redirect("~/Home/Home.aspx"); } cn.Close(); } catch (Exception ex) { Response.Write(ex.ToString()); } } protectedvoid Button1_Click(object sender, EventArgs e) { try { cn.Open(); string dpath; //for the path dpath = "~/profile/profileImages/";//the path at which we are storing our image dpath = dpath + FileUpload1.FileName.ToString(); string gender; if (rbtmale.Checked == true) { gender = "Male"; } else { gender = "Female"; } int i; string day; string month; string date; string year; day = ddlday.SelectedValue; month = ddlmonth.SelectedValue; year = ddlyear.SelectedValue; date = day + "/" + month + "/" + year; string sql = "insert into profile1 values('" + Session["uname"].ToString() + "','" + dpath + "','" + txtfnm.Text + "','" + txtmnm.Text + "','" + txtlnm.Text + "','" + gender + "','" + date + "','" + txtct.Text + "','" + txtstate.Text + "','" + txtpin.Text + "','" + txtphone.Text + "','" + txtmobile.Text + "')"; SqlCommand cmd = newSqlCommand(sql, cn); i = cmd.ExecuteNonQuery(); if (i > 0) { FileUpload1.SaveAs(MapPath(dpath)); //File will be stored in your folder } cn.Close(); Response.Redirect("~/Home/Home.aspx"); }
  • 32. xxxii catch (Exception ex) { Response.Write(ex.ToString()); } } } Register (aspx page) <%@PageLanguage="C#"MasterPageFile="~/Register.master"AutoEventWireup="true"Cod eFile="Register.aspx.cs"Inherits="Register"Title="Registration"%> <asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat="Serve r"> <tablestyle="width: 100%; position: static"> <tr> <tdcolspan="2"style="vertical-align: middle; height: 21px; text-align: center"> <strong><spanstyle="font-size: x-large; color: #000000; font-family: Verdana">Register Your Self Here</span></strong></td> </tr> <tr> <tdstyle="vertical-align: top; width: 50%; color: white; text-align: right"> </td> <tdstyle="width: 50%; text-align: left"> </td> </tr> <tr> <tdstyle="width: 50%; color: #663300; vertical-align: top; text-align: right; font-weight: bold; font-size: small; font-family: Verdana;"> <strong>FirstName:</strong></td> <tdstyle="width: 50%; text-align: left"> <asp:TextBoxID="txtfnm"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox> <asp:RequiredFieldValidatorID="RequiredFieldValidator5"runat="server"ControlToV alidate="txtfnm" ErrorMessage="fill the name ">*</asp:RequiredFieldValidator></td> </tr> <tr> <tdstyle="width: 50%; color: #663300; vertical-align: top; height: 24px; text- align: right; font-weight: bold; font-size: small; font-family: Verdana;"> <strong><spanstyle="font-size: small; font-family: Verdana;">Middle Name:</span></strong></td> <tdstyle="width: 50%; text-align: left; height: 24px;"> <asp:TextBoxID="txtmnm"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox> <asp:RequiredFieldValidatorID="RequiredFieldValidator6"runat="server"ControlToV alidate="txtlmn" ErrorMessage="fill the Middle name ">*</asp:RequiredFieldValidator></td> </tr> <tr> <tdstyle="width: 50%; color: #663300; vertical-align: top; text-align: right; font-weight: bold; font-size: small; font-family: Verdana;">
  • 33. xxxiii <strong><spanstyle="font-size: small; font-family: Verdana;">Last Name:</span></strong></td> <tdstyle="width: 50%; text-align: left"> <asp:TextBoxID="txtlmn"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox> <asp:RequiredFieldValidatorID="RequiredFieldValidator7"runat="server"ControlToV alidate="txtlmn" ErrorMessage="fill the Last name ">*</asp:RequiredFieldValidator></td> </tr> <tr> <tdstyle="width: 50%; color: #663300; vertical-align: top; text-align: right; font-weight: bold; font-size: small; font-family: Verdana;"> <strong><spanstyle="font-size: small; font-family: Verdana;">&nbsp;UserID:</span></strong></td> <tdstyle="width: 50%; text-align: left"> <asp:TextBoxID="txtemail"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox> <asp:RequiredFieldValidatorID="RequiredFieldValidator1"runat="server"ControlToV alidate="txtemail" ErrorMessage="Enter the Email ID"Style="position: static">*</asp:RequiredFieldValidator></td> </tr> <tr> <tdstyle="width: 50%; color: #663300; vertical-align: top; text-align: right; font-weight: bold; font-size: small; font-family: Verdana; height: 30px;"> <strong><spanstyle="font-size: small; font-family: Verdana;">Password:</span></strong></td> <tdstyle="width: 50%; text-align: left; height: 30px;"> <asp:TextBoxID="txtpass"runat="server"Style="position: static" TextMode="Password"BorderColor="#3366CC"BorderWidth="1px"Width="126px"></asp:Te xtBox> <asp:RequiredFieldValidatorID="RequiredFieldValidator2"runat="server"ControlToV alidate="txtpass" ErrorMessage="Enter the Password"Style="position: static">*</asp:RequiredFieldValidator> <asp:CompareValidatorID="CompareValidator1"runat="server"ControlToCompare="txtp ass" ControlToValidate="txtrepass"ErrorMessage="Does not match password"Style="position: static">*</asp:CompareValidator></td> </tr> <tr> <tdstyle="width: 50%; color: #663300; vertical-align: top; text-align: right; font-weight: bold; font-size: small; font-family: Verdana;"> <strong><spanstyle="font-size: small; font-family: Verdana;">Re- Password:</span></strong></td> <tdstyle="width: 50%; text-align: left"> <asp:TextBoxID="txtrepass"runat="server"Style="position: static" TextMode="Password"BorderColor="#3366CC"BorderWidth="1px"Width="126px"></asp:Te xtBox></td> </tr> <tr> <tdstyle="width: 50%; color: #663300; vertical-align: top; text-align: right; font-weight: bold; font-size: small; font-family: Verdana;"> <strong><spanstyle="font-size: small; font-family: Verdana;">State:</span></strong></td> <tdstyle="width: 50%; text-align: left"> <asp:TextBoxID="txtstate"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox> <asp:RequiredFieldValidatorID="RequiredFieldValidator8"runat="server"ControlToV alidate="txtstate" ErrorMessage="fill the state">*</asp:RequiredFieldValidator></td> </tr>
  • 34. xxxiv <tr> <tdstyle="width: 50%; color: #663300; vertical-align: top; text-align: right; font-weight: bold; font-size: small; font-family: Verdana;"> <strong><spanstyle="font-size: small; font-family: Verdana;">City:</span></strong></td> <tdstyle="width: 50%; text-align: left"> <asp:TextBoxID="txtct"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox> <asp:RequiredFieldValidatorID="RequiredFieldValidator9"runat="server"ControlToV alidate="txtct" ErrorMessage="fill the City">*</asp:RequiredFieldValidator></td> </tr> <tr> <tdstyle="width: 50%; color: #663300; vertical-align: top; text-align: right; font-weight: bold; font-size: small; font-family: Verdana;"> <strong><spanstyle="font-size: small; font-family: Verdana;">PinCode:</span></strong></td> <tdstyle="width: 50%; text-align: left"> <asp:TextBoxID="txtpin"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox> <asp:RequiredFieldValidatorID="RequiredFieldValidator10"runat="server"ControlTo Validate="txtpin" ErrorMessage="fill the Pincode">*</asp:RequiredFieldValidator></td> </tr> <tr> <tdstyle="width: 50%; color: #663300; vertical-align: top; height: 26px; text- align: right; font-weight: bold; font-size: small; font-family: Verdana;"> <strong><spanstyle="font-size: small; font-family: Verdana;">Security Question:</span></strong></td> <tdstyle="width: 50%; text-align: left; height: 26px;"> &nbsp;<asp:DropDownListID="ddlseq"runat="server"> <asp:ListItem>What is Your fav Color?</asp:ListItem> <asp:ListItem>Wat is Your fav sub?</asp:ListItem> <asp:ListItem>Which is fav holiday place?</asp:ListItem> </asp:DropDownList></td> </tr> <tr> <tdstyle="width: 50%; color: #663300; vertical-align: top; height: 25px; text- align: right; font-weight: bold; font-size: small; font-family: Verdana;"> <strong><spanstyle="font-size: small; font-family: Verdana;">Ans:</span></strong></td> <tdstyle="width: 50%; text-align: left; height: 25px;"> <asp:TextBoxID="txtsans"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox> <asp:RequiredFieldValidatorID="RequiredFieldValidator4"runat="server"ControlToV alidate="txtsans" ErrorMessage="Enter the security Answer"Style="position: static">*</asp:RequiredFieldValidator></td> </tr> <tr> <tdstyle="width: 50%; color: white; vertical-align: top; text-align: right;"> </td> <tdstyle="width: 50%; text-align: left"> <asp:ButtonID="Button1"runat="server"BackColor="#009900"Font- Bold="True"ForeColor="White" Style="position: static"Text="Submit"Width="82px" OnClick="Button1_Click"BorderColor="Black"BorderWidth="1px"Height="29px"/></td> </tr> <tr> <tdstyle="width: 50%; color: white; vertical-align: top; text-align: right;"> <asp:SqlDataSourceID="SqlDataSource1"runat="server"ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
  • 35. xxxv SelectCommand="SELECT * FROM [tbllogin]"></asp:SqlDataSource> </td> <tdstyle="width: 50%; text-align: left"> <asp:ValidationSummaryID="ValidationSummary1"runat="server"ShowMessageBox="True " Style="position: static"ForeColor="White"/> &nbsp;&nbsp;&nbsp; </td> </tr> <tr> <tdstyle="width: 50%; color: white; vertical-align: top; text-align: right;"> </td> <tdstyle="width: 50%; text-align: left"> <asp:LabelID="lblerror"runat="server"Font- Bold="True"ForeColor="#000040"Style="position: static"></asp:Label></td> </tr> </table> </asp:Content> Register (cs page) using System; using System.Data; using System.Configuration; using System.Collections; 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.Data.SqlClient; publicpartialclassRegister : System.Web.UI.Page { SqlConnection cn = newSqlConnection(ConfigurationManager.ConnectionStrings[1].ConnectionString); protectedvoid Page_Load(object sender, EventArgs e) { } protectedvoid Button1_Click(object sender, EventArgs e) { try { cn.Open(); string sql = "insert into tbllogin values('" + txtfnm.Text + "','" + txtmnm.Text + "','" + txtlmn.Text + "','" + txtemail.Text + "','" + txtpass.Text + "','" + txtstate.Text + "','" + txtct.Text + "','" + txtpin.Text + "','" + ddlseq.SelectedValue + "','" + txtsans.Text + "','N')"; SqlCommand cmd = newSqlCommand(sql, cn); cmd.ExecuteNonQuery();
  • 36. xxxvi cn.Close(); txtfnm.Text = " "; txtmnm.Text = " "; txtlmn.Text = " "; txtemail.Text = " "; txtpass.Text = " "; txtrepass.Text = " "; txtstate.Text = " "; txtct.Text = " "; txtpin.Text = " "; // txtsque.Text = " "; txtsans.Text = " "; //lblerror.Text = "Already exist user "; Response.Redirect("~/login.aspx"); } catch (Exception ex) { Response.Write(ex.ToString()); } } } Feedback (aspx page) <%@PageLanguage="C#"MasterPageFile="~/Home/Home.master"AutoEventWireup="true"Co deFile="Feedback.aspx.cs"Inherits="Home_Feedback"Title="Give Your Feedback"%> <asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat="Serve r"> <tablestyle="width: 100%; position: static"> <tr> <tdcolspan="2"style="text-align: center"> <strong> <spanstyle="font-size: x-large; font-family: Verdana; text-decoration: underline;" class="style1">Feedback</span></strong></td> </tr> <tr> <tdstyle="width: 65%; text-align: right; color: #663300; font-weight: bold; font-size: small; font-family: Verdana;"> <spanstyle="color: #663300; font-size: small; font-family: Verdana;"><strong>Name:</strong></span></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtnm"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 65%; text-align: right; color: #663300; font-weight: bold; font-size: small; font-family: Verdana;"> <strong><spanstyle="color: #663300; font-size: small; font-family: Verdana;">Address:</span></strong></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtadd"runat="server"Style="position: static"
  • 37. xxxvii BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 65%; text-align: right; color: #663300; font-weight: bold; font-size: small; font-family: Verdana;"> <strong><spanstyle="color: #663300; font-size: small; font-family: Verdana;">City:</span></strong></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtct"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 65%; text-align: right; color: #663300; font-weight: bold; font-size: small; font-family: Verdana;"> <strong><spanstyle="color: #663300; font-size: small; font-family: Verdana;">State:</span></strong></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtstate"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 65%; text-align: right; color: #663300; font-weight: bold; font-size: small; font-family: Verdana;"> <strong><spanstyle="color: #663300; font-size: small; font-family: Verdana;">Country:</span></strong></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtcount"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 65%; text-align: right; color: #663300; font-weight: bold; font-size: small; font-family: Verdana;"> <strong><spanstyle="color: #663300; font-size: small; font-family: Verdana;">Phone no:</span></strong></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtphone"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 65%; text-align: right; color: #663300; font-weight: bold; font-size: small; font-family: Verdana;"> <strong><spanstyle="color: #663300; font-size: small; font-family: Verdana;">Mobile:</span></strong></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtmobile"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 65%; text-align: right; color: #663300; font-weight: bold; font-size: small; font-family: Verdana;"> <strong><spanstyle="color: #663300; font-size: small; font-family: Verdana;">F.date:</span></strong></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtdate"runat="server"Style="position: static" BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 65%; text-align: right"> </td> <tdstyle="width: 50%"> <asp:CalendarID="Calendar1"runat="server"BackColor="White"BorderColor="#3366CC"
  • 38. xxxviii DayNameFormat="Shortest"Font-Names="Times New Roman"Font- Size="10pt"ForeColor="Black" Height="220px"NextPrevFormat="FullMonth"OnSelectionChanged="Calendar1_Selection Changed" TitleFormat="Month"Width="400px"BorderWidth="1px"> <SelectedDayStyleBackColor="#CC3333"ForeColor="White"/> <SelectorStyleBackColor="#CCCCCC"Font-Bold="True"Font-Names="Verdana"Font- Size="8pt" ForeColor="#333333"Width="1%"/> <TodayDayStyleBackColor="#CCCC99"/> <OtherMonthDayStyleForeColor="#999999"/> <DayStyleWidth="14%"/> <NextPrevStyleFont-Size="8pt"ForeColor="White"/> <DayHeaderStyleBackColor="#CCCCCC"Font-Bold="True"Font- Size="7pt"ForeColor="#333333" Height="10pt"/> <TitleStyleBackColor="Black"Font-Bold="True"Font-Size="13pt"ForeColor="White" Height="14pt"/> </asp:Calendar> </td> </tr> <tr> <tdstyle="width: 65%; text-align: right; color: #663300; font-weight: bold; font-size: small; font-family: Verdana;"> <strong><spanstyle="color: #663300; font-size: small; font-family: Verdana;">Feedback:</span></strong></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtfeed"runat="server"Style="position: static" TextMode="MultiLine"BorderColor="#3366CC"BorderWidth="1px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 65%"> </td> <tdstyle="width: 50%"> <asp:ButtonID="Button1"runat="server"BackColor="#009900"Font- Bold="True"ForeColor="White" Style="position: static"Text="Submit"Width="81px" OnClick="Button1_Click"BorderColor="Black"BorderWidth="1px"/></td> </tr> <tr> <tdstyle="width: 65%"> </td> <tdstyle="width: 50%"> <asp:LabelID="lblseccess"runat="server"Font-Bold="True"ForeColor="#FFFFC0" Style="position: static; color: #FF0000;"></asp:Label></td> </tr> </table> </asp:Content> Feedback (cs page) using System; using System.Data; using System.Configuration;
  • 39. xxxix using System.Collections; 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.Data.SqlClient; publicpartialclassHome_Feedback : System.Web.UI.Page { SqlConnection cn = newSqlConnection(ConfigurationManager.ConnectionStrings[1].ConnectionString); protectedvoid Page_Load(object sender, EventArgs e) { } protectedvoid Button1_Click(object sender, EventArgs e) { try { cn.Open(); string sql = "insert into tblfeed values('"+txtnm.Text+"','"+txtadd.Text+"','"+txtct.Text + "','" + txtstate.Text + "','" + txtcount.Text + "','" + txtphone.Text + "','"+txtmobile.Text+"','"+txtdate.Text+"','"+txtfeed.Text+"')"; SqlCommand cmd = newSqlCommand(sql, cn); cmd.ExecuteNonQuery(); cn.Close(); lblseccess.Text = "Feedback is Succesfully"; txtnm.Text = " "; txtadd.Text = " "; txtct.Text = " "; txtstate.Text = " "; txtcount.Text = " "; txtphone.Text = " "; txtmobile.Text =" "; //txtdate.Text = " "; txtfeed.Text = " "; // Response.Redirect("~/Default.aspx"); } catch (Exception ex) { Response.Write(ex.ToString()); } } protectedvoid Calendar1_SelectionChanged(object sender, EventArgs e) { txtdate.Text = Calendar1.SelectedDate.ToShortDateString(); } } Change password (aspx page)
  • 40. xl <%@PageLanguage="C#"MasterPageFile="~/Home/Home.master"AutoEventWireup="true"Co deFile="changepass.aspx.cs"Inherits="Home_changepass"Title="Change Password"%> <asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat="Serve r"> <tablestyle="width: 100%"> <tr> <tdcolspan="2"style="vertical-align: middle; color: white; font-family: Chiller; text-align: center"> <h2class="style1" style="font-size: x-large; font-family: Verdana; text-decoration: underline">Change Password</h2></td> </tr> <tr> <tdstyle="width: 50%; color: #663300; text-align: right; font-weight: bold; font-size: small; font-family: Verdana;"> <strong>Current Password:</strong></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtpass"runat="server"TextMode="Password" BorderColor="#3366CC"BorderWidth="1px"Width="130px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%; color: #663300; text-align: right; height: 26px; font- weight: bold; font-size: small; font-family: Verdana;"> <strong>New Password:</strong></td> <tdstyle="width: 50%; height: 26px;"> <asp:TextBoxID="txtnpass"runat="server"TextMode="Password" BorderColor="#3366CC"BorderWidth="1px"Width="130px"></asp:TextBox> <asp:CompareValidatorID="CompareValidator1"runat="server"ErrorMessage="Does not match Password"ControlToCompare="txtnpass"ControlToValidate="txtrepass">*</asp:Compar eValidator></td> </tr> <tr> <tdstyle="width: 50%; color: #663300; text-align: right; font-weight: bold; font-size: small; font-family: Verdana;"> <strong>Re-Password:</strong></td> <tdstyle="width: 50%"> <asp:TextBoxID="txtrepass"runat="server"TextMode="Password" BorderColor="#3366CC"BorderWidth="1px"Width="130px"></asp:TextBox></td> </tr> <tr> <tdstyle="width: 50%; color: white; text-align: right"> </td> <tdstyle="width: 50%"> <asp:ButtonID="btnsubmit"runat="server"BackColor="#009900"Font- Bold="True"ForeColor="White" Text="Submit"OnClick="btnsubmit_Click"BorderColor="Black" BorderWidth="1px"Height="28px"Width="66px"/></td> </tr> </table> </asp:Content>
  • 41. xli Change password (cs page) using System; using System.Data; using System.Configuration; using System.Collections; 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.Data.SqlClient; publicpartialclassHome_changepass : System.Web.UI.Page { SqlConnection cn = newSqlConnection(ConfigurationManager.ConnectionStrings[1].ConnectionString); protectedvoid Page_Load(object sender, EventArgs e) { } protectedvoid btnsubmit_Click(object sender, EventArgs e) { try { cn.Open(); string sql = "update tbllogin set password='" + txtnpass.Text + "' where email='" + Session["uname"].ToString() + "' and password='" + txtpass.Text + "' "; SqlCommand cmd = newSqlCommand(sql, cn); cmd.ExecuteNonQuery(); cn.Close(); //txt.Text = " "; //txtapass.Text = " "; Response.Redirect("~/Home/Home.aspx"); } catch (Exception ex) { Response.Write(ex.ToString()); } } }
  • 42. xlii TESTING WHAT IS TESTING? Software testing is a specialized discipline in the process of software development. Testing is the process of demonstrating that errors are not present. The purpose of testing is to show that a program performs its intended functions correctly. Testing is the process of establishing confidence that a program does what it is supposed to do. Levels of Testing There are three levels of testing: Unit Testing Unit testing is the process of taking a module and running it in isolation from the rest of the software product by using prepared test cases and comparing actual results with the results predicted by the specifications and design of the Module. As we use waterfall model for designing our software thus we perform unit testing side by side after coding every individual module. Integration Testing We perform integration testing using bottom up integration and we get positive Results in test. System Testing This type of testing is done when the system is ready to execute with full functionality. Acceptance Testing
  • 43. xliii This type of testing covers all the test cases applied by the customer and comprises of two main parts 1. Alpha Testing 2.Beta Testing Functional Testing Functional testing also known as black box testing is performed on our project. Here we test the functionality of our program. In functional testing we observe the output for certain input values and it produces positive results.
  • 45. xlv
  • 46. xlvi
  • 47. xlvii
  • 49. xlix CONCLUSION The project Social Network is completed, satisfying the required design specifications. The system provides a user-friendly interface. The software is developed with modular approach. All modules in the system have been tested with valid data and invalid data and everything work successfully. Thus the system has fulfilled all the objectives identified and is able to replace the existing system. The constraints are met and overcome successfully. The system is designed as like it was decided in the design phase. The system is very user friendly and will reduce time consumption. This software has a user-friendly screen that enables the user to use without any inconvenience.The application has been tested with live data and has provided a successful result. Hence the software has proved to work efficiently.