You are on page 1of 93

( Online Book Store.

com )

INDEX

NO
01
02
03
04
05
06
07
08
09
10
11

Name
INTRODECTION
PROJECT MANAGEMENT
SYSTEM REQUIREMENT STUDY
SYSTEM ANALYSIS
SYSTEM DESIGN
IMPLIMENTATION DETAIL
TESTING
SCREEN LAYOUT
EVALUATE REPORT USING PERT
CHART & GANTT CHART
CONCLUSION AND DISCUSSION
BIBLIOGRAPHY

Page no

1
Kishan Maravaniya

( Online Book Store.com )

PREFACE
Knowledge and human power are synonyms , one said the great
philosopher Francis Bacon. However, based on the experience within todays
global market, he would probably say, The ability to capture communication
and leverage knowledge to solve problems in human power. This raises the
questions how exactly one can best capture, communications & leverage
knowledge, especially within world of system engineering.
The answer probably lies in statement itself by communicative your
ideas & dividing ways & means to give shape to your plans into reality, which
requires a long term planning, investment & shrewd thinking.
As a part of Bsc(I.T) Curriculum students have to undergo a project, which
is designed keeping prerogative & preferences of industry in mind. This
project allows a student to implement what he learned within the four walls
of the classroom. It is here that the caliber of the student is tested to find
his flexibility rigorous task assigned to him in future.
This report is divided in two parts. The first part gives the basic information
about the project, the tools used & system analysis. The second part
consists of system design showing various input & output screens that give a
brief overview of the entire system. At the end, we have provided a short
list of reference books that provide useful during the development.

2
Kishan Maravaniya

( Online Book Store.com )

Acknowledgement
We can not determine milk of how many cows feed our body.
I believe an ocean is filled by drops and each and every drop should count. No
great endeavor is successful and accomplished without some helping hands. The
task needs some guidance, encouragement and assistance for its completion and
fulfillment. Similarly I would like to take this opportunity to thank all who
contributed directly or indirectly in preparation of this project.
Firstly, I am highly indebted to Mr.----------------- for giving me permission &
allocation such an interesting project. The project has helped me to learn the basic
intricacies of RDBMS, which shell is stepping stone in my future endeveaours.
I am also thankful to all the staff members of Shree gyanbharti college of

computer science. who have always devoted their valuable time in any case of
difficulty.
We sincerely express our feelings of gratitude to our (H.O.D.) Head of the
Department Mr.----------------- for his encouragement and expert guidance,
valuable and continuous inspiration, directions and suggestion in completing this
project report with least trouble.
Indeed, the rich experience gained here will be cherished by me for a long, long
time to come.
Thanking You

3
Kishan Maravaniya

( Online Book Store.com )

ABSTRACT
Now world is become more compact, that no one would far away with
another person because of internet and wireless communication.
This Project has been developed as an academic schedule of Diploma in
Computer Egg. for academic Year 2012-2013. This Project is developed as a
part of the industrial training on any real time Project in 6 th semester of the
course.

4
Kishan Maravaniya

( Online Book Store.com )

CHAPTER-1
Introduction

Project Summary
Purpose
Scope
Technology and literature review

5
Kishan Maravaniya

( Online Book Store.com )

1.1 PROJECT SUMMERY


Project Title

Online Book Store .com

Project Type

Web Application on ASP .NET

Developed at

------------------

Project Guide

--------------------------

Project Member

Bharad Uday & Vekariya Pankaj

PURPOSE
The purpose of this Online Book website is very useful for the customers to
play online Book and select the appropriate Book.
From user can read & download any book. User can also search appropriate
book. There is no registration process for download the book.
Every day some news added for new book. that will be shown in main page.
User can also see IT related example . for example c , c++ and etc..
In this Project Only the ADMIN have rights to ADD, UPDATE and DELETE the
book, USER can only read and download different types of book from the
different categories.

6
Kishan Maravaniya

( Online Book Store.com )

3 SCOPE
This Online book adda website provides you an online reading facilities,
this website is developed in ASP.net. We have included many features it will
add full advantages to the online reading and downloading services. This
website is developed as user-friendly and user will able to search the book,
download the book.
This Project deals with two types of user. In which all the users have
different kind of characteristic and have different roles Admin, Client.
ADMIN can do Add the items, Deleting of books or Editing books. It can
add new features to the website. Total handling of the Secure Services.
Manage all files and folders of books.
Client can see the book with its price and details about the Book. Client can
also select any book from the list of books using different category criteria.
He/She cannot make any changes in the any item.
Client can also sent feedback about the web and also see the Example.

7
Kishan Maravaniya

( Online Book Store.com )

Chapter 2

Project Management

2.1

PROJECT PLANNING AND SCHEDULING

2.1.1

PROJECT DEVELOPMENT APPROCH

Prototyping Model
The Prototyping Model is a systems development method (SDM) in which a
prototype is built, tested, and then reworked as necessary until an
acceptable prototype is finally achieved from which the complete system or
product can now be developed. This model works best in scenarios where
not all of the project requirements are known in detail ahead of time. It is an
iterative, trial-and-error process that takes place between the developers
and the users.
There are several steps in the Prototyping Model:
1. The new system requirements are defined in as much detail as possible.
This usually involves interviewing a number of users representing all the
departments or aspects of the existing system.
2. A preliminary design is created for the new system.
3. A first prototype of the new system is constructed from the preliminary
design. This is usually a scaled-down system, and represents an
approximation of the characteristics of the final product.
4. The users thoroughly evaluate the first prototype, noting its strengths
and weaknesses, what needs to be added, and what should to be
removed. The developer collects and analyzes the remarks from the
users.

8
Kishan Maravaniya

( Online Book Store.com )


5. The first prototype is modified, based on the comments supplied by the
users, and a second prototype of the new system is constructed.
6. The second prototype is evaluated in the same manner as was the first
prototype.
7. The preceding steps are iterated as many times as necessary, until the
users are satisfied that the prototype represents the final product
desired.
8. The final system is constructed, based on the final prototype.
9. The

final

system

is

thoroughly

evaluated

and

tested.

Routine

maintenance is carried out on a continuing basis to prevent large-scale


failures and to minimize downtime
This model reflects an attempt to increase the flexibility of the development
process by allowing the client to interact and experiment with a working
representation of the product. The developmental process only continues
once the client is satisfied with the functioning of the prototype. At that
stage the developer
Determines the specifications of the clients real needs.

Figure 2.1 Prototyping Model


9
Kishan Maravaniya

( Online Book Store.com )

Justification:
As prototyping model shows how to interact with customers directly,
and to satisfy the requirements of customers. A customer defines a set of
general objectives for software but dose not identity detail input, processing
or output requirements. In our software we use this model as we work with
requirements of our clients So we start with a meeting with customer. We
gather the requirements of customer. Understood it and then make analysis
for requirements one-by-one.
After understanding the requirements of clients. We decided all
requirements will be satisfied by Microsoft Visual Studio, that is efficient and
user friendly software.

2.1.2 PROJECT PLAN


Once a project is found to be feasible, software project manages
undertaken project planning. Project planning is undertaken and completed
even before any development activity starts.
The trend of finding a good Shopping alliance through online book
adda sites has completely changed the system of India. Today, people are
conveniently accessing these sites to get a suitable books. A Online book
adda site gives you an opportunity to read and download items from all over
the world. While surfing these sites, one also need to be extra careful since
you are talking to an unknown and unseen product.
This website provides you an online Book facilities, this website is developed
in ASP .NET. We have included many features it will add full advantages to
the shopping services.

10
Kishan Maravaniya

( Online Book Store.com )

ROLES & RESPONSIBILITIES


ROLE

RESPONSIBILITIES

Admin

Admin can do Editing of books, Deleting of books or can do any


changes in any book profile

Admin can add new features to the web site.

Total handling of the Secure Services.

Manage all files and folders of books

Users can view the detail of books.

They can read and download the new products..

They can search for their books though different name and can
add their data to their download list.

Client

Figure 2.3 Roles & Responsibilities

2.2 Risk management


Risk is defined as "The possibility of suffering harm or loss; danger." Even if
we're not familiar with the formal definition, most of us have an innate sense
of risk. We are aware of the potential dangers that permeate even simple
daily activities, from getting injured when crossing the street to having a
heart attack because our cholesterol level is too high. Although we prefer not
to dwell on the myriad of hazards that surround us, these risks shape many
of our behaviors. Experience (or a parent) has taught us to look both ways
before stepping off the curb and most of us at least think twice before
ordering a steak. Indeed, we manage personal risks every day.

Proposal Risks:

11
Kishan Maravaniya

( Online Book Store.com )


Those risks inherent in the venture, i.e., to design and build a disposable
external tank for a reusable spacecraft is inherently risky. Thus, an RFP for
such

tank

has

embedded

risks

no

matter

who

undertakes

the

development.
Performance Risks:
Those risks inherent in the proposed approach. A given contractor can
implement an approach that has risks above and beyond those inherent in
the venture. For example, a developer may elect to base key design
decisions on analytical data rather than empirical data to reduce costs at
some increase in risk.
These definitions must be addressed during a proposal if they are included in
the RFP, but after an award they are probably not too useful to a performing
organization. Some sources (e.g., reference 2) define the proposal risk as
begging the associated with the contractors approach and the performance
risk as being related to the contractors track record.

Effective Risk Management


There are two stages in the process of Project Risk Management, Risk
Assessment and risk control. Risk Assessment can take place at any time
during the project, though the better. However, Risk Control cannot be
effective without a previous Risk Assessment. Similarly, most people tend to
think that having perfumed a Risk assessment; they have done all that is
needed. Far too many projects spend a great deal of effort on Risk
Assessment and then ignore Risk control completely.

Risk Assessment (figuring out what the risks are and what to focus on)

12
Kishan Maravaniya

( Online Book Store.com )


o

making a list of all of the potential dangers that will affect the
project

assessing the probability of occurrence and potential loss of each


item listed

ranking the items (from most to least dangerous)

Risk Control (doing something about them)


o

coming up with techniques and strategies to mitigate the highest


ordered risks

implementing the strategies to resolve the high order risks


factors

monitoring the effectiveness of the strategies and the changing


levels of risk throughout the project

2.2.1

RISK ANALYSIS

Risk analysis and risk management can help you to assess these risks
and decide what actions to take to minimize disruptions to your plans. They
will also help you to decide whether the strategies you could use to control
risk are cost-effective.
Project
Risks of cost over-runs, jobs taking too long, of insufficient product or
service quality, etc.

Technical:

From advances in technology, technical failure, etc.


13

Kishan Maravaniya

( Online Book Store.com )


Business Risk:

They threaten the viability of the software to be built.

Business risk often jeopardizes the project and the product.


Known Risk :

Known risk are those that can be uncovered after careful

evaluation of the project plan, the business and technical environment in


which the project is being developed and other reliable information
sources

such

as

unrealistic

delivery

date,

lake

of

documented

requirements or software scope, poor development environment.


Predictable Risk:

There are extrapolated from past project experience.

Unpredictable Risk:

These can and do occur, but there are extremely

difficult to identify in advance.

2.2.2 RISK PLANNING


Risk

Planning

is

developing

and

documenting

organized,

comprehensive, and interactive strategies and methods for identifying risks.


It is also used for performing risk assessments to establish risk handling
priorities, developing risk handling plans, monitoring the status of risk
handling actions, determining and obtaining the resources to implement the
risk management strategies. Risk planning is used in the development and
implementation of required training and communicating risk information up
and down the project stakeholder organization.
Developing a detailed plan of action; this will be included in Project and
Stage Plans either as additional activities or as a contingency plan
Confirming the desirability of carrying out the actions identified during risk
evaluation

in

light

of

any

additional

information

gained

Obtaining

management approval along with all the other aspects of the plans being
produced A program plan needs to be produced to provide a summary with
respect to following aspects of the program:

14
Kishan Maravaniya

( Online Book Store.com )


Concise description of program.
End Items and Major interfaces.
Major Goals & Priorities
Customer & Users.
Performing Organization & Key Personnel
Schedule & Primary Ground rules.
Technical Approach.
Verification Approach
Facilities.
Typically, the Program Plan should with within a Month two of the start of the
program (assuming a multi-year effort). For short efforts, the plan should
be a kickoff document.

15
Kishan Maravaniya

( Online Book Store.com )

Charter 3

System Requirements Study

User Characteristics
Hardware and Software Requirements
3.1 User Characteristic
This Project deals with two types of user. In which all the users have
different kind of characteristic and have different roles.
ADMIN
CLIENT
ADMIN :
o Admin can do Add, Editing of Product, Deleting of Product or can do
any changes in Web site.
o Admin can add new features to the web site.
o Total handling of the Secure Services.
o Manage all files and folders of books.
CLIENT :
o Clients can search for any products by different categories
o They visit the site see the detail of books , user can read and
download any item in free.

User can also read the book at on line.

HARDWARE AND SOFTWARE REQUIREMENTS


16
Kishan Maravaniya

( Online Book Store.com )

Hardware Requirements
System

Windows XP with 512MB RAM, 40 GB HDD,CD driver

Processor

Onwards Pentium 4

RAM

512MB RAM

Hard Disk

40 GB HDD

CD ROM

52 x CD ROM

Printer

Canon Inkjet

Software Requirements
Web Server

IIS on windows 2003 server

Back-End

Ms SQL Server 2008

Scripting language

JavaScript, ASP.NET

Tools

Microsoft Visual Studio 2010, HTML

Support Tools

Microsoft Office XP, Web Browsers

17
Kishan Maravaniya

( Online Book Store.com )

3.3 CONSTRAINS

HIGHER ORDER LANGUAGE REQUIREMENTS

ASP.NET
What is ASP.NET?
ASP.NET, the next version of ASP, is a programming framework used to
create enterprise-class Web Applications. These applications are accessible
on a global basis leading to efficient information management. The
advantage ASP.NET offers is more than just the next version of ASP.
ASP.NET is a web application framework developed by Microsoft to allow
programmers to build dynamic web sites, web applications and web services.
ASP.NET is a part of the Microsoft .NET framework, and a powerful tool for
creating dynamic and interactive web pages
ASP+ is just an early name used by Microsoft when they developed ASP.NET.
Why ASP.NET?
ASP.NET has introduced several enhancement and improvement over
classical ASP which makes it compelling platform to look at four all ASP
professional as well non-Asp software professions.
Sever

controls

makes

it

simpler

to

do

HTML

style

declarative

programming with relatively less code.


You can leverage your current programming skills by using languages like
C#, VB.NET for coding the pages which are languages used in all types of
programming unlike VB Script, Java Script which are just scripting
languages.

18
Kishan Maravaniya

( Online Book Store.com )


Event-driven model just like windows programming helps write event
handlers easily with one click. Server site handlers unlike Asp where all
event handlers are written on the client side make the code safer from
script hackers.
Object-oriented model versus Procedure model of Asp that separates
code from the HTML pages making the projects extremely structured and
clean, hence reducing maintenance headaches.
The code is compiled dynamically versus interpreted as in classical Asp,
which improves performance of the application.
View state, which automatically remembers the state of the page on post
back and reconstructs the page taking the onus off the developer to write
explicitly hidden fields.
Improve caching capabilities that enhance application performance.

Developer Productivity
ASP.NET helps you deliver real world Web applications in record time.
Easy

Programming

Model:

ASP.NET

makes

building

real

world

Web

applications dramatically easier. ASP.NET server controls enable an HTMLlike style of declarative programming that let you build great pages with far
less code than with classic ASP. Displaying data, validating user input, and
uploading files are all amazingly easy. Best of all, ASP.NET pages work in all
browsers -- including Netscape, Opera, AOL, and Internet Explorer.
Flexible

Language

Options:

ASP.NET

programming language skills.

lets

you

leverage

your

current

Unlike classic ASP, which supports only

interpreted VBScript and JScript, ASP.NET now supports more than 25 .NET
languages (including built-in support for VB.NET, C#, and JScript.NET -- no
19
Kishan Maravaniya

( Online Book Store.com )


tool

required),

giving

you

unprecedented

flexibility

in

your

choice

of language.

Great Tool Support:

You can harness the full power of ASP.NET using any text

editor even Notepad! But Visual Studio 2005 adds the productivity of Visual
Basic-style development to the Web. Now you can visually design ASP.NET
Web Forms using familiar drag-drop-double click techniques, and enjoy fullfledged

code

coding. VS.NET

support including
also

provides

statement

integrated

completion

support

for

and

debugging

colorand

deploying ASP.NET Web applications.


The Professional version of Visual Studio 2005 delivers life-cycle features to
help organizations plan, analyze, design, build, test, and coordinate teams
that develop ASP.NET Web applications. These include UML class modeling,
database modeling (conceptual, logical, and physical models), testing tools
(functional, performance and scalability), and enterprise frameworks and
templates,

all

available

within

the

integrated

Visual

Studio .NET

environment.
Rich

Class

Framework:

Application features that used to be hard to

implement, or required a 3rd-party component, can now be added in just a


few lines of code using the .NET Framework. The .NET Framework offers
over 4500 classes that encapsulate rich functionality like XML, data access,
file upload, regular expressions, image generation, performance monitoring
and logging, transactions, message queuing, SMTP mail, and much more!

C#.NET

20
Kishan Maravaniya

( Online Book Store.com )


Here are several feature of .NET that makes a suitable and robust environment for application
development on support platform, currently windows. Well explore each of these points in detail
in the next lesion of this tutorial.
Cross Language Support:

The .NET Framework introduces a Common Type

System, or CTS. The CTS specification same types for all .Net supported
language.NET Framework supports the exchange of instances of types
between programs written in any of the .NET languages.
Use of common Internet Protocol:

Dot.net offers extensive support foe XML,

Which is the choice for formatting information over the internet. Additionally,
support for transfer via SOAP is integrated.
Metadata and Assemblies:

The assembly consists of one or more files, one of

which must contain the manifest, which has the metadata for the assembly.
An assembly contains its simple text name, version number, culture. All .net
components are deployed as part of assemblies. These are real advantages
over what JAVA offers.
Simple Deployment:

The metadata in assembles also simplifies a deployment.

An Assembly can specify the location and version of any other code it needs.
The problems of
maintaining a registry such as that needed with, COM components and the
problems of DDL version mismatch have been eliminated.
Type Checking:

The CLR .common language runtime, type checks all objects

in use. All objects are divided from an objects class, similar to what is done
in JAVA.

Memory management and Garbage collection


CLR frees the developer from the burden of managing memory. Allocating
and freeing up when done instead it does the memory management
itself.NET Framework includes a garbage collector which runs periodically, on
21
Kishan Maravaniya

( Online Book Store.com )


a separate thread from the application's thread, that enumerates all the
unusable objects and reclaims the memory allocated to them.

Language interoperability
The common language runtime provides built in support for language interoperability. The
common language runtime provides the necessary foundation for language interoperability by
specifying and enforcing a common type system and by providing metadata. Metadata enables
language interoperability by defining a uniform mechanism for storing and retrieving
information about types. Every type and member defined, attributes defined and referenced in a
module or assembly is described within metadata. Compilers store type information as metadata,
and the common language runtime uses this information to Provide services during execution.

The runtime can manage the execution of Multilanguage applications because all type
information is stored and retrieved in the same way, regardless of the language the code was
written in. To ensure that your managed code is accessible to developers using any programming
language, the .NET Framework provides the Common Language Specification (CLS). The CLS
describes a fundamental set of language features and defines rules for how those features are to
be used.

Platform Interoperability
C# code runs in a managed execution environment. Which is most important technologies step to
making C# run on different operating systems? However some of the .NET libraries are based on
windows. Particularly the Win forms library witch depends on the nitty gritty details of the
windows API. There is project to port the windows API Unix systems, but this isnt here now and
Microsoft have not given any indication their intentions in this area.
However. Microsoft hasnt ignored Platform interoperability. The .NET Libraries provide
extensive capabilities to right HTML/DHTML solutions. For solutions which can be
implemented with a HTML/DHTML client, C#/.NET is a good choice. Fro cross platform
projects which requires a more complex client interface, JAVA is good choice. Kylix, a version
22
Kishan Maravaniya

( Online Book Store.com )


of Delphi which allow the same code to compile to both Windows and Linux may also be a good
choice for rich cross platform solutions in future.

Standard Interoperability
These are all the Standards like databases systems, graphics libraries, and internet protocols and
object communication standards like COM and CORBA that the language can access. Since
Microsoft owns or plays a big role in defining many of these standards, they in a very good
position to support them. They of course have business motivations to provide less support for
standards which compete with their own for instance-CORBA competes with com and openGL
competes with directX

23
Kishan Maravaniya

( Online Book Store.com )

Chapter 4

System Analysis

Requirement of System.
Feasibility Study.
System Activity Diagram.
DFD

24
Kishan Maravaniya

( Online Book Store.com )

4.1 Requirement System.


Now a days books online products is very popular and it is new trend
in online read book from the websites.The trend of finding a good products
book adda sites has completely changed the social system of India. Today,
people are conveniently accessing these sites to get a suitable products.

Requirements for User Module:


Features accessed by the USER

View/Download the Books and


Can use Different Search conditions
Search a book by different categories
Read the example
Read new NEWS for books
Send feedback

Requirements for Admin Module:


Edit / Update the book
Delete a book
Add new book
Can keep several validations on the required fields.
Add news
Add example
Read example

25
Kishan Maravaniya

( Online Book Store.com )

4.4 FEASIBILITY STUDY :A feasibility study is a short, focused study, which aims to
answer a number of questions:
Does the system contribute to the overall objectives of the organization?
Can the system implemented using the current technology and within given cost
and schedule constraints?
Can the system be integrated with systems which are all ready in the place?

There are various types of feasibility studies


Operational Feasibility
Technical Feasibility
Scheduling Feasibility
Economical Feasibility
Implementation Feasibility

Now each of them is explained briefly, as below.

OPERATIONAL FEASIBILITY :-

Operational Feasibility measures how well the solution will work in the
organization and how end-user & management will feel about the system. Proposed

26
Kishan Maravaniya

( Online Book Store.com )


system is helpful for the Staff, Students, developers, Visitors etc. It will allow them
to query them to get the appropriate and adequate information.

On studying the operational feasibility of the project, the


following conclusions could be derived:
Expected users will have knowledge of School Management System. Therefore no
training is required.
If it can be installed within suitable environment, system will do operations
under environment of limited resources.
Since the module can be implemented as an extension to the present system no
change of skill level of the users is required.

Thus, it is operationally feasible to develop the proposed system.

TECHNICAL FEASIBILITY :-

Can the work for the project be done with current


equipment, existing software technology and available personnel? If the new
technology is required, what is the likelihood that it can be developed? All the
answers to the above and below given questions comprises of the technical
feasibility. Technical feasibility tries to answer the following question to make the
software feasible to develop.

The software or tools necessary for building and running the application are
27
Kishan Maravaniya

( Online Book Store.com )


easily available or not?
The compatibility amongst software exists or not?
Are developers aware of these technologies?
What about the alternative of these chosen technologies?

Factors Considered:

Here we have to consider those tools that will be required for developing the
project.
The tools that are available and tools that will be required have to take in
account.
Internet facility is always available for technical as well as advanced software
help.

Considering all above points and aspects it is observed that the cost and effort
that would be incurred in developing this project from a technical perspective would
not be too high. Thus it is feasible to company.

SCHEDULE FEASIBILITY :-

Projects are initiated with specific deadline. We need to


evaluated whether the deadline are mandatory or desirable. Time is the one of the
critical and crucial factor in the development of any system but this kind of
feasibility is hardly perfect in any system.
28
Kishan Maravaniya

( Online Book Store.com )

We have been asked to complete the project within the working


days of the organization having period of 3-4 months approximately. So we have
managed to complete the project before given deadline. In the project planning
section we elaborate our ideas to develop the system within the given period. Please
refer to that section for through idea.
Hence, it is feasible to develop a system in predetermined time interval.

ECONOMIC FEASIBILITY :-

Economical feasibility address to the following issues:


Is organization having the suitable budget to develop the proposed system?
How much profit can be earned from the system by an organization?
Would it be cost-effective to develop the system or it is worthwhile to remain with
current system?

We would like to answer for the above question, as given below:


No training is required.
Processors are already available so no hardware cost is added.
So, here we do not need to invest extra funds to develop the system.
Thus, it is economically feasible to the organization.

IMPLEMENTATION FEASIBILITY :-

29
Kishan Maravaniya

( Online Book Store.com )


Under the study of implementation feasibility, weve got to the certain
issues, like:
It is possible to install the software within the given government?
Will organization management and users support for the installation of the
software?
Will proposed system cause any harm to the operations of the organization?

On studying the implementation feasibility of the project, the following


conclusions could be derived:
This particular software being developed is not for local users. That is the
software is supposed to be used only by the TIS Employees, so no need of any
training or awareness to the users, as they are themselves aware about all the
basic required things.
Since the module can be implemented as an extension to the present system no
change of skill level of the users is required.

Operationally, this system can be installed and it can work


according

to

its

functionalities.

There

would

be

very

little

barriers

in

implementation, if application will be prepared according to the hardware barriers.


The management has already approved this software to be developed and it wont
cause any harm to user operation or day-today activities.

30
Kishan Maravaniya

( Online Book Store.com )

4.4 REQUIREMENTS VALIDATION :-

The Requirements provided by the users are converted into


Users Requirement Specification as described above. The URS documents are then
revised, validated, authorized and approved by the users. The development
commences after the approval phase i.e. after the signing off of the URS documents.
Thus, the URS is concerned to be the most important document from user and
developer prospective. The Developer will try to adhere to the requirements
specified in the URS documents in order to develop the required application.

4.5 DATA FLOW DIAGRAM

DFD is a graphical view of all system processes and transactions. With the DFD an
End-User also can easily understand the system in a short time period. Also it is
useful to find out problems or any complications with the system we are going to
develop. We can easily get that whether we have understood the system as per the
requirements of the customer or not by showing them this diagram. Thus DFD is a
necessary phase while developing software.
The DFD can be divided into many diagrams. Here I go for the three levels of the
DFD which are as under:

Context Level Diagram,

First Level Diagram,

Second Level Diagram.

31
Kishan Maravaniya

( Online Book Store.com )

Symbols used in the DFD are as under:


1. Process: The round describes the flow of the data.

When any new process starts it should written in this round shape. The Round
shape also displays from which state the process should be start.

2.

External Entity: A source or destination of data, which is external to the


system. e.g. Party, Company or Customer etc.

The Process has many entities and it also have many sub-entities or external
entities. That type of entities are described or written in above shape.

(1) A data flow:


It is the flow of the data. It may be in the form of document, letter etc.

32
Kishan Maravaniya

( Online Book Store.com )

This type of arrow signs indicates the flow of the data in the project. It
describes from which part the data is come and in which side the data will
flow. This Arrows keys are full of various meanings
(2) Data store:
Any stored data can take with no reference to the physical method of storing.

The above diagram shows the process of the storing of the data and the datas
address can also be stored in this signs.
Here, Data Flow Diagrams are given for two levels. Data flow Diagram can be
designed in Microsoft Visio 2003, which is very useful for developing Industrial
Diagrams.

0 Level

33
Kishan Maravaniya

( Online Book Store.com )

User
On Line
Book
Adda .com

Admin

34
Kishan Maravaniya

( Online Book Store.com )

1-Level

dsdg

User

35
Kishan Maravaniya

( Online Book Store.com )

Chapter 5

System Design

Database Design
E-R Diagram
5.1 DATABASE DESIGN

Table:admin
Field Name

Data Type

Uname
Password

Varchar(20)
Varchar(20)

Table:bookmstr
Field Name

Data Type

Id
Type

int (primary key)


Varchar(50)

Table:book
Field Name

Data Type

Book_id
Id
Name
Author
Description
Path
Imgpath
Photo

Int (primary key)


Int (foreign key)
Varchar(50)
Varchar(50)
Varchar(1000)
Varchar(100)
Varchar(100)
Image

36
Kishan Maravaniya

( Online Book Store.com )

Table:current
Field Name

Data Type

Id
Current_news

Int (primary key)


Varchar(100)

Table:example
Field Name

Data Type

Ex_id
Name
Description

Int (primary key)


Varchar(50)
Varchar(3000)

Table:feedback
Field Name

Data Type

Id
Email
Summary

Int (primary key)


Varchar(60)
Varchar(2000)

37
Kishan Maravaniya

( Online Book Store.com )

5.2 E-R DIAGRAM :-

38
Kishan Maravaniya

( Online Book Store.com )

CHAPTER-6 Implementation Detail


6.1 Security Features
6.2 Coding Standards

6.1

SECURITY FEATURES
We have used Asp.net as a developer platform. Security features used in this project
are as follows:

Any User can not add, change and delete the book

Only Admin can add, update and delete the book.

User can download new example and read current news.

6.2 CODING STANDARDS :The coding standard is the well-defined and standard style of
coding. With the help of the coding standard any person can go into any code and
figure out what's going on and new people can get up to speed quickly. A coding
standard sets out standard ways of doing several things such as the way variables
are to be named, the code is to be laid out, the comments are to be described, the
work of function are to carried out etc.
This section describes the coding standards, which we have used
in the program. In the context of coding standard the tag consists of one to four
lower case characters followed by an underscore and is used to indicate the type of
an object, control, or variable. The prefix applies only to variable names and consists
of a single lower case character used to indicate the variables scope.
We have followed the normal standards for window coding in that we have
created the class files and parameterized query for better security purpose.
39
Kishan Maravaniya

( Online Book Store.com )

CHAPTER-7
TESTING
7.1 TESTING PLAN
7.2 TESTING STRATEGY
7.3 TESTING METHODS
7.4 TEST CASES

40
Kishan Maravaniya

( Online Book Store.com )

41
Kishan Maravaniya

( Online Book Store.com )

Chapter 7 : TESTING

7.1 Testing Plan:-

Testing plan are use to know you have completed your work
successfully or not. Your work is finished when you meet the test plan. The test plan
should detail exactly what the system should do, what the interactions are, the
expected outputs, and so on.

It should exercise the system in normal scenarios as well as


abnormal, so there are no hidden surprises. Most importantly, it should prove that
all the requirements are met. If missing or poor requirements are the primary
reason for projects failing, then lack of a test plan is second so we always do testing
planning.

7.2 Testing Strategy:-

Test cases are devised with the purpose of testing to find errors.
A test case is set of the data that the system will process as a normal input. The
data are created with the express intent of determining whether the system will
process them correctly.
42
Kishan Maravaniya

( Online Book Store.com )


There are two general strategies for testing software.
Code Testing
Specification Testing

7.3 Testing Methods:-

Software products are normally tested first at the individual


component (or unit) level. This is referred to as testing in the small. After testing all
the components individually, the components are slowly integrated the system is
tested. Integration and System testing are known as testing in large.

Unit Testing
Unit testing is a procedure used to validate that individual units
of source code are working properly or not. A unit is the smallest testable part of an
application. In procedural programming a unit may be an individual program,
function, procedure, etc., while in object-oriented programming, the smallest unit is
a method, which may belong to a base/super class, abstract class or derived/child
class. Ideally, each test case is independent from the others Unit testing is typically
done by developers and not by software testers or end-users.

The benefit of unit testing is to isolate each part of the program


and show that the individual parts are correct. A unit test provides a strict, written
contract that the piece of code must satisfy. By performing the unit testing task for
the integration testing is going to reduce.
43
Kishan Maravaniya

( Online Book Store.com )

Limitation of Unit Testing:-

Testing, in general, cannot be expected to catch every error in


the program. The same is true for unit testing. By definition, it only tests the
functionality of the units themselves. Therefore, it may not catch integration errors,
performance problems, or other system-wide issues. Unit testing is more effective if
it is used in conjunction with other software testing activities. Like all forms of
software testing, unit tests can only show the presence of errors; it cannot show the
absence of errors.

1. Integration Testing:

Integration testing is the phase of software testing in which


individual software modules are combined and tested as a group. It follows unit
testing and precedes system testing.

Integration testing takes as its input modules that have been


unit tested, groups them in larger aggregates, applies tests defined in an
integration test plan to those aggregates, and delivers as its output the integrated
system ready for system testing.

44
Kishan Maravaniya

( Online Book Store.com )


Limitation of Integration Testing:-

Any conditions not stated in specified integration tests, outside of


the confirmation of the execution of design items, will generally not be tested.

1. System Testing:-

System testing of software is testing conducted on a complete,


integrated system to evaluate the system's compliance with its specified
requirements.

System testing takes, as its input, all of the "integrated" software


components that have successfully passed integration testing and also the software
system itself integrated with any applicable hardware system. System testing is a
more limiting type of testing; it seeks to detect defects both within the "interassemblages" and also within the system as a whole.

2. Validation Testing:

In integration testing, the software is assembled as a package.


Validation testing is completely associated with requirement of customers. This
testing checks weather all functional requirement of customer are satisfied or not.
45
Kishan Maravaniya

( Online Book Store.com )


According to this test, the project is tested and found to be satisfactory for
functional characteristics, behavioral characteristic and performance requirement.
It is also found to have good documentation up to the last stage. So, the performance
characteristics confirm to specification and are accepted.

3. Alpha & Beta Testing:

As the project is mainly made for multiple users, it is require to


be tested by Alpha & Beta Testing methods. According to different end users test
Project. In Alpha Testing method, the software is tested at Developers side by
customer (end -user). The error found at this stage was related to Date selection
part of project. The error was about sequence of selected range of date. We corrected
it at that time. In Beta Test is conducted at customers side. As the project is not
applied to customers side, it is yet remaining.

4. System Testing:

It is actually series of different tests whose primary purpose is to


fully exercise the computer- based system. The following testing are of the system
testing.

5. Recovery Testing:

46
Kishan Maravaniya

( Online Book Store.com )


The project is safe from variety of fails. But the data updating
must be performed before fail. If the update is not committed, it can be unsaved.

6. Security Testing:

In this project, the user authentication is done by user identity


values. So far as authentication concerned, the application is completely secure. All
level of user checked to use application.

7. Stress Testing:

It executes a system in manner that demands resources in


abnormal conditions and quantities, frequency and volume. Applying frequent
request of database and in large volume test the project software. It takes time to
reply but does not fail to give results.

47
Kishan Maravaniya

( Online Book Store.com )

CHAPTER-8 SCREEN LAYOUT


Home

48
Kishan Maravaniya

( Online Book Store.com )

using System;
using System.Data;
using System.Configuration;
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;
/// <summary>
/// Summary description for OOPsConnection
/// </summary>
public class OOPConnection
{
public SqlConnection cnn = new SqlConnection();
public SqlCommand cmd = new SqlCommand();
public SqlCommandBuilder cb = new SqlCommandBuilder();
public SqlDataAdapter adp = new SqlDataAdapter();
public DataTable dt = new DataTable();
public DataRow dr;
static int cnt = 0;
public OOPConnection(string con_string)
{
cnn.ConnectionString = con_string;
cnn.Open();
cmd.Connection = cnn;
}
public DataTable GetData(string TableName)
{
cmd.CommandText = "select * from " + TableName;
adp.SelectCommand = cmd;
cb.DataAdapter = adp;
adp.Fill(dt);
49
Kishan Maravaniya

( Online Book Store.com )

if (dt.Rows.Count > 0)
{
//dr = dt.Rows[cnt];
return dt;
}
return dt;
}
public DataTable GetData(string query,string qry)
{
cmd.CommandText = query;
adp.SelectCommand = cmd;
cb.DataAdapter = adp;
adp.Fill(dt);
if (dt.Rows.Count > 0)
{
//dr = dt.Rows[cnt];
return dt;
}
return dt;
}
public bool SaveData(params string[] str)
{
int i;
dr=dt.NewRow();
for (i = 0; i < str.Length - 1; i += 2)
{
dr[str[i]] = str[i + 1];
}
dt.Rows.Add(dr);
50
Kishan Maravaniya

( Online Book Store.com )

adp.Update(dt);
return true;
}
public bool SaveData(string photo, byte[] img ,params string[] str)
{
int i;
dr = dt.NewRow();
for (i = 0; i < str.Length - 1; i += 2)
{
dr[str[i]] = str[i + 1];
}
dr[photo] = img;
dt.Rows.Add(dr);
adp.Update(dt);
return true;
}
public DataRow FirstRecord()
{
cnt = 0;
dr = dt.Rows[cnt];
return dr;
}
public DataRow PreviousRecord()
{
cnt--;
if (cnt != -1)
{
dr = dt.Rows[cnt];
}
else
{
cnt++;
}
51
Kishan Maravaniya

( Online Book Store.com )

return dr;
}
public DataRow NextRecord()
{
cnt++;
if (cnt != dt.Rows.Count)
{
dr = dt.Rows[cnt];
}
else
{
cnt--;
}
return dr;
}
public DataRow LastRecord()
{
cnt = dt.Rows.Count - 1;
dr = dt.Rows[cnt];
return dr;
}
public bool UpdateData(params string[] str)
{
int i;
dr = dt.Rows[cnt];
for (i = 0; i < str.Length - 1; i += 2)
{
dr[str[i]] = str[i + 1];
}
adp.Update(dt);
return true;
}
public bool UpdateData(string str)
{
52
Kishan Maravaniya

( Online Book Store.com )

cmd.CommandText = str;
int i = cmd.ExecuteNonQuery();
if (i == 0)
{
return false;
}
else
{
return true;
}
}
public bool DeleteData(string qry)
{
cmd.CommandText = qry;
int i=cmd.ExecuteNonQuery();
if (i == 0)
{
return false;
}
else
{
return true;
}
}
}

53
Kishan Maravaniya

( Online Book Store.com )


Book page

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


{
OOPConnection con = new
OOPConnection(WebConfigurationManager.ConnectionStrings["Co
nStr"].ConnectionString);
DataTable dt = new DataTable();
DataRow dr;
int i=0;
public void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
dt = con.GetData("select
bm.type,b.name,b.author,b.description,b.path,b.imgpath from book
b,bookmstr bm where b.id=bm.id ", "q");
//Response.Write(dt.Rows.Count);
string str = "<table cellspacing=20 style='width:100%'><tr>";
int k = 1;
while (i < dt.Rows.Count)
54
Kishan Maravaniya

( Online Book Store.com )

{
if (k > 3)
{
k = 1;
//str += "<td><table><tr><td
colspan=2>photo</td></tr><tr><td>1</td><td>name</td></tr></tabl
e></tr>";
dr = dt.Rows[i];
str += "<td><table border=0 style='width:100%'><tr><td
colspan=2 align='center'><img src=Admin/" + dr["imgpath"] + "
width=60 height=80></td></tr>";
str += "<tr><td colspan=2 align=center
style=color:red>" + dr["name"] + " </td></tr>";
str += "<tr><td align=center>Author:</td><td >
</td></tr>";
str += "<tr><td align=right colspan=2 style=color:navy>"
+ dr["author"] + " </td></tr>";
// str += "<tr><td colspan=2>" + dr["description"] + "
</td></tr>";
str += "<tr><td style=font-size:10px><a href=Admin/" +
dr["path"] + "> Read</a> </td>";
str += "<td style=font-size:10px><a href=Admin/" +
dr["path"] + ">Download<a></td></tr>";
str += "</table></tr>";
}
else
{
dr = dt.Rows[i];
str += "<td><table border=0
style='width:100%;'><tr><td colspan=2 align='center'><img
src=Admin/" + dr["imgpath"] + " width=60 height=80></td></tr>";
str += "<tr><td colspan=2 align=center
style=color:red>" + dr["name"] + " </td></tr>";
str += "<tr><td align=center>Author:</td><td >
</td></tr>";
55
Kishan Maravaniya

( Online Book Store.com )

str += "<tr><td align=right colspan=2 style=color:navy>"


+ dr["author"] + " </td></tr>";
//str += "<tr><td colspan=2>" + dr["description"] + "
</td></tr>";
str += "<tr><td style=font-size:10px><a href=Admin/" +
dr["path"] + ">Read</a> </td>";
str += "<td style=font-size:10px><a href=Admin/" +
dr["path"] + ">Download<a></td></tr>";
str += "</table>";
k++;
}
i++;
}
Table1.Caption = str + "</table>";
}
}
protected void searchsubmit_Click(object sender,
ImageClickEventArgs e)
{
//select
bm.type,b.name,b.author,b.description,b.path,b.imgpath from book
b,bookmstr bm where b.id=bm.id and b.name='java'
dt = con.GetData("select
bm.type,b.name,b.author,b.description,b.path,b.imgpath from book
b,bookmstr bm where b.id=bm.id and b.name like '"+ s.Text +"%'",
"q");
//Response.Write(dt.Rows.Count);
string str = "<table cellspacing=20 style='width:100%'><tr>";
int k = 1;
while (i < dt.Rows.Count)
{
if (k > 3)
{
k = 1;

56
Kishan Maravaniya

( Online Book Store.com )

//str += "<td><table><tr><td
colspan=2>photo</td></tr><tr><td>1</td><td>name</td></tr></tabl
e></tr>";
dr = dt.Rows[i];
str += "<td><table border=0 style='width:100%'><tr><td
colspan=2 align='center'><img src=Admin/" + dr["imgpath"] + "
width=60 height=80></td></tr>";
str += "<tr><td colspan=2 align=center style=color:red>" +
dr["name"] + " </td></tr>";
str += "<tr><td align=center>Author:</td><td >
</td></tr>";
str += "<tr><td align=right colspan=2 style=color:navy>" +
dr["author"] + " </td></tr>";
// str += "<tr><td colspan=2>" + dr["description"] + "
</td></tr>";
str += "<tr><td style=font-size:10px><a href=Admin/" +
dr["path"] + "> Read</a> </td>";
str += "<td style=font-size:10px><a href=Admin/" +
dr["path"] + ">Download<a></td></tr>";
str += "</table></tr>";
}
else
{
dr = dt.Rows[i];
str += "<td><table border=0 style='width:100%;'><tr><td
colspan=2 align='center'><img src=Admin/" + dr["imgpath"] + "
width=60 height=80></td></tr>";
str += "<tr><td colspan=2 align=center style=color:red>" +
dr["name"] + " </td></tr>";
str += "<tr><td align=center>Author:</td><td >
</td></tr>";
str += "<tr><td align=right colspan=2 style=color:navy>" +
dr["author"] + " </td></tr>";
//str += "<tr><td colspan=2>" + dr["description"] + "
</td></tr>";
57
Kishan Maravaniya

( Online Book Store.com )

str += "<tr><td style=font-size:10px><a href=Admin/" +


dr["path"] + ">Read</a> </td>";
str += "<td style=font-size:10px><a href=Admin/" +
dr["path"] + ">Download<a></td></tr>";
str += "</table>";
k++;
}
i++;
}
Table1.Caption = str + "</table>";
}
}

58
Kishan Maravaniya

( Online Book Store.com )

Eexample page

<asp:GridView ID="GridView1" runat="server" AllowPaging="True"


AutoGenerateColumns="False" CellPadding="4"
DataKeyNames="ex_id"
DataSourceID="SqlDataSource1" ForeColor="#333333"
GridLines="None"
Width="620px">
<AlternatingRowStyle BackColor="White"
ForeColor="#284775" />
<Columns>
<asp:BoundField DataField="ex_id" HeaderText="ex_id"
InsertVisible="False"
ReadOnly="True" SortExpression="ex_id" />
<asp:BoundField DataField="name" HeaderText="name"
SortExpression="name" />
<asp:BoundField DataField="description"
HeaderText="description"
SortExpression="description" />
59
Kishan Maravaniya

( Online Book Store.com )

</Columns>
<EditRowStyle BackColor="#999999" />
<FooterStyle BackColor="#5D7B9D" Font-Bold="True"
ForeColor="White" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True"
ForeColor="White" />
<PagerStyle BackColor="#284775" ForeColor="White"
HorizontalAlign="Center" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True"
ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#E9E7E2" />
<SortedAscendingHeaderStyle BackColor="#506C8C" />
<SortedDescendingCellStyle BackColor="#FFFDF8" />
<SortedDescendingHeaderStyle BackColor="#6F8DAE" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$
ConnectionStrings:studConnectionString4 %>"
SelectCommand="SELECT * FROM [example]"
onselecting="SqlDataSource1_Selecting"></asp:SqlDataSource>

60
Kishan Maravaniya

( Online Book Store.com )

feedback page

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


{
OOPConnection con = new
OOPConnection(WebConfigurationManager.ConnectionStrings["Co
nStr"].ConnectionString);
DataTable dt = new DataTable();
protected void Page_Load(object sender, EventArgs e)
{
dt = con.GetData("feedback");
}
protected void Button1_Click(object sender, EventArgs e)
61
Kishan Maravaniya

( Online Book Store.com )

{
bool b = con.SaveData("email", TextBox1.Text, "summary",
TextBox2.Text);
Response.Redirect("home.aspx");
}
}

62
Kishan Maravaniya

( Online Book Store.com )

Contact page

63
Kishan Maravaniya

( Online Book Store.com )

Admin login page

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


{
OOPConnection con = new
OOPConnection(WebConfigurationManager.ConnectionStrings["Co
nStr"].ConnectionString);
DataTable dt = new DataTable();
protected void Page_Load(object sender, EventArgs e)
{
dt = con.GetData("admin");

}
64
Kishan Maravaniya

( Online Book Store.com )

protected void btnlogin_Click(object sender, EventArgs e)


{
DataRow dr = dt.Rows[0];
if (dt.Rows.Count > 0)
{
if (dr[0].ToString() == txtunm.Text && dr[1].ToString() ==
txtpass.Text)
{
Session.Add("unm", txtunm.Text);
Response.Redirect("~/Admin/index.aspx");

}
else
{
Response.Redirect("login.aspx");
}
}

}
}

65
Kishan Maravaniya

( Online Book Store.com )

Admin Home Page

<TABLE cellpadding="0" cellspacing="0" id="sharedtable">


<TBODY><TR class="dblue">
<TH colspan="5"><STRONG>&nbsp;
Email</STRONG></TH>
</TR>
<TR class="one">
<TD class="left"><A href="stream.aspx"
class="mydomain"><IMG src="images/5_1.gif" width="32"
height="32" border="0"><BR>Add <br >Stream</A></TD>
<TD class="center"><A href="book.aspx"
class="mydomain"><IMG src="images/5_1.gif" width="32"
height="32" border="0"><BR>Add <br >Books</A></TD>

66
Kishan Maravaniya

( Online Book Store.com )

<TD class="center"><A href="feedback.aspx"


class="mydomain"><IMG src="images/2_3.gif" border="0"
style="height: 32px; width: 33px"><BR>Feedback</A></TD>
<TD class="right"><A href="news.aspx"
class="mydomain"><IMG src="images/1_2.gif" width="32"
height="32" border="0"><BR>Current<br >News</A></TD>
</TR>
</TBODY></TABLE>

<BR>
<TABLE cellpadding="0" cellspacing="0" id="sharedtable">
<TBODY><TR class="dblue">
<TH colspan="5"><STRONG>&nbsp; Useful
Stuff</STRONG></TH>
</TR>
<TR class="one">
<TD class="left"><A href="dispstream.aspx"
class="mydomain"><IMG src="images/7_5.gif" width="32"
height="32" border="0"><BR>Update/Remove<br
/>Stream</A></TD>
<TD class="center"><A href="dispbook.aspx"
class="mydomain"><IMG src="images/7_5.gif" width="32"
height="32" border="0"><BR>Remove<br />Books</A></TD>

67
Kishan Maravaniya

( Online Book Store.com )

<TD class="center"><A href="example.aspx"


class="mydomain"><IMG src="images/5_1.gif" width="32"
height="32" border="0"><BR>Upload<BR>Example</A></TD>
<TD class="center"><A href="" class="mydomain"><IMG
src="images/7_5.gif" width="32" height="32" border="0"><BR
/>Remove Example</A></TD>

</TR>
</TBODY></TABLE>

68
Kishan Maravaniya

( Online Book Store.com )

Add Stream page

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


{
OOPConnection con = new
OOPConnection(WebConfigurationManager.ConnectionStrings["Co
nStr"].ConnectionString);
DataTable dt = new DataTable();
DataRow dr;
protected void Page_Load(object sender, EventArgs e)
{
if (Session["unm"] == null)
{
Response.Redirect("~/Home.aspx");
}
dt = con.GetData("bookmstr");
}
protected void btnsave_Click(object sender, EventArgs e)
69
Kishan Maravaniya

( Online Book Store.com )

{
bool b=con.SaveData("type", txtstream.Text);
if (b == true)
{
Table1.Caption = "<td align=center>Stream saved
Successfully</td>";
}
else
{
Table1.Caption="<td align=center>Save in Error ....!!!!!
</td>";
}
}
}

70
Kishan Maravaniya

( Online Book Store.com )

Add Book page

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


{
OOPConnection con = new
OOPConnection(WebConfigurationManager.ConnectionStrings["Co
nStr"].ConnectionString);
DataTable dt = new DataTable();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["unm"] == null)
{
Response.Redirect("~/Home.aspx");
}
dt = con.GetData("book");
}
71
Kishan Maravaniya

( Online Book Store.com )

protected void btnsave_Click(object sender, EventArgs e)


{
string pdf=Server.MapPath("bookpdf") + "\\" +
FileUpload2.FileName ;
string pdf1 = "bookpdf\\" + FileUpload2.FileName;
FileUpload2.SaveAs(pdf);

string path = Server.MapPath("bookimg") + "\\" +


FileUpload1.FileName ;
FileUpload1.SaveAs(path);
string f = "bookimg\\" + FileUpload1.FileName;
FileStream fs = new FileStream(path, FileMode.Open,
FileAccess.Read);
byte[] img = new byte[fs.Length];
fs.Read(img, 0, (int)fs.Length);

bool
b=con.SaveData("photo",img,"id",drpliststream.Text ,"name",txtboo
k.Text ,"author",txtauthor.Text,"description",txtdecs.Text ,"path",pdf1,
"imgpath",f );
fs.Close();
//File.Delete(path);
if (b == true)
72
Kishan Maravaniya

( Online Book Store.com )

Table1.Caption = "Book saved successfully";

}
else
{
Table1.Caption = "Book saved in Error...!!!";
}
// Response.Write(drpliststream.Text);
}
}

73
Kishan Maravaniya

( Online Book Store.com )

Display Stream

Display stream code

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


{
OOPConnection con = new
OOPConnection(WebConfigurationManager.ConnectionStrings["Co
nStr"].ConnectionString);
DataTable dt = new DataTable();
DataRow dr;
protected void Page_Load(object sender, EventArgs e)
{
if (Session["unm"] == null)
{
Response.Redirect("~/Home.aspx");
}
74
Kishan Maravaniya

( Online Book Store.com )

dt = con.GetData("bookmstr");
string str = "";
str += "<table
cellpadding=20><tr><th>StreamNo</th><th>Name</th><th>Delete
</th></tr>";
int i = 0;
while (i < dt.Rows.Count)
{
dr = dt.Rows[i];
str += "<tr><td>" + dr["id"] + "</td>";
str += "<td>" + dr["type"] + "</td>";
str += "<td><a href='deletestream.aspx?id=" + dr["id"] +
"'>Delete</a></td></tr>";
i++;
}
Table1.Caption = str + "</table>";
}
}
Delete Stream code

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


{

75
Kishan Maravaniya

( Online Book Store.com )

OOPConnection con = new


OOPConnection(WebConfigurationManager.ConnectionStrings["Co
nStr"].ConnectionString);
protected void Page_Load(object sender, EventArgs e)
{
if (Session["unm"] == null)
{
Response.Redirect("~/Home.aspx");
}
string id = Request.QueryString["id"].ToString();
bool b = con.DeleteData("delete from bookmstr where id=" +
id);
Response.Redirect("dispstream.aspx");
}
}

76
Kishan Maravaniya

( Online Book Store.com )

Display Book page

Display Book Code

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


{

OOPConnection con = new


OOPConnection(WebConfigurationManager.ConnectionStrings["Co
nStr"].ConnectionString);
DataTable dt = new DataTable();
DataRow dr;
protected void Page_Load(object sender, EventArgs e)
{
if (Session["unm"] == null)
77
Kishan Maravaniya

( Online Book Store.com )

{
Response.Redirect("~/Home.aspx");
}
dt = con.GetData("book");
string str = "";
str += "<table
cellpadding=20><tr><th>BookNo</th><th>Name</th><th>Author</t
h><th>Image</th><th>Delete</th></tr>";
int i=0;
while (i < dt.Rows.Count)
{
dr = dt.Rows[i];
str += "<tr><td>" + dr["book_id"] + "</td>";
str += "<td>" + dr["name"] + "</td>";
str += "<td>" + dr["author"] + "</td>";
str += "<td>" + dr["imgpath"] + "</td>";
str += "<td><a href='deletebook.aspx?id="+ dr["book_id"] +
"'>Delete</a></td></tr>";
i++;
}
Table1.Caption = str + "</table>";
}
78
Kishan Maravaniya

( Online Book Store.com )

}
Delete Book Code

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


{
OOPConnection con = new
OOPConnection(WebConfigurationManager.ConnectionStrings["Co
nStr"].ConnectionString);

protected void Page_Load(object sender, EventArgs e)


{
if (Session["unm"] == null)
{
Response.Redirect("~/Home.aspx");
}
string id = Request.QueryString["id"].ToString();
bool b = con.DeleteData("delete from book where book_id=" +
id);
Response.Redirect("dispbook.aspx");

}
}

79
Kishan Maravaniya

( Online Book Store.com )

Current News page

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


{
OOPConnection con = new
OOPConnection(WebConfigurationManager.ConnectionStrings["Co
nStr"].ConnectionString);
DataTable dt = new DataTable();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["unm"] == null)
{
Response.Redirect("~/Home.aspx");
}
//dt = con.GetData("current");
}
80
Kishan Maravaniya

( Online Book Store.com )

protected void btnsave_Click(object sender, EventArgs e)


{
bool b = con.UpdateData("update [current] set
current_news='"+ txtnews.Text +"' where id="+drpno.Text);
}
}

81
Kishan Maravaniya

( Online Book Store.com )

Add Example Page

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


{
OOPConnection con = new
OOPConnection(WebConfigurationManager.ConnectionStrings["Co
nStr"].ConnectionString);
DataTable dt = new DataTable();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["unm"] == null)
{
Response.Redirect("~/Home.aspx");
}
82
Kishan Maravaniya

( Online Book Store.com )

dt = con.GetData("[example]");
}
protected void btnsave_Click(object sender, EventArgs e)
{
bool b = con.SaveData("name", txtname.Text, "description",
txtexample.Text);
if (b == true)
{
Label1.Text = "Example Uploaded Successfully...!!!";
}
else
{
Label1.Text ="Save in error...!!!";
}
}
}

83
Kishan Maravaniya

( Online Book Store.com )

FeedBack page

<asp:SqlDataSource ID="SqlDataSource1" runat="server"


ConflictDetection="CompareAllValues"
ConnectionString="<%$
ConnectionStrings:studConnectionString3 %>"
DeleteCommand="DELETE FROM [feedback] WHERE
[id] = @original_id AND (([email] = @original_email) OR ([email] IS
NULL AND @original_email IS NULL)) AND (([summary] =
@original_summary) OR ([summary] IS NULL AND
@original_summary IS NULL))"
InsertCommand="INSERT INTO [feedback] ([email],
[summary]) VALUES (@email, @summary)"
OldValuesParameterFormatString="original_{0}"
SelectCommand="SELECT * FROM [feedback]"
UpdateCommand="UPDATE [feedback] SET [email] =
@email, [summary] = @summary WHERE [id] = @original_id AND
(([email] = @original_email) OR ([email] IS NULL AND
@original_email IS NULL)) AND (([summary] =
@original_summary) OR ([summary] IS NULL AND
@original_summary IS NULL))">
<DeleteParameters>
84
Kishan Maravaniya

( Online Book Store.com )

<asp:Parameter Name="original_id" Type="Int32" />


<asp:Parameter Name="original_email"
Type="String" />
<asp:Parameter Name="original_summary"
Type="String" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="email" Type="String" />
<asp:Parameter Name="summary" Type="String" />
</InsertParameters>
<UpdateParameters>
<asp:Parameter Name="email" Type="String" />
<asp:Parameter Name="summary" Type="String" />
<asp:Parameter Name="original_id" Type="Int32" />
<asp:Parameter Name="original_email"
Type="String" />
<asp:Parameter Name="original_summary"
Type="String" />
</UpdateParameters>
</asp:SqlDataSource>

85
Kishan Maravaniya

( Online Book Store.com )

LogOut Page

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


{
protected void Page_Load(object sender, EventArgs e)
{
Session.Abandon();
Session.Clear();
Response.Redirect("~/Home.aspx");
}
}

86
Kishan Maravaniya

( Online Book Store.com )

Chapter :9

EVALUATE REPORT USING PERT CHART


& GANTT CHART

With a view to complete the project in time, we have used two methods of the
system planning. we have discussed both this methods in depth as under:
1) PERT Chart:
The meaning of PERT is Project Estimation and Review Techniques. PERT chart
is a combination of various Arrows and Boxes indicating information.
There are various signs that describe their own meanings.
The box indicates various activities. So, when the boxes we see in the project we
can decide that how the work is done into the various processes.
The arrow indicates the task dependencies on various processes.
Arrows describes various task and in also shows that which task is dependent upon
which task.
PERT chart is very useful to show the project statistically. PERT chart is also very
useful in the project assuming. It also monitoring on the activities by the time. It
takes the care of the process by timing.

10 Dec. - 5 Jan.

Specification

6 Jan. 13 Jan.

25 Jan. 20 Feb.

Design Database
Part

Code Database
Part

14 Jan. 27
Jan
Design
GUI
JJanJan.

25 Jan. 20 Feb.

Code GUI
Part

21 Feb. 1 Mar.

1-Apr.

Integrate &
Test

Finish

2 Jan. 25 Mar.

Documentation

87
Kishan Maravaniya

( Online Book Store.com )

2) GANTT CHART:
GANTT chart is a part of PERT chart and we can get many things of the GANTT
chart via the PERT chart. GANTT chart describes very time scheduling &
resource planning. When the more than one activity is done parallel this chart is
very useful to understand the each process.
GANTT chart is a special type of bar-chart that describes that each bar describes a
process or an activity. The length of the bar describes the time-allocated for the
activity.
In GANTT chart each bar consists of two parts white part and shaded part. The
shaded part indicates the length of time estimated for the process. The white part
describes the slack part of the process. The white part also describes the time by
that the process must be completed.
Here is the Gantt chart Developed in Microsoft Project 2003, which is special tool
for Manage the Project Development.
Gantt charts used in software project management are actually an enhanced
version of the software project management. Each bar consists of a white part and
a shaded part. The white part of the bar shows the length of time each task is
estimated to take. The shaded part of the bar shows the slack time.
In order to estimate the time durations for various activities, usually managers let
the engineers themselves estimate the time for an activity they might be assigned
to. However, some managers prefer to estimate the time for various activities
themselves. Many managers believe that an aggressive schedule motivates the
engineers to do a job better and faster.
88
Kishan Maravaniya

( Online Book Store.com )

However, careful aspects, but also cause schedule compromise on intangible


quality aspects, but also cause schedule delays. A good way to achieve accuracy
without creating problems is to let people set their own schedules.

10-12-2012

09-01-2013

15-02-2013

20-03-2013

28-03-2013

01-04-2013

START
Requirement
Specification

Design Database
GUI Design

Code of GUI &


Database

Integration & Testing

Documentation

FINISH

89
Kishan Maravaniya

( Online Book Store.com )

We can see that one engineer can do the database design and then code the
database design whereas another engineer and design the GUI part, code the GUI
part, and still have time left for writing the user manual. Thus, Gantt charts are
very useful in scheduling resources. So here, I have to follow the scheduling steps
for my project. Gantt chart is really useful us for planning software application
resources.

90
Kishan Maravaniya

( Online Book Store.com )

Chapter 10: CONCLUSION AND DISCUSSION

10.1 CONCLUSION AND DISCUSSION:

This site provides online book services to the peoples of all the
countries. This web interface provides easiest way to find the particular book on
the web.
This is online book adda site where one can view the book by
different categories. Select the books and read and download.
This web can also help you to see programming related example.
This website is hosted on the Indian server which provide very fast
way for the people to do online book adda of their favourite books.

91
Kishan Maravaniya

( Online Book Store.com )

Chapter 11

BIBLIOGRAPHY

References
Site
11.1 References
ASP.NET Professional by UNLEASED.
MSDN Library by Microsoft.
SQL Server 2008 Professional.

11.2

Site

www.google.com.
www.aspdotnet.com
www.freecsstemplate.com

92
Kishan Maravaniya

( Online Book Store.com )

93
Kishan Maravaniya

You might also like