You are on page 1of 42

Online Banking System

CHAPTER -1
INTRODUCTION

Online Banking System provides is specifically developed for online banking for
Balance Enquiry, Funds Transfer to another account in the same bank, Request for chequee
book, Pre-Paid Recharge, and the user can change the password. The Traditional way of
maintaining details of a user in a bank was to enter the details and record them. Every time
the user need to perform some transactions he has to go to bank and perform the necessary
actions, which may not be so feasible all the time. It may be a hard-hitting task for the users
and the bankers too.
The project gives real life understanding of Online Banking System and activities
performed by various roles in the supply chain. Here, we provide an automation for banking
system through Internet. Online Banking System project captures activities performed by
different roles in real life banking which provides enhanced techniques for maintaining the
required information up to-date, which results in efficiency. The project gives real life
understanding of Online Banking System and activities performed by various roles in the
supply chain.

Dept of CSE, Dr. AIT Page 1


Online Banking System

1.1 Introduction to .Net Framework


The .NET Framework provides a new platform for building applications that are
easily deployed and executed across multiple architectures and operating systems. This
portability is achievable only because of ongoing standardization through the ECMA and
ISO organizations. In this way, the framework offers independence to languages by
supplying an international standard called the Common Language Infrastructure (CLI).
The framework was designed to be installed on top of an operating system and is divided
into two main layers, as shown in Figure 1.1: a runtime environment called the Common
Language Runtime (CLR), similar to the Java Virtual Machine, and a large library of
classes called the Framework Class Library (FCL), which provides the required services
for modern applications.

Applications Development Tools for C#, J#, C++, VB.


Framework Class Library
Common Language Runtime
Operating System

.
Applications Development Tools for
J#, C++, VB, …
C#, Library
Framework Class
Common Language Runtime
Operating
System

Fig 1.1 Overview of the .NET Framework.

Dept of CSE, Dr. AIT Page 2


Online Banking System

1.2 Introduction to C#
As part of the lineage of C-based languages, C# has incorporated and exploited
program- Ming language features with a proven record of success and familiarity.
To that end, most syntactic features of C# are borrowed from C/C++, and most of its
object-oriented concepts, such as garbage collection, reflection, the root class, and
the multiple inheritance of interfaces, are inspired by Java. Improvements in C# over
Java, often with syntax simplification, have been applied to iteration, properties, events,
metadata, versioning, and the conversion between simple types and objects.

In addition to being syntactically familiar, C# is strongly typed, architecturally


neutral, portable, safe, and multi-threaded. Type security in C# is supported in a number
of ways, including initializing variables before their use, eliminating dangerous
explicit type conversions, Controlling the limits in arrays, and checking the overflow of
type limits during arithmetic operations. Its architecturally neutral intermediate format,
implemented as the Common Intermediate Language (CIL) and executed on a virtual
machine, makes C# portable and independent of its running environment. C# is also safe.
It controls access to hardware and memory resources, checks classes at runtime, and
does not allow the implicit usage and manipulation of pointers (as C/C++ do). The
explicit use of pointers, on the other hand, is restricted to sections of code that
have been designated as unsafe. With the support of a garbage collector, frustrating
memory leaks and dangling pointers are a non-issue.

The C# language also supports multi-threading in order to promote efficient


interactive applications such as graphics, input/output, and so on. Other modern features
in C# include Just-in-Time (JIT) compilation from bytecode to native code, exceptions for
error handling, namespaces for preventing type collisions, and documentation comments.
In order to promote the widespread use and acceptance of C#, Microsoft reline-
quashed its proprietary rights. With the support of Hewlett-Packard and Intel,
Microsoft quickly pushed for a standardized version of C#. In December 2001, the
first standard was accepted by the European Computer Manufacturer Association
(ECMA). The following December, a second standard was adopted by the ECMA,
and it was accepted 3 months later by the International Organization for
Standardization (ISO). The standardization of C# has three principal benefits:

Dept of CSE, Dr. AIT Page 3


Online Banking System

1. To support the portability of C# applications across different hardware architectures,

2. To foster the development of C# compilers among different manufacturers, and

3. To encourage the emergence of high-quality software tools to support the


developmentof C# applications.

Dept of CSE, Dr. AIT Page 4


Online Banking System

CHAPTER -2

REQUIREMENT AND SPECIFICATION

2.1 Hardware Requirements

The hardware requirements specify the necessary hardware which provides us the
platform to implement our programs.

 RAM: 4 GB RAM and Above


 Storage Space: 20 GB Hard Disk
 Processor: Intel CORE i3 Processor and Above

2.2 Software Requirements

The software requirements specify the pre-installed software needed to run the code
being implemented in this project.

 Operating System: Windows 8.1 and Above.


 Tools Used: Microsoft Visual Studio 2018
 Client: Chrome Browser.
 Database Server: Microsoft SQL Server - 2005

Dept of CSE, Dr. AIT Page 5


Online Banking System

CHAPTER – 3

DESCRIPTION
This Project investigates the entry threshold for providing a new transaction service
channel via the real options approach, where the entry threshold is established by using an
Internet banking system designed for the use of normal users(individuals), Industrialists,
Entrepreneurs, Educational Institutions (Financial sections), Organizations and Academicians
under transaction rate uncertainty.
This software manages the banking total transaction details of each bank customer.
Details of each record can be easily fetched on one mouse click. The interface and the I/O
screens are so designed to provide user friendly environment to the users. It is highly adaptive
and easy to deal with. Details of each customer is entered and saved and searched easily
whenever required. Transaction can also be automatically generated wherever.

3.1 SQL Server 2005


Beginning with the SQL Server 2005 product family, Microsoft has created several
different versions of SQL Server. Known as editions, each of these versions addresses a
different class of database environment. Despite this segmentation, all editions are built on the
same underlying technology platform. The main difference among the editions is that the
simpler, less far-reaching versions don’t have all the features and storage capacity that you find
in their larger (and more complex) siblings. Here’s a list of all the SQL Server 2005 editions:
 Enterprise: This is the most robust edition of SQL Server 2005. It includes a host of
features that make it a good choice for a 24/7, mission critical database server platform.
Just a few of these features include
• Advanced business intelligence analytics
• Robust data transformation logic
• High availability capabilities

This product also has two developer-focused versions, which contain all the Enterprise
features but are licensed differently. These are SQL Server 2005 Developer Edition and SQL
Server 2005 Evaluation Edition.

Dept of CSE, Dr. AIT Page 6


Online Banking System

 Standard: With much of the feature set of its big brother, this edition is fine for the
vast majority of database applications. The main difference is that this edition is
somewhat lighter in both its business intelligence and high availability feature sets.
 Workgroup: Aimed at smaller, departmental applications, this still-powerful edition
of SQL Server 2005 introduces some limitations that are not likely to be issues for these
smaller computing environments. Some of these restrictions include
• Hardware and database size constraints
• Diminished high availability
• Reduced business intelligence
 Express: Now it’s time to look at the star of this show. This is the simplest and easiest
to use database offering in the SQL Server 2005 product family. On top of that accolade,
it’s also free to download and redistribute (with some licensing restrictions). This is the
right edition for you if any of the following describe you:
• A software developer (seasoned or brand-new) wanting to learn about relational databases.
• A packaged application provider looking to embed a free, yet sturdy database with your
solution.
• An end user with a lot of information to store, but not a lot of cash to buy a database.
As you evaluate potential uses for SQL Server Express 2005,note that you can use it
for all sorts of applications, from traditional, desktop-based rich client software as well as
browser-based solutions that are available over the Internet.
SQL Server 2005 Express is just one component of a larger collection of entry level
products aimed at helping developers and hobbyists use Microsoft’s technologies to deliver
powerful and flexible computing solutions. These products, all of which are part of Visual
Studio 2005 Express include the following:
 Visual Web Developer 2005 Express
 Visual Basic 2005 Express
 Visual C# 2005 Express
 Visual C++ 2005 Express
 Visual J# 2005 Express
All these products work seamlessly with SQL Server 2005 Express.

Dept of CSE, Dr. AIT Page 7


Online Banking System

3.2 OBJECTIVES

 Provide practical knowledge


 To develop a creative and logical thinking
 To provide a better understanding of the subject by making at more interesting and
practical oriented
 To improve analysis skill which help them in taking and to achieve the given target

3.3 ER - DIAGRAM

An entity–relationship model (ER model) is a data model for describing the data or
information aspects of a business domain or its process requirements, in an abstract way that
lends itself to ultimately being implemented in a database such as a relational database. The
main components of ER models are entities (things) and the relationships that can exist
among them. Entity–relationship modeling was developed by Peter Chen and published in a
1976 paper. The ER diagram is drawn to have a better understanding of the whole scenario, it
is used to conceptualize the phenomena, actions and interactions between various entities and
to arrive at the specific requirements in a comprehensive manner. An entity–relationship
model is the result of using a systematic process to describe and define a subject area of
business data. The data is represented as components (entities) that are linked with each other
by relationships that express the dependencies and requirements between them

Dept of CSE, Dr. AIT Page 8


Online Banking System

TRANSACTIONS

ACCOUNT FUND
DETAILS TRANSFER

Contains

Contains Contains

ONLINE
BANKING
SYSTEM

Contains
Contains

Contains

BILL PAY
PRE-PAID
CHEQUEE BOOK
RECHARGE
REQUEST

CHANGE
Contains PASSWORD

Dept of CSE, Dr. AIT Page 9


Online Banking System

CHAPTER -4

DESIGN AND IMPLEMENTATION

4.1 CODING

Master Page

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
public partial class MasterPage1 : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{

}
}
Home Page
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;

Dept of CSE, Dr. AIT Page 10


Online Banking System

using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class home : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{

}
}

Login
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class login : System.Web.UI.Page
{
SqlConnection con = new SqlConnection("data
source=localhost\\sqlexpress;initial catalog=bank;integrated security=true");

//string aa,cc;
Dept of CSE, Dr. AIT Page 11
Online Banking System

//string bb=yes;

protected void Page_Load(object sender, EventArgs e)


{

}
protected void TextBox1_TextChanged(object sender, EventArgs e)
{

}
protected void btnlogin_Click(object sender, EventArgs e)
{
string ac, pwd;
ac = txtaccountno.Text.Trim();
pwd = txtpassword.Text.Trim();
con.Open();
string str = "select * from Accounts";
SqlCommand cmd = new SqlCommand(str, con);
SqlDataReader reader1 = cmd.ExecuteReader();

bool found = false;


while (reader1.Read())
{
if (ac == reader1.GetString(0).Trim() && pwd ==
reader1.GetString(1).Trim())
{
found = true;
con.Close();
break;
}
}
if (found == true)
{
Dept of CSE, Dr. AIT Page 12
Online Banking System

Session["un"] = "mahesh";

con.Open();
string str1 = "update Accounts set status='yes' where acno='" +
txtaccountno.Text.Trim() + "'";
SqlCommand cmd1 = new SqlCommand(str1, con);
cmd1.ExecuteNonQuery();
con.Close();
Response.Redirect("account.aspx");
}
else
{
lblstatus.Visible = true;
txtaccountno.Text = "";
txtpassword.Text = "";
}
}

}
About us
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

Dept of CSE, Dr. AIT Page 13


Online Banking System

public partial class aboutus : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{

}
}

Accounts
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class account : System.Web.UI.Page
{
SqlConnection con = new SqlConnection("data
source=localhost\\sqlexpress;initial catalog=bank;integrated security=true");
protected void Page_Load(object sender, EventArgs e)
{
if (Session["un"] == "")
{
Response.Redirect("login.aspx");
}
con.Open();

Dept of CSE, Dr. AIT Page 14


Online Banking System

string str22 = "select * from Accounts where status='yes'";


SqlCommand cmd22 = new SqlCommand(str22, con);
SqlDataReader reader22;
reader22 = cmd22.ExecuteReader();
reader22.Read();
lblaccno.Text = reader22.GetString(0).Trim();
lblaccno.Visible = true;
lblahname.Text=reader22.GetString(3).Trim();
lblahname.Visible = true;
lblbalance.Text = "Total Avilable Balance: INR " +
reader22.GetString(5).Trim() + "/-";
lblbalance.Visible = true;
con.Close();

}
}
}

Contact Us
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class cantactus : System.Web.UI.Page
{

Dept of CSE, Dr. AIT Page 15


Online Banking System

SqlConnection con = new SqlConnection("data


source=localhost\\sqlexpress;initial catalog=bank;integrated security=true");
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnclear_Click(object sender, EventArgs e)
{
txtname.Text = "";
txtemail.Text = "";
txtmessage.Text = "";
}
protected void btnsend_Click(object sender, EventArgs e)
{
con.Open();
string str = "insert into
feedback(Names,Email,Message)values(@cname,@cemail,@cmessage)";
SqlCommand cmd = new SqlCommand(str, con);
cmd.Parameters.Add("@cname", txtname.Text.Trim());
cmd.Parameters.Add("@cemail", txtemail.Text.Trim());
cmd.Parameters.Add("@cmessage", txtmessage.Text.Trim());
cmd.ExecuteNonQuery();
con.Close();
con.Open();
txtname.Text = "";
txtemail.Text = "";
txtmessage.Text = "";
con.Close();
}
protected void btnfeedback_Click(object sender, EventArgs e)
{
//Response.Redirect("feedback.aspx");
}
protected void btnfeedback_Click1(object sender, EventArgs e)
{

Dept of CSE, Dr. AIT Page 16


Online Banking System

Response.Redirect("feedback.aspx");
}
}

Change Password
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

public partial class changepassword : System.Web.UI.Page


{
SqlConnection con = new SqlConnection("data
source=localhost\\sqlexpress;initial catalog=bank;integrated security=true");
int aa,bb,cc;
protected void Page_Load(object sender, EventArgs e)
{
if (Session["un"] == "")
{
Response.Redirect("login.aspx");
}

}
protected void btnchange_Click(object sender, EventArgs e)
{
try

Dept of CSE, Dr. AIT Page 17


Online Banking System

{
if (txtconfirm.Text == "")
{
lblconfirm.Text = "Enter Confirm New Password";
lblconfirm.Visible = true;
}
else
{

con.Open();
string str22 = "select * from Accounts where status='yes'";
SqlCommand cmd22 = new SqlCommand(str22, con);
SqlDataReader reader22;
reader22 = cmd22.ExecuteReader();
reader22.Read();
aa = Convert.ToInt16(reader22.GetString(1).Trim());
bb = Convert.ToInt16(txtold.Text);
cc = Convert.ToInt16(txtnew.Text);

if (aa == bb)
{
lblconfirm.Visible = false;
con.Close();

con.Open();
string str20 = "update Accounts set pwd='" +
cc.ToString() +
"' where status='yes'";
SqlCommand cmd20 = new SqlCommand(str20, con);
cmd20.ExecuteNonQuery();
con.Close();
lblmessage.Text = "Password Has Been Changed
Successfully...";
Dept of CSE, Dr. AIT Page 18
Online Banking System

lblmessage.Visible = true;
}
else
{
lblconfirm.Visible = false;
lblmessage.Text = "Sorry! Invalid Old Password!";
lblmessage.Visible = true;
}
}

}
catch (Exception e4)
{
}
}

}
Chequee Book
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class chequeebook : System.Web.UI.Page
{

Dept of CSE, Dr. AIT Page 19


Online Banking System

SqlConnection con = new SqlConnection("data


source=localhost\\sqlexpress;initial catalog=bank;integrated security=true");
int cc, ff;
string aa, bb, dd, ee, mm, nn, oo, pp, qq, rr, ss, zz;
protected void Page_Load(object sender, EventArgs e)
{
if (Session["un"] == "")
{
Response.Redirect("login.aspx");
}
}
protected void btnsubmit_Click(object sender, EventArgs e)
{
try
{
lblmessage.Visible = false;
con.Open();
string str22 = "select * from Accounts where status='yes'";
SqlCommand cmd22 = new SqlCommand(str22, con);
SqlDataReader reader22;
reader22 = cmd22.ExecuteReader();
reader22.Read();
aa =Convert.ToString( reader22.GetString(0).Trim());
bb = DateTime.Now.ToShortDateString().Trim();
cc = Convert.ToInt16(DropDownList1.Text.Trim());
ee = Convert.ToString(DropDownList2.Text.Trim());
ff = Convert.ToInt16(DropDownList3.Text.Trim());
zz = "Cheque book " + DropDownList3.Text.Trim()+"__
Requestd Has been Sent";
mm = "0";
nn = "0";
oo = "0";
pp = "0";
qq = "0";
Dept of CSE, Dr. AIT Page 20
Online Banking System

rr = Convert.ToString(DropDownList3.Text.Trim());
ss = "0";
con.Close();
con.Open();
string str26 = "select max(acno) from cbrequest";
SqlCommand cmd26 = new SqlCommand(str26, con);
SqlDataReader reader26;
reader26 = cmd26.ExecuteReader();
reader26.Read();
dd = Convert.ToString( reader26.GetString(0).Trim());
if (aa==dd)
{
lblmessage.Text = "Sorry! A request with your
account number is pending. ";
lblmessage.Visible = true;
}
else
{
con.Close();
con.Open();
string str77 = "insert into cbrequest
values(@sbill,@scname,@smname,
@sbil,@scnam)";
SqlCommand cmd77 = new SqlCommand(str77, con);
cmd77.Parameters.Add("@sbill", aa.ToString().Trim());
cmd77.Parameters.Add("@scname", ee.ToString().Trim());
cmd77.Parameters.Add("@smname", bb.ToString().Trim());
cmd77.Parameters.Add("@sbil", ff.ToString().Trim());
cmd77.Parameters.Add("@scnam", cc.ToString().Trim());
cmd77.ExecuteNonQuery();
con.Close();
lblmessage.Text = "Request Accepted. Cheuqe book will be
posted in the next 7 working days!";
lblmessage.Visible = true;
Dept of CSE, Dr. AIT Page 21
Online Banking System

con.Close();
con.Open();
string str78 = "insert into transactions
values(@mn,@sbilld,@scnamed,@smname,
ntd,@sbillde,@sbi,@scnamede)";
SqlCommand cmd78 = new SqlCommand(str78, con);
cmd78.Parameters.Add("@mn", aa.ToString().Trim());
cmd78.Parameters.Add("@sbilld", bb.ToString().Trim());
cmd78.Parameters.Add("@scnamed", mm.ToString().Trim());
cmd78.Parameters.Add("@smname", nn.ToString().Trim());
cmd78.Parameters.Add("@sitemprice", oo.ToString().Trim());
cmd78.Parameters.Add("@squantd", pp.ToString().Trim());
cmd78.Parameters.Add("@sbillde", qq.ToString().Trim());
cmd78.Parameters.Add("@sbi", rr.ToString().Trim());
cmd78.Parameters.Add("@scnamede", zz.ToString().Trim());
cmd78.ExecuteNonQuery();
con.Close();
}
}
catch(Exception e5)
{}
}
}
Default
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class _Default : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{}}

Dept of CSE, Dr. AIT Page 22


Online Banking System

Fund Tranfer
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class fundtransfer : System.Web.UI.Page
{
SqlConnection con = new SqlConnection("data
source=localhost\\sqlexpress;initial catalog=bank;integrated security=true");
int aa, bb, cc,dd,ff,gg,hh;
string ee, ii;
string mm, nn, oo, pp, qq, rr, ss, tt,zz,kk;
protected void Page_Load(object sender, EventArgs e)
{
if (Session["un"] == "")
{
Response.Redirect("login.aspx");
}
con.Open();
string str22 = "select * from Accounts where status='yes'";
SqlCommand cmd22 = new SqlCommand(str22, con);
SqlDataReader reader22;
reader22 = cmd22.ExecuteReader();
reader22.Read();

Dept of CSE, Dr. AIT Page 23


Online Banking System

lblstatus.Text = "Total Avilable Balance: INR " +


reader22.GetString(5).Trim() + "/-";
lblstatus.Visible = true;
con.Close();
}
protected void btntran_Click(object sender, EventArgs e)
{
try
{
if (txtamount.Text == "" || txtrepwd.Text == "")
{
lblmessage.Text = "Enter All Fields........";
lblmessage.Visible = true;
//lblsuccess.Visible = false;
}
else
{
con.Open();
string str22 = "select * from Accounts where status='yes'";
//where status='yes'";
SqlCommand cmd22 = new SqlCommand(str22, con);
SqlDataReader reader22;
reader22 = cmd22.ExecuteReader();
reader22.Read();
kk = Convert.ToString(reader22.GetString(0).Trim());
ee = DateTime.Now.ToShortDateString().Trim();
aa = Convert.ToInt32(reader22.GetString(5).Trim());
bb = Convert.ToInt32(txtamount.Text.Trim());
if (bb <= aa)
{
if (bb >= 10 && bb <= aa)
{
con.Close();
lblamount.Visible = false;
Dept of CSE, Dr. AIT Page 24
Online Banking System

con.Open();
string str23 = "select * from Accounts where status='yes'";
//where status='yes'";
SqlCommand cmd23 = new SqlCommand(str23, con);
SqlDataReader reader23;
reader23 = cmd23.ExecuteReader();
reader23.Read();
ii = Convert.ToString(txtapwd.Text.Trim());
cc = Convert.ToInt32(reader23.GetString(2).Trim());
dd = Convert.ToInt32(txttranpwd.Text.Trim());
zz = "Fund Transfered To Account no__"
+ txtapwd.Text.Trim();
mm = "0";
nn = "0";
oo = "0";
pp = "0";
qq = "0";
rr = "0";
if (dd == cc)
{
con.Close();
con.Open();
string str77 = "insert into fundtransfer
values(@sbill,@scname,@smname,@sitemprice)";
SqlCommand cmd77 = new SqlCommand(str77, con);
cmd77.Parameters.Add("@sbill", txtpname.Text.Trim());
cmd77.Parameters.Add("@scname", ii.ToString().Trim());
cmd77.Parameters.Add("@smname",
txtamount.Text.Trim());
cmd77.Parameters.Add("@sitemprice",
ee.ToString().Trim());
cmd77.ExecuteNonQuery();
con.Close();

Dept of CSE, Dr. AIT Page 25


Online Banking System

con.Open();
string str78 = "insert into transactions
values(@bm,@sbilld,@scnamed,@smname,
@sitemprice,@squantd,@sbillde,@sbi,@scnamede)";
SqlCommand cmd78 = new SqlCommand(str78, con);
cmd78.Parameters.Add("@bm", kk.ToString().Trim());
cmd78.Parameters.Add("@sbilld", ee.ToString().Trim());
cmd78.Parameters.Add("@scnamed",
mm.ToString().Trim());
cmd78.Parameters.Add("@smname", nn.ToString().Trim());
cmd78.Parameters.Add("@sitemprice",
bb.ToString().Trim());
cmd78.Parameters.Add("@squantd", oo.ToString().Trim());
cmd78.Parameters.Add("@sbillde", pp.ToString().Trim());
cmd78.Parameters.Add("@sbi", qq.ToString().Trim());
cmd78.Parameters.Add("@scnamede",
zz.ToString().Trim());
cmd78.ExecuteNonQuery();
con.Close();
txtpname.Text = "";
txtapwd.Text = "";
txtamount.Text = "";
txttranpwd.Text = "";
txtrepwd.Text = "";
lblsuccess.Text = "Funds Transfered Successfully.......";
lblsuccess.Visible = true;
lblamount.Visible = false;
lblmessage.Visible = false;
lblwrongpwd.Visible = false;
con.Open();
string str17 = "select * from Accounts where status='yes'";
SqlCommand cmd17 = new SqlCommand(str17, con);
SqlDataReader reader17;
reader17 = cmd17.ExecuteReader();
Dept of CSE, Dr. AIT Page 26
Online Banking System

reader17.Read();
ff = Convert.ToInt32(reader17.GetString(5).Trim());
gg = ff - bb;
con.Close();
con.Open();
hh = gg;
string str20 = "update Accounts set balance='"
+ hh.ToString() + "' where status='yes'";
SqlCommand cmd20 = new SqlCommand(str20, con);
cmd20.ExecuteNonQuery();
con.Close();
con.Open();
string str29 = "select * from Accounts where status='yes'";
SqlCommand cmd29 = new SqlCommand(str29, con);
SqlDataReader reader29;
reader29 = cmd22.ExecuteReader();
reader29.Read();
lblstatus.Text = "Total Avilable Balance: INR "
+ reader29.GetString(5).Trim() + "/-";
lblstatus.Visible = true;
con.Close();
}
else
{
lblwrongpwd.Text = "Wrong transaction password";
lblwrongpwd.Visible = true;
}
}
else
{
lblamount.Text = "Enter an Amount More than 10,or
equal to current amount";
lblamount.Visible = true;
}
Dept of CSE, Dr. AIT Page 27
Online Banking System

}
else
{
lblamount.Text = "Enter an valid Amount";
lblamount.Visible = true;
}
}
}
catch (Exception e3)
{}
}
protected void btnclear_Click(object sender, EventArgs e)
{}
}
Recharge
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class recharge : System.Web.UI.Page
{
SqlConnection con = new SqlConnection("data
source=localhost\\sqlexpress;initial catalog=bank;integrated security=true");
int aa, bb, cc, dd, ee;
int gg, hh;
Dept of CSE, Dr. AIT Page 28
Online Banking System

string ii, ff, mm, nn, oo, pp, qq, rr, ww;
protected void Page_Load(object sender, EventArgs e)
{
if (Session["un"] == "")
{
Response.Redirect("login.aspx");
}
con.Open();
string str22 = "select * from Accounts where status='yes'";
//where status='yes'";
SqlCommand cmd22 = new SqlCommand(str22, con);
SqlDataReader reader22;
reader22 = cmd22.ExecuteReader();
reader22.Read();
//lbltotalbill.Text = "RS," + billamt.ToString() + "/-";
lblstatus.Text = "Total Avilable Balance: INR " +
reader22.GetString(5).Trim() + "/-";
lblstatus.Visible = true;
con.Close();
//lblaccno.Visible = true;
//lblahname.Text = reader22.GetString(3).Trim();
//lblahname.Visible = true;
//lblbalance.Text = reader22.GetString(5).Trim();
//lblbalance.Visible = true;
}
protected void Btnclear_Click(object sender, EventArgs e)
{
txtmonum.Text = "";
DropDownList1.Text = "";
DropDownList2.Text = "";
DropDownList3.Text = "";
txtamount.Text = "";
txttranpwd.Text = "";

Dept of CSE, Dr. AIT Page 29


Online Banking System

}
protected void btnok_Click(object sender, EventArgs e)
{
try
{
////int qty, jj;
//////bool flag;
////double totalcost;
//////double billamt = 0;
////DateTime nn;
////if (cbometerialname.Text == "" || cboquantity.Text == "")
if (txtmonum.Text == "" || txtamount.Text == "" || txttranpwd.Text ==
"")
{
lblmessage.Text = "Enter All Fields........";
lblmessage.Visible = true;
lblsuccess.Visible = false;
}
else
{
lblamount.Visible = false;
lblmessage.Visible = false;
con.Open();
string str22 = "select * from Accounts where status='yes'";
SqlCommand cmd22 = new SqlCommand(str22, con);
SqlDataReader reader22;
reader22 = cmd22.ExecuteReader();
reader22.Read();
ww = Convert.ToString(reader22.GetString(0).Trim());
ii = DateTime.Now.ToShortDateString().Trim();
//ff=Convert.ToString(reader22.GetString(
aa = Convert.ToInt32(reader22.GetString(5).Trim());
bb = Convert.ToInt32(txtamount.Text.Trim());
if (bb <= aa)
Dept of CSE, Dr. AIT Page 30
Online Banking System

{
if (bb >= 35 && bb <= 10000)
{
con.Close();
con.Open();
string str23 = "select * from Accounts where status='yes'";
//where status='yes'";
SqlCommand cmd23 = new SqlCommand(str23, con);
SqlDataReader reader23;
reader23 = cmd23.ExecuteReader();
reader23.Read();
cc = Convert.ToInt32(reader23.GetString(2).Trim());
dd = Convert.ToInt32(txttranpwd.Text.Trim());
ff = "Reacharged To__" + txtmonum.Text.Trim();
mm = "0";
nn = "0";
oo = "0";
pp = "0";
qq = "0";
rr = "0";
if (dd == cc)
{
con.Close();
con.Open();
string str77 = "insert into recharge
values(@sbill,@scname,@smname,
@sitemprice,@squant,@gt)";
SqlCommand cmd77 = new SqlCommand(str77, con);
cmd77.Parameters.Add("@sbill", txtmonum.Text.Trim());
cmd77.Parameters.Add("@scname",
DropDownList1.Text.Trim());
cmd77.Parameters.Add("@smname",
DropDownList2.Text.Trim());
cmd77.Parameters.Add("@sitemprice", ext.Trim());
Dept of CSE, Dr. AIT Page 31
Online Banking System

cmd77.Parameters.Add("@squant", txtamount.Text.Trim());
cmd77.Parameters.Add("@gt", txttranpwd.Text.Trim());
cmd77.ExecuteNonQuery();
con.Close();
con.Close();
con.Open();
string str78 = "insert into transactions
values(@mn,@sbilld,@scnamed,@smname
,@sitemprice,@squantd,@sbillde,
@sbi,@scnamede)";
SqlCommand cmd78 = new SqlCommand(str78, con);
cmd78.Parameters.Add("@mn", ww.ToString().Trim());
cmd78.Parameters.Add("@sbilld", ii.ToString().Trim());
cmd78.Parameters.Add("@scnamed",
mm.ToString().Trim());
cmd78.Parameters.Add("@smname", nn.ToString().Trim());
cmd78.Parameters.Add("@sitemprice",
oo.ToString().Trim());
cmd78.Parameters.Add("@squantd", bb.ToString().Trim());
cmd78.Parameters.Add("@sbillde", rr.ToString().Trim());
cmd78.Parameters.Add("@sbi", pp.ToString().Trim());
cmd78.Parameters.Add("@scnamede", ff.ToString().Trim());
cmd78.ExecuteNonQuery();
con.Close();
txtmonum.Text = "";
DropDownList1.Text = "";
DropDownList2.Text = "";
DropDownList3.Text = "";
txtamount.Text = "";
txttranpwd.Text = "";
lblsuccess.Text = "Recharge Successfully..........";
lblsuccess.Visible = true;
lblamount.Visible = false;
lblmessage.Visible = false;
Dept of CSE, Dr. AIT Page 32
Online Banking System

lblstatus.Visible = false;
con.Open();
string str17 = "select * from Accounts where status='yes'";
SqlCommand cmd17 = new SqlCommand(str17, con);
SqlDataReader reader17;
reader17 = cmd17.ExecuteReader();
reader17.Read();
ee = Convert.ToInt32(reader17.GetString(5).Trim());
gg = ee - bb;
con.Close();
con.Open();
hh = gg;
string str20 = "update Accounts set balance='"
+ hh.ToString() + "' where status='yes'";
SqlCommand cmd20 = new SqlCommand(str20, con);
cmd20.ExecuteNonQuery();
con.Close();
con.Open();
string str26 = "select * from Accounts where status='yes'";
SqlCommand cmd26 = new SqlCommand(str26, con);
SqlDataReader reader26;
reader26 = cmd26.ExecuteReader();
reader26.Read();
lblstatus.Text = "Total Avilable Balance: INR "
+ reader26.GetString(5).Trim() + "/-";
lblstatus.Visible = true;
con.Close();
}
else
{
lblmessage.Text = "Wrong transaction password";
lblmessage.Visible = true;
}
}
Dept of CSE, Dr. AIT Page 33
Online Banking System

else
{
lblamount.Text = "Enter an Amount More than 35,less than or
equal 10000";
lblamount.Visible = true;
}
}
else
{
lblamount.Text = "Enter an valid Amount";
lblamount.Visible = true;
}}}
catch (Exception e2)
{}
}
}

Dept of CSE, Dr. AIT Page 34


Online Banking System

CHAPTER - 5
SNAPSHOTS

HOME PAGE

SIGN - IN

Dept of CSE, Dr. AIT Page 35


Online Banking System

ACCOUNT DETAILS

FUND TRANSFER

Dept of CSE, Dr. AIT Page 36


Online Banking System

TRANSCATIONS

PRE-PAID BILL

Dept of CSE, Dr. AIT Page 37


Online Banking System

BILL - PAY

CHEQUEE BOOK

Dept of CSE, Dr. AIT Page 38


Online Banking System

CHANGE PASSWORD

CONTACT US

Dept of CSE, Dr. AIT Page 39


Online Banking System

FEEDBACK

Dept of CSE, Dr. AIT Page 40


Online Banking System

CONCLUSION
Computer has got clear advantage over the manual system. The computerized system
is more reliable, efficient and fast at the end of the project, I can say that computer play
a very crucial role in the development of firm. All the daily reports generated by the system
are to be checked by the concerned official so as to ensure that all the transactions have been
put through in appropriate accounts and this is tallied with the new vouchers. Computer does
maximum work with in minimum time. Because in project entailed “ONLINE BANKING
SYSTEM”, it is used in every field so that it provides comfort and suitability to everyone.
Providing maximum facilities and comfort to customers to customers is main goal of the
firm. To achieve this goal, other modern facilities relating to computer should have to be
provided.

Dept of CSE, Dr. AIT Page 41


Online Banking System

BIBLIOGRAPHY

 https://wikipedia/.Net-Framework
 www.W3School.com
 https://wikipedia//microsoft-sql-server

 www.stackoverflow.com
 www.youtube.com/c#-programming

Dept of CSE, Dr. AIT Page 42

You might also like