Blood Management System
Blood Management System
SYSTEM
By
DECLARATION ...........................................................................................               ii
CERTIFICATE ..............................................................................................            iii
ACKNOWLEDGEMENTS ............................................................................                         iv
ABSTRACT ..................................................................................................           v
1. INTRODUCTION....................................................................................               1
1.1 PROJECT OVERVIEW..........................................................................                              1
1.2. PROJECT DESCRIPTION.....................................................................                               1
2. PROBLEM DEFINITION........................................................................                               3
2.1. EXISTING SYSTEM.............................................................................                           3
2.1.2 DISADVANTAGES.............................................................................                            3
2.2. PROPOSED SYSTEM.............................................................................                           3
2.2.1. ADVANTAGES...................................................................................                        3
3. FEASIBILITY STUDY...............................................................................                         4
3.1. TECHNICAL..........................................................................................                    4
3.2. OPERATIONAL.....................................................................................                       5
3.3. ECONOMICAL......................................................................................                       5
4. SYSTEM ANALYSIS...............................................................................                           6
4.1. SRS.........................................................................................................           6
4.1.1 INTRODUCTION.................................................................................                         6
4.1.1.1. DEVELOPER RESPONSIBILITY AND OVERVIEW.......................                                                       6
4.1.2. MODULES INVOLVED......................................................................                               7
4.1.2.1. HARDWARE REQUIREMENT........................................................                                       11
4.1.2.2. SOFTWARE REQUIREMENT...........................................................                                    11
5. SYSTEM DESIGN......................................................................................                      12
5.1. DFD.........................................................................................................           12
5.2. UML DIAGRAM.....................................................................................                       18
5.2.1. USE CASE METHOD...........................................................................                           18
5.3. DATABASE DESIGN..............................................................................                          21
5.4. E R DIAGRAM........................................................................................                    22
5.5. DATABASE TABLES..............................................................................                          25
6. SOFTWARE DEVELOPMENT ENVIRONMENT.......................................                                                  28
6.1. INTRODUCTION TO .NET FRAMEWORKS..........................................                                              28
6.2. ASP.NET..................................................................................................              31
6.3. ACTIVE SERVER PAGES.NET...............................................................                                 32
6.4. LANGUAGE SUPPORT...........................................................................                            34
6.5. CODE BEHIND SUPPORT......................................................................                              35
6.6. C# AND ADO.NET.................................................................................                        36
6.7. SRL SERVER..........................................................................................                   37
7. CODING....................................................................................................               40
7.1. WEBCONFIG FILE.................................................................................                        40
7.2. DONOR ACCOUNT...............................................................................                           41
7.3. REGISTRATION.....................................................................................                      42
7.4. SEARCH FORM......................................................................................                      44
8. TESTING.............................................................................................................      46
8.1. INTRODUCTION............................................................................................                46
8.2. STRATEGIC APPROACH...............................................................................                      46
8.3. UNIT TESTING................................................................................................           47
9. OUTPUT SCREEN..............................................................................................              49
9.1. HOME PAGE....................................................................................................          49
9.2. ADMIN LOGIN.................................................................................................           50
9.3. ADMIN HOME..................................................................................................            51
9.4. REGISTRATION FORM FOR DONOR...........................................................                                 52
9.5. LOGIN FORM...................................................................................................           53
9.6. USER DETAIL...................................................................................................          54
9.7. SEARCH FOR DONOR.....................................................................................                   55
9.8. UPDATE ACCOUNT DETAIL.........................................................................                         56
10. CONCLUSION....................................................................................................           57
10.1. BENEFITS........................................................................................................       57
10.2. LIMITS.............................................................................................................    59
11.BIBLIOGRAPHY................................................................................................             60
                        DECLARATION
I hereby declare that this submission is my own work and that, to the best of my knowledge and
belief, it contains no material previously published or written by another person nor material
which to a substantial extent has been accepted for the award of any other degree or diploma of
the university or other institute of higher learning, except where due acknowledgment has been
made in the text.
Signature
Name
Roll No.
Date.
                          CERTIFICATE
Date:                                                          Supervisor
                        ACKNOWLEDGEMENT
It gives us a great sense of pleasure to present the report of the B. Tech Project undertaken during
B. Tech. Final Year. We owe special debt of gratitude to Professor Praveen Kumar, Department
of Computer Science & Engineering, R.K.G.I.T. , Ghaziabad for his constant support and
guidance throughout the course of our work. His sincerity, thoroughness and perseverance have
been a constant source of inspiration for us. It is only his cognizant efforts that our endeavors
have seen light of the day.
We also take the opportunity to acknowledge the contribution of Professor Sachi Gupta,
Department of Computer Science & Engineering, R.K.G.I.T. , Ghaziabad for her full support and
assistance during the development of the project.
We also do not like to miss the opportunity to acknowledge the contribution of all faculty
members of the department for their kind assistance and cooperation during the development of
our project. Last but not the least, we acknowledge our friends for their contribution in the
completion of the project.
Signature:
Name :
Roll No.:
Date :
                                 ABSTRACT
Blood Bank & Donar Management System is a web database application that enables the public
to make online session reservation, to view nationwide blood donation events online and at the
same time provides centralized donor and blood stock database. This application is developed
by using PHP technology from Eclipse with the MySQL 5.0 as the database management system.
The methodology used to develop this system as a whole is Object Oriented Analysis and
Design; whilst, the database for BBDMS is developed by following the steps in Database Life
Cycle. The targeted users for this application are the public who is eligible to donate
blood ,'system moderator, administrator from various Hospitals and the staffs who are working
in the blood banks of the participating hospitals. The main objective of the development of this
application is to overcome the problems that exist in the current system, which are the lack of
facilities for online session reservation and online advertising on the state wise blood donation
events, and also decentralized donor and blood stock database. Besides, extra features in the
system such as security protection by using password, generating reports, reminders of blood
stock shortage and workflow tracking can even enhance the efficiency of the management in the
blood banks. The final result of this project is the development of web database application,
which is the BBDMS.
                              INTRODUCTION
             The Blood Donation System is to create an e-Information about the donor and
organization that are related to donating the blood. Through this application any person who is
interested in donating the blood can register himself in the same way if any organization wants to
register itself with this site that can also register. Moreover if any general consumer wants to
make request blood online he can also take the help of this site. Admin is the main authority
who can do addition, deletion, and modification if required.
        This project is aimed to developing a voluntary Blood Donation Information. The entire
project has been developed keeping in view of the distributed client server computing
technology, in mind.
       The Blood Donation Agent is to create an e-Information about the donor and organization
that are related to donating the blood. Through this application any person who is interested in
donating the blood can register himself in the same way if any organization wants to register
itself with this site that can also register. Moreover if any general consumer wants to make
request blood online he can also take the help of this site.
      Admin is the main authority who can do addition, deletion, and modification if
required.
       The project has been planned to be having the view of distributed architecture, with
centralized storage of the database. The application for the storage of the data has been planned.
Using the constructs of MS-SQL Server and all the user interfaces have been designed using the
ASP.Net technologies.
         The database connectivity is planned using the “SQL Connection” methodology. The
standards of security and data protective mechanism have been given a big choice for proper
usage.
         The application takes care of different modules and their associated reports, which are
produced as per the applicable strategies and standards that are put forwarded by the
administrative staff.
         The entire project has been developed keeping in view of the distributed client server
computing technology, in mind. The specification has been normalized up to 3NF to eliminate all
the anomalies that may arise due to the database transaction that are executed by the general
users and the organizational administration. The user interfaces are browser specific to give
distributed accessibility for the overall system. The internal database has been selected as MS-
SQL server 2000.
         The basic constructs of table spaces, clusters and indexes have been exploited to provide
higher consistency and reliability for the data storage. The MS-SQL server 2000 was a choice as
it provides the constructs of high-level reliability and security. The total front end was dominated
using the ASP.Net technologies. At all proper levels high care was taken to check that the system
manages the data consistency with proper business rules or validations.
         The database connectivity was planned using the latest “SQL Connection” technology
provided by Microsoft Corporation. The authentication and authorization was crosschecked at all
the relevant stages. The user level accessibility has been restricted into two zones namely.
                                 Problem Definition
Advantages:
       User friendliness I provided in the application with various controls.
       The system makes the overall project management much easier and flexible.
       Readily upload the latest updates ,allows user to download the alerts by clicking
        the url. It provides high level of security with different level of   authentication.
                                Feasibility Study
       Preliminary investigation examine project feasibility, the likelihood the system will be
useful to the organization. The main objective of the feasibility study is to test the Technical,
Operational and Economical feasibility for adding new modules and debugging old running
system. All system is feasible if they are unlimited resources and infinite time. There are aspects
in the feasibility study portion of the preliminary investigation:
   Technical Feasibility
   Operation Feasibility
   Economical Feasibility
       The technical issue usually raised during the feasibility stage of the investigation includes
the following:
       The database’s purpose is to create, establish and maintain a workflow among various
entities in order to facilitate all concerned users in their various capacities or roles. Permission to
the users would be granted based on the roles specified. Therefore, it provides the technical
guarantee of accuracy, reliability and security.
           The software and hard requirements for the development of this project are not many and
are already available in-house at NIC or are available as free as open source. The work for the
project is done with the current equipment and existing software technology. Necessary
bandwidth exists for providing a fast feedback to the users irrespective of the number of users
using the system.
           Proposed projects are beneficial only if they can be turned out into information system.
That will meet the organization’s operating requirements. Operational feasibility aspects of the
project are to be taken as an important part of the project implementation. Some of the important
issues raised are to test the operational feasibility of a project includes the following: -
The well-planned design would ensure the optimal utilization of the computer resources and
would help in the improvement of performance status.
A system can be developed technically and that will be used if installed must still be a good
investment for the organization. In the economical feasibility, the development cost in creating
the system is evaluated against the ultimate benefit derived from the new systems. Financial
benefits must equal or exceed the costs.
           The system is economically feasible. It does not require any addition hardware or
software. Since the interface for this system is developed using the existing resources and
technologies available at NIC, There is nominal expenditure and economical feasibility for
certain.
                                    System Analysis
   Developing the system, which meets the SRS and solving all the requirements of the system?
   Demonstrating the system and installing the system at client's location after the acceptance
    testing is successful.
   Submitting the required user manual describing the system interfaces to work on it and also
    the documents of the system.
   Conducting any user training that might be needed for using the system.
   Maintaining the system for a period of one year after installation.
The modules involved are:
 1.      Administration:
         In this module the Administrator has the privileges to add all the Blood Groups, Type,
         State, District, and Location. He can search all the info about the Organization,
         Donor.
      User Account:
                       Name
                       Username
                       Password
      Functionality
                       Association User Account with UserRole.
                       Association User Account with personal Details.
                       Association User Account with Blood Donation Details.
       Alerts:
                       All fields are mandatory
                       Select unique username
                       Select unique password
      Alerts:
                              Select Role Id
                              Select role name
      BDA State:
                              State ID
                              State Name
      Functionality:
                              Association state with city
                              Association state with Address
      Alerts:
                     Select state Id
                     Select state name
BDA City:
                     City ID
                     City Name
Alerts:
                     Select city Id
                     Select city Name
Blood Group:
                     Blood Group ID
                     Blood Group
                     Description
                     Active
 Functionality:
                     Association Blood group with Personal details.
 Alerts:
                     Select Blood Group ID
 Blood Type:
                     Blood Type
                     Type Name
Functionality:
                     Association Blood type with Personal details.
Alerts:
                         Select Blood Group
                                    Select Type Name
    Personal Details:
                                    ID
                                    Name
                                    Email
                                    DOB
                                    Gender
                                    Blood Type
                                    Address
                                    Contact No
     Functionality:
                                Association personal detaials with preferd location.
     Alerts:
                                    Select user account
                                    Select Email id
                                    Select date of birth
Donor:
Donor is that person who is interested in donating their blood so they can register themselves
through this website. If any requirement comes then they will be contacted and they can donate
their blood. Along with it they can search for the various organization locations wise and can
also make request for blood if needed
Donor:
 User Account
    Functionality:
                                Association Donor preferred organization with personal
                                 details.
    Alerts:
                                Select user account
4.2. HARDWARE REQUIREMENTS:
DFD SYMBOLS:
In the DFD, there are four symbols
1. A square defines a source(originator) or destination of system data
2. An arrow identifies data flow. It is the pipeline through which the information flows
3. A circle or a bubble represents a process that transforms incoming data flow into outgoing
   data flows.
4. An open rectangle is a data store, data at rest or a temporary repository of data
Data flow
Data Store
CONSTRUCTING A DFD:
                 Several rules of thumb are used in drawing DFD’S:
1. Process should be named and numbered for an easy reference.               Each name should be
   representative of the process.
2. The direction of flow is from top to bottom and from left to right. Data traditionally flow
   from source to the destination although they may flow back to the source. One way to
   indicate this is to draw long flow line back to a source. An alternative way is to repeat the
   source symbol as a destination. Since it is used more than once in the DFD it is marked with
   a short diagonal.
3. When a process is exploded into lower level details, they are numbered.
4. The names of data stores and destinations are written in capital letters. Process and dataflow
   names have the first letter of each work capitalized
       A DFD typically shows the minimum contents of data store. Each data store should
contain all the data elements that flow in and out.
       Questionnaires should contain all the data elements that flow in and out.        Missing
interfaces redundancies and like is then accounted for often through interviews.
CURRENT PHYSICAL:
       In Current Physical DFD proecess label include the name of people or their positions or
the names of computer systems that might provide some of the overall system-processing label
includes an identification of the technology used to process the data. Similarly data flows and
data stores are often labels with the names of the actual physical media on which data are stored
such as file folders, computer files, business forms or computer tapes.
CURRENT LOGICAL:
       The physical aspects at the system are removed as mush as possible so that the current
system is reduced to its essence to the data and the processors that transform them regardless of
actual physical form.
NEW LOGICAL:
       This is exactly like a current logical model if the user were completely happy with he
user were completely happy with the functionality of the current system but had problems with
how it was implemented typically through the new logical model will differ from current logical
model while having additional functions, absolute function removal and inefficient flows
recognized.
NEW PHYSICAL:
       The new physical represents only the physical implementation of the new system.
PROCESS
1) No process can have only outputs.
2) No process can have only inputs. If an object has only inputs than it must be a sink.
3) A process has a verb phrase label.
DATA STORE
1) Data cannot move directly from one data store to another data store, a process must move
   data.
2) Data cannot move directly from an outside source to a data store, a process, which receives,
   must move data from the source and place the data into data store
3) A data store has a noun phrase label.
SOURCE OR SINK
The origin and /or destination of data.
1) Data cannot move direly from a source to sink it must be moved by a process
2) A source and /or sink has a noun phrase land
DATA FLOW
1) A Data Flow has only one direction of flow between symbols. It may flow in both directions
   between a process and a data store to show a read before an update. The later is usually
   indicated however by two separate arrows since these happen at different type.
2) A join in DFD means that exactly the same data comes from any of two or more different
   processes data store or sink to a common location.
3) A data flow cannot go directly back to the same process it leads. There must be atleast one
   other process that handles the data flow produce some other data flow returns the original
   data into the beginning process.
4) A Data flow to a data store means update (delete or change).
5) A data Flow from a data store means retrieve or use.
5.2.     UML Diagrams
   The unified modeling language allows the software engineer to express an analysis model
    using the modeling notation that is governed by a set of syntactic semantic and pragmatic
    rules.
   A UML system is represented using five different views that describe the system from
    distinctly different perspective. Each view is defined by a set of diagram, which is as follows.
        ii. The analysis representation describes a usage scenario from the end-users
             perspective.
Structural model view
 In this model the data and functionality are arrived from inside the system.
                       In this the structural and behavioral as parts of the system are represented
as they are to be built.
               In this the structural and behavioral aspects of the environment in which the
       system is to be implemented are represented.
      UML Analysis modeling, which focuses on the user model and structural model views of
       the system.
      UML design modeling, which focuses on the behavioral modeling, implementation modeling and
       environmental model views.
   Use case Diagrams represent the functionality of the system from a user’s point of view. Use
cases are used during requirements elicitation and analysis to represent the functionality of the
system. Use cases focus on the behavior of the system from external point of view.
Actors are external entities that interact with the system. Examples of actors include users like
administrator, bank customer …etc., or another system like central database.
Use case Model
SYSTEM NAME
Use case 1
Use case 2
                                Actor
     Actor
                   Use case n
        Use Cases of Blood Donation Agent Interface
                  Use case For Admin Module
Home Page
Login Page
Donation Details
                                               Search
Admin
Help
                                            Admin Page
Use case For Donor Module
Home Page
Login Page
Search
Search Page
About
                              Help Page
    Donor
     BDA State:
                     State Name
                     City
     City:
                     City ID
                     City Name
     BloodGroup:
                            BloodGroupID
                            BloodGroup
                            Description
     PersonalDetails:
                             Username
                             Name
                             Email
                             DOB
                             Gender
                             BloodType
                             MobileNo
5.4.ER Diagrams
                                  Has/
User Account:                     belo                      UserRole:
                                  ngs
UserAccount:
Username
Password
UserDetails
  Updatedetails
                ER diagram for Users Account and Personal Details
                                     Has/
                                     belo
                                     ngs                     Personal details
 User Account:
UserAccount:
name
Username
Password
UpdateDetails
               ER diagram for Blood group Personal details
                                Has/
Blood group:                    belo                       Personal details
                                ngs
Personal Details:
Name
DOB
Gender
BloodGroup
District
State
                                                MobileNo
5.5. Database Tables
1.Entities
 DetailTable
2.Data Dictionary
DetailTable
Sno   Column name   Data type     Constraint
1     Name          Varchar(50)   Not null
2     Username      varchar(50)   Primary key
3     Password      varchar(50)   Not null
4     dateOfBirth   date          Not null
5     Gender        varchar(50)   Not null
6     Bloodroup     varchar(50)   Not null
7     MobileNO      Bigint        Not null
8     EmailId       varchar(50)   Not Null
9     State         varchar(50)   Not Null
10    District      varchar(50)   Not Null
          The .NET Framework class library is a collection of reusable types that tightly integrate
with the common language runtime. The class library is object oriented, providing types from
which your own managed code can derive functionality. This not only makes the .NET
Framework types easy to use, but also reduces the time associated with learning new features of
the .NET Framework. In addition, third-party components can integrate seamlessly with classes
in the .NET Framework.
       For example, the .NET Framework collection classes implement a set of interfaces that
you can use to develop your own collection classes. Your collection classes will blend seamlessly
with the classes in the .NET Framework.
       As you would expect from an object-oriented class library, the .NET Framework types
enable you to accomplish a range of common programming tasks, including tasks such as string
management, data collection, database connectivity, and file access. In addition to these common
tasks, the class library includes types that support a variety of specialized development scenarios.
For example, you can use the .NET Framework to develop the following types of applications
and services:
      Console applications.
      Scripted or hosted applications.
      Windows GUI applications (Windows Forms).
      ASP.NET applications.
      XML Web services.
      Windows services.
       For example, the Windows Forms classes are a comprehensive set of reusable types that
vastly simplify Windows GUI development. If you write an ASP.NET Web Form application,
you can use the Web Forms classes.
6.2. ASP.NET
Server Application Development
        Server-side applications in the managed world are implemented through runtime hosts.
Unmanaged applications host the common language runtime, which allows your custom
managed code to control the behavior of the server. This model provides you with all the features
of the common language runtime and class library while gaining the performance and scalability
of the host server.
       The following illustration shows a basic network schema with managed code running in
different server environments. Servers such as IIS and SQL Server can perform standard
operations while your application logic executes through the managed code.
       ASP.NET is the hosting environment that enables developers to use the .NET Framework
to target Web-based applications. However, ASP.NET is more than just a runtime host; it is a
complete architecture for developing Web sites and Internet-distributed objects using managed
code. Both Web Forms and XML Web services use IIS and ASP.NET as the publishing
mechanism for applications, and both have a collection of supporting classes in the .NET
Framework.
       If you develop and publish your own XML Web service, the .NET Framework provides a
set of classes that conform to all the underlying communication standards, such as SOAP,
WSDL, and XML. Using those classes enables you to focus on the logic of your service, without
concerning yourself with the communications infrastructure required by distributed software
development.
Finally, like Web Forms pages in the managed environment, your XML Web service will run
with the speed of native machine language using the scalable communication of IIS.
        The important distinction between this evolved stage of ADO.NET and previous data
architectures is that there exists an object -- the DataSet -- that is separate and distinct from any
data stores. Because of that, the DataSet functions as a standalone entity. You can think of the
DataSet as an always disconnected recordset that knows nothing about the source or destination
of the data it contains. Inside a DataSet, much like in a database, there are tables, columns,
relationships, constraints, views, and so forth.
        A DataAdapter is the object that connects to the database to fill the DataSet. Then, it
connects back to the database to update the data there, based on operations performed while the
DataSet held the data. In the past, data processing has been primarily connection-based. Now, in
an effort to make multi-tiered apps more efficient, data processing is turning to a message-based
approach that revolves around chunks of information. At the center of this approach is the
DataAdapter, which provides a bridge to retrieve and save data between a DataSet and its
source data store. It accomplishes this by means of requests to the appropriate SQL commands
made against the data store.
Primary Key
        Every table in SQL Server has a field or a combination of fields that uniquely identifies
each record in the table. The Unique identifier is called the Primary Key, or simply the Key. The
primary key provides the means to distinguish one record from all other in a table. It allows the
user and the database system to identify, locate and refer to one particular record in the database.
Relational Database
        Sometimes all the information of interest to a business operation can be stored in one
table. SQL Server makes it very easy to link the data in multiple tables. Matching an employee
to the department in which they work is one example. This is what makes SQL Server a
relational database management system, or RDBMS. It stores data in two or more tables and
enables you to define relationships between the table and enables you to define relationships
between the tables.
Foreign Key
       When a field is one table matches the primary key of another field is referred to as a
foreign key. A foreign key is a field or a group of fields in one table whose values match those of
the primary key of another table.
Referential Integrity
       Not only does SQL Server allow you to link multiple tables, it also maintains consistency
between them. Ensuring that the data among related tables is correctly matched is referred to as
maintaining referential integrity.
                                      CODING
7.1. WEBCONFIG FILE:(Design Code)
              Used to set the connections of each page.
<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
    <appSettings>
    <add key="ValidationSettings:UnobtrusiveValidationMode" value="None"></add>
  </appSettings>
    <connectionStrings>
        <add name="ConnectionString" connectionString="Data
Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\register.mdf;Integrated
Security=True"
            providerName="System.Data.SqlClient" />
    </connectionStrings>
    <system.web>
      <compilation debug="true" targetFramework="4.5" />
      <httpRuntime targetFramework="4.5" />
    </system.web>
  <system.webServer>
    <defaultDocument enabled="true">
      <files>
        <clear />
        <add value="home.aspx"/>
      </files>
    </defaultDocument>
  </system.webServer>
</configuration>
namespace BloodDonationManagementSystem
{
    public partial class WebForm3 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
              }
              else
              {
                Response.Write("<script>alert('Please enter valid Username and
Password')</script>");
            }
            con.Close();
        }
    }
}
namespace BloodDonationManagementSystem
{
    public partial class WebForm5 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }
      protected void Button1_Click(object sender, EventArgs e)
        {
            String gender=" ";
            if (RadioButton1.Checked)
                 gender = "male";
            else
                 gender = "female";
            string query = "select count(*) from registertable where username='" +
TextBox2.Text + "'";
            SqlConnection con = new SqlConnection();
            con.ConnectionString = constring.cstr;
            con.Open();
            SqlCommand cmd = new SqlCommand(query, con);
            int OBJ = Convert.ToInt32(cmd.ExecuteScalar());
            if (OBJ == 1)
            {
                 Response.Write("<script>alert('username already exists')</script>");
            }
            else
            {
                 string query1 = "insert into registertable values ('" + TextBox1.Text +
"' ,'" + TextBox2.Text + "' ,'" + TextBox3.Text + "','" + TextBox4.Text + "','" + gender
+ "','" + DropDownList1.Text + "','" + TextBox5.Text + "','" + TextBox6.Text + "','" +
DropDownList2.Text + "','" + DropDownList3.Text + "')";
                 SqlConnection con1 = new SqlConnection();
                 con1.ConnectionString = constring.cstr;
                 con1.Open();
                 SqlCommand cmd1 = new SqlCommand(query1, con1);
                 cmd1.ExecuteNonQuery();
                 Label11.Visible = true;
                 Label11.Text = "you have registered succesfully";
              //   Response.Write("<script>alert('you have registered
succesfully')</script>");
                // Response.Redirect("donarAccount.aspx");
                 con1.Close();
            }
            con.Close();
        }
      protected void CustomValidator1_ServerValidate(object source,
ServerValidateEventArgs e)
      {
          if ((e.Value.Length >= 8) && (e.Value.Length <=15))
               e.IsValid = true;
          else
               e.IsValid = false;
      }
    }
}
using System;
using System.Collections.Generic;
using System.Linq;
using   System.Web;
using   System.Web.UI;
using   System.Web.UI.WebControls;
using   System.Data.SqlClient;
using   System.Configuration;
using   System.Data;
namespace BloodDonationManagementSystem
{
    public partial class WebForm4 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
         }
    }
}
Testing
8.1. INTRODUCTION
       Software testing is a critical element of software quality assurance and represents the
ultimate review of specification, design and coding. In fact, testing is the one step in the software
engineering process that could be viewed as destructive rather than constructive.
       A strategy for software testing integrates software test case design methods into a well-
planned series of steps that result in the successful construction of software. Testing is the set of
activities that can be planned in advance and conducted systematically. The underlying
motivation of program testing is to affirm software quality with methods that can economically
and effectively apply to both strategic to both large and small-scale systems.
UNIT TESTING
MODULE TESTING
 Component Testing
                                               SUB-SYSTEM
                                             TESING
                                                              SYSTEM TESTING
                Integration Testing
8.3. Unit Testing
Unit testing focuses verification effort on the smallest unit of software design, the module. The
                                                                       ACCEPTANCE
unit testing we have is white box oriented      some modules the stepsTESTING
                                           andTesting
                                        User                            are conducted in parallel.
3. CONDITIONAL TESTING
In this part of the testing each of the conditions were tested to both true and false aspects. And all
the resulting paths were tested. So that each path that may be generate on particular condition is
traced to uncover any possible errors.
4. DATA FLOW TESTING
       This type of testing selects the path of the program according to the location of definition
and use of variables. This kind of testing was used only when some local variable were declared.
The definition-use chain method was used in this type of testing. These were particularly useful
in nested statements.
5. LOOP TESTING
In this type of testing all the loops are tested to all the limits possible. The following exercise was
adopted for all loops:
   All the loops were tested at their limits, just above them and just below them.
   All the loops were skipped at least once.
   For nested loops test the inner most loop first and then work outwards.
   For concatenated loops the values of dependent loops were set with the help of connected
    loop.
   Unstructured loops were resolved into nested loops or concatenated loops and tested as
    above.
Each unit has been separately tested by the development team itself and all the input have been
validated.
Output Screens
10.1. BENEFITS:
The project is identified by the merits of the system offered to the user. The merits of this project
are as follows: -
10.2. LIMITATIONS:
   The size of the database increases day-by-day, increasing the load on the database back up
    and data maintenance activity.
   Training for simple computer operations is necessary for the users working on the system.
                            BIBLIOGRAPHY