Beruflich Dokumente
Kultur Dokumente
PROJECT REPORT
Submitted by
Prabjot Singh
Registration 3010060036
BCA-MCA(2006-2011)
LSTCA
Lovely Professional University, Phagwara
January to June 2011
DECLARATION
I hereby declare that the project work entitled “ Project Transaction” is an authentic record of
my own work carried out at Appin Technologies as requirements of Industry Internship
project for the award of degree of MCA, Lovely Professional University, Phagwara, under
the guidance of Miss Ramandeep kaur during January to June, 2011.
Prabjot Singh
3010060036
Date: ___________________
Certified that the above statement made by the student is correct to the best of our knowledge
and belief.
ACKNOWLEDGEMENT
I owe a great many thanks to a great many people who helped and supported me during this
project. It is of immense pleasure and profound privilege to express my gratitude and
indebtedness along with sincere thanks to Mr. Prashant.k.Shrivastva, Appin Technologies
for providing me the opportunity to work for a project on
“PROJECT TRANSACTION”
I want to formally acknowledge my sincerest gratitude to all those who assisted and guided
me in completing this project report and making my training a memorable and successful
experience. I would also thank my University and my faculty members without whom this
project would have been a distant reality. I am beholden to my family and friends for their
blessings and encouragement.
I would like to thank Mr. Prashant.k.Shrivastva, Appin Technologies for the support,
encouragement and valuable suggestion.
Prabjot Singh
Content:-
(PROJECT TRANSACTION SYSTEM)...............................................................................................................1
DECLARATION......................................................................................................................2
ACKNOWLEDGEMENT.......................................................................................................3
Organization overview.............................................................................................................9
About Appin.........................................................................................................................................................9
Appin Knowledge Solutions................................................................................................................................9
Milestones:........................................................................................................................................................10
PROJECT OVERVIEW.......................................................................................................12
METHODOLOGY ADOPTED............................................................................................19
FEASIBILITY ANALYSES..................................................................................................24
Economical Feasibility.....................................................................................................................................24
Technical Feasibility.........................................................................................................................................25
Operational Feasibility.....................................................................................................................................25
BEHAVIORAL FEASIBILITY...........................................................................................................................26
Scheduled Feasibility........................................................................................................................................26
Implementation Feasibility...............................................................................................................................26
PROJECT PLAN...................................................................................................................27
TEAM STRUCTURE.........................................................................................................................................27
DEVELOPMENT SCHEDULE.........................................................................................................................27
PHASES INVOLVED IN THE PROJECT.........................................................................................................27
SYSTEM DESIGN.................................................................................................................27
INTRODUCTION..............................................................................................................................................27
The system needs the following information for processing:............................................................................28
CHARACTERISTICS OF WELL DESIGNED SYSTEM...................................................................................28
Modules...................................................................................................................................29
Developer..........................................................................................................................................................29
Client.................................................................................................................................................................30
User..........................................................................................................................................30
Admin......................................................................................................................................38
DATABASE TABLES...........................................................................................................45
Client Module....................................................................................................................................................46
Developer Module.............................................................................................................................................48
Admin Module...................................................................................................................................................50
Testing.....................................................................................................................................51
Functional testing.............................................................................................................................................51
Structural testing...............................................................................................................................................52
Levels of testing.................................................................................................................................................52
Some test Cases for Testing project transaction:..............................................................................................54
Project status..........................................................................................................................55
User manual............................................................................................................................56
Home page...............................................................................................................................56
Stored procedures..................................................................................................................75
Source code.............................................................................................................................85
Summary...............................................................................................................................133
References.............................................................................................................................134
Organization overview
About Appin:
Appin Technologies is a global Information Security company focused on training,
consulting and outsourcing services. The company was formed as a merger of two entities,
XIRS Ventures Inc. based in Austin Texas and XIRS Appin incubated inside IIT, Delhi India.
Later the name XIRS was dropped from the company and the merged entity is known as
Appin Technologies. From USA & India, the company has now expanded its operations to
Europe, Africa and South East Asia as well.
Appin Knowledge Solutions is a part of Appin Technologies and the premier provider of Hi-
technology Certification, courseware as well as online, computer based and instructor led
training across the world. Appin Knowledge Solutions is primarily an IIT Alumni company
as a majority of Board members, Shareholders, Advisors and Senior Management hail from
different IIT’s across the country.
Appin Knowledge Solutions Pvt. Ltd., brain behind Appin School of Niche
Technology, is an affiliate of Appin Technologies based in Austin, Texas (US) & known
worldwide for Education and Training in Niche Technology Certification Programmers.
Appin Technology labs training division of Appin Knowledge solution is imparting Hi-
technology training to young professionals in niche areas including
Information Security
Embedded systems and Robotics
Nanotechnology
Networking and Communications
Secured Programming in .NET/JAVA
Milestones:
Rated as among the top 5 IT professional course offerings in India -The Week Magazine.
Approved by the International Association of Distance Learning (IADL), UK
Appreciated by the President of India Dr. A.P.J. Abdul Kalam at Rashtrapati Bhawan for
our entrepreneurial spirits and our flagship products on Information Security and
Nanotechnology
Symantec( Norton Antivirus) Registered Partner , Affiliated with Grisoft (AVG Anti-
Virus )
First one in the world to Launch CBTS certification course in Nanotechnology
First one in India to publish book on Nanotechnology along with BPB Publications.
Reached over 83000 customers via training programs and products
Training programs/products sold in over 84 countries
Definition:
Project Transaction is a computerized, online solution to the various problems faced by
various users like Buyer, Provider or may be professionals wishing to do online projects
bidding and then get the different buyer requirements and providing online business for the
provider easily.
project according to user requirements. The overall purpose of this project is to make it user
friendly & provide flexible interface.
An allied objective is to highlight the best practices inherent within the current process and
adapt them to the requirements of the updated Project Transaction.
PROJECT OVERVIEW
Overview: Project transaction is the site for on-line work where businesses connect with
independent professionals to get work done. It delivers an immediate, cost-effective and
flexible way to hire, manage and pay independent professionals and contractors’ on-line.
Project Transaction is a market place for project buyers and transaction programmers. In this
aspect, we help transaction programmers to get project from project managers. Customers can
post their requirements through our site. After making a legal agreement, Project Transaction
programmer immediately start working on project. Once the project is done it is handover to
project manager and he does a user testing, if all goes well they make a full payment
otherwise project return to Project Transaction programmer to make changes.
In this site registration process is there for each of the user connected to this site anyhow.
The Administrator of the site verifies the User after his registration and if satisfied, assigns
him an ID and password.
For a project current system is manual customer had to go to the company for a project. To
control, maintain and retrieve the important data and information is a major problem in
system. The existing system is of manual type and the manual system includes the
maintaining of various registers, ledgers manually.
Problem of Updating:
In the existing system, since everything is stored in the registers, Software
Requirement Document is prepared and every time the requirements changes we
have to change the document manually which is much difficult.
Time and Retrieval Problem:
Retrieval of information is time consuming because of large volumes of data and
trace particular information a large number of records. Also companies have to
arrange meetings with the customers to discuss about the project which is time
consuming for customer as well as company.
Storage Problem:
The storage is prone to damage with time and due to other environmental and
accidental factors. Like SRS and other important documents.
Not Portable:
It is difficult to carry information. Paper work is difficult to carry and manage.
Not Secure:
Existing system does not secure because any unauthorized person can access and
update data.
So there is a need of online project bidding.
Purpose
The purpose of this document is to present a detailed description of the Project
transaction System. It will explain the purpose and features of the website, the interfaces,
what it will do, the constraints under which it must operate and how it will react to external
users.
System Environment
The project transaction website has four active actors and one cooperating system.
The visitors, Clients, or user can access the Online Projects through the Internet. Developer
also acts as an actor who develops the projects and bid on them. The Editor accesses the
entire system directly.
Admin
Name Admin
Trigger Perform admin operations.
Precondition Admin have specific username and password.
Basic Path Enter username and password on client login page
Postcondition Welcome admin.
Exception The attempt may be abandoned due to wrong username and
password.
Other None
User
Name user
Trigger The user access the website and directly purchase project
Precondition The Web is displayed with all the projects
Basic Path 1. The user goes to website.
2. Chooses the technology in which he wants the project.
3. Open the category.
4. Chose the project.
5. Select Purchase.
6. Select payment mode.
7. Make payment.
8. Download the project.
Post condition The selected project is downloaded to the client machine.
Exception The user may abandon the purchase.
Client
Name Client
Trigger The client operations.
Precondition The user registers himself and be a client.
Basic Path Enter username and password on Client login page
Post condition Client is logged in.
Exception The attempt may be abandoned due to wrong username and
password.
Other None
Bid
Name bid
Trigger The developer selects project to bid
Precondition The client has posted projects to make.
Basic Path 1. Login as Developer
2. On home page select the project to bid and click on
bid option.
3. Enter the bid
4. Enter the time of completion.
Developer
Name Developer
Trigger The developers operations.
Precondition The developer must registers himself.
Basic Path Enter username and password on developer login page
Postcondition Developer is logged in.
Exception The attempt may be abandoned due to wrong username and
password.
Other None
Non-Functional Requirements
The Online Projects will be on a server with high speed Internet capability. The
physical machine to be used will be determined by the Historical Society. The website
developed here assumes the use of a tool such as high connection between the Web pages and
the database. The speed of the Clients connection will depend on the hardware used rather
than characteristics of this system.
The Administrator will contain the Access to the database.
Objective of this project is to provide a complete environment for project buyers and
freelance programmers where they meet to each other and discuss all aspects about their
needs, and make a complete database containing all the information regarding the projects of
freelance programmers and requirement of project buyers. Project transaction offers
companies a flexible and cost-effective way to get work done on-line because there are
different projects available for designing at different time period with different costs. There
are independent professionals, which provide independent service to each user.
METHODOLOGY ADOPTED:
Because of object oriented support in .NET, various concepts are already there but for the
efficient management of system components, Component based Software Engineering will
also be exercised which will help in a resultant library of components, the benefit of which
will be reusability and fast development.
OVERVIEW OF .NET
The Microsoft .NET Framework is a software framework that can be installed on computers
running Microsoft Windows operating systems. It includes a large library of coded solutions
to common programming problems and a virtual machine that manages the execution of
programs written specifically for the framework. The .NET Framework is a Microsoft
offering and is intended to be used by most new applications created for the Windows
platform.
The framework's Base Class Library provides a large range of features including user
interface, data and data access, database connectivity, cryptography, web application
development, numeric algorithms, and network communications. The class library is used by
programmers, who combine it with their own code to produce applications.
Programs written for the .NET Framework execute in a software environment that manages
the program's runtime requirements. Also part of the .NET Framework, this runtime
environment is known as the Common Language Runtime (CLR). The CLR provides the
appearance of an application virtual machine so that programmers need not consider the
capabilities of the specific CPU that will execute the program. The CLR also provides other
important services such as security, memory management, and exception handling. The class
library and the CLR together constitute the .NET Framework.
Interoperability
Common Language Runtime Engine
Language Independence
Base Class Library
Simplified Deployment
Security
Portability
These are the new features in .net framework 4.0 which help to make an efficient and
effective website.
ASP.NET:
ASP.NET is a web application framework developed and marketed by Microsoft to allow
programmers to build dynamic web sites, web applications and web services. It was first
released in January 2002 with version 1.0 of the .NET Framework, and is the successor to
Microsoft's Active Server Pages (ASP) technology. ASP.NET is built on the Common
Language Runtime (CLR), allowing programmers to write ASP.NET code using any
supported .NET language.
SQL Server:
SQL Server 2008, was released on August 6, 2008 and aims to make data management self-
tuning, self organizing, and self maintaining with the development of SQL Server Always On
technologies, to provide near-zero downtime. SQL Server 2008 also includes support for
structured and semi-structured data, including digital media formats for pictures, audio, video
and other multimedia data. SQL Server 2008 can be a data storage backend for different
varieties of data: XML, email, time/calendar, file, document, spatial, etc as well as perform
search, query, analysis, sharing, and synchronization across all data types.
Other new data types include specialized date and time types and a Spatial data type for
location-dependent data. Better support for unstructured and semi-structured data is provided
using the new FILESTREAM data type, which can be used to reference any file stored on the
file system. Backing up and restoring the database backs up or restores the referenced files as
well. SQL Server 2008 also natively supports hierarchical data, and includes T-SQL
constructs to directly deal with them, without using recursive queries
Analysis Services
SQL Server 2008 helps enable organizations to build comprehensive, enterprise-scale
analytic solutions that deliver actionable insights through familiar tools.
Compression
Use the built-in Data Compression and Backup Compression features of SQL Server 2008 R2
to reduce data storage costs and help to ensure optimal performance for your mission-critical
applications.
Data Mining
SQL Server 2008 empowers informed decisions with predictive analysis through complete
and intuitive data mining, seamlessly integrated throughout the Microsoft BI platform, and
extensible into any application.
High Availability—Always On
SQL Server 2008 Always On Technologies provides a full range of options to minimize
downtime and maintain appropriate levels of application availability.
Integration Services
SQL Server 2008 provides a scalable enterprise data integration platform with exceptional
ETL and integration capabilities, enabling organizations to more easily manage data from a
wide array of data sources.
Programmability
Discover how SQL Server 2008 enables developers to build powerful, next-generation
database applications with the .NET Framework and Visual Studio Team System.
Security
Microsoft SQL Server 2008 offers security feature enhancements that help provide effective
management of security feature configuration, strong authentication and access control,
powerful encryption and key management capabilities, and enhanced auditing.
ADO.NET allows you to interact with relational databases and other data sources. Quite
simply, ADO.NET is the technology that .NET applications use to communicate with a
database, whether they need to add a new customer record, log a purchase, or display a
product catalogue. Almost every piece of software ever written works with data. In fact, a
typical Internet application is often just a thin user interface shell on top of a sophisticated
database program that reads and writes information from a database on the web server. At its
simplest, a database program might allow a user to perform simple searches and display
results in a formatted table. A more sophisticated .NET application might use a database
behind the scenes to retrieve information, which is then processed and displayed in the
appropriate format and location in the browser. The user might not even be aware that the
displayed information originates from a database. Using a database is an excellent way to
start dividing the user interface logic from the content, which allows you to create a site that
can work with dynamic, easily updated data. .NET has a few characteristics that make it
different from previous data access technologies.
Many ADO.NET tasks revolve around a new object called the DataSet. The DataSet is a
cache of information that has been queried from your database. The innovative features of the
Data Set are that it’s disconnected and can store more than one table.
Disconnected Access
Disconnected access is the one of the most important characteristics of ADO.NET and
perhaps the single best example of the new .NET philosophy for accessing data. With
previous database access technologies, it’s easy to hold open a connection with the database
server while your code does some work. This live connection allows you to make immediate
updates, and you can even see the changes made by other users in real time.
FEASIBILITY ANALYSES
Economical Feasibility
Economic feasibility looks at the financial aspects of the project. Economic feasibility
concerns with the returns from the investments in a project. It determines whether it is
worthwhile to invest the money in the proposed system. It is not worthwhile spending a lot of
money on a project for no returns.
The tools and technology used for the development of this software are purchased
economically.
Technical Feasibility
Technical feasibility determines whether the work for the project to be done with the
represent equipments, current procedure, existing software technology & available personnel.
If new technology is needed, then what alternatives will be needed in the present structure?
This will require an examination of the present system.
The following technical feasibility areas were probed during the feasibility
Study phase:
The necessary technology like front end development tool, back end database technology and
various other tools namely reporting tool, installation tools etc, are available for developing
the system.
The proposed equipments have the technical capacity to hold the data required for the system.
The front end & backend technologies provide a way to preserve the accuracy, ease of access
& data security.
Operational Feasibility
Operational feasibility states that the system should work under condition for to be
operationally feasible or not. Operational feasibility covers two aspects. One is the technical
performance aspect and other is the acceptance of the “Project Transaction”. Operational
feasibility determines how the proposed system will fit in the current operations and what, if
any job restructuring and retraining may be needed to implement the system. In the system
operational feasibility checks, whether the user who is going to use the system is able to work
with the software’s with which the system is coded and also the mind of the user going to use
the system. If the user does not understand or is not able to work on the system further
development is of waste.
The system will meet the operational requirements of the organization like:
1. System performance
2. Accessibility of information
3. User acceptance
4. Integration with other systems
BEHAVIORAL FEASIBILITY
Behavioral feasibility estimates the reaction of the user staff towards the developments of the
computerized system. In case of this system, the staff was completely in favor of automating
the process of salary generation as it saved their precious time energy and moreover the
system when implemented would help remove inconsistencies, redundancy error that might
be associated with existing system. So it might be said that the behavioral feasibility analysis
yielded positive results. Hence the system is Behavioral feasible.
Scheduled Feasibility
System Analysis
Projects are initiated with specific deadline as time is one of the critical factors in the
development of any system. To check whether the project can be completed within the time
bounds it is undertaken as part of schedule feasibility study.
We were three members working on the project and we had the project duration of four
months only. So we have tried our level best to fulfill each and every requirement of our
client. Thus the system has schedule feasibility.
Resource Feasibility:
Resource Feasibility study is undertaken to ensure that the organization has the resources to
succeed. The system is developed using Microsoft Visual Studio.Net 2005 and Microsoft
SQL Server. All these are already present in the company and are readily available to us. So
the project is resource feasible.
Implementation Feasibility
The system is developed using Microsoft Visual Studio .Net as front end and Microsoft SQL
Server as backend and so doesn’t require installation of any additional software for the
implementation. Hence there is no additional cost associated with the implementation.
Moreover, the system needs to be installed only on one PC. This ensures implementation
feasibility.
PROJECT PLAN
TEAM STRUCTURE
We are two team members in this project. My project guide is very able and helpful. Initially,
I started with the analyses of the existing system and the problems faced with it. Thereafter,
the solution strategy i.e. how to replace the existing manual system with the online system
was found out. I did very hard work and spend great deal of my time in learning new things
in various technologies that were new for me.
DEVELOPMENT SCHEDULE
The work for the development of the new system commenced after about a month of joining
because .Net 4.0 have some new feature from which we were not aware and it take some time
to understand and learn about those new features. Thereafter I was in continuous touch with
the management staff of appin technologies.
Admin module
Client module
developer module
SYSTEM DESIGN
INTRODUCTION
System design is the process of developing specifications for a candidate system that meet
the criteria established in the system analysis. Major step in system design is the preparation
of the input forms and the output reports in a form applicable to the user. The main objective
of the system design is to make the system user friendly.
System design is the creative act of invention, developing new inputs, a database,
offline files, procedures and output for processing business to meet an organization objective.
System design builds information gathered during the system analysis.
The input design is the link between the information system and the user. It comprises
developing specification and procedure for data preparation and those steps that are necessary
to put transaction data into a usable form for processing data entry. The activity of putting
data into the computer for processing can be achieved by instructing the computer to read
data from a written or printed document or it can occur by having people key data directly
into the system. The design of inputs focuses on controlling the amount of inputs required,
controlling errors, avoiding delay, avoiding extra steps and keeping the process simple.
Accessibility
Decision Making Ability
Economy
Flexibility
Reliability
Simplicity
Modules
Admin administrator has all the authority. This module has functionality like
Developer developers are who, who will make the projects and also can bid for the
projects specified by the client. This module will have the functionality like:-
Can Upload Requested Project
Can bid on the project
Show the personal account
Can communicate to the clients.
Clients are who will post for the project according to their specification. This module will
have the functionality like:-
Post a project
Receive bids on your project immediately
Compare quotes and ask questions
Select a bidder
Create a payment for the first milestone or deliverable
Work commences!
Once you are completely happy, release payment
User: - are the simple users who will search for the project on the application and buy it
directly through the shopping cart.
They can search for the project
User can purchase the project using shopping cart
(Level - 0)
ENTS (buyers)
Match UserName
CLIENT REG
Match Data
Match Password
ion
2.0
1.0
Show Projects
Login Get data View Projects
PROJECT MASTER
If success
Get Data
3.0
Request the project
Insert data
PROJECT REQUEST
Update data
7.0
View All 4.0
Req. projects
Show Messages
Bids View all msg
CLIENT MSGMASTER
Get data
View data
5.0
Clients View account
Account
BID MASTER CLIENT ACCOUNT
Detail
Get Data
6.0
Update Update data
Profile CLIENT REG
Authentication
8.0
7.0 Show all client’s requested Projects
Login Get data
PROJECT REQUEST
View Detail
If success
BID MASTER
9.0
Show developing projects
View detail
DEVELOPINGPROJECT
getdata
10.0
Bid on the requested project
Insert data
BIDMASTER
11.0
Developer View account
Account DEVELOPER ACCOUNT
Detail
Get Data
12.0
Update data
Update
Profile DEVELOPER REG
ADMIN
Match UserName
Authentication
Match Password
7.0
Login
7.0
Manage the website data
COUNTRY MASTER (insert, update, delete data) CLIENT REG
User:-
Visitor
Brief Description
The visitor can only see the site data or projects. To purchase them he has to register himself
first.
Client Module:-
Brief Description
The Client submits their own requirements for the project.
The Visitor has to register himself to purchase the project. State-transition diagram
summarizes the Process.
Admin
Definition:
An entity-relationship (ER) diagram is a specialized graphic that illustrates the
interrelationships between entities in a database. ER diagrams often use symbols to represent
three different types of information. Boxes are commonly used to represent entities.
Diamonds are normally used to represent relationships and ovals are used to represent
attributes.
Also Known As: ER Diagram, E-R Diagram, entity-relationship model
A use case specifies the behaviour of a system or a part of a system and is a description of a
set of sequences of actions, including variants that a system performs to yield an observable
result of value to an actor. A use case describes a set of sequences, in which each sequence
represents the interaction of the things outside the system (its actors) with the system itself
(and its key abstractions). These behaviours are in effect system-level functions that you use
to visualize, specify, construct, and document the intended behaviour of your system during
requirements capture and analysis. A use case represents a functional requirement of your
system as a whole.
DATABASE TABLES
The overall objective in the development of the database technology has been to treat data as
an organizational resource and as an integrated whole. Database management system allows
data to be protected and organize separately from other resources. Database is an integrated
collection of data. The most significant of data as seen by the programs and data as stored on
the direct storage access storage devices. This is the difference between logical and physical
data. The organization of data in the database aims to achieve free major objectives:
Data Integration
Data Integrity
Data Independence
The databases are implemented using a DBMS package. Each particular DBMS has unique
characteristics and general techniques for Database Design.
The proposed Management Information System stores the information relevant for processing
in the Microsoft SQL Server Database. This MS SQL Server contains tables, where each
table is called a field or column. A table also contains records which is a set of fields. All
records, in a table the same set of fields with different information. Each table contains key
fields that establish relationships in a MS SQL server database and how the records are
stored. There are primary key fields that uniquely identify a record in a table. There are also
fields that contain the primary key from another table called foreign keys.
It is a known fact that the program cannot be written until the data are defined, so the
database must be defined. The starting point for this process is data dictionary. The records
data structures and elements to be stored in each database are identified and extracted. Next
the analyst codes the source statements library. Eventually, the programmer will incorporate
the source code into the various programs, thus assuring consistency and simplifying the
coding process. The databases have been designed in such a way that there is no duplication
of information and loss of information.
Client Module
Table -1
Table Name: Client Registration
Primary Key: User Name
Table -2
Table Name: Project Request
Primary Key: Request ID
Project
Table -3
Table Name: Clients Account
Primary Key: AccountID
Table -4
Table Name: Clients Message Master
Primary Key: ClientMsgID
Developer Module
Table -5
Table Name: Developer Registration
Primary Key: User Name
Table -6
Table Name: Bid Master
Primary Key: Bid ID
Table -7
Table Name: Developing Projects
Primary Key: DevelopingProjectID
Table -8
Table Name: Developer Account
Primary Key: Account ID
Table -9
Table Name: Upload Project
Primary Key: ProjectUploadID
Attributes Data Type Size Description
ProjectUploadID Int Auto generate
ClientID Int ClientID who request the
Project
DeveloperID Int DeveloperID who Upload the
Project
ProjectID Int Project ID (reference to Project
Requested table)
UploadDate Datetime Upload date
UploadPath Varchar 50 Uploaded Project Path
Admin Module
Table -10
Table Name: Country Master
Primary Key: CountryID
Table -11
Table Name: Security Question Master
Primary Key: QuestionID
Table -12
Table Name: Language Master
Primary Key: LanguageID
Table -13
Table Name: Databse Master
Primary Key: DatabseID
Table -14
Table Name: Project Master
Primary Key: ProjectID
Testing
White box testing is performed to reveal problems with the internal structure of a program.
This requires the tester to have detailed knowledge of the internal structure. A common goal
of white box testing is to ensure a test case exercises every path through a program. A
fundamental strength that all white box strategies share is that the entire software
implementation is taken into account during testing, which facilitates error detection even
when software specification is vague or incomplete. The effectiveness or thoroughness of
white box testing is commonly expressed in terms of test or code coverage metrics, which
measure the fraction of code exercised by test cases.
Levels of testing:
Unit Testing:- This testing is done for each module of the program to ensure the validity of
each module. This type of testing is done usually by developers by writing test cases for each
scenarios of the module and writing the results occurring in each step for each module.
Intergration Testing:- By making unit testing for each module as explained the process of
integrated testing as a whole becomes simpler. This is because by correcting mistakes or bugs
in each module the integration of all units as a system and testing process becomes easier.
This testing is needed because unit testing does not cover the aspects of how the system
would behave or what error would be reported when modules are integrated .This is done in
the level of integration testing.
specified 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
components that have successfully passed integration testing and also the software system
itself integrated with any applicable hardware system(s). The purpose of integration testing is
to detect any inconsistencies between the software units that are integrated together
(called assemblages) or between any of the assemblages and the hardware. System testing is a
more limited type of testing; it seeks to detect defects both within the "inter-assemblages" and
also within the system as a whole.
User Acceptance Testing:- User acceptance testing (UAT), is the term used when the
acceptance tests are performed by the person or persons who will be using the live system
once it is delivered. If the system is being built or developed by an external supplier, this is
sometimes called customer acceptance testing (CAT). The UAT or CAT acts as a final
confirmation that the system is ready for go-live. A successful acceptance test at this stage
may be a contractual requirement prior to the system being signed off by the client.
Regression Testing:- We all know that development life cycle is subjected to continuous
changes as per the requirements of user. Suppose if there is a change in the existing system
which has already been tested then to insure that these changes made to the existing system
do not affect the existing functionality regression testing is needed.
1) Title: Enter the values in the Textbox of the client and developer name.
Test case: Entering values
Step: Try to give different values or blank textbox etc.
Expected result: values should be accepted according to their data type and error msg should
be shown for blank textbox.
Actual result: On the wrong inputs error message is shown otherwise the values are
accepted.
1) Title: Enter the values in the Textbox of the client and developer details.
Test case: Entering values
Step: Try to give different values or blank textbox etc.
Expected result: valuec should be accepdted according to their data type.
Actual result: On the wrong inputs error message is shown other wise the values are
accepted.
Project status
The project is completed.
User manual
Home page
.Net Projects
Java Projects:
PHP Projects:
Click the Buy Now button open Pay Pal site and pay the amount of project using
credit card
Show the download button after pay the price user can download project
CLIENT:
Client Login
Developer:-
My Project Definition:
project name
bid date
bid amount
days of completion
job type.
Update Profile:
Admin:
Home:
Add Project:
Add/Delete Projects:
Admin can add or delete the projects from the website By click on delete or edit to edit
information.
Delete Developer:
Delete Clients:
Developer:
Login:
Home:
Developing …..
Update Profile:
Account
Information:
Project Purchasing:
Download Project:
About Us:
Source code:-
Stored procedures
@mode as varchar(50)='',
@devID as integer=0,
@ClientID as integer=0,
/*Add Project*/
@projectnm as varchar(100)='',
@projectDescr as varchar(MAX)='',
@price as integer =0,
@langID as integer=0,
@databseID as integer=0,
@ProjectPath as varchar(MAX)='',
@contry as varchar(30)='',
@language as varchar(50)='',
@database as varchar(50)='',
@securityQue as varchar(100)=''
AS
if @mode='ShowDevloperDate'
SELECT FirstName, DevloperID, UserName, EmailID
FROM DevloperReg
if @mode='DeleteDev'
DELETE FROM DevloperReg
WHERE (DevloperID = @devID)
if @mode='ShowDeveloperInfo'
SELECT DR.DevloperID, DR.FirstName, DR.LastName, DR.Address, DR.City,
DR.State, CM.ContryName, DR.Gender, DR.UserName, DR.Password, DR.EmailID,
DR.MobileNo
FROM DevloperReg AS DR INNER JOIN
ContryMaster AS CM ON DR.ContryID = CM.ContryID
WHERE (DR.DevloperID = @devID)
if @mode='ddllanguage'
select * from LanguageMaster
if @mode='ddldatabase'
select * from DatabaseMaster
if @mode='AddProject'
INSERT INTO ProjectMaster
(ProjectName, Projectdesc, Amount, LanguageID, DatabaseID, Path) VALUES
(@projectnm,@projectDescr,@price,@langID,@databseID,@ProjectPath)
if @mode='ClientA/C'
SELECT PR.RequestID, PR.ProjectName, PR.RequestDate, PR.JobType,
CA.PaidAmount, CA.RemainingAmount, CA.Price
FROM ClientAccount AS CA INNER JOIN
ProjectRequest AS PR ON CA.ProjectID = PR.RequestID
WHERE (CA.ClientID = @ClientID)
if @mode='showProDetail'
SELECT PR.ProjectName, DP.Isdevloped, DP.StartDate, PR.JobType
FROM DevloperReg AS DR INNER JOIN
if @mode='ShowClientDate'
SELECT FirstName, ClientId, UserName, EmailID
FROM ClientReg
if @mode='DeleteClient'
DELETE FROM ClientReg
WHERE (ClientID = @ClientID)
if @mode='ShowClientInfo'
SELECT CR.ClientId, CR.FirstName, CR.LastName, CR.City, CR.State,
CM.ContryName, CR.Gender, CR.Dateofbirth, CR.UserName,
CR.Password,CR.MobileNumber, CR.EmailID
FROM ClientReg AS CR INNER JOIN
ContryMaster AS CM ON CR.ContryID = CM.ContryID
WHERE(CR.ClientId = @ClientID)
if @mode='showProDetailforClient'
SELECT PR.RequestID AS ProjectNo, PR.ProjectName, PR.JobType AS Language,
DevlopingProject.Isdevloped AS Status
FROM ProjectRequest AS PR INNER JOIN
ClientReg AS CR ON PR.ClientID = CR.ClientId INNER JOIN
DevlopingProject ON PR.RequestID = DevlopingProject.RequestedPeojectID
WHERE (CR.ClientId = @ClientID)
if @mode='addcontry'
insert into ContryMaster (ContryName) values (@contry)
if @mode='addlanguage'
insert into LanguageMaster (LanguageName) values (@language)
if @mode='adddatabase'
insert into DatabaseMaster (DatabaseName) values (@database)
if @mode='addquestion'
insert into SecurityQuestionMaster (Question) values (@securityQue)
RETURN
Stored Procedure2:StoredProcedure1
ALTER PROCEDURE StoredProcedure1
@mode as varchar(50)='',
@firstname as varchar(50)='',
@lastname as varchar(50)='',
@address as varchar(50)='',
@city as varchar(50)='',
@zipcode as varchar(50)='',
@state as varchar(50)='',
@contryid as integer=0,
@gender as varchar(50)='',
@dateofbirth as varchar(20)='',
@username as varchar(50)='',
@password as varchar(50)='',
@emailid as varchar(50)='',
@mobileno as varchar(12)=0,
@securityq as integer=0,
@answer as varchar(50)='',
@contry as varchar(30)='',
@language as varchar(30)='',
@database as varchar(30)='',
@mode1 as varchar(50)='',
@username1 as varchar(50)='',
@password1 as varchar(50)='',
@clientusername as varchar(50)='',
/* project Request */
@clientid as integer=0,
@projectname as varchar(50)='',
@longdisc as varchar(Max)='',
@jobtype as varchar(MAX)='',
@requestdate as datetime=0,
@budget as varchar(20)='',
@getprojectid as integer=0,
@devloperusername as varchar(50)='',
@requestedprojectid as integer=0,
@requestprojectid as integer=0,
@isdevloped as varchar(10)='',
@projectamount as integer=0,
@paidamt as integer=0,
@remamt as integer =0,
@sendfrom as varchar(50)='',
/* upload project*/
@subject as varchar(50)='',
@message as varchar(max)='',
@msgdate as datetime=0,
@projectpath as varchar(max)='',
@clientmsgid as integer=0,
@price as integer=0,
@projectAmt as bigint=0,
@ProjectStatus as varchar(15)='',
@Lang as varchar(20)='',
@Pur_projectid as integer=0,
@bidid as integer=0
AS
if @mode='insertregdata'
insert into ClientReg
(FirstName,LastName,Address,City,ZipCode,State,ContryID,Gender,Dateofbirth,UserName,
Password,EmailID,MobileNumber,SecurityQuestionID,Answer) values
(@firstname,@lastname,@address,@city,@zipcode,@state,@contryid,@gender,@dateofbirt
h,@username,@password,@emailid,@mobileno,@securityq,@answer)
if @mode='contry'
select * from ContryMaster
if @mode='securityque'
select * from SecurityQuestionMaster
if @mode='clientlogin'
select count(*) from ClientReg where UserName=@username and
Password=@password
if @mode='showrequestedproject'
if @mode='showselectedproject'
SELECT DATEDIFF(D, GETDATE(), RequestDate + 5) AS LeftDay,
RequestDate, RequestID, ProjectName, JobType, ClientID,
(SELECT MIN(BidAmount) AS Expr1
FROM BidMaster AS BM
WHERE (ProjectID = PR.RequestID)) AS MinBid
FROM ProjectRequest AS PR
WHERE (DATEDIFF(D, RequestDate, GETDATE()) <= 5) AND (RequestID NOT IN
(SELECT RequestedPeojectID
FROM DevlopingProject)) AND (PATINDEX('%' + @Lang + '%',
JobType) > 0)
if @mode='showselectedproject_Clients'
SELECT PM.ProjectID, PM.ProjectName, PM.Amount, LM.LanguageName
FROM ProjectMaster AS PM INNER JOIN
LanguageMaster AS LM ON PM.LanguageID = LM.LanguageID
WHERE (PATINDEX('%' + @language + '%', LM.LanguageName) > 0)
if @mode='showallprojects'
SELECT PM.ProjectID, PM.ProjectName, PM.Amount, LM.LanguageName
FROM ProjectMaster AS PM INNER JOIN
LanguageMaster AS LM ON PM.LanguageID = LM.LanguageID
if @mode='devloperreg'
insert into DevloperReg
(FirstName,LastName,Address,City,ZipCode,State,ContryID,Gender,DateofBirth,UserName,
Password,EmailID,MobileNo,SecurityQuestionID,Answer)values
(@firstname,@lastname,@address,@city,@zipcode,@state,@contryid,@gender,@dateofbirt
h,@username,@password,@emailid,@mobileno,@securityq,@answer)
if @mode='devloperlogin'
select count(*) from DevloperReg where UserName=@username and
Password=@password
if @mode='getclientid'
select ClientID from ClientReg where UserName=@clientusername
if @mode='clientrequest'
insert into ProjectRequest
(ClientID,ProjectName,LongDiscription,JobType,RequestDate,Budget) values
(@clientid,@projectname,@longdisc,@jobtype,@requestdate,@budget)
if @mode='clientinbox'
select ClientMsgID,Subject,Message,MsgDate from ClientMsgMaster where
ClientId=@ClientID
if @mode='showprojectdetail'
select * from ProjectMaster where ProjectID=@getprojectid
if @mode='getdevlopermsg'
select * from DevloperMsgMaster
if @mode='cupdatepro'
select * from ClientReg where UserName=@clientusername
if @mode='getdevloperid'
select DevloperID from DevloperReg where UserName=@devloperusername
if @mode='showbiddetail'
SELECT RequestDate, RequestID, ProjectName, ClientID,
(SELECT MIN(BidAmount) AS Expr1
FROM BidMaster AS BM
WHERE(ProjectID = PR.RequestID)) AS MinBid, LongDiscription, Budget
FROM ProjectRequest AS PR
WHERE(RequestID = @requestedprojectid)
if @mode='bidonproject'
insert into
BidMaster(ProjectID,DevloperID,ClientID,BidAmount,BidDate,DayofComplitedPro)
values (@projectid,@devloperid,@clientid,@lastbid,@biddate,@dayofcomplitedpro)
if @mode='updateclientprofile'
UPDATE ClientReg SET
if @mode='updatedevloperprofile'
UPDATE DevloperReg SET
FirstName =@firstname, LastName =@lastname, Address =@address, City =@city,
ZipCode =@zipcode, State =@state, ContryID =@contryid, Gender =@gender, Dateofbirth
=@dateofbirth, MobileNo =@mobileno where DevloperID=@devloperid
if @mode='getclientpassword'
select Password from ClientReg where UserName=@clientusername
if @mode='matchclientusername'
select UserName from ClientReg where UserName=@clientusername
if @mode='matchDevloperusername'
select UserName from devloperReg where UserName=@devloperusername
if @mode='dupdatepro'
select * from DevloperReg where UserName=@devloperusername
if @mode='ShowClientProjectBidDetail'
SELECT ProjectRequest.RequestID, ProjectRequest.ProjectName,
ProjectRequest.JobType, ProjectRequest.RequestDate, ProjectRequest.Budget,
BidMaster.BidAmount, BidMaster.DayofcomplitedPro, BidMaster.DevloperID,
BidMaster.ProjectID, BidMaster.BidDate, BidMaster.BidID
FROM BidMaster INNER JOIN
ProjectRequest ON BidMaster.ProjectID = ProjectRequest.RequestID
WHERE (BidMaster.ProjectID NOT IN
(SELECT RequestedPeojectID
FROM DevlopingProject AS DevlopingProject_1)) AND
(ProjectRequest.ClientID = @clientid)
if @mode='projectrunningdetail'
INSERT INTO DevlopingProject
(RequestedPeojectID, ClientID, devloperID, Isdevloped,BidID)VALUES
(@requestprojectid,@clientid,@devloperid,@isdevloped,@bidid)
if @mode='clientAccount'
INSERT INTO ClientAccount
(ClientID, ProjectID, Price, PaidAmount, RemainingAmount)VALUES
(@clientid,@requestprojectid,@projectamount,@paidamt,@remamt)
if @mode='devloperprojectlist'
SELECT DISTINCT
DP.RequestedPeojectID, PR.ProjectName, DATEDIFF(D, GETDATE(),
DP.StartDate + BM.DayofcomplitedPro) AS LeftDay, DP.ClientID, DP.devloperID,
DP.Isdevloped, BM.DayofcomplitedPro, PR.RequestID
if @mode='projectupload'
UPDATE DevlopingProject
SET ProjectPath = @projectpath,IsDevloped=@isdevloped
WHERE (RequestedPeojectID = @projectid)
if @mode='getanswer'
SELECT SQ.Question, CR.Answer, CR.Password
FROM ClientReg AS CR INNER JOIN
SecurityQuestionMaster AS SQ ON CR.SecurityQuestionID = SQ.QuestionID
WHERE (CR.UserName = @clientusername)
if @mode='getanswerDev'
SELECT SQ.Question, CR.Answer, CR.Password
FROM DevloperReg AS CR INNER JOIN
SecurityQuestionMaster AS SQ ON CR.SecurityQuestionID = SQ.QuestionID
WHERE (CR.UserName = @devloperusername)
if @mode='sendprojectmsg'
INSERT INTO ClientMsgMaster
(ClientID,SendFrom,Subject, Message, MsgDate, PeojectID)VALUES
(@clientid,@sendfrom,@subject,@message,@msgdate,@projectid)
if @mode='getclientmsg'
SELECT CM.ClientMsgID, CM.ClientID, CM.SendFrom, CM.Subject,
CM.Message, CM.MsgDate, CM.PeojectID, DP.ProjectPath
FROM ClientMsgMaster AS CM INNER JOIN
DevlopingProject AS DP ON CM.PeojectID = DP.RequestedPeojectID
WHERE (CM.ClientMsgID = @clientmsgid)
if @mode='getprojectpath'
SELECT DP1.ProjectPath
FROM ClientMsgMaster AS CM1 INNER JOIN
DevlopingProject AS DP1 ON CM1.PeojectID = DP1.RequestedPeojectID
WHERE (CM1.ClientMsgID = @clientmsgid)
if @mode='get2ndpaydetail'
if @mode='competedPaid'
UPDATE ClientAccount
SET Price =@price, PaidAmount =@paidAmt, RemainingAmount =@RemAmt where
ProjectID=@projectid
if @mode='AddDeveloperAcc'
INSERT INTO DevloperAccount
(DevloperID, ClientID, ProjectID, EarnAmt) VALUES
(@devloperid,@clientid,@projectid,@projectAmt)
if @mode='DevloperCompletedTheProject'
update DevlopingProject set Isdevloped=@ProjectStatus where
RequestedPeojectID=@projectid
if @mode='getproinfo'
SELECT CA.ProjectID AS ProjectNo, PR.ProjectName, CA.Price, CA.PaidAmount,
PR.RequestDate
FROM ClientAccount AS CA INNER JOIN
ProjectRequest AS PR ON CA.ProjectID = PR.RequestID
WHERE (CA.ProjectID = @projectid)
if @mode='updateprojectpriceintodevloperACC'
UPDATE DevloperAccount SET EarnAmt = @ProjectAmt
WHERE (ProjectID = @Projectid)
if @mode='ShowComletedProjectForDev'
SELECT PR.RequestID AS ProjectNo, PR.ProjectName, DA.EarnAmt, DP.StartDate,
PR.JobType
FROM DevloperAccount AS DA INNER JOIN
DevlopingProject AS DP ON DA.ProjectID = DP.RequestedPeojectID INNER
JOIN
ProjectRequest AS PR ON DP.RequestedPeojectID = PR.RequestID
WHERE (DP.devloperID = @devloperid) AND (DP.Isdevloped = 'Completed')
if @mode='devloperAccountInfo'
SELECT PR.RequestID, PR.ProjectName, DA.EarnAmt, PR.JobType
FROM DevloperAccount AS DA INNER JOIN
ProjectRequest AS PR ON DA.ProjectID = PR.RequestID
WHERE (DA.DevloperID = @devloperid)
if @mode ='checkAvalable'
if @mode1='checkAvalableDev'
select count(*) from DevloperReg where UserName=@username
if @mode='purchaseProjectDetail'
SELECT ProjectName, Projectdesc, Amount, Path
FROM ProjectMaster
WHERE (ProjectID = @Pur_projectid)
/* SET NOCOUNT ON */
Source code:-
ADMIN
ADDPROJECT.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
{
s2.Add("@mode", "ddldatabase");
ddldatabase.DataSource = c1.showdata("AdminSP", s2);
ddldatabase.DataTextField = "DatabaseName";
ddldatabase.DataValueField = "DatabaseID";
ddldatabase.DataBind();
s2.Clear();
if (ProjectUpload.PostedFile.ContentType == "application/x-zip-compressed")
{
ProjectUpload.SaveAs("" + Server.MapPath("..//") +
"\\SalesProjectsUpload\\" + ProjectUpload.FileName);
s2.Add("@mode", "AddProject");
s2.Add("@projectnm", txtpronm.Text);
s2.Add("@projectDescr", txtdesription.Text);
s2.Add("@price", txtprice.Text);
s2.Add("@langID", ddllang.SelectedItem.Value);
s2.Add("@databseID", ddldatabase.SelectedItem.Value);
s2.Add("@ProjectPath", ProjectUpload.FileName);
c1.insertdata("AdminSP",s2);
UpdatePanel1.Visible = false;
Panel1.Visible = true;
btnaddproject.Visible = false;
}
else
{
lblproupload.Text = "Upload Zipfile Only";
}
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("Home.aspx");
}
protected void LinkButton2_Click(object sender, EventArgs e)
{
Response.Redirect("AddProject.aspx");
}
}
CLIENTDETAIL.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
ViewDetail();
ProjectDetail();
}
}
public void ViewDetail()
{
s2.Add("@mode", "ShowClientInfo");
s2.Add("@ClientID", Request.QueryString["Clientid"].ToString());
DetailsView1.DataSource = c1.showdata("AdminSP", s2);
DetailsView1.DataBind();
s2.Clear();
}
public void ProjectDetail()
{
s2.Add("@mode","showProDetailforClient");
s2.Add("@ClientID", Request.QueryString["Clientid"].ToString());
GridView1.DataSource = c1.showdata("AdminSP", s2);
GridView1.DataBind();
}
}
DELETECLIENT.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
}
}
if (e.CommandName == "delete")
{
s3.Add("@mode", "DeleteClient");
s3.Add("@ClientID", ClientID.Text);
c1.insertdata("AdminSP", s3);
showdata();
s3.Clear();
}
if (e.CommandName == "detail")
{
Response.Redirect("ClientDetail.aspx?Clientid=" + ClientID.Text);
}
}
DELETEDEVELOPER.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
if (Page.IsPostBack == false)
{
showdata();
}
if (e.CommandName == "delete")
{
s3.Add("@mode", "DeleteDev");
s3.Add("@devID",devID.Text);
c1.insertdata("AdminSP", s3);
showdata();
s3.Clear();
}
if (e.CommandName == "detail")
{
Response.Redirect("DevloperDetail.aspx?devid="+devID.Text);
}
}
}
DEVELOPERDETAIL.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
ViewDetail();
ProjectDetail();
}
}
public void ViewDetail()
{
s2.Add("@mode", "ShowDeveloperInfo");
s2.Add("@devID", Request.QueryString["devid"].ToString());
DetailsView1.DataSource = c1.showdata("AdminSP", s2);
DetailsView1.DataBind();
s2.Clear();
}
public void ProjectDetail()
{
s2.Add("@mode", "showProDetail");
s2.Add("@devID", Request.QueryString["devid"].ToString());
GridView1.DataSource = c1.showdata("AdminSP", s2);
GridView1.DataBind();
}
protected void LinkButton2_Click(object sender, EventArgs e)
{
Response.Redirect("DeleteDeveloper.aspx");
}
}
SENDMAIL.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Net.Mail;
using System.Windows.Forms;
Response.Redirect("LoginClient.aspx");
}
catch (Exception e1)
{
UPDATEWEBSITE.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
}
protected void btnaddcontry_Click(object sender, EventArgs e)
{
s2.Add("@mode", "addcontry");
s2.Add("@contry", txtaddcontry.Text);
c1.insertdata("AdminSP", s2);
lblcontymsg.Text = "Successfully Add Contry";
txtaddcontry.Text = "";
s2.Clear();
}
protected void btnaddlanguage_Click(object sender, EventArgs e)
{
s2.Add("@mode", "addlanguage");
s2.Add("@language", txtaddlanguage.Text);
c1.insertdata("AdminSP", s2);
lbllangmsg.Text = "Successfully Add Contry";
txtaddlanguage.Text = "";
s2.Clear();
}
protected void btnadddatabse_Click(object sender, EventArgs e)
{
s2.Add("@mode", "adddatabase");
s2.Add("@database", txtadddatbase.Text);
c1.insertdata("AdminSP", s2);
lbldatabsemsg.Text = "Successfully Add Contry";
txtadddatbase.Text = "";
s2.Clear();
}
protected void btnaddque_Click(object sender, EventArgs e)
{
s2.Add("@mode", "addquestion");
s2.Add("@securityQue", txtsecurityque.Text);
c1.insertdata("AdminSP", s2);
lblquestionmsg.Text = "Successfully Add Contry";
txtsecurityque.Text = "";
s2.Clear();
}
}
CLASSFILE.CS
using System;
using System.Data;
using System.Configuration;
//using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
//using System.Xml.Linq;
using System.Data.SqlClient;
using System.Collections;
/// <summary>
/// Summary description for classfile
/// </summary>
public class classfile
{
}
con1.Open();
result = cmd.ExecuteNonQuery();
con1.Close();
}
catch (Exception ex)
{
result = -1;
try
{
if (con1.State == ConnectionState.Open)
{
con1.Close();
}
}
catch (Exception ex2)
{
//
}
}
return result;
}
try
{
cmd.CommandType = CommandType.StoredProcedure;
for (int j = 0; j < sortlist2.Count; j++)
{
cmd.Parameters.AddWithValue((String)sortlist2.GetKey(j),
sortlist2.GetByIndex(j));
}
con2.Open();
result = cmd.ExecuteScalar();
}
catch (Exception ex)
{
if (con2.State == ConnectionState.Open)
{
con2.Close();
}
}
finally
{
if (con2.State == ConnectionState.Open)
con2.Close();
}
return result;
///
cmd.Parameters.AddWithValue((String)sortlist3.GetKey(x),
sortlist3.GetByIndex(x));
}
con3.Open();
dr1 = cmd.ExecuteReader(CommandBehavior.CloseConnection);
}
catch (Exception ex)
{
return null;
}
return dr1;
}
CLIENT
ACCOUNTCLIENT.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
CLIENTINBOX.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
if (e.CommandName == "clientmsg")
{
Response.Redirect("ClientMsg.aspx?cmsgid=" + lblcmsgid.Text);
}
}
}
CLIENTMSG.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
string DownloadStr,proid;
}
}
public void msgdatabind()
{
SqlDataReader dr1 = null;
s2.Add("@mode", "getclientmsg");
s2.Add("@clientmsgid", Request.QueryString["cmsgid"].ToString());
dr1 = c1.showdata("StoredProcedure1", s2);
while (dr1.Read())
{
lblfromdisc.Text = dr1["SendFrom"].ToString();
lblsubdiscr.Text = dr1["Subject"].ToString();
lblmsg.Text = dr1["Message"].ToString();
DownloadStr = dr1["ProjectPath"].ToString();
lblproid1.Text = dr1["PeojectID"].ToString();
proid = lblproid1.Text;
}
s2.Clear();
Session["CMsgID"] = Request.QueryString["cmsgid"];
s3.Add("@mode", "getprojectpath");
s3.Add("@clientmsgid", Request.QueryString["cmsgid"].ToString());
lblpropath.Text = Convert.ToString(c1.getsingalval1("StoredProcedure1", s3));
if (lblpropath.Text == "")
{
imbtndownload.Visible = false;
}
}
protected void imbtndownload_Click(object sender, ImageClickEventArgs e)
{
Response.Redirect("Paypal2ndPay.aspx?proid=" + lblproid1.Text);
//DownloadStr = lblpropath.Text;
//Server.Transfer("../ReuestedProjectupaload/" + DownloadStr);
}
}
DOWNLOAD.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
string strpath="";
strpath = Session["Path"].ToString();
Server.Transfer("../SalesProjectsUpload/" + strpath);
Session["Path"] = null;
}
}
DOWNLAODPROJECT.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
}
public void bindprojectinfo()
{
s2.Add("@mode", "getproinfo");
s2.Add("@projectid", Session["projectid"].ToString());
GridView1.DataSource = c1.showdata("StoredProcedure1",s2);
GridView1.DataBind();
s2.Clear();
}
public void updatecomletedpaid()
{
s2.Add("@mode", "competedPaid");
s2.Add("@price", 0);
s2.Add("@paidAmt", Session["RemAmt"].ToString());
s2.Add("@RemAmt", 0);
s2.Add("@projectid", Session["projectid"].ToString());
c1.insertdata("StoredProcedure1", s2);
s2.Clear();
if (lblpropath.Text == "")
{
imgbtndownload.Visible = false;
}
}
}
protected void imgbtndownload_Click(object sender, ImageClickEventArgs e)
{
string DownloadStr = "";
DownloadStr = lblpropath.Text;
Server.Transfer("../ReuestedProjectupaload/" + DownloadStr);
Session["CMsgID"] = null;
}
}
HOME.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
getclientid();
}
}
public void showallprojects()
{
s2.Add("@mode", "showallprojects");
dlistparchaseproject.DataSource = c1.showdata("StoredProcedure1", s2);
dlistparchaseproject.DataBind();
s2.Clear();
}
if (e.CommandName == "Purchase")
{
Response.Redirect("ProjectPurchase.aspx?Pur_Projectid="+lblproject.Text);
}
}
protected void lbdotnet_Click(object sender, EventArgs e)
{
//for DotNet project
showselectedprojects(".net");
}
protected void lbjava_Click(object sender, EventArgs e)
{
showselectedprojects("java");
}
protected void lbphp_Click(object sender, EventArgs e)
{
showselectedprojects("php");
}
protected void lballproject_Click(object sender, EventArgs e)
{
showallprojects();
}
}
MASTERCLENT.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
if (Session["ClientUserName"] == null)
{
Response.Redirect("~/LoginClient.aspx");
}
}
PAYPAL.ASPX.cS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
}
s2.Clear();
}
else
{
s3.Add("@mode", "updateprojectpriceintodevloperACC");
s3.Add("@ProjectAmt", txtprice.Text);
s3.Add("@Projectid", lblproid.Text);
c1.insertdata("StoredProcedure1", s3);
s3.Clear();
}
price = Convert.ToInt32(txtprice.Text);
websitetex = (price * 10) / 100;
txttex.Text = Convert.ToString(websitetex);
if (price == 0)
{
//total project price Including Tex
TotalProjectAmt = Convert.ToInt32(lblpayamt.Text);
}
else
{
TotalProjectAmt = price + websitetex;
}
lbltotal.Text= Convert.ToString(TotalProjectAmt);
Session["devid"] = lbldevid.Text;
Session["projectid"] = lblproid.Text;
Session["ProjectPrice"] = txtprice.Text;
Session["PaidAmt"] = lblpayamt.Text;
//now u paying
Session["RemAmt"] = TotalProjectAmt;
}
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("DownloadProject.aspx");
}
}
PAYPALPROJECTPAYMENT.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
{
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack == false)
{
lbldevid.Text = Request.QueryString["devloperid"].ToString();
devid = Convert.ToString(lbldevid.Text);
proid = Request.QueryString["proid"].ToString();
lblprojectname.Text = Request.QueryString["pronm"].ToString();
txtprice.Text = Request.QueryString["proprice"].ToString();
price = Convert.ToInt32(txtprice.Text);
websitetex = (price * 10) / 100;
txttex.Text = Convert.ToString(websitetex);
txtfistpay.Text = Convert.ToString(PaidAmt);
lbltotal.Text = Convert.ToString(total);
Session["bidid"] = Request.QueryString["bidid"].ToString();
Session["devid"] = devid;
Session["projectid"] = proid;
Session["ProjectPrice"] = price;
Session["PaidAmt"] = PaidAmt;
Session["RemAmt"] = RemAmt;
PROJECTBIDDETAIL.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
s2.Add("@mode","ShowClientProjectBidDetail");
s2.Add("@clientid", Session["ClientID"].ToString());
DataList1.DataSource= c1.showdata("StoredProcedure1", s2);
DataList1.DataBind();
s2.Clear();
}
Response.Redirect("PayPalFirstProjectPayment.aspx?devloperid=" +
devID.Text + "&pronm=" + projectnm.Text + "&proid=" + projectid.Text + "&proprice=" +
price.Text+"&bidid="+bidid.Text);
}
}
}
PROJECTPURCHASE.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
s2.Add("@mode", "purchaseProjectDetail");
s2.Add("@Pur_projectid", Request.QueryString["Pur_Projectid"].ToString());
dr1 = c1.showdata("StoredProcedure1", s2);
while (dr1.Read())
{
lblprojectnm.Text = dr1["ProjectName"].ToString();
lbldesc.Text = dr1["Projectdesc"].ToString();
txtprice.Text = dr1["Amount"].ToString();
lblpath.Text = dr1["Path"].ToString();
}
}
Session["path"] = lblpath.Text;
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("download.aspx");
}
}
REQUESTPROJECT.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
if (Page.IsPostBack == false)
{
Panel1.Visible = false;
s2.Add("@mode", "clientrequest");
s2.Add("@clientid", Session["ClientID"].ToString());
s2.Add("@projectname", txtprojectname.Text);
s2.Add("@longdisc", txtlongdiscr.Text);
s2.Add("@jobtype", lang);
s2.Add("@requestdate", DateTime.Now);
s2.Add("@budget", ddlbudget.SelectedItem.Value);
c1.insertdata("StoredProcedure1", s2);
upprojectrequest.Visible = false;
btnsendrequest.Visible = false;
Panel1.Visible = true;
}
protected void lbgotohome_Click(object sender, EventArgs e)
{
Response.Redirect("Home.aspx");
}
TRANSCATIONSUCCESSFULLY.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
if (Page.IsPostBack == false)
{
s2.Add("@mode", "projectrunningdetail");
s2.Add("@requestprojectid",
Convert.ToInt32(Session["projectid"].ToString()));
s2.Add("@clientid", Convert.ToInt32(Session["ClientID"].ToString()));
s2.Add("@devloperid", Convert.ToInt32(Session["devid"].ToString()));
s2.Add("@isdevloped", "Running");
s2.Add("@bidid", Session["bidid"].ToString());
c1.insertdata("StoredProcedure1", s2);
s2.Clear();
s3.Add("@mode", "clientAccount");
s3.Add("@clientid", Convert.ToInt32(Session["ClientID"].ToString()));
s3.Add("@requestprojectid",
Convert.ToInt32(Session["projectid"].ToString()));
s3.Add("@projectamount",Convert.ToInt32(Session["ProjectPrice"].ToString()));
s3.Add("@paidamt",Convert.ToInt32(Session["PaidAmt"].ToString()));
s3.Add("@remamt",Convert.ToInt32(Session["RemAmt"].ToString()));
c1.insertdata("StoredProcedure1", s3);
s3.Clear();
//add into devloper A/c
s4.Add("@mode", "AddDeveloperAcc");
s4.Add("@devloperid", Session["devid"]);
s4.Add("@clientid", Session["ClientID"].ToString());
s4.Add("@projectid", Session["projectid"].ToString());
s4.Add("@projectAmt", 0);
c1.insertdata("StoredProcedure1", s4);
//
Session["devid"] = null;
Session["projectid"] = null;
Session["ProjectPrice"] = null;
Session["PaidAmt"] = null;
Session["RemAmt"] = null;
}
}
protected void lbclick_Click(object sender, EventArgs e)
{
Response.Redirect("Home.aspx");
}
}
UPDATEPROFILE.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class Client_Updateprofile : System.Web.UI.Page
{
classfile c1 = new classfile();
SortedList s2 = new SortedList();
SortedList s3 = new SortedList();
string str = "";
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack == false)
{
ContryBind();
ClientProfileData();
}
}
s3.Add("@mode", "contry");
ddlcontry.DataSource = c1.showdata("StoredProcedure1", s3);
ddlcontry.DataTextField = "ContryName";
ddlcontry.DataValueField = "ContryID";
ddlcontry.DataBind();
ddlcontry.Items.Insert(0, "Select Contry");
str = dr1["gender"].ToString().Trim();
if (str == "Male")
{
rdmale.Checked = true;
}
if (str == "Female")
{
rdfenale.Checked = true;
}
}
protected void imgbtnupdate_Click(object sender, ImageClickEventArgs e)
{
string Gen;
if (rdmale.Checked == true)
{
Gen = "Male";
}
else
{
Gen = "Female";
}
s2.Add("@mode", "updateclientprofile");
s2.Add("@clientid", Session["ClientID"].ToString());
s2.Add("@firstname", txtfirstname.Text);
s2.Add("@lastname", txtlastname.Text);
s2.Add("@address", txtaddress.Text);
s2.Add("@city", txtcity.Text);
s2.Add("@zipcode", txtzipcode.Text);
s2.Add("@state", txtstate.Text);
s2.Add("@contryid", ddlcontry.SelectedItem.Value);
s2.Add("gender", Gen);
s2.Add("@dateofbirth",txtdateofbirth.Text);
s2.Add("@mobileno", txtmobileno.Text);
c1.insertdata("StoredProcedure1", s2);
Response.Redirect("Home.aspx");
}
STYLESHEET.CSS
.watermarktxt
{
font-size: small;
color: #808080;
}
.lblreg
{
font-size: large;
color: #993399;
}
.lblheader
{
font-size: medium;
font-family: Verdana;
font-weight: bold;
}
.reglbl
{
font-family: Verdana;
font-size: medium;
font-weight: bold;
}
.ff:hover
{
background-color: #00FFFF;
color: #FF00FF;
background-color: #FF0000;
}
.contenlbl
{
font-family: Verdana;
font-size: 10pt;
}
.lable
{
font-family: Verdana;
font-size: 11pt;
DEVELOPER
ACCOUNT.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
}
}
BIDONPROJECT.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
s2.Add("@mode", "showbiddetail");
s2.Add("@requestedprojectid",
Request.QueryString["lblprojectid"].ToString());
dr1 = c2.showdata("StoredProcedure1", s2);
while (dr1.Read())
{
lblprojectname.Text = dr1["ProjectName"].ToString();
lbldisc.Text = dr1["LongDiscription"].ToString();
lblpricehere.Text = dr1["MinBid"].ToString();
lblbiddate.Text = dr1["RequestDate"].ToString();
lblbugdetprice.Text = dr1["Budget"].ToString();
}
s2.Add("@mode", "bidonproject");
s2.Add("@projectid",
Convert.ToInt32(Request.QueryString["lblprojectid"].ToString()));
s2.Add("@devloperid", Session["DevloperID"].ToString());
s2.Add("@clientid", Convert.ToInt32(clientid.Text));
s2.Add("@biddate", DateTime.Today);
s2.Add("@lastbid", txtbidamt.Text);
s2.Add("@dayofcomplitedpro", txtdayforcomleteproject.Text);
c2.insertdata("StoredProcedure1", s2);
Response.Redirect("Home.aspx");
}
}
COMPLETEDPROJECTLIST.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
}
}
}
GETPROJECTLIST.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
}
public void DL_command(object sender, DataListCommandEventArgs e)
{
if (e.CommandName == "clickhere")
{
Label proid = new Label();
proid = (Label)e.Item.FindControl("lblprojectno");
Response.Redirect("UplodProject.aspx?proid="+proid.Text
+"&cid="+clientid.Text);
}
}
}
HOME.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
}
public void ShowAllprojects()
{
s2.Add("@mode", "showrequestedproject");
if (e.CommandName == "bid")
{
Response.Redirect("BidonProject.aspx?lblprojectid=" + lblprojectid.Text +
"&clientid=" + lblclientid.Text);
}
}
protected void lbdotnet_Click(object sender, EventArgs e)
{
selectproject(".net");
}
protected void lbjava_Click(object sender, EventArgs e)
{
selectproject("java");
}
public void selectproject(string lang)
{
s2.Add("@mode", "showselectedproject");
s2.Add("@lang", lang);
DataList1.DataSource = c1.showdata("StoredProcedure1", s2);
DataList1.DataBind();
s2.Clear();
}
protected void lbphp_Click(object sender, EventArgs e)
{
selectproject("php");
}
protected void lballproject_Click(object sender, EventArgs e)
{
ShowAllprojects();
}
}
MASTER.DEVELOPER.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
UPDATEPROFILE.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class Devloper_Updateprofiledev : System.Web.UI.Page
{
classfile c1 = new classfile();
SortedList s2 = new SortedList();
SortedList s3 = new SortedList();
string str = "";
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack == false)
{
ContryBind();
DevloperProfileData();
}
}
s3.Add("@mode", "contry");
ddlcontry.DataSource = c1.showdata("StoredProcedure1", s3);
ddlcontry.DataTextField = "ContryName";
ddlcontry.DataValueField = "ContryID";
ddlcontry.DataBind();
ddlcontry.Items.Insert(0, "Select Contry");
s2.Add("@devloperusername", Session["DevloperUserName"].ToString());
dr1 = c1.showdata("StoredProcedure1", s2);
while (dr1.Read())
{
txtfirstname.Text = dr1["FirstName"].ToString();
txtlastname.Text = dr1["LastName"].ToString();
txtaddress.Text = dr1["Address"].ToString();
txtcity.Text = dr1["City"].ToString();
txtzipcode.Text = dr1["ZipCode"].ToString();
txtstate.Text = dr1["State"].ToString();
ddlcontry.Items.FindByValue(dr1["ContryID"].ToString()).Selected = true;
txtdateofbirth.Text = dr1["Dateofbirth"].ToString();
txtmobileno.Text = dr1["MobileNo"].ToString();
str = dr1["gender"].ToString().Trim();
if (str == "Male")
{
rdmale.Checked = true;
}
if (str == "Female")
{
rdfenale.Checked = true;
}
}
s2.Add("@mode", "updatedevloperprofile");
s2.Add("@DevloperID", Session["DevloperID"].ToString());
s2.Add("@firstname", txtfirstname.Text);
s2.Add("@lastname", txtlastname.Text);
s2.Add("@address", txtaddress.Text);
s2.Add("@city", txtcity.Text);
s2.Add("@zipcode", txtzipcode.Text);
s2.Add("@state", txtstate.Text);
s2.Add("@contryid", ddlcontry.SelectedItem.Value);
s2.Add("gender", Gen);
s2.Add("@dateofbirth",txtdateofbirth.Text);
s2.Add("@mobileno", txtmobileno.Text);
c1.insertdata("StoredProcedure1", s2);
Response.Redirect("Home.aspx");
}
}
UPLOADPRJECT.ASPX.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
}
protected void btnuplod_Click(object sender, EventArgs e)
{
if (projectupload.PostedFile.ContentType == "application/x-zip-compressed")
{
projectupload.SaveAs("" + Server.MapPath("..//") +
"\\ReuestedProjectupaload\\" + projectupload.FileName);
//ProjectUpload.SaveAs("" + Server.MapPath("..//") +
"\\SalesProjectsUpload\\" + ProjectUpload.FileName);
s2.Add("@mode", "projectupload");
s2.Add("@projectpath", projectupload.FileName);
s2.Add("@isdevloped", "Completed");
s2.Add("@projectid", Request.QueryString["proid"].ToString());
c1.insertdata("StoredProcedure1", s2);
s2.Clear();
//======================
s3.Add("@mode", "sendprojectmsg");
s3.Add("@clientid", Request.QueryString["cid"].ToString());
s3.Add("@sendfrom", Session["DevloperID"].ToString());
s3.Add("@subject", lblsub.Text);
s3.Add("@message", txtmsg.Text);
s3.Add("@msgdate", DateTime.Now);
//s3.Add("@projectpath", projectupload.FileName);
s3.Add("@projectid", Request.QueryString["proid"].ToString());
c1.insertdata("StoredProcedure1", s3);
s3.Clear();
UpdatePanel1.Visible = false;
Panel1.Visible = true;
btnuplod.Visible = false;
}
else
{
s2.Add("@mode", "DevloperCompletedTheProject");
s2.Add("@ProjectStatus", "Completed");
s2.Add("@projectid", Request.QueryString["proid"].ToString());
c1.insertdata("StoredProcedure1", s2);
s2.Clear();
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("GetProjectList.aspx");
}
}
CLIENTREGISTRATION.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using System.Collections;
}
}
s2.Add("@mode", "contry");
ddlcontry.DataSource = c1.showdata("StoredProcedure1", s2);
ddlcontry.DataTextField = "ContryName";
ddlcontry.DataValueField = "contryID";
ddlcontry.DataBind();
ddlcontry.Items.Insert(0, "Select Contry");
s2.Clear();
//Security Question
s2.Add("@mode", "securityque");
ddlsecurityquestion.DataSource = c1.showdata("StoredProcedure1", s2);
ddlsecurityquestion.DataTextField = "Question";
ddlsecurityquestion.DataValueField = "QuestionID";
ddlsecurityquestion.DataBind();
ddlsecurityquestion.Items.Insert(0, "Select security question");
s2.Clear();
}
else
{
// nothing
}
if (temp == 1)
{
lblusercheck.Text = "Please Enter other UserName";
lblavalable.Visible = false;
lblusercheck.Visible = true;
}
else
{
lblavalable.Text = "Avalable";
lblusercheck.Visible = false;
lblavalable.Visible = true;
string Gen;
if (rdmale.Checked == true)
{
Gen = "Male";
}
else
{
Gen = "Female";
}
s2.Add("@mode", "insertregdata");
s2.Add("@firstname", txtfirstname.Text);
s2.Add("@lastname", txtlastname.Text);
s2.Add("@address", txtaddress.Text);
s2.Add("@city", txtcity.Text);
s2.Add("@zipcode", txtzipcode.Text);
s2.Add("@state", txtstate.Text);
s2.Add("@contryid", ddlcontry.SelectedItem.Value);
s2.Add("gender", Gen);
s2.Add("@dateofbirth", txtday.Text + ddlmonth.SelectedItem.Value +
txtyear.Text);
s2.Add("@username", txtusername.Text);
s2.Add("@password", txtpassword.Text);
s2.Add("@emailid", txtemailid.Text);
s2.Add("@mobileno", txtmobileno.Text);
s2.Add("@securityq", ddlsecurityquestion.SelectedItem.Value);
s2.Add("@answer", txtanswer.Text);
c1.insertdata("StoredProcedure1", s2);
Panel2.Visible = false;
Panel1.Visible = true;
upclientregistration.Visible = false;
btnsubmit.Visible = false;
//Panel2.Visible = false;
s2.Clear();
if (temp == 1)
{
DEVELOPERREGISTRATION.ASPX.cS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using System.Collections;
}
}
public void ContyBind()
{
if (ddlcontry.SelectedIndex != 0)
{
s2.Add("@mode", "contry");
ddlcontry.DataSource = c1.showdata("StoredProcedure1", s2);
ddlcontry.DataTextField = "ContryName";
ddlcontry.DataValueField = "contryID";
ddlcontry.DataBind();
ddlcontry.Items.Insert(0, "Select Contry");
s2.Clear();
//Security Question
s2.Add("@mode", "securityque");
ddlsecurityquestion.DataSource = c1.showdata("StoredProcedure1", s2);
ddlsecurityquestion.DataTextField = "Question";
ddlsecurityquestion.DataValueField = "QuestionID";
ddlsecurityquestion.DataBind();
ddlsecurityquestion.Items.Insert(0, "Select security question");
}
else
{
// nothing
}
//if (temp == 1)
//{
// lblusercheck.Text = "Please Enter other UserName";
// lblavalable.Visible = false;
// lblusercheck.Visible = true;
//}
//else
//{
//lblavalable.Text = "Avalable";
//lblusercheck.Visible = false;
//lblavalable.Visible = true;
string Gen;
if (rdmale.Checked == true)
{
Gen = "Male";
}
else
{
Gen = "Female";
}
s2.Add("@mode", "devloperreg");
s2.Add("@firstname", txtfirstname.Text);
s2.Add("@lastname", txtlastname.Text);
s2.Add("@address", txtaddress.Text);
s2.Add("@city", txtcity.Text);
s2.Add("@zipcode", txtzipcode.Text);
s2.Add("@state", txtstate.Text);
s2.Add("@contryid", ddlcontry.SelectedItem.Value);
s2.Add("gender", Gen);
s2.Add("@username", txtusername.Text);
s2.Add("@password", txtpassword.Text);
s2.Add("@emailid", txtemailid.Text);
s2.Add("@mobileno", txtmobileno.Text);
s2.Add("@securityq", ddlsecurityquestion.SelectedItem.Value);
s2.Add("@answer", txtanswer.Text);
c1.insertdata("StoredProcedure1", s2);
Panel1.Visible = true;
// upclientregistration.Visible = false;
btnsubmit.Visible = false;
Panel2.Visible = false;
s2.Clear();
// }
}
}
protected void btncheckAvalable_Click(object sender, EventArgs e)
{
int temp = 0;
s3.Add("@mode1", "checkAvalableDev");
s3.Add("@username", txtusername.Text);
temp = Convert.ToInt32(c1.getsingalval1("StoredProcedure1", s3));
if (temp == 1)
{
}
}
DOWNLOAD.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
string strpath = "";
strpath = Session["Path"].ToString();
if (strpath != null)
{
Server.Transfer("SalesProjectsUpload/" + strpath);
Session["Path"] = null;
}
}
}
FORGETPASSWORDCLIENT.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using System.Net.Mail;
using System.Windows.Forms;
pnlque.Visible = false;
}
}
if (txtusername.Text==username)
{
pnlque.Visible = true;
SqlDataReader dr1 = null;
s3.Add("@mode", "getanswer");
s3.Add("@clientusername", username);
dr1 = c1.showdata("StoredProcedure1",s3);
while (dr1.Read())
{
lblquestion.Text = dr1["Question"].ToString();
lblanswer.Text = dr1["Answer"].ToString();
lblpassword.Text = dr1["Password"].ToString();
}
Panel1.Visible = false;
else
{
lblmsg.Text = "Enter Valid User Name";
}
}
protected void btngetpass_Click(object sender, EventArgs e)
{
if (lblanswer.Text == txtanswer.Text)
{
lblpassword.Visible = true;
try
{
SmtpClient sm = new SmtpClient();
sm.Host = "smtp.gmail.com";
sm.Port = 465;
sm.Send("arjun_gosai@hotmail.com", txtemailid.Text, "Password",
lblpassword.Text);
lblpassword.Visible = true;
Response.Redirect("LoginClient.aspx");
}
catch (Exception e1)
{
MessageBox.Show("Internet connection is not Avalble");
}
}
else
{
lblworn.Text = "Answer is Wrong";
}
}
}
FORGETPASSWODDEVELOPER.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
pnlque.Visible = false;
}
}
protected void btnnext_Click(object sender, EventArgs e)
{
string username = "";
s2.Add("@mode", "matchDevloperusername");
s2.Add("@devloperusername", txtusername.Text);
username = Convert.ToString(c1.getsingalval1("StoredProcedure1", s2));
if (txtusername.Text == username)
{
pnlque.Visible = true;
SqlDataReader dr1 = null;
s3.Add("@mode", "getanswerDev");
s3.Add("@devloperusername", username);
dr1 = c1.showdata("StoredProcedure1", s3);
while (dr1.Read())
{
lblquestion.Text = dr1["Question"].ToString();
lblanswer.Text = dr1["Answer"].ToString();
lblpassword.Text = dr1["Password"].ToString();
}
Panel1.Visible = false;
}
else
{
lblmsg.Text = "Enter Valid User Name";
}
}
protected void btngetpass_Click(object sender, EventArgs e)
{
if (lblanswer.Text == txtanswer.Text)
{
lblpassword.Visible = true;
//Response.Redirect("LoginClient.aspx");
}
else
{
lblworn.Text = "Answer is Wrong";
}
}
}
HOME.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
if (e.CommandName == "Purchase")
{
Response.Redirect("ProjectPurchase.aspx?ProjectID="+lblproject.Text);
}
}
protected void lbdotnet_Click(object sender, EventArgs e)
{
showselectedprojects(".net");
}
protected void lbjava_Click(object sender, EventArgs e)
{
showselectedprojects("java");
}
protected void lbphp_Click(object sender, EventArgs e)
{
showselectedprojects("php");
}
protected void lballprojects_Click(object sender, EventArgs e)
{
showallprojects();
}
}
LOGINCLIENT.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
}
protected void btnsignin_Click(object sender, EventArgs e)
{
}
protected void lbnewuser_Click(object sender, EventArgs e)
{
Response.Redirect("ClientRegistration.aspx");
}
protected void imgbtnsignin_Click(object sender, ImageClickEventArgs e)
{
if (txtusername.Text == "ARJUN" && txtpassword.Text == "ADMIN")
{
Response.Redirect("~/Admin/Home.aspx");
}
else
{
int count = 0;
s2.Add("@mode", "clientlogin");
s2.Add("@username", txtusername.Text);
s2.Add("@password", txtpassword.Text);
if (count == 1)
{
Session["ClientUserName"] = txtusername.Text;
Response.Redirect("~/Client/Home.aspx");
}
else
{
lblusername.Text = "User Name or Password is wrong";
}
s2.Clear();
}
}
}
LOGINDEVELOPER.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
Object glvar="";
}
protected void lbregister_Click(object sender, EventArgs e)
{
Response.Redirect("DeveloperRegistration.aspx");
}
protected void btnsignin_Click1(object sender, EventArgs e)
{
}
protected void lbforgetpassword_Click(object sender, EventArgs e)
{
username = txtusername.Text;
count = Convert.ToInt32(c1.getsingalval1("StoredProcedure1", s2));
//s2.Clear();
if (count == 1)
{
Session["DevloperUserName"] = username;
if (Session["DevloperUserName"] != null)
{
int devloperid;
s3.Add("@mode", "getdevloperid");
s3.Add("@devloperusername",
Session["DevloperUserName"].ToString());
devloperid = Convert.ToInt32(c1.getsingalval1("StoredProcedure1",
s3));
Session["DevloperID"] = devloperid;
Response.Redirect("~/Devloper/Home.aspx");
}
}
else
{
lblmsg.Text = "UserName OR Passwor wrong";
}
}
}
}
PROJECTPURCHASE.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
s2.Add("@mode", "purchaseProjectDetail");
s2.Add("@Pur_projectid",Request.QueryString["ProjectID"].ToString());
dr1=c1.showdata("StoredProcedure1", s2);
while (dr1.Read())
{
lblprojectnm.Text = dr1["ProjectName"].ToString();
lbldesc.Text = dr1["Projectdesc"].ToString();
txtprice.Text = dr1["Amount"].ToString();
lblpath.Text = dr1["Path"].ToString();
}
Session["path"] = lblpath.Text;
}
WEB.CONFIG
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<configSections>
<sectionGroup name="system.web.extensions"
type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting"
type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler"
type="System.Web.Configuration.ScriptingScriptResourceHandlerSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices"
type="System.Web.Configuration.ScriptingWebServicesSectionGroup,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization"
type="System.Web.Configuration.ScriptingJsonSerializationSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="Everywhere"/>
<section name="profileService"
type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService"
type="System.Web.Configuration.ScriptingAuthenticationServiceSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
<section name="roleService"
type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
requirePermission="false"
allowDefinition="MachineToApplication"/></sectionGroup></sectionGroup></sectionGroup><
/configSections><appSettings/>
<connectionStrings>
<add name="ProjectConnectionString" connectionString="Data
Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\project.mdf;Integrated
Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<!--<add assembly="System.Design, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>-->
<!--<add assembly="System.Web.Extensions.Design,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>-->
<add assembly="System.Design, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Drawing, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Xml, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Services, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Core, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.DataSetExtensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies>
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
Summary
Project transaction offers companies a flexible and cost-effective way to get work done
online. Flexibility, Results Orientation, Predictable Cost. Independent professionals,
freelancers and service firms, Access to Client, Efficiently.
It generally enjoy a greater variety of assignments than in regular employment, and—subject
to the need to earn a regular income—usually have more freedom to choose their work
schedule. The experience can also lead to a broad portfolio of work and the establishment of
a network of clients. Project transaction and clients may form a relationship based on mutual
needs and the professionalism and competence of both parties. Thus functionalities included
in this project are really helpful for the free lancers
• A Career - it is recognized as a career in its own right - many people find their
expertise is valued more if they work for an organization as a consultant, rather than a
permanent member of staff.
• Variety - the opportunity to work for a whole range clients and projects - which
enables you to utilize and build upon your existing talent.
• Work-Life Balance – the freedom to distribute your time between work and leisure,
allowing you to exert a stronger control over your quality of life.
• Improved income - as a consultant you will usually command a higher rate of
income, as you are being employed for specific skills - which means you don't necessarily
have to work full-time to reap the benefits.
The further improvements are always possible in every field. In this project the existing
functionality can also be enhanced by including more categories of the languages with
dynamic changing environment. Thus this feature will further enhance the efficiency and
speed of the online work by saving a large amount of time and money.
References:
Books:
WEBSITES:
http://www.elance.com
http://www.aboutus.com
http://www.guru.com
http://www.joomlancers.com
http://www.w3schools.com
http://www.MSDN.com