Professional Documents
Culture Documents
Rahul Project Music@Video
Rahul Project Music@Video
INDEX
1. Certificate of Originality 3
2. Acknowledgment 4
3. Synopsis 5
6. Tools/Platform to be used 39
7. System Analysis 40
8. System Design 77
Page
1
MusicManza-Online Music and Video Portal
(d) Class Diagram 82
9. TESTING 92
Page
2
MusicManza-Online Music and Video Portal
CERTIFICATE OF ORIGINALITY
This is to certify that the project report entitled MUSIC & VIDEO
POTALS Submitted to Indira Gandhi National Open University in
partial fulfilment of the requirement for the award of the degree of
MASTER OF COMPUTER APPLICATIONS ( MCA), is an original
work carried out by Mr. RAHUL SONI, Enrolment No.: 137882650 under
the guidance of Mr. ALIND SAXENA.
The matter embodied in this project is a genuine work done by the student
and has not been submitted whether to this University or to any other
University / Institute for the fulfilment of the requirement of any course of
study.
Page
3
MusicManza-Online Music and Video Portal
ACKNOWLEDGEMENT
surely, it would not have been possible without proper guidance and
ALIND SAXENA for expert planning, peerless guidance and untiring and
I have benefited a lot from the constructive critics and suggestion given
My Parents, being earthly Gods in my life deserve much more than what
I can weigh in words. Their silent prayers, aesthetic love and affection
and steel belief in my capabilities have enabled me to make this
endeavor see the light of success and unending support from my is
always cherished.
Page
4
MusicManza-Online Music and Video Portal
SYNOPSIS
Page
5
MusicManza-Online Music and Video Portal
INDEX
8. Hardware Requirement 16
9. Software Requirement 16
11. Input/Output 18
Page
6
MusicManza-Online Music and Video Portal
19. Bibliography 35
Page
7
MusicManza-Online Music and Video Portal
Objective
Music and video Portal system consist of processing program to
manipulate compress , compact and analyze the music and video
component of a segment
Construct and maintain a web site that is useful to staff and the
community
Monitor and evaluate the demand and supply for technology related
Portal service
Page
8
MusicManza-Online Music and Video Portal
System Analysis
Customer problem
Page
9
MusicManza-Online Music and Video Portal
Fact Finding
Interviews
Interview allows analysis to learn more about the nature of project.
Interview should provide detail that further explain the project and show
whether assistance is economically, operationally and technically.
Page
10
MusicManza-Online Music and Video Portal
Onsite observation
Questionnaires
I went music and video Portal I asked customer
requirement and prepare many question from staff and
collect all customer requirement like facilities, easy to
purchase music and video cd. Question is short, easy to
understand, unbiased and specific. I have prepared many
multiple type questions and asked from Portal staff.
Page
11
MusicManza-Online Music and Video Portal
Waterfall Model:-
The Waterfall Model was first process Model to be
introduced. It is also referred to as a linear-sequential life cycle model. It is
very simple to understand and use. In a waterfall model, each phase must
be completed fully before the next phase can begin. This type of model is
basically used for the project which is small and there are no uncertain
requirements. At the end of each phase, a review takes place to determine
if the project is on the right path and whether or not to continue or discard
the project. In this model the testing starts only after the development is
complete. In waterfall model phases do not overlap.
This model is used only when the requirements are very well known,
clear and fixed.
Product definition is stable.
Technology is understood.
There are no ambiguous requirements.
Ample resources with required expertise are available freely.
The project is short.
Page
12
MusicManza-Online Music and Video Portal
Sampling
Page
13
MusicManza-Online Music and Video Portal
Page
14
MusicManza-Online Music and Video Portal
Feasibility Study
Types of Feasibility
1. Technical feasibility
Page
15
MusicManza-Online Music and Video Portal
2. Economical feasibility
3. Operational feasibility
Page
16
MusicManza-Online Music and Video Portal
Hardware Requirenment
Motherboard :- 1GB
RAM :- 4GB
Moniter :- 15.6inch
Keyboard :- Qwerty
Mouse :- Optical
Software Requirenment
OS :- Windows 8.1
Page
17
MusicManza-Online Music and Video Portal
Modular Description
Registration CD/DVD
The registration department registers all music and video CD.
Customer give a registration number and customer register own
favorite CD/DVD in Portal registration department. And this CD/DVD
not given will be other customer.
Stock
Stock department main work of keep extra music and
video CD/DVD in Portal. And fulfill all customer requirements in Portal.
Many customer purchase/rent music and video CD/DVD.
Billing
The billing department is main work of billing all sale/
purchase music and video CD/DVD. It make billing sale music and
video CD, purchase music and video CD. Billing department maintain
all customer record. And every day billing all purchase music and video
CD, all rent music and video cd and how many balance on customer.
Page
18
MusicManza-Online Music and Video Portal
Input/output
Input Output
Age
Sex
Address
Phone no
Email id
Page
19
MusicManza-Online Music and Video Portal
Registration CD/DVD
Input output
CD/DVD name
CD/DVD id
CD/DVD number
Registration price
Page
20
MusicManza-Online Music and Video Portal
Stock
Input output
Page
21
MusicManza-Online Music and Video Portal
Billing
Input output
Phone no
Bill amount
Page
22
MusicManza-Online Music and Video Portal
Customer _id
CD/DVD price
CD/DVD name
CD/DVD _number
Customer
Address
Pays
Supplied
By
Bill issue_ date & time
User _ id
Supplier_ id Bill id
User_ password
Generate
Page
23
MusicManza-Online Music and Video Portal
Cancellation
Admin
Registration manages
CD_NO search
CD/DVD
CD _NO
Availability
Stock
Cancellation
Page
24
MusicManza-Online Music and Video Portal
Customer Request
For
Return cd
Request
Request
For
For Canceling
Fill up Cd issue
form
Calculate
Cancel No
Registration Cd available
Charge
Issue
Fine
Cd
Customer _ detail
CD_ stock
Admin Return
Cd
Page
25
MusicManza-Online Music and Video Portal
2ND LEVEL DFD
Number
No
Canceling
Admin
Registration
Customer_ detail
Page
26
MusicManza-Online Music and Video Portal
Check Error
Request Check
Yes CD available no
Customer For Registration Message
detail
Cd _issue
Yes
Issue
CD
CD_stock
Admin
Return CD
Request
Customer Calculate Diff > Charge
To
Return
Issue date 2 days Yes Fine
Return date No
Cd
Return
CD
CD _ stock
Admin
Page
27
MusicManza-Online Music and Video Portal
Class Diagram
Login ()
Payment
Search ()
Payment_ID : int
Payment_date : int
Payment_mode : char
Do_Payment()
Page
28
MusicManza-Online Music and Video Portal
Sign out
Search
User
Report generate
New CD entry
User name &
password
Admin
Login
New password
Confirm password
User
Change
Data Dictionary
Page
29
MusicManza-Online Music and Video Portal
1. Customer detail
Page
30
MusicManza-Online Music and Video Portal
3. User Detail
Page
31
MusicManza-Online Music and Video Portal
4. Supplier Detail
5. Bill detail
Page
32
MusicManza-Online Music and Video Portal
Bill issue date & time number it show bill issue date & time
Page
33
MusicManza-Online Music and Video Portal
System Security
Page
34
MusicManza-Online Music and Video Portal
Page
35
MusicManza-Online Music and Video Portal
Bibliography
Software Engineering
Page
36
MusicManza-Online Music and Video Portal
PROJECT
REPORT
Page
37
MusicManza-Online Music and Video Portal
Page
38
MusicManza-Online Music and Video Portal
Objective
Music and video Portal system consist of processing program to
manipulate compress , compact and analyze the music and video
component of a segment
Construct and maintain a web site that is useful to staff and the
community
Page
39
MusicManza-Online Music and Video Portal
TOOLS/PLATFORM TO BE USED
Software Requirenment
Front End :- Asp.Net using C#
OS :- Windows 8.1
Hardware Requirenment
Motherboard :- 1GB
RAM :- 4GB
Moniter :- 15.6inch
Keyboard :- Qwerty
Mouse :- Optical
Page
40
MusicManza-Online Music and Video Portal
System Analysis
Customer problem
many time of customer. Many staff worker forget given rent slip
Page
41
MusicManza-Online Music and Video Portal
question: Will the idea work and should I proceed with it? It provides
3 Types :-
(i) Economical feasibility
Page
42
MusicManza-Online Music and Video Portal
savings that are expected from Music & Video Universe and compare
them with the total costs. Gantt & PERT Charts are useful tools in Cost
being approved.
using C#, and MS SQL Server. Microsoft SQL Server is a feature rich
Page
43
MusicManza-Online Music and Video Portal
(iii) OPRATIONAL FEASIBILITY
Whether there will be resistance from users that will affect the possible
application benefits?
the project and involves projecting whether the system will operate
and be used once it is installed. The reason Music & Video Universe is
easier.
Page
44
MusicManza-Online Music and Video Portal
(i) Interviewing:
Interviewing is a very important method of fact finding. Analysts
form the potential users. Here the analysts discover the areas of
different Music & video websites about the features they like in such
websites, their limitations, and which are the new features that they
On-site observations are one of the most effective tools with the
analyst where the analyst personally goes to the site and discovers
Page
45
MusicManza-Online Music and Video Portal
as www.MusicManza.com and have observed their features
carefully.
(III) Questionnaires:
Here the analysts can collect data from large groups. The
logical manner. The questions are simple, clear and to the point.
be selected.
Page
46
MusicManza-Online Music and Video Portal
SOFTWARE REQUIREMENTS SPECIFICATIONS (SRS)
describe all the interactions the users will have with the software. Use
constraints).
Page
47
MusicManza-Online Music and Video Portal
2. Functional and non-functional requirements of the systems. They
3. Design constraints
1. Introduction
(ii) Scope :- This Software will maintain all the data related to
Server, Wrox.
Page
48
MusicManza-Online Music and Video Portal
2. Overall Descriptions
can be accessed from any Record of music and video around the world.
Page
49
MusicManza-Online Music and Video Portal
2. Motherboard :- 1GB
3. RAM :- 4 GB
6. Keyboard :- Qwerty
7. Mouse :- Optical
Page
50
MusicManza-Online Music and Video Portal
1.1.5 Memory Constraints
today.
Available or Place.
by Admin.
Page
51
MusicManza-Online Music and Video Portal
1.3 User characteristics
Page
52
MusicManza-Online Music and Video Portal
2. Specific requirements
invalid inputs.
the software.
side security.
Page
53
MusicManza-Online Music and Video Portal
3.3.4 Maintainability :- This software will be
Page
54
MusicManza-Online Music and Video Portal
FUNCTIONAL REQUIREMENTS
describing all the cases where the system uses the functional
reliability).
This proposed system will automate all the details related to Music and
Video at a single portal. Any user can get any information, record,
Page
55
MusicManza-Online Music and Video Portal
Registered users can see Latest Movie, music and Albums.
as different clubs.
information quicker.
This portal will provide user management facility i.e. every user
will get a unique user name & password for authorized access.
Page
56
MusicManza-Online Music and Video Portal
NON-FUNCTIONAL REQUIREMENT
architecture.
Page
57
MusicManza-Online Music and Video Portal
Attributes of Quality-
Page
58
MusicManza-Online Music and Video Portal
Waterfall Model:-
The Waterfall Model was first process Model to be
introduced. It is also referred to as a linear-sequential life cycle model. It is
very simple to understand and use. In a waterfall model, each phase must
be completed fully before the next phase can begin. This type of model is
basically used for the project which is small and there are no uncertain
requirements. At the end of each phase, a review takes place to determine
if the project is on the right path and whether or not to continue or discard
the project. In this model the testing starts only after the development is
complete. In waterfall model phases do not overlap.
This model is used only when the requirements are very well known,
clear and fixed.
Product definition is stable.
Technology is understood.
There are no ambiguous requirements.
Ample resources with required expertise are available freely.
The project is short.
Page
59
MusicManza-Online Music and Video Portal
Stage 1: Requirement Phase
Whether you design a small program to add two numbers or you are
airline company, this is the first stage which can never be overridden.
Unless you know what you are going to design, you cannot approach the
not contain certain features, for reasons like security, then it is also
With all the requirements and constraints in hand, a final view of how
the product should exactly be, is decided. The exact way in which the
Well, here the actual work begins. Every type of resource which will be
this phase. What type of database will be required, what type of data
should be supported, etc. are some of the important aspects that are
Page
60
MusicManza-Online Music and Video Portal
software needs to be designed is made in this phase. This algorithm
forms the backbone for the actual coding part in the next phase.
Now starts the coding part. Here, the software is designed as per the
to find out if there are any flaw or errors. The output of this stage should
be installed at the clients system is also designed and tested so that the
client does not face any problem during the installation of the software.
The work of software development does not end with the handing of the
Page
61
MusicManza-Online Music and Video Portal
provide support to the client to resolve any of the issues which may
arise. There may be some flaws which get detected during the actual
The client company may be expanding into other fields and it may want
important that the updated requirements be taken from the client. This
requires the entire product life cycle to start all over again.
The waterfall model is the oldest and most widely used model in the
very minimal.
Page
62
MusicManza-Online Music and Video Portal
COCOMO MODEL
Page
63
MusicManza-Online Music and Video Portal
development processes and an updated project database. The need for
accurate forms. The first level, Basic COCOMO is good for quick, early,
Drivers into account and Detailed COCOMO additionally accounts for the
Basic COCOMO
Page
64
MusicManza-Online Music and Video Portal
• Semi-detached projects - "medium" teams with mixed experience
Intermediate COCOMOs
• Product attributes
• Hardware attributes
Page
65
MusicManza-Online Music and Video Portal
o Run-time performance constraints
o Memory constraints
• Personnel attributes
o Analyst capability
o Applications experience
• Project attributes
Detailed COCOMO
Page
66
MusicManza-Online Music and Video Portal
SCHEDULING TECHNIQUES
Scheduling is an important tool for manufacturing and engineering,
time and costs, by telling a production facility when to make, with which
opportunities which might not be apparent without this view into the
airport gates required for its aircraft, in order to reduce costs, and
scheduling software can allow the planners to see how this can be done,
Page
67
MusicManza-Online Music and Video Portal
Companies use backward and forward scheduling to allocate plant and
capacity required.
1) GANTT Chart
2) PERT Chart
Page
68
MusicManza-Online Music and Video Portal
GANTT CHART
A Gantt chart is a graphical representation of the duration of tasks
resource allocation. The left hand side of the Gant chart is a column with
In a Gantt chart, each task takes up one row. Dates run along the top in
show the start and end dates of each task in the project. Tasks may run
in project management.
Page
69
MusicManza-Online Music and Video Portal
A Gantt chart lets us see immediately what should have been achieved
at any point in time. It also lets us see how remedial action may bring
Gantt chart.
Page
70
MusicManza-Online Music and Video Portal
Page
71
MusicManza-Online Music and Video Portal
PERT CHART
The Program Evaluation and Review Technique (PERT) is a network
the potential to reduce both the time and cost required to complete a
project.
with other activities. This collection of series and parallel tasks can be
modeled as a network.
Page
72
MusicManza-Online Music and Video Portal
Benefits of PERT:-
Page
73
MusicManza-Online Music and Video Portal
RISK ANALYSIS & MANAGEMENT
What is Risk?
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
crossing the street to having a heart attack because our cholesterol level
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,
thinkers in the field. One such writer in the area of risk is Dr. Barry W.
Page
74
MusicManza-Online Music and Video Portal
Boehm. In his article "Software Risk Management: Principles and
1. Personnel Shortfalls
5. Gold-plating
Page
75
MusicManza-Online Music and Video Portal
The ultimate goal is to help organizations to better manage project-
How to Manage: -
Risk Assessment (figuring out what the risks are and what to
focus on)
Page
76
MusicManza-Online Music and Video Portal
- ranking the items (from most to least dangerous)
Page
77
MusicManza-Online Music and Video Portal
SYSTEM DESIGN
the 1990s systems design had a crucial and respected role in the data
Page
78
MusicManza-Online Music and Video Portal
in object-oriented analysis and design. It is widely used for modelling
organizational entities that will use the new system. The challenge is to
accurately describe the design of the system, and that can be used as
created for the Application Developers, enabling them to build and test
the system.
Page
79
MusicManza-Online Music and Video Portal
MODULAR DESIGN
Movies HISTORY
Products
SEARCH DETAIL
Page
80
MusicManza-Online Music and Video Portal
MODULAR DESCRIPTION
User
Movies History
Admin
Product
Details
Search
User: It will maintain the details of all registered users with their
username & passwords so they can login to use various facilities on this
site.
Movie History: This module will maintain the history of all the Movies.
Admin: It will maintain the records of all the Add product music &
video.
Product: This module will show the Stocks of the available products.
Details: It will show the Details related to Particular Movie and Albums.
Search: This module will help in searching various details like Movies,
Albums etc.
Page
81
MusicManza-Online Music and Video Portal
Customer _id
CD/DVD price
Customer _ name
CD/DVD _id
CD/DVD name
Customer_ sex
Purchase /rent
Customer CD /DVD
CD/DVD _number
Customer
Address
Pays
Supplied
By
Bill issue_ date & time
User _ id
Supplier_ id Bill id
User_ password
Generate
Page
82
MusicManza-Online Music and Video Portal
Class Diagram
Login ()
Payment
Search ()
Payment_ID : int
Payment_date : int
Payment_mode : char
Do_Payment()
Page
83
MusicManza-Online Music and Video Portal
Sign out
Search
User
Report generate
New CD entry
User name &
password
Admin
Login
New password
Confirm password
User
Change
Page
84
MusicManza-Online Music and Video Portal
Cancellation
Admin
Registration manages
CD_NO search
CD/DVD
CD _NO
Availability
Stock
Cancellation
Page
85
MusicManza-Online Music and Video Portal
Customer Request
For
Return cd
Request
Request
For
For Canceling
Fill up Cd issue
form
Calculate
Cancel No
Registration Cd available
Charge
Issue
Fine
Cd
Customer _ detail
CD_ stock
Admin Return
Cd
Page
86
MusicManza-Online Music and Video Portal
2ND LEVEL DFD
Number
No
Canceling
Admin
Registration
Customer_ detail
Page
87
MusicManza-Online Music and Video Portal
Check Error
Request Check
Yes CD available no
Customer For Registration Message
detail
Cd _issue
Yes
Issue
CD
CD_stock
Admin
Return CD
Request
Customer Calculate Diff > Charge
To
Return
Issue date 2 days Yes Fine
Return date No
Cd
Return
CD
CD _ stock
Admin
Page
88
MusicManza-Online Music and Video Portal
Data Dictionary
1. Customer detail
Page
89
MusicManza-Online Music and Video Portal
Page
90
MusicManza-Online Music and Video Portal
3. User Detail
4. Supplier Detail
Page
91
MusicManza-Online Music and Video Portal
5. Bill detail
Bill issue date & time number it show bill issue date & time
Page
92
MusicManza-Online Music and Video Portal
TESTING
inputs are received and outputs are produced. Where software differs is in the
manner in which it fails. Most physical systems fail in a fixed (and reasonably
small) set of ways. By contrast, software can fail in many bizarre ways.
Detecting all of the different failure modes for software is generally infeasible.
Unlike most physical systems, most of the defects in software are design
errors, not manufacturing defects. Software does not suffer from corrosion,
Software bugs will almost always exist in any software module with moderate
size: not because programmers are careless or irresponsible, but because the
limited ability to manage complexity. It is also true that for any complex
Page
93
MusicManza-Online Music and Video Portal
Discovering the design defects in software, is equally difficult, for the same
reason of complexity. Because software and any digital systems are not
correctness. All the possible values need to be tested and verified, but
only two integer inputs of 32-bits (yielding 2^64 distinct test cases) would
per second. Obviously, for a realistic software module, the complexity can be
far beyond the example mentioned here. If inputs from the real world are
involved, the problem will get worse, because timing and unpredictable
failure occurs during preliminary testing and the code is changed, the
software may now work for a test case that it didn't work for previously. But
its behavior on pre-error test cases that it passed before can no longer be
Page
94
MusicManza-Online Music and Video Portal
or find bug sleeves a residue of subtler bugs against which those methods are
ineffectual. But this alone will not guarantee to make the software better,
therefore that of bugs) grows to the limits of our ability to manage that
escalation of features and complexity, but his time you have subtler bugs to
face, just to retain the reliability you had before. Society seems to be unwilling
to limit complexity because we all want that extra bell, whistle, and feature
interaction.
Page
95
MusicManza-Online Music and Video Portal
TEST PLANS
A test plan documents the strategy that will be used to verify and ensure that
workflow will be. A test plan is usually prepared by or with significant input
from Test Engineers.
the test plan applies, a test plan may include one or more of the following:
sample of units.
Page
96
MusicManza-Online Music and Video Portal
verify that existing functionality didn't get broken when other aspects of
A complex system may have a high level test plan to address the overall
organizations to which they apply. There are three major elements that should
be described in the test plan: Test Coverage, Test Methods, and Test
Test coverage
Test coverage in the test plan states what requirements will be verified during
what stages of the product life. Test Coverage is derived from design
codes, where each requirement or specification of the design ideally will have
product life stages may overlap, but will not necessarily be exactly the same
for all stages. For example, some requirements may be verified during Design
Page
97
MusicManza-Online Music and Video Portal
Verification test, but not repeated during Acceptance test. Test coverage also
feeds back into the design process, since the product may have to be designed
Test methods
Test methods in the test plan state how test coverage will be implemented.
specify test equipment to be used in the performance of the tests and establish
can range from very simple steps, such as visual inspection, to elaborate test
Test responsibilities
Test responsibilities include what organizations will perform the test methods
and at each stage of the product life. This allows test organizations to plan,
implement the test methods for which they are responsible. Test
responsibilities also includes, what data will be collected, and how that data
Page
98
MusicManza-Online Music and Video Portal
TESTING TYPES
White box testing is a security testing method that can be used to validate
implemented. White box testing includes analyzing data flow, control flow,
information flow, coding practices, and exception and error handling within
the system, to test the intended and unintended software behavior. White box
White box testing involves looking at the structure of the code. White box
testing requires access to the source code. Though white box testing can be
Page
99
MusicManza-Online Music and Video Portal
performed any time in the life cycle after the code is developed, it is a good
practice to perform white box testing during the unit testing phase.
White box testing requires knowing what makes software secure or insecure,
how to think like an attacker, and how to use different testing tools and
techniques.
fundamental requirement.
Second, to create tests that exploit software, a tester must think like
an attacker.
Benefits:-
There are many benefits to white box testing, including the following:
Page
100
MusicManza-Online Music and Video Portal
Executing some (hard to set up) black box tests as white box tests
specific input into a component, buried inside the software, may require
elaborate setup for black box testing but may be done more directly
its own. This reduces the overall cost (in terms of time and effort)
secure design, but the implementation may not exactly capture the
design intent. For example, a design might outline the use of protected
testing effort.
Page
101
MusicManza-Online Music and Video Portal
For a complete software examination, both white box and black box tests are
required.
as black box or closed box. Tester will only know the formal inputs and
projected results. Tester does not know how the program actually arrives at
those results. Hence tester tests the system based on the functional
specifications given to him. That is the reason black box testing is also
Page
102
MusicManza-Online Music and Video Portal
slightly different from black-box test design because the use of internal
testing technique whereby the internal workings of the item being tested are
not known by the tester. For example, in a black box test on software design
the tester only knows the inputs and what the expected outcomes should be
and not how the program arrives at those outputs. The tester does not ever
examine the programming code and does not need any further knowledge of
the tester.
Page
103
MusicManza-Online Music and Video Portal
Tests will be done from an end user's point of view. Because end user
specifications.
complete
The test is unbiased because the designer and the tester are
languages.
The test is done from the point of view of the user, not the designer.
Test cases are tough and challenging to design, without having clear
functional specifications
Page
104
MusicManza-Online Music and Video Portal
It is difficult to identify tricky inputs, if the test cases are not developed
based on specifications.
programmer.
The test can be redundant if the software designer has already run a test
case.
untested.
Page
105
MusicManza-Online Music and Video Portal
LEVELS OF TESTING
usually at the class level, and the minimal unit tests include the constructors
and destructors.
These types of tests are usually written by developers as they work on code
One function might have multiple tests, to catch corner cases or other branches
in the code. Unit testing alone cannot verify the functionality of a piece of
software, but rather is used to assure that the building blocks the software
Integration testing is any type of software testing that seeks to verify the
Page
106
MusicManza-Online Music and Video Portal
design are integrated and tested until the software works as a system.
requirements. System testing falls within the scope of black box testing, and as
such, should require no knowledge of the inner design of the code or logic.
As a rule, system testing takes, as its input, all of the "integrated" software
software system itself integrated with any applicable hardware system(s). The
Page
107
MusicManza-Online Music and Video Portal
that have come back. Such regressions occur whenever software functionality
the newly developed part of the software collides with the previously existing
run tests and checking whether previously fixed faults have re-emerged. The
depth of testing depends on the phase in the release process and the risk of the
added features. They can either be complete, for changes added late in the
each feature, if the changes are early in the release or deemed to be of low
risk.
Page
108
MusicManza-Online Music and Video Portal
quantitative procedure.
device. This process can involve quantitative tests done in a lab, such as
Page
109
MusicManza-Online Music and Video Portal
which failure occurs. Recovery testing is basically done in order to check how
fast and better the application can recover against any type of crash or
testing may have a more specific meaning in certain industries, such as fatigue
testing for materials.
Page
110
MusicManza-Online Music and Video Portal
TEST CASES
inputs, expected results, and steps to perform to execute the test. There are
many definitions and formats for test case description. In general, the intent of
the test case is to capture what the particular test is designed to accomplish.
Risk analysis, test strategy, and the test plan should guide test case
development.
test case for each test listed in the test plan. Figure illustrates the point at
which test case design occurs in the lab development and testing process.
Page
111
MusicManza-Online Music and Video Portal
“A test case has components that describe an input, action or event and an
correctly”.
Test cases should be written by a team member who understands the function
or technology being tested, and each test case should be submitted for peer
review.
descriptions. In detailed test cases, the steps describe exactly how to perform
the test. In descriptive test cases, the tester decides at the time of the test how
or fail criteria are usually easier with this type of case. In addition, detailed
test cases are reproducible and are easier to automate than descriptive test
cases. This is particularly important if you plan to compare the results of tests
Page
112
MusicManza-Online Music and Video Portal
over time, such as when you are optimizing configurations. Detailed test cases
BUG REPORTS
Document that records data obtained from an experiment of evaluation
conditions, and shows the comparison of test results with test objectives.
TEST REPORT
Description:
Page
113
MusicManza-Online Music and Video Portal
TEST REPORT
Description:
1) Run ChangePassword.aspx
2) Type valid username & password
3) Click on “Check” button
4) Type Valid new password & confirm password
5) Click on “Change” button
Page
114
MusicManza-Online Music and Video Portal
TEST REPORT
Description:
1) Run ForgotPassword.aspx
2) Type valid user name
3) Type valid Email id
Page
115
MusicManza-Online Music and Video Portal
DEBUGGING
In computers, debugging is the process of locating and fixing or
problem, isolate the source of the problem, and then fix it. A user of a program
that does not know how to fix the problem may learn enough about the
says they've debugged a program or "worked the bugs out" of a program, they
result of the unit test for the smallest unit of a system, again at component test
when parts are brought together, again at system test when the product is
used with other existing products, and again during customer beta test, when
users try the product out in a real world situation. Because most computer
Page
116
MusicManza-Online Music and Video Portal
lines of code, almost any new product is likely to contain a few bugs.
IMPLEMENTATION
OF SECURITY
Page
117
MusicManza-Online Music and Video Portal
DATABASE SECURITY
Page
118
MusicManza-Online Music and Video Portal
Access control
Auditing
Authentication
Encryption
Integrity controls
DELETE statements. Triggers are used to enforce data integrity and business
table, they are checked prior to the trigger execution. If constraints are
violated statement will not be executed and trigger will not run. Triggers are
associated with tables and they are automatic. Triggers are automatically
Page
119
MusicManza-Online Music and Video Portal
query stored as an object. Hence, a view is an object that derives its data from
one or more tables. These tables are referred to as base or underlying tables.
Once you have defined a view, you can reference it like any other table in a
database.
A view serves as a security mechanism. This ensures that users are able to
retrieve and modify only the data seen by them. Users cannot see or access the
simplify query execution. Complex queries can be stored in the form as a view,
and data from the view can be extracted using simple queries.
nickname (also nick), or handle, which is derived from the identical Citizen's
Band radio term.
Users are also widely characterized as the class of people that use a system
In hacker-related contexts, such users are also divided into users and power
Page
120
MusicManza-Online Music and Video Portal
attitude.
agent, it is quite possible that there is no end-user for the system. In this case,
these act to control access to the database manager and its database objects.
Users can access only those objects for which they have the appropriate
A user or group can have one or more of the following levels of authorization
and privileges:
objects.
LOAD authority (LOAD) gives LOAD utility privileges to load data into tables.
Page
121
MusicManza-Online Music and Video Portal
Implicit privileges may be granted to a user who has the privilege to execute a
package. Although users can run the application, they do not necessarily
require explicit privileges on the data objects used within the package.
privileges (CONTROL) can grant and revoke privileges to and from others,
using the GRANT and REVOKE statements. It is also possible to grant a table,
view, or schema privilege to another user if that privilege is held with the
WITH GRANT OPTION. However, the WITH GRANT OPTION does not allow
the person granting the privilege to revoke the privilege, once granted. You
must already exist. For example, a user cannot be given the SELECT privilege
Page
122
MusicManza-Online Music and Video Portal
DATA SECURITY
Data security :- In simple terms, data security is the practice of
keeping data protected from corruption and unauthorized access. The focus
corporate data.
Data is the raw form of information stored as columns and rows in our
analytics and details intended to top secret. Data could be anything of interest
However, some of this information isn't intended to leave the system. The
unauthorized access of this data could lead to numerous problems for the
larger corporation or even the personal home user. Having your bank account
details stolen is just as damaging as the system administrator who was just
Page
123
MusicManza-Online Music and Video Portal
There has been a huge emphasis on data security as of late, largely because of
the internet. There are a number of options for locking down your data from
more conscious these days, but is your data really secure? If you're not
risk.
Encryption:-
Encryption has become a critical security feature for thriving networks and
active home users alike. This security mechanism uses mathematical schemes
and algorithms to scramble data into unreadable text. It can only by decoded
(FDE) Full-disk encryption offers some of the best protection available. This
technology enables you to encrypt every piece of data on a disk or hard disk
drive. Full disk encryption is even more powerful when hardware solutions
everyday computer usage. Just think about when you log into your email or
Page
124
MusicManza-Online Music and Video Portal
blog account. That single sign-on process is a form authentication that allows
you to log into applications, files, folders and even an entire computer system.
Once logged in, you have various given privileges until logging out. Some
systems will cancel a session if your machine has been idle for a certain
amount of time, requiring that you prove authentication once again to re-
enter.
Backup Solutions:-
there is always a chance that your data can be compromised. You could
suddenly be hit with a malware infection where a virus destroys all of your
files. Someone could enter your computer and thieve data by sliding through a
security hole in the operating system. Perhaps it was an inside job that caused
your business to lose those sensitive reports. If all else fails, a reliable backup
Page
125
MusicManza-Online Music and Video Portal
solution will allow you to restore your data instead of starting completely
from scratch.
are used for validating user input. These controls provides both server side
The client side validation features can be used to give your users an improved
wait for a full page postback to occur only to discover that they have failed to
fill out your form completely. Instead, the client side features can be using to
notify the user immediately (before the page is submitted) about any missing
One of the shortcomings of the validation controls under the 1.1 Framework
was the inability to validate only portions of your form. Whenever the
validators were triggered, all validators on the page were checked even if they
might not be related to the particular button being clicked. With the 2.0
Page
126
MusicManza-Online Music and Video Portal
The validation can be checked on the server side with the help of the Is
Valid property of the validation control. Additionally, you can use the Is Valid
the page. Before testing the Is Valid property of the validation control or the
page, it is important that the validation check has already been performed
through the use of the Validate method. You can call Validate on individual
Custom Validator
Validation Summary
Range Validator
Compare Validator
Page
127
MusicManza-Online Music and Video Portal
Rights- An admin user has all the rights related to this portal. He will be the
super user who can Add/View/Delete any information.
User- Customer
Page
128
MusicManza-Online Music and Video Portal
2. This project does not have real Web Services called to check the validity
of the credit card. The Web Service to verify card details is also
implemented by myself.
This project does not have any type of SMS facility for the users
Page
129
MusicManza-Online Music and Video Portal
This project can be made a three tier application. This will generally
This project is limited to Music & Video related activities only. In future I
Albums etc. So you can get information regarding any Music & video on
this portal.
Page
130
MusicManza-Online Music and Video Portal
BIBLIOGRAPHY
Freeman
Yogesh Singh
9. http://www.w3schools.com/aspnet/default.asp
10. http://www.sql-server-helper.com/
Page
131
MusicManza-Online Music and Video Portal
Page
132
MusicManza-Online Music and Video Portal
INDEXPAGE.ASPX
Page
133
MusicManza-Online Music and Video Portal
LOGINPAGE.ASPX
Page
134
MusicManza-Online Music and Video Portal
HOMEPAGE.ASPX
Page
135
MusicManza-Online Music and Video Portal
Page
136
MusicManza-Online Music and Video Portal
REGISTER.ASPX
Page
137
MusicManza-Online Music and Video Portal
CONTACTUS.ASPX
Page
138
MusicManza-Online Music and Video Portal
CHANGEPASSWORD.ASPX
Page
139
MusicManza-Online Music and Video Portal
FORGOTPASSWORD.ASPX
Page
140
MusicManza-Online Music and Video Portal
PRODUCT DESCRIPTION.ASPX
BOLLYWOOD MOVIES.ASPX
Page
141
MusicManza-Online Music and Video Portal
Page
142
MusicManza-Online Music and Video Portal
HOLLYWOOD MOVIES.ASPX
Page
143
MusicManza-Online Music and Video Portal
Page
144
MusicManza-Online Music and Video Portal
PUNJABI MOVIES.ASPX
Page
145
MusicManza-Online Music and Video Portal
Page
146
MusicManza-Online Music and Video Portal
TOLLYWOOD MOVIES.ASPX
Page
147
MusicManza-Online Music and Video Portal
ALBUMS.ASPX
Page
148
MusicManza-Online Music and Video Portal
REMIX SONGS.ASPX
Page
149
MusicManza-Online Music and Video Portal
SEARCH.ASPX
Page
150
MusicManza-Online Music and Video Portal
VIEWCART.ASPX
Page
151
MusicManza-Online Music and Video Portal
Page
152
MusicManza-Online Music and Video Portal
PAYMENT.ASPX
Page
153
MusicManza-Online Music and Video Portal
Page
154
MusicManza-Online Music and Video Portal
CODING WITH
COMMENTS&
EXCEPTION
HANDLING
LOGIN.ASPX.CS
using System;
using System.Collections.Generic;
using System.Linq;
Page
155
MusicManza-Online Music and Video Portal
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
con.Open();//open conection
Page
156
MusicManza-Online Music and Video Portal
cmd.Parameters.AddWithValue("@t1", TextBox1.Text);//Passing
Username with Query
dr.Read();
Session["uid"] = dr[0].ToString();
Label1.Visible = true;
Page
157
MusicManza-Online Music and Video Portal
dr.Close();
con.Close();
//Code Finish
Response.Redirect("Registration.aspx");
HOME.ASPX.CS
using System;
using System.Collections.Generic;
using System.Linq;
Page
158
MusicManza-Online Music and Video Portal
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
public partial class Home : System.Web.UI.Page
{ protected void Page_Load(object sender, EventArgs e)
{ Label2.Text = Session["Username"].ToString();
}
protected void ImageButton7_Click(object sender, ImageClickEventArgs e)
{
Response.Redirect("ViewCart.aspx");
}
protected void ImageButton10_Click(object sender, ImageClickEventArgs e)
{ Session.RemoveAll();//After Logout at Index page
Session.Clear();
Response.Redirect("Index.aspx");
}
}
REGISTER.ASPX.CS
using System;
using System.Collections.Generic;
using System.Linq;
Page
159
MusicManza-Online Music and Video Portal
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
con.Open();//open connection
SqlDataReader dr = cmd.ExecuteReader();
dr.Read();
UserId++;//increase a value
txtuser.ReadOnly = true;
Page
160
MusicManza-Online Music and Video Portal
dr.Close();
con.Close();
con.Open();//open connection
cmd.Parameters.AddWithValue("@t2", txtname.Text);
cmd.Parameters.AddWithValue("@t3", txtpass.Text);
cmd.Parameters.AddWithValue("@t4", txtadr.Text);
cmd.Parameters.AddWithValue("@t5", txtmob.Text);
cmd.Parameters.AddWithValue("@t6", txtid.Text);
if (i == 1)
Page
161
MusicManza-Online Music and Video Portal
Label2.Visible = true;
CONTACT US.ASPX.CS
using System;
using System.Collections.Generic;
using System.Linq;
Page
162
MusicManza-Online Music and Video Portal
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
msg.Subject = TextBox2.Text;
msg.Body = TextBox3.Text;
Page
163
MusicManza-Online Music and Video Portal
msg.IsBodyHtml = true;
sm.Host = "SmtpClient.gmail.com";
sm.Port = 587;
sm.Credentials = new
System.Net.NetworkCredential("Rsoni7641@gmail.com", "1234567891");
lb1.ID = "lb1msg";
lb1.Height = 20;
lb1.Width = 200;
lb1.BackColor = System.Drawing.Color.Green;
Label3.Visible = true;
CHANGEPASSWORD.ASPX.CS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
Page
164
MusicManza-Online Music and Video Portal
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
Label2.Text = Session["Username"].ToString();
con.Open();//open conection
Page
165
MusicManza-Online Music and Video Portal
cmd.Parameters.AddWithValue("@t1",
Session["user"].ToString());//Passing Username with Query
Panel3.Visible = true;
Label3.Visible = true;
dr.Close();
con.Close();
//Code Finish
Page
166
MusicManza-Online Music and Video Portal
con.Open();//open conection
cmd.Parameters.AddWithValue("@t1", TextBox5.Text);//Passing
Username with Query
cmd.Parameters.AddWithValue("@t2", Session["user"].ToString());//
Passing Password with Query
int i=cmd.ExecuteNonQuery();
Label3.Visible = true;
Session.Clear();
Response.Redirect("Index.aspx");
Page
167
MusicManza-Online Music and Video Portal
FORGOT PASSWORD.ASPX.CS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
Page
168
MusicManza-Online Music and Video Portal
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Net.Mail;
con.Open();//open conection
Page
169
MusicManza-Online Music and Video Portal
msg.To.Add(new MailAddress(TextBox2.Text));
dr.Read();
msg.IsBodyHtml = true;
sm.Host = "smtp.gmail.com";
sm.Port = 587;
sm.Credentials = new
System.Net.NetworkCredential("Rsoni7641@gmail.com", "1234567891");
sm.EnableSsl = false;
//sm.Send(msg);
Label3.Visible = true;
Page
170
MusicManza-Online Music and Video Portal
Label3.Visible = true;
PRODUCT DESCRIPTION.ASPX.CS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
Page
171
MusicManza-Online Music and Video Portal
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
con.Open();//open conection
cmd.Parameters.AddWithValue("@t1",
Session["prid"].ToString());//Passing Username with Query
if (dr.HasRows)
dr.Read();
Label3.Text = dr[0].ToString();
Page
172
MusicManza-Online Music and Video Portal
Label4.Text = dr[1].ToString();
Label5.Text = dr[2].ToString();
Label6.Text = dr[3].ToString();
Image18.ImageUrl = dr[4].ToString();
TextBox1.Text = dr[5].ToString();
Response.Redirect("ViewCart.aspx");
BOLLYWOOD MOVIES.ASPX.CS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
Page
173
MusicManza-Online Music and Video Portal
Label2.Text = Session["Username"].ToString();
sc.addtocart(1004,"HalfGirlfriend", Convert.ToInt32(Session["uid"]),999,
Convert.ToInt32(TextBox1.Text),System.DateTime.Now.ToShortDateString())
;
Page
174
MusicManza-Online Music and Video Portal
Session["prid"] = 1004;
Response.Redirect("ProductDescription.aspx");
Session["prid"] = 1003;
Response.Redirect("ProductDescription.aspx");
Response.Redirect("ViewCart.aspx");
int q = Convert.ToInt32(TextBox1.Text);
Session["amt"] = 999*q;
Response.Redirect("Payment.aspx");
Page
175
MusicManza-Online Music and Video Portal
int q = Convert.ToInt32(TextBox2.Text);
Session["amt"] = 999 * q;
Response.Redirect("Payment.aspx");
int q = Convert.ToInt32(TextBox3.Text);
Session["amt"] = 999 * q;
Response.Redirect("Payment.aspx");
Page
176
MusicManza-Online Music and Video Portal
int q = Convert.ToInt32(TextBox4.Text);
Session["amt"] = 999 * q;
Response.Redirect("Payment.aspx");
Session["prid"] = 1005;
Response.Redirect("ProductDescription.aspx");
Session["prid"] = 1006;
Response.Redirect("ProductDescription.aspx");
Page
177
MusicManza-Online Music and Video Portal
Response.Redirect("ViewCart.aspx");
Session.Clear();
Response.Redirect("Index.aspx");
HOLLYWOOD MOVIES.ASPX.CS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
Page
178
MusicManza-Online Music and Video Portal
Label2.Text = Session["Username"].ToString();
Session["prid"] = 1007;
Response.Redirect("ProductDescription.aspx");
Session["prid"] = 1010;
Response.Redirect("ProductDescription.aspx");
Session["prid"] = 1008;
Response.Redirect("ProductDescription.aspx");
Page
179
MusicManza-Online Music and Video Portal
Session["prid"] = 1009;
Response.Redirect("ProductDescription.aspx");
Page
180
MusicManza-Online Music and Video Portal
int q = Convert.ToInt32(TextBox1.Text);
Session["amt"] = 999 * q;
Response.Redirect("Payment.aspx");
int q = Convert.ToInt32(TextBox2.Text);
Session["amt"] = 999 * q;
Response.Redirect("Payment.aspx");
Page
181
MusicManza-Online Music and Video Portal
int q = Convert.ToInt32(TextBox3.Text);
Session["amt"] = 999 * q;
Response.Redirect("Payment.aspx");
int q = Convert.ToInt32(TextBox4.Text);
Session["amt"] = 999 * q;
Response.Redirect("Payment.aspx");
Response.Redirect("ViewCart.aspx");
Page
182
MusicManza-Online Music and Video Portal
int q = Convert.ToInt32(TextBox5.Text);
Session["amt"] = 999 * q;
Page
183
MusicManza-Online Music and Video Portal
Response.Redirect("Payment.aspx");
int q = Convert.ToInt32(TextBox6.Text);
Session["amt"] = 999 * q;
Response.Redirect("Payment.aspx");
int q = Convert.ToInt32(TextBox7.Text);
Session["amt"] = 999 * q;
Response.Redirect("Payment.aspx");
int q = Convert.ToInt32(TextBox8.Text);
Session["amt"] = 999 * q;
Response.Redirect("Payment.aspx");
Page
184
MusicManza-Online Music and Video Portal
Session["prid"] = 1011;
Response.Redirect("ProductDescription.aspx");
Session["prid"] = 1012;
Response.Redirect("ProductDescription.aspx");
Session["prid"] = 1013;
Response.Redirect("ProductDescription.aspx");
Session["prid"] = 1014;
Response.Redirect("ProductDescription.aspx");
Session.Clear();
Page
185
MusicManza-Online Music and Video Portal
Response.Redirect("Index.aspx");
PUNJABI MOVIES.ASPX.CS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
Page
186
MusicManza-Online Music and Video Portal
Label2.Text = Session["Username"].ToString();
Response.Redirect("ViewCart.aspx");
Session["prid"] = 1015;
Response.Redirect("ProductDescription.aspx");
Session["prid"] = 1016;
Response.Redirect("ProductDescription.aspx");
Session["prid"] = 1017;
Page
187
MusicManza-Online Music and Video Portal
Response.Redirect("ProductDescription.aspx");
Session["prid"] = 1018;
Response.Redirect("ProductDescription.aspx");
Page
188
MusicManza-Online Music and Video Portal
int q = Convert.ToInt32(TextBox1.Text);
Session["amt"] = 999 * q;
Response.Redirect("Payment.aspx");
int q = Convert.ToInt32(TextBox2.Text);
Session["amt"] = 999 * q;
Response.Redirect("Payment.aspx");
Page
189
MusicManza-Online Music and Video Portal
int q = Convert.ToInt32(TextBox3.Text);
Session["amt"] = 999 * q;
Response.Redirect("Payment.aspx");
int q = Convert.ToInt32(TextBox4.Text);
Session["amt"] = 999 * q;
Response.Redirect("Payment.aspx");
Session.Clear();
Response.Redirect("Index.aspx");
Page
190
MusicManza-Online Music and Video Portal
TOLLYWOOD MOVIES.ASPX.CS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
Page
191
MusicManza-Online Music and Video Portal
Label2.Text = Session["Username"].ToString();
Response.Redirect("ViewCart.aspx");
Session["prid"] = 1019;
Response.Redirect("ProductDescription.aspx");
Session["prid"] = 1020;
Response.Redirect("ProductDescription.aspx");
Session["prid"] = 1021;
Response.Redirect("ProductDescription.aspx");
Page
192
MusicManza-Online Music and Video Portal
Session["prid"] = 1022;
Response.Redirect("ProductDescription.aspx");
Page
193
MusicManza-Online Music and Video Portal
int q = Convert.ToInt32(TextBox1.Text);
Session["amt"] = 999 * q;
Response.Redirect("Payment.aspx");
int q = Convert.ToInt32(TextBox2.Text);
Session["amt"] = 999 * q;
Response.Redirect("Payment.aspx");
Page
194
MusicManza-Online Music and Video Portal
int q = Convert.ToInt32(TextBox3.Text);
Session["amt"] = 999 * q;
Response.Redirect("Payment.aspx");
int q = Convert.ToInt32(TextBox4.Text);
Session["amt"] = 999 * q;
Response.Redirect("Payment.aspx");
Session.Clear();
Response.Redirect("Index.aspx");
Page
195
MusicManza-Online Music and Video Portal
ALBUMS.ASPX.CS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
Page
196
MusicManza-Online Music and Video Portal
Label2.Text = Session["Username"].ToString();
Response.Redirect("ViewCart.aspx");
Session["prid"] = 1024;
Response.Redirect("ProductDescription.aspx");
Session["prid"] = 1025;
Response.Redirect("ProductDescription.aspx");
Session["prid"] = 1026;
Response.Redirect("ProductDescription.aspx");
Page
197
MusicManza-Online Music and Video Portal
Session["prid"] = 1027;
Response.Redirect("ProductDescription.aspx");
Session["prid"] = 1028;
Response.Redirect("ProductDescription.aspx");
Session["prid"] = 1029;
Response.Redirect("ProductDescription.aspx");
Session["prid"] = 1030;
Response.Redirect("ProductDescription.aspx");
Page
198
MusicManza-Online Music and Video Portal
Session["prid"] = 1031;
Response.Redirect("ProductDescription.aspx");
Session["prid"] = 1032;
Response.Redirect("ProductDescription.aspx");
Session["prid"] = 1033;
Response.Redirect("ProductDescription.aspx");
Page
199
MusicManza-Online Music and Video Portal
Page
200
MusicManza-Online Music and Video Portal
Page
201
MusicManza-Online Music and Video Portal
int q = Convert.ToInt32(TextBox1.Text);
Session["amt"] = 99 * q;
Response.Redirect("Payment.aspx");
int q = Convert.ToInt32(TextBox2.Text);
Session["amt"] = 99 * q;
Response.Redirect("Payment.aspx");
Page
202
MusicManza-Online Music and Video Portal
int q = Convert.ToInt32(TextBox3.Text);
Session["amt"] = 99 * q;
Response.Redirect("Payment.aspx");
int q = Convert.ToInt32(TextBox4.Text);
Session["amt"] = 99 * q;
Response.Redirect("Payment.aspx");
int q = Convert.ToInt32(TextBox5.Text);
Session["amt"] = 99 * q;
Response.Redirect("Payment.aspx");
int q = Convert.ToInt32(TextBox6.Text);
Session["amt"] = 99 * q;
Response.Redirect("Payment.aspx");
Page
203
MusicManza-Online Music and Video Portal
int q = Convert.ToInt32(TextBox7.Text);
Session["amt"] = 99 * q;
Response.Redirect("Payment.aspx");
int q = Convert.ToInt32(TextBox8.Text);
Session["amt"] = 99 * q;
Response.Redirect("Payment.aspx");
int q = Convert.ToInt32(TextBox9.Text);
Session["amt"] = 99 * q;
Response.Redirect("Payment.aspx");
int q = Convert.ToInt32(TextBox10.Text);
Page
204
MusicManza-Online Music and Video Portal
Session["amt"] = 99 * q;
Response.Redirect("Payment.aspx");
Response.Redirect("ChangePassword.aspx");
Session.Clear();
Response.Redirect("Index.aspx");
Page
205
MusicManza-Online Music and Video Portal
REMIX.ASPX.CS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
Label2.Text = Session["Username"].ToString();
Page
206
MusicManza-Online Music and Video Portal
Session.Clear();
Response.Redirect("Index.aspx");
SEARCH.ASPX.CS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
Page
207
MusicManza-Online Music and Video Portal
con.Open();//open conection
cmd.Parameters.AddWithValue("@t1", TextBox1.Text);//Passing
Username with Query
if (dr.HasRows)
GridView1.DataSource = dr;
GridView1.DataBind();
Page
208
MusicManza-Online Music and Video Portal
else
Label3.Visible = true;
VIEWCART.ASPX.CS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
Page
209
MusicManza-Online Music and Video Portal
Label2.Text = Session["Username"].ToString();
Label3.Visible = false;
con.Open();//open conection
cmd.Parameters.AddWithValue("@t1",
Session["uid"].ToString());//Passing Username with Query
cmd.Parameters.AddWithValue("@t2",
System.DateTime.Now.ToShortDateString());
if (dr.HasRows)
GridView1.DataSource = dr;
GridView1.DataBind();
else
Page
210
MusicManza-Online Music and Video Portal
GridView1.Visible = false;
Label3.Visible = true;
dr.Close();
cmd1.Parameters.AddWithValue("@t3",
Session["uid"].ToString());//Passing Username with Query
cmd1.Parameters.AddWithValue("@t4",
System.DateTime.Now.ToShortDateString());
dr1.Read();
Label4.Visible = true;
Label4.Text = dr1[0].ToString();
Session["amt"] = Label4.Text;
Response.Redirect("Payment.aspx");
Page
211
MusicManza-Online Music and Video Portal
Session["amt"] = Label4.Text;
Response.Redirect("Payment.aspx");
Page
212
MusicManza-Online Music and Video Portal
PAYMENT.ASPX.CS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
Page
213
MusicManza-Online Music and Video Portal
Label2.Text = Session["Username"].ToString();
Label4.Text = System.DateTime.Now.ToShortDateString();
TextBox5.Text = Session["amt"].ToString();
Label6.Visible = false;
con.Open();//open connection
SqlDataReader dr = cmd.ExecuteReader();
dr.Read();
tid++;//increase a value
Label7.Visible = false;
dr.Close();
con.Close();
Page
214
MusicManza-Online Music and Video Portal
string ct = DropDownList2.Text;
if (res == false)
Label5.Visible = true;
else
Page
215
MusicManza-Online Music and Video Portal
con.Open();//open conection
cmd.Parameters.AddWithValue("@t1", Label6.Text);//Passing
Username with Query
cmd.Parameters.AddWithValue("@t3", amt);
cmd.Parameters.AddWithValue("@t4", cno);
cmd.Parameters.AddWithValue("@t5", bnm);
cmd.Parameters.AddWithValue("@t6", ct);
cmd.Parameters.AddWithValue("@t7", Session["uid"].ToString());
int i = cmd.ExecuteNonQuery();
Label5.Visible = true;
Label6.Visible = true;
Label7.Visible = true;
Page
216
MusicManza-Online Music and Video Portal
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
Page
217
MusicManza-Online Music and Video Portal
con.Open();//open connection
SqlDataReader dr = cmd.ExecuteReader();
dr.Read();
ProdId++;//increase a value
TextBox1.ReadOnly = true;
dr.Close();
con.Close();
Page
218
MusicManza-Online Music and Video Portal
con.Open();//open connection
cmd.Parameters.AddWithValue("@t2", TextBox2.Text);
cmd.Parameters.AddWithValue("@t3", TextBox3.Text);
cmd.Parameters.AddWithValue("@t4", TextBox4.Text);
string path="";
if(FileUpload1.HasFile)
FileUpload1.SaveAs(Server.MapPath("~/Uploaded/" +
FileUpload1.FileName));
cmd.Parameters.AddWithValue("@t5", path);
cmd.Parameters.AddWithValue("@t6", TextBox5.Text);
Label3.Visible = true;
Page
219
MusicManza-Online Music and Video Portal
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
Label3.Visible = false;
WEB.CONFIG
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please
visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<connectionStrings>
<add name="dbcon" connectionString="Data Source=(LocalDB)\
v11.0;AttachDbFilename=C:\Users\Dell-Pc\Documents\Visual Studio 2012\
WebSitesMusic@Video\App_Data\Music@Video.mdf;Integrated Security=True"
providerName="System.Data.SqlClient" />
<add name="Music_VideoConnectionString" connectionString="Data
Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\
Music@Video.mdf;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
Page
220
MusicManza-Online Music and Video Portal
<system.web>
<compilation debug="true" targetFramework="4.5">
<assemblies>
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089" />
</assemblies>
</compilation>
<httpRuntime targetFramework="4.5" />
<pages>
<controls>
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit"
namespace="AjaxControlToolkit" />
</controls>
</pages>
</system.web>
</configuration>
BANKSERVICE.CS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
/// <summary>
/// Summary description for BankService
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX,
uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class BankService : System.Web.Services.WebService {
public BankService () {
Page
221
MusicManza-Online Music and Video Portal
[WebMethod]
public bool checkcard(int cno, string ct, string vu, int cvv, string cnm,
int climit)
{
SqlConnection con = new
SqlConnection(ConfigurationManager.ConnectionStrings["dbcon"].ConnectionStrin
g);//Create connection to DB
con.Open();//open connection
string qry = "select * from Cardpayment where cardno=@t1 and
cardtype=@t2 and validupto=@t3 and CVV=@t4 and cardholder=@t5 and
cardlimit>=@t6";//Create a variable
SqlCommand cmd = new SqlCommand(qry, con);
cmd.Parameters.AddWithValue("@t1",cno);
cmd.Parameters.AddWithValue("@t2",ct);
cmd.Parameters.AddWithValue("@t3",vu);
cmd.Parameters.AddWithValue("@t4",cvv);
cmd.Parameters.AddWithValue("@t5",cnm);
cmd.Parameters.AddWithValue("@t6",climit);
SqlDataReader dr = cmd.ExecuteReader();
if (dr.HasRows)
{
return true;
}
else
{
return false;
}
dr.Close();
con.Close();
}
Page
222
MusicManza-Online Music and Video Portal
SHOPCART.CS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
/// <summary>
/// Summary description for ShopCart
/// </summary>
public class ShopCart
{
public void addtocart(int pid, string pname, int uid, int pr, int qt,
string pdate)
{
SqlConnection con = new
SqlConnection(ConfigurationManager.ConnectionStrings["dbcon"].ConnectionStrin
g);//Create connection to DB
con.Open();//open connection
Page
223
MusicManza-Online Music and Video Portal
string qry = "insert into Tempcart
values(@t1,@t2,@t3,@t4,@t5,@t6)";//Create a variable
SqlCommand cmd = new SqlCommand(qry, con);
cmd.Parameters.AddWithValue("@t1", pid);//add value
cmd.Parameters.AddWithValue("@t2", pname);
cmd.Parameters.AddWithValue("@t3", uid);
cmd.Parameters.AddWithValue("@t4", pr);
cmd.Parameters.AddWithValue("@t5", qt);
cmd.Parameters.AddWithValue("@t6", pdate);
}
}
XMLFILE.XML
<?xml version="1.0" encoding="utf-8" ?>
<Advertisements>
<Ad>
<ImageUrl>~/Images/Ae-dil-hai-mushkil.jpg</ImageUrl>
<AlternateUrl>Bollywood movies</AlternateUrl>
<NavigateUrl></NavigateUrl>
<Impressions>50</Impressions>
<Keyword>ad1</Keyword>
</Ad>
<Ad>
<ImageUrl>~/Images/Airlift.jpg</ImageUrl>
<AlternateUrl>Bollywood movies</AlternateUrl>
<NavigateUrl></NavigateUrl>
<Impressions>52</Impressions>
<Keyword>ad2</Keyword>
</Ad>
<Ad>
<ImageUrl>~/Images/jolly llb 2.jpg</ImageUrl>
<AlternateUrl>Bollywood movies</AlternateUrl>
<NavigateUrl></NavigateUrl>
<Impressions>49</Impressions>
Page
224
MusicManza-Online Music and Video Portal
<Keyword>ad3</Keyword>
</Ad>
<Ad>
<ImageUrl>~/Images/ok-jaanu.jpg</ImageUrl>
<AlternateUrl>Bollywood movies</AlternateUrl>
<NavigateUrl></NavigateUrl>
<Impressions>51</Impressions>
<Keyword>ad4</Keyword>
</Ad>
</Advertisements>
STYLESHEET.CSS
body
{
}
.img:hover
{
cursor: pointer;
height: auto;
width: auto;
transform: scale(1.1);
-webkit-transform: scale(1.1);
box-shadow: 3px 3px 1px #fff;
}
.rot:hover
{
transition: width 2s, height 2s, transform 2s;
transform: rotate(360deg);
}
.Panes
{
background-image: url(Skull.png);
Page
225
MusicManza-Online Music and Video Portal
}
.shadow {
width: 350px;
height: 400px;
background-color: #F0F0F0;
-webkit-box-shadow: 0px 0px 10px rgba(0,0,0,1);
color:#0000FF;
opacity: 0.5;
}
#footer
{
position: fixed;
bottom:0px;
height: 180px;
width: 100%;
}
#foot
{
position:fixed;
bottom: 0px;
height: 120px;
width: 40%;
}
.header
{
height: 50px;
background: #000;
border: 1px solid #fff;
position:fixed;
width: 100%;
margin: 0px auto;
}
#had
{
position:fixed;
height: 100px;
width: 100%;
margin: 0px;
}
ul
{
margin: 0;
padding: 0;
Page
226
MusicManza-Online Music and Video Portal
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
ul li
{
list-style: none;
float: left;
margin: 10px;
width: 100px;
height: 100px;
line-height: 100px;
text-align: center;
background: #fff;
border: solid;
border-radius: 50%;
position: relative;
overflow: hidden;
color: #262626;
font-size: 50px;
z-index: 1;
transition: .5s ease-in-out;
}
ul li:before
{
content: '';
width: 100px;
height: 100px;
position:absolute;
top: 0;
left: -100%;
background: #ccc;
z-index: -1;
border-radius: 50%;
transform: scale(0);
transition: .3s ease-in-out;
}
ul li:after
{
content: '';
width: 50%;
Page
227
MusicManza-Online Music and Video Portal
height: 100%;
position: absolute;
right: -100%;
top: 0;
background: rgba(255,255,255,.3);
transition: .5s ease-in-out;
}
ul li:hover:before
{
left: 0;
transform: scale(.9);
}
ul li:hover:after
{
right: 0%;
}
ul li:nth-child(1):before
{
background:#3b5999;
}
ul li:nth-child(2):before
{
background:#55acee;
}
ul li:nth-child(3):before
{
background:#0077B5;
}
ul li:nth-child(4):before
{
background:#e4405f;
}
ul li .fa
{
transition: .3s ease-in-out;
}
ul li:hover .fa
{
color: #fff;
}
Page
228