You are on page 1of 216

Project Report

PROJECT REPORT

ONLINE AUCTION

BY
.NET INTERMEDIATE

IN PARTIAL FULLFILLMENT OF

B.Sc.(INFORMATION TECHNOLOGY) DEGREE OF


UNIVERSITY OF MUMBAI
MARCH 2015

-1-

Project Report

-2-

Project Report

ACKNOWLEDGMENT

My express thanks and gratitude and thanks to Almighty God, my


parents and other family members and friends without whose uncontained
support, I could not have made this project.

I wish to place on my record my deep sense of gratitude to my project


guide, Mrs. Rajeshree Rokadefor her constant motivation and valuable
help through the project work.

Express my gratitude to Mrs.Varsha

Ponkshe, Head of I.T Department for his valuable suggestions and advices
through out the project development. I also extend my thanks to other
Faculties for their Cooperation during my Course.

Finally I would like to thank my friends for their cooperation to


complete this project.
Thanking you,

-3-

Project Report

-4-

Project Report

INTRODUCTION
An Auction is Latin work which means augment. Auction is a bid, a process of
selling ; buying and services offered take place. There are several different types of auctions and certain
rules exist for each auction. There are variations for an auction which mayinclude minimum price limit,
maximum price limit and time limitations etc. Depending uponthe auction method bidder can participate
remotely or in person. Remote auction include participating through telephone, mail, and internet.
Shopping online has widely grown; online auction system is increasing rapidly. Online auction is
becoming more and morepopular in electronic commerce and hence it should system must increase its
quality andsecurity.

The online auction system is a model where we participate in a bid for products andservice. This
auction is made easier by using online software which can regulate processes involved . There are
several different auction methods or types and one of the most popular methods is English auction
system. This system has been designed to be highly-scalable andcapable of supporting large numbers of
bidders in an active auction.

Online Auctioning System has several other names such as e-Auctions, electronicauction etc.
The requirement for online auction or online bidding can be more accuratelyspecified by the client. It
should be healthy and will be a good practice when it is made moretransparent as a matter of fact.

Online Bidding has become more wide spread in all sorts of industrial usage. It notonly includes
the product or goods to be sold, it also has services which can be provided. Dueto their low cost this
expansion made the system to grow.
Online bidding has become a standard method for procurement process. Bidders canbe
maintained in a single database according to the preference, and they can be monitored.
Users data can be maintained in a confidential way for validity and integrity of
contractualdocumentation.
Multiple bidders can be communicated with a great ease. This system allowsmultiple bids by
single users.
Online bidding is based upon lowest or the highest price which is initiated but not thebest value
for the product. Although there is a chance to fix the criteria against the fact expected to have desired
value by the seller.

-5-

Project Report

LITERATURE SURVEY
How does Auction work?
QuiBids is not your basic online auction model. We proudly developed a unique, exciting way to
rejuvenate a century-old traditional auction in the digital era. We do understand that the similarities can
create a bit of confusion, and we dont want that to obscure how we do business. So weve decided to
explain just how things work around here.

Getting started
Before you start bidding, you have to register an account with us. On the home page simply select the
Register tab on the main tool bar, or click on the Orange Button that reads Register Now along the
banner. Once youre done registering, a confirmation email will be sent to the address you provided. If
you dont immediately receive this email from QuiBids, then check your Spam folder to ensure that it
wasnt mistakenly identified or blocked.
Buying bids

Who loves options? Everybody . Well, youve got two when it comes to buying bids. You may (A)
purchase bids immediately after registration, or (B) select the Buy Bids tab on the main menu at a
later time. Your first bid pack buy is a set price, but after your initial bid pack purchase, therell be five
different bid packs to choose from, each a different size. We recommend what most users start off with:
a Beginner Bid Pack for testing out the auction waters. Once youve selected the proper-sized bid pack,
simply add your credit card and billing information

-6-

Project Report

Remember, when purchasing bids, you are really buying the right to place bids and that each bid is
worth $0.60. Purchasing bids doesnt guarantee that youll win, but the Buy Now feature is always at
your disposal (well discuss that in a bit), and its basically like spending money toward the desired
product.

Learning how to participate in an auction

Congratulations on making it this far! Now youll see bids as they appear in the upper-right corner of
your screen. This number will update every time you bid on our site.
Before you start bidding, we strongly recommend you watch a few auctions and in so doing take
some time to familiarize yourself with the pace and the dynamics of an auction. On the home page
youll see a section labeled Live Auctions that displays the auctions that are currently running.
The timer
The timer counts down consecutively until it gets below 20 seconds. From that point on, the timer will
reset to 0:20 seconds every time a bid is placed, thereby giving other users the chance to bid again.
If the auction persists after a certain number of bids (its not uniform from auction to auction), the timer
will begin resetting at 0:15 seconds after each bid. Finally, if we feel the auction has gone on too long,
the timer will reset to 0:10 seconds each time a bids placed. When the time expires, the auction ends
and the last person to bid wins the right to purchase the item for the final price.
Where the timer will reset to a maximum of 0:10 seconds. To determine whether or not an auction is a
Speed Auction, check for the little red timer icon accompanying it.

Bidding

-7-

Project Report

So earlier we established that options are good, right? When it comes to bidding, youve got two. (A)
Simply select the bid button. Your bid will be recorded and your name will show up as the highest
bidder. Each time youre outbid by another user, youll need to manually click the bid button again if
you wish to guarantee that youll win the item.
Option (B) is the Bid, which does your clicking for you! This feature is designed for you to go handsfree, or even Internet-free, as Bid-O-Matic will automatically place bids from your account, per your
direction. Simply instruct it how many bids (between 3 and 25 bids) youre willing to give up, and the
price you want to start bidding at!

Project Profile
The existing "Antique Auction House" is managed manually. Prior to each auction, the day of
auction, the venue and the items on auction are announced through news media. Those who wish to take
part in the auction have to arrive at the venue on that day on time. This conventional method most of the
times prevent aspiring bidders from participating in the bidding process.

Another headache of the old system is to track each bidding process and to make it culminate in
financial settlement. So the system has to keep records of both buyers and sellers until the end of
settlement. The process is very cumbersome and time consuming.

Another problem with public auction is that the participation of the general public is very
limited.

-8-

Project Report

-9-

Project Report

SYSTEM ANALYSIS
The model that is basically being followed is the WATER FALL MODEL, which states that the
phases are organized in a linear order. First of all the feasibility study is done. Once that part is over the
requirement analysis and project planning begins. If system exists one and modification and addition of
new module is needed, analysis of present system can be used as basic model.
The design starts after the requirement analysis is complete and the coding begins after the
design is complete. Once the programming is completed, the testing is done. In this model the sequence
of activities performed in a software development project are:

Requirement Analysis

Project Planning

System design

Detail design

Coding

Unit testing

System integration & testing


Here the linear ordering of these activities is critical. End of the phase and the output of one

phase is the input of other phase. The output of each phase is to be consistent with the overall
requirement of the system. Some of the qualities of spiral model are also incorporated like after the
people concerned with the project review completion of each of the phase the work done.
WATER FALL MODEL was being chosen because all requirements were known beforehand and
the objective of our software development is the computerization/automation of an already existing
manual working system.

- 10 -

Project Report

Changed Requirements
Communicated
Requirements

Requirements Specification
Requirements Engineering

Design Specification
Design

Executable Software Modules


Maintenance

Programming

Integrated Software
Product
Integration
Process
Delivered Software Product
Delivery

Product

Product
input

output

Fig : Water Fall Model

- 11 -

Project Report

Existing System

The slogan of the new site is AAA, 'Anyone, Anytime, Anywhere'. That what it really is? The
online auction house so the seller or bidder doesn't need to go anywhere, instead they can take part in the
auction just sitting in the comfort of their living room, be it during the day or night. The proposed
computerized site has made auction process simple. The pre-condition is that the user must register and
authenticate before he/she can take part in the bidding process. The system uses HTTP forms
authentication which creates a session cookie for any signed in user.
Features

Paperless Auction System

It's accessible to everyone, at any time no matter where they are

Reliable user validation & checking.

Easy online settlement.

Convenience- You can buy an item even if you are just in your house or office.

Access to Full Information The buyer can get the chance to check all the information about the
item for sale. You can even review the terms of payment and feedback ratings of the online seller.
You may even check the other items that he/she is selling.

Time Saving Shopping is more time-consuming as compared to online auctions.


Selection The buyer have the chance to view various similar items before
coming up with a decision to join the online auction.

- 12 -

Project Report

Limitation of Online Auctions

Overpaying A lot of people are easily carried away in a bidding contest that they tend to pay over the
odds just to get the item that they want.

Fakes Some items displayed on online auctions are fake and it may not also match the description
posted on the site.

Scams Both buyers and sellers can be subject to scamming. There are some instances that a paid item
never gets delivered. Some traders make use of unfair or illegal actions just to push up the bids to scam
the online buyer.

Online auctions shouldnt be judged right away. It is also a good way of trading for both buyers and
sellers. But it also best to be responsible of your own actions and know first the advantages and
disadvantages of online auction before getting yourself involved to it.

- 13 -

Project Report

System Architecture

A system architecture or systems architecture is the conceptual model that defines the structure,
behavior, and more views of a system. An architecture description is a formal description and
representation of a system, organized in a way that supports reasoning about the structures and
behaviors of the system.
A system architecture can comprise system component, the externally visible properties of those
components, the relationships (e.g. the behavior) between them. It can provide a plan from which
products can be procured, and systems developed, that will work together to implement the overall
system. There have been efforts to formalize languages to describe system architecture, collectively
these are called description language
The paper develops a distributed system architecture and proposes an implementation framework
for conducting dependable Internet based online auctions, meeting the requirements of scalability and
service integrity.
Current auction services essentially rely on a central auction server.
Given the increasing popularity and usage of electronic auctions, such a centralised approach is
fundamentally restrictive with respect to scalability.
Further, different national markets have different monetary regulations and may employ
different procedures for payment settlements.
Catering for local market autonomy means that decentralisation is an essential and practical
requirement. With these design goals in mind, the paper presents a system architecture and a framework
for a fault-tolerant implementation of the architecture

- 14 -

Project Report

Project Definition
Online auctions have effectively created a giant virtual marketplace where people can gather to
buy, sell, trade and check out the goods of the day. They're enormously popular, high-traffic venues
where you can begin selling product almost immediately, with...
No overhead or upfront costs
No sales staff or distributors
No website of your own
No initial investment (you'll pay between 2 and 5 percent of your final sale price to the auction

site)

In this massive marketplace, the auction site that rules the game is eBay. According to the
Neilson Ratings, eBay is among the top ten most-trafficked sites on the Internet. eBay leads the online
auction industry with a more than 60 percent share of the market, while its closest competitor, Yahoo!
Auctions, is only half its size. Amazon.com Auctions follows at a distant third.
The amount of traffic these sites attract make online auctions an ideal place to capitalize on
readily available, widespread exposure. However, know this: The competition is fierce in popular
categories, and your product can easily get lost among the hundreds of listings.
So whether you're selling a knick-knack or two or becoming a full-time baseball card dealer,
there are a number of things you must do to harness the volumes of traffic heading your way and
generate the highest profits possible:
Virtual auctions on the internet. The seller sells the product or service to the person who bids the
highest price. For sellers, online auctions open up new sales channels for new products and offer buyers
favorable purchasing conditions.

- 15 -

Project Report

Modules
Information Module:
This module provides overall information about the site. It contains static information about the site.
This module is designed in such a way that the layout is user friendly and contains navigational menu
which links to other pages. Also it contains information about the various categories on which bidding
can be done. User can either select the categories from here or can select various bids that are currently
running.

Administrative Module:
This module provides the complete information related to products for sale and the
Buyers can bid for the products and can own them. All this has to be provided and maintained by the
admin because the complete auction process is to be kept under control till the product sale gets
confirmed.
It can only be accessed by the web admin only. Here the admin can add product categories and product
information like closing dates etc. There may be an option for contacting bidder and seller by email
instructing them about the bid confirmation and its cancellation etc.

Bidding Module:
This module is for bidding on a selected item. The bidder has to authenticate himself before participating
in bidding. In here the user has a provision for bidding by entering a bid amount. This module also
checks whether the entered amount is greater than the minimum bid amount during registration.
It also provides the user with facilities such as cancellation of bid as well as rebidding for a particular
article.

Bid Marketing Module:

- 16 -

Project Report

This is the module where the articles that are in auction are displayed according to the categories that are
selected by the user. If the user has already bid for an article then the history of those items are also
shown here. If timer runs out then article is removed from current list.

Registration and login Module:


This module deals with the user registration and product registration. The user if is a buyer then
customer verification will be done over here and later after login will be able to bid. If it is a seller then
verification is done which will be done using email verification or activation.
In case of product registration the product details are accepted and are verified. The user can
authenticate him using the login form.

Financial Module:
This is the module where the buyer will enter the payment details and the payment or transaction is
completed after verification. In this module there will be a provision to enter the shipping place. This is
the major module where if any error the user would be requested to repeat the entire procedure.

Other Module (Future enhancements)

Advertisement Module
Feedback Module
FAQ Module

- 17 -

Project Report

Feasibility Study
Feasibility study
The basic idea behind feasibility study is to determine whether the project is feasible
or not.F e a s i b i l i t y i s c o n d u c t e d t o i d e n t i f y a b e s t s y s t e m t h a t m e e t s a l l t h e r e q u i
r e m e n t s . T h i s includes an identification, description, an evaluation of the proposed systems and
selection of the best system for the job.T h e r e q u i r e m e n t s o f t h e s y s t e m a r e s p e c i f i e d
w i t h a s e t o f c o n s t r a i n t s s u c h a s s y s t e m objectives and the description of the out
puts. It is then duty of the analyst to evaluate thefeasibility of the proposed system to
generate the above results. Three key factors are to be considered during the feasibility study.
3.1.1 Operation Feasibility
An estimate should be made to determine how much effort and care wi
l l g o i n t o t h e developing of the system including the training to be given to the user.
Usually, people are reluctant to changes that come in their progression. The computer Initialization
will certainlyaffected the turn over, transfer and employee job status. Hence an additional
effort is to bemade to train and educate the users on the new way of the system.
3.1.2Technical Feasibility
The main consideration is to be given to the study of available resources of
the organizationwhere the software is to be implemented. Here the system analyst
evaluates the technicalmerits of the system giving emphasis on the performance,
reliability, maintainability and productivity.
By taking the consideration before developing the proposed system, the resources availabilityof the
organization was studied. The organization was immense computer facilities equippedwith sophisticated
machines and the software hence this technically feasible.
3.1.3Economic Feasibility

- 18 -

Project Report

Economic feasibility is the most important and frequently used method for evaluating the
effectiveness of the proposed system. It is very essential because the main
g o a l o f t h e proposed system is to have economically better result along with increased efficiency. Cost
benefit analysis is usually performed for this purpose. It is the comparative study of the cost
verses the benefit and savings that are expected from the
proposed system. Since theorganization is well equipped with the required
h a r d w a r e , t h e p r o j e c t w a s f o u n d t o b e economically.

CRYSTAL REPORT

- 19 -

Project Report

- 20 -

Project Report

- 21 -

Project Report

SQL SERVER (BACK END TECHNOLOGY)


A database management, or DBMS, gives the user access to their data and helps them transform
the data into information. Such database management systems include dBase, paradox, IMS, SQL Server
and SQL Server. These systems allow users to create, update and extract information from their
database.
A database is a structured collection of data. Data refers to the characteristics of people, things
and events. SQL Server stores each data item in its own fields. In SQL Server, the fields relating to a
particular person, thing or event are bundled together to form a single complete unit of data, called a
record (it can also be referred to as raw or an occurrence). Each record is made up of a number of fields.
No two fields in a record can have the same field name.
During an SQL Server Database design project, the analysis of your business needs identifies all
the fields or attributes of interest. If your business needs change over time, you define any additional
fields or change the definition of existing fields.
SQL SERVER TABLES
SQL Server stores records relating to each other in a table. Different tables are created for the
various groups of information. Related tables are grouped together to form a database.
PRIMARY KEY
Every table in SQL Server has a field or a combination of fields that uniquely identifies each
record in the table. The Unique identifier is called the Primary Key, or simply the Key. The primary
key provides the means to distinguish one record from all other in a table. It allows the user and the
database system to identify, locate and refer to one particular record in the database.
RELATIONAL DATABASE
Sometimes all the information of interest to a business operation can be stored in one table. SQL
Server makes it very easy to link the data in multiple tables. Matching an employee to the department in
which they work is one example. This is what makes SQL Server a relational database management
system, or RDBMS. It stores data in two or more tables and enables you to define relationships between
the table and enables you to define relationships between the tables.
- 22 -

Project Report

FOREIGN KEY
When a field is one table matches the primary key of another field is referred to as a foreign key.
A foreign key is a field or a group of fields in one table whose values match those of the primary key of
another table.
REFERENTIAL INTEGRITY
Not only does SQL Server allow you to link multiple tables, it also maintains consistency
between them. Ensuring that the data among related tables is correctly matched is referred to as
maintaining referential integrity.
DATA ABSTRACTION
A major purpose of a database system is to provide users with an abstract view of the data. This
system hides certain details of how the data is stored and maintained. Data abstraction is divided into
three levels.
Physical level: This is the lowest level of abstraction at which one describes how the data are actually
stored.
Conceptual Level: At this level of database abstraction all the attributed and what data are actually
stored is described and entries and relationship among them.
View level: This is the highest level of abstraction at which one describes only part of the database.
ADVANTAGES OF RDBMS

Redundancy can be avoided

Inconsistency can be eliminated

Data can be Shared

Standards can be enforced

Security restrictions ca be applied


- 23 -

Project Report

Integrity can be maintained

Conflicting requirements can be balanced

Data independence can be achieved.

DISADVANTAGES OF DBMS
A significant disadvantage of the DBMS system is cost. In addition to the cost of purchasing of
developing the software, the hardware has to be upgraded to allow for the extensive programs and the
workspace required for their execution and storage. While centralization reduces duplication, the lack of
duplication requires that the database be adequately backed up so that in case of failure the data can be
recovered.
FEATURES OF SQL SERVER (RDBMS)
SQL SERVER is one of the leading database management systems (DBMS) because it is the
only Database that meets the uncompromising requirements of todays most demanding information
systems.

From complex decision support systems (DSS) to the most rigorous online transaction

processing (OLTP) application, even application that require simultaneous DSS and OLTP access to the
same critical data, SQL Server leads the industry in both performance and capability
SQL SERVER is a truly portable, distributed, and open DBMS that delivers unmatched performance,
continuous operation and support for every database.
SQL SERVER RDBMS is high performance fault tolerant DBMS which is specially designed for online
transactions processing and for handling large database application.
SQL SERVER with transactions processing option offers two features which contribute to very high
level of transaction processing throughput, which are

The row level lock manager

ENTERPRISE WIDE DATA SHARING

- 24 -

Project Report

The unrivaled portability and connectivity of the SQL SERVER DBMS enables all the systems
in the organization to be linked into a singular, integrated computing resource.
PORTABILITY
SQL SERVER is fully portable to more than 80 distinct hardware and operating systems
platforms, including UNIX, MSDOS, OS/2, Macintosh and dozens of proprietary platforms. This
portability gives complete freedom to choose the database sever platform that meets the system
requirements.
OPEN SYSTEMS
SQL SERVER offers a leading implementation of industry standard SQL. SQL Servers open
architecture integrates SQL SERVER and non SQL SERVER DBMS with industries most
comprehensive collection of tools, application, and third party software products SQL Servers Open
architecture provides transparent access to data from other relational database and even non-relational
database.
DISTRIBUTED DATA SHARING
SQL Servers networking and distributed database capabilities to access data stored on remote
server with the same ease as if the information was stored on a single local computer. A single SQL
statement can access data at multiple sites. You can store data where system requirements such as
performance, security or availability dictate.
UNMATCHED PERFORMANCE
The most advanced architecture in the industry allows the SQL SERVER DBMS to deliver
unmatched performance.
SOPHISTICATED CONCURRENCY CONTROL
Real World applications demand access to critical data. With most database Systems application
becomes contention bound which performance is limited not by the CPU power or by disk I/O, but
user waiting on one another for data access . SQL Server employs full, unrestricted row-level locking
and contention free queries to minimize and in many cases entirely eliminates contention wait times.

- 25 -

Project Report

NO I/O BOTTLENECKS
SQL Servers fast commit groups commit and deferred write technologies dramatically reduce
disk I/O bottlenecks. While some database write whole data block to disk at commit time, SQL Server
commits transactions with at most sequential log file on disk at commit time, On high throughput
systems, one sequential writes typically group commit multiple transactions.

Data read by the

transaction remains as shared memory so that other transactions may access that data without reading it
again from disk. Since fast commits write all data necessary to the recovery to the log file, modified
blocks are written back to the database independently of the transaction commit, when written from
memory to disk.

ARCHITECTURE DESIGN
- 26 -

Project Report

- 27 -

Project Report

- 28 -

Project Report

SYSTEM REQUIREMENT SPECIFICATION


An Auction
is Latin work which means augment. Auction is a bid, a process of selling; buying and services
offered take place. There are several different types of auctions andcertain rules exist for each auction.
There are variations for an auction which may includeminimum price limit, maximum price limit and
time limitations etc. Depending upon theauction method bidder can participate remotely or in person.
Remote auction include participating through telephone, mail, and internet. Shopping online has widely
grown; onlineauction system is increasing rapidly. Online auction is becoming more and more popular
inelectronic commerce and hence it should system must increase its quality and security.

- 29 -

Project Report

1.1

Purpose

The purpose of this document is to present an overall description and listing of thefunctionality of the
system behind an online auction website. This document is intended for users of the system including
designers, testers, implementation unit and the employer.
1.2

Scope

A salesman is the system behind an online auction website. An auction site is a webapplication where
users can buy and sell objects. Users can place auctions or bid on auctionsof other users.There are also
some social features such as sending messages to users, add a seller to favoritesellers and a rating system
for users.

1.3

Definition and Abbreviation

SRS: Software Requirements SpecificationUML: United Modeling LanguageXHTML: Extensible


Hypertext Markup LanguageHTML: Hypertext Markup LanguageCSS: Cascading Style SheetsHTTPS:
Hypertext Transfer Protocol SecureCAPTCHA: Completely Automated Public Turing test to tell
Computers and Humans Apart
1.4

Overview

Section 2 describes the general factors that abet the product and its require- mints. Thissection does not
state specific requirements. Instead, it provides a background for thoserequirements, which are denned
in detail in Section 3 of the SRS, and makes them easier tounderstand. Section 3 contains all of the
software requirements, to a level of detail us client toenable designers to design the system to satisfy
these requirements, and testers to test that thesystem satisfies these requirements

Hardware Requirements
PROCESSOR

I3 SECOND GENERATION

CLOCK SPEED

3.30 GHZ

SYSTEM BUS

32 BIT

RAM

4 GB

HDD

512 GB

- 30 -

Project Report

Software Requirements
OPERATING SYSTEM

: WINDOWS 7

BROWSER

: INTERNET EXPLORER 5 OR ABOVE

DATABASE LAYER

: MS SQL EXPRESS 2005

FRONT END

: ASP.NET (C#)

WEBSERVER

: Internet Information Server


(IIS)
6 OR ABOVE

UML DIAGRAMS
Every complex system is best approached through a small set of nearly independent views of a
model; no single viewer is sufficient. Every model may be expressed at different levels of fidelity.
The best models are connected to reality. The UML defines nine graphical diagrams.
1. Class diagram
2. Gantt Chart
3. Use-case diagram

- 31 -

Project Report

4. Deployment diagrams
5. E-R Diagram
6. Sequence diagram
7. Collaboration diagram
8. Activity diagram

- 32 -

Project Report

Fig. GANTT CHART

- 33 -

Project Report

DATEBASE DIAGRAM
E R DIAGRAMS
- 34 -

Project Report

The relation upon the


system is structure through a conceptual ER-Diagram, which not only specifics the existential
entities but also the standard relations through which the system exists and the cardinalities that are
necessary for the system state to continue.

The entity Relationship Diagram (ERD) depicts the relationship between the data objects. The ERD
is the notation that is used to conduct the date modeling activity the attributes of each data object
noted is the ERD can be described resign a data object descriptions.

The set of primary components that are identified by the ERD are
Data object

Relationships

Attributes

Various types of indicators.

The primary purpose of the ERD is to represent data objects and their relationships.

- 35 -

Project Report

- 36 -

Project Report

- 37 -

Project Report

UML Use Case Diagrams


In Visual Studio Ultimate, you can draw a use case diagram to summarize who uses your application or
system, and what they can do with it. To create a UML use case diagram, on the Architecture menu,
click New Diagram.

With the help of a use case diagram, you can discuss and communicate:

The scenarios in which your system or application interacts with people, organizations, or
external systems.

The goals that it helps those actors achieve.

The scope of your system.

- 38 -

Project Report

USE CASE DIAGRAM

- 39 -

Project Report

- 40 -

Project Report

- 41 -

Project Report

DATA FLOW DIAGRAMS


A data flow diagram is graphical tool used to describe and analyze movement of data through a
system. These are the central tool and the basis from which the other components are developed. The
transformation of data from input to output, through processed, may be described logically and
independently of physical components associated with the system. These are known as the logical data
flow diagrams. The physical data flow diagrams show the actual implements and movement of data
between people, departments and workstations. A full description of a system actually consists of a set
of data flow diagrams. Using two familiar notations Yourdon, Gane and Sarson notation develops the
data flow diagrams. Each component in a DFD is labeled with a descriptive name. Process is further
identified with a number that will be used for identification purpose. The development of DFDS is
done in several levels. Each process in lower level diagrams can be broken down into a more detailed
DFD in the next level. The lop-level diagram is often called context diagram. It consists a single process
bit, which plays vital role in studying the current system. The process in the context level diagram is
exploded into other process at the first level DFD.
The idea behind the explosion of a process into more process is that understanding at one level of
detail is exploded into greater detail at the next level. This is done until further explosion is necessary
and an adequate amount of detail is described for analyst to understand the process.

RULES GOVERNING THE DFDS


PROCESS
1) No process can have only outputs.
2) No process can have only inputs. If an object has only inputs than it must be a sink.
3) A process has a verb phrase label.
DATA STORE
1) Data cannot move directly from one data store to another data store, a process must move data.
2) Data cannot move directly from an outside source to a data store, a process, which receives, must
move data from the source and place the data into data store
3) A data store has a noun phrase label.
- 42 -

Project Report

SOURCE OR SINK
The origin and /or destination of data.
1) Data cannot move direly from a source to sink it must be moved by a process
2) A source and /or sink has a noun phrase land
DATA FLOW
1) A Data Flow has only one direction of flow between symbols. It may flow in both directions
between a process and a data store to show a read before an update. The later is usually indicated
however by two separate arrows since these happen at different type.
2) A join in DFD means that exactly the same data comes from any of two or more different processes
data store or sink to a common location.
3) A data flow cannot go directly back to the same process it leads. There must be at least one other
process that handles the data flow produce some other data flow returns the original data into the
beginning process.
4) A Data flow to a data store means update (delete or change).
5) A data Flow from a data store means retrieve or use.
A data flow has a noun phrase label more than one data flow noun phrase can appear on a single arrow
as long as all of the flows on the same arrow move together as one package.

- 43 -

Project Report

- 44 -

Project Report

- 45 -

Project Report

Database Design

fig.auction_result

fig.auction_table

fig.category_master
fig.category_master
fig.auction_trans

- 46 -

Project Report

fig.feedback
fig.payment_detail
fig.prod_dummy
fig.prod_master

- 47 -

Project Report

- 48 -

Project Report

Fig.seller_master

fig.seller_result

Fig.temporary
Fig.user_master->

- 49 -

Project Report

SYSTEM DESIGN
SYSTEM WORKFLOW
Client side working:-

Product Search/ Listing/login


|
Selecting a Particular Product
|
Enter the bidding price ------ checks whether logged in or not
|
redirect to login/registration page --------logs in or register for the first time
|
Enter the quoted price again
|
Redirect to bid order page -------- you can update,remove or view max bid
|
Once won the bid make payment ----confirmation mail /text message
|
Shipping

Admin side workflow


- 50 -

Project Report

Upload/remove the product for bidding


|
Confirmation of bid winners
|
Send mail/text message
|
Reminder message is sent---- >Payment not done in 1 day
|
Product kept for rebidding ----- > Payment not done in 2 days

Seller
Upload the product that he wants to keep for bidding.

TESTING
- 51 -

Project Report

Software testing is an investigation conducted to provide stakeholders with information about


the quality of the product or service under test.[1] Software testing can also provide an objective,
independent view of the software to allow the business to appreciate and understand the risks of
software implementation. Test techniques include, but are not limited to, the process of executing a
program or application with the intent of finding software bugs (errors or other defects).
It involves the execution of a software component or system component to evaluate one or more
properties of interest. In general, these properties indicate the extent to which the component or system
under test:

meets the requirements that guided its design and development,

responds correctly to all kinds of inputs,

performs its functions within an acceptable time,

is sufficiently usable,

can be installed and run in its intended and

achieves the general result its stakeholders desire.

As the number of possible tests for even simple software components is practically infinite, all
software testing uses some strategy to select tests that are feasible for the available time and resources.
As a result, software testing typically (but not exclusively) attempts to execute a program or application
with the intent of finding (errors or other defects).

- 52 -

Project Report

SOURCE CODE

- 53 -

Project Report

Default.aspx
<%@
Page
Title=""
Language="C#"
AutoEventWireup="true"
Inherits="latest_WebSite6_WebSite6_bidorder" %>

MasterPageFile="~/MasterPage.master"
CodeFile="bidorder.aspx.cs"

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" Runat="Server">
<br />
<table width="100%" style="height:300px;">
<tr>
<td colspan="3" style="width:100%;">
<center>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333"
GridLines="None" Width="70%" HeaderStyle-CssClass="abc"
HeaderStyle-Height="40px" PagerStyle-CssClass="abc" PagerStyle-Height="25px"
AllowPaging="True">
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
<Columns>
<asp:TemplateField>
<HeaderTemplate >
Auction_no.
</HeaderTemplate>
<ItemTemplate>
<asp:Label runat="server" ID="auction_id" Text='<%#Eval("auction_id") %>' Width="50px"
CssClass="abc" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="user_id" HeaderText="user_id"

- 54 -

Project Report

SortExpression="user_id" ItemStyle-Width="350px" ItemStyle-Height="50px" ItemStyleCssClass="abc" />


<asp:BoundField DataField="date" HeaderText="date" SortExpression="date"
Width="200px" ItemStyle-Height="50px" ItemStyle-CssClass="abc"/>

ItemStyle-

<asp:TemplateField>
<HeaderTemplate>
price
</HeaderTemplate>
<ItemTemplate>
<asp:TextBox MaxLength="6" runat="server" ID="price" Text='<%#Bind("quoted_price") %>'
Width="100px" CssClass="abc" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<HeaderTemplate>
Product Name
</HeaderTemplate>
<ItemTemplate>
<asp:Label runat="server" ID="prodname" Text='<%#Bind("prod_name") %>' Width="100px"
CssClass="abc" />
</ItemTemplate>
</asp:TemplateField>

<asp:TemplateField>
<HeaderTemplate>
Perform action
</HeaderTemplate>
<ItemTemplate>
<asp:checkbox runat="server" ID="chb" Width="150px" CssClass="abc"/>
</ItemTemplate>
</asp:TemplateField>
- 55 -

Project Report

</Columns>
<EditRowStyle BackColor="#999999" />
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#E9E7E2" />
<SortedAscendingHeaderStyle BackColor="#506C8C" />
<SortedDescendingCellStyle BackColor="#FFFDF8" />
<SortedDescendingHeaderStyle BackColor="#6F8DAE" />
</asp:GridView>
</center>
</td>
</tr>
<tr style="height:100px;">
<td colspan="3">
<asp:Label Text="Max for selected product is " ID="max_label" runat="server" Visible="false" />
</td>
</tr>
<tr>
<td align="center">
<asp:Button Text="Show max bid" ID="asd" runat="server" Width="150px"
OnClick="radio_changed" Height="30px" BackColor="Green" ForeColor="White" FontSize="20px"/>
</td>
<td align="center">
<asp:Button Text="update my bid" ID="update" runat="server" Width="150px"

- 56 -

Project Report

onclick="update_Click" Height="30px" BackColor="Blue" ForeColor="White" FontSize="20px"/>


</td>
<td align="center">
<asp:Button Text="remove bid" ID="remove" runat="server" Width="150px"
onclick="remove_Click" Height="30px" BackColor="Red" ForeColor="White" FontSize="20px"/>
</td>
</tr>
</table>

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


ConnectionString="<%$ ConnectionStrings:200marksConnectionString2 %>"

SelectCommand="SELECT [auction_id], [quoted_price], [prod_name], [date], [user_name],


[user_id] FROM [auction_trans] WHERE ([user_id] = @user_id)">
<SelectParameters>
<asp:SessionParameter Name="user_id" SessionField="uid" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Content>

- 57 -

Project Report

Default2.aspx
<%@
Page
Title=""
AutoEventWireup="true"

Language="C#"

MasterPageFile="~/MasterPage.master"

CodeFile="Default2.aspx.cs" Inherits="Default2" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" runat="Server">
<table>
<tr>
<td align="left" >
<a href="rebid_prod.aspx">REBID</a>
</td>
<td align="left">
<a href="prerebid.aspx">|PREREBID</a>
</td>
<td align="left">
<a href="selers.aspx">|ADD/REMOVE PRODUCTS</a>
</td>
</tr>
</table>
<table width="100%">
<tr>
<td align="center">
<asp:DropDownList
runat="server"
OnSelectedIndexChanged="auc_SelectedIndexChanged"

ID="auc"

AutoPostBack="True" Width="200px">
</asp:DropDownList>
</td>
</tr>
<tr>

- 58 -

Project Report

<td align="center">
<asp:GridView runat="server" ID="gridview1" AutoGenerateColumns="False" CellPadding="4"
DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None"
Width="70%"
HeaderStyle-CssClass="abc" HeaderStyle-Height="40px" PagerStyle-CssClass="abc"
PagerStyle-Height="25px" AllowPaging="True">
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
<Columns>
<asp:TemplateField>
<HeaderTemplate>
Auction_ID
</HeaderTemplate>
<ItemTemplate>
<asp:Label Text='<%#Bind("auction_id") %>' ID="auc_id" runat="server" Width="200px"
CssClass="abc" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<HeaderTemplate>
UserName
</HeaderTemplate>
<ItemTemplate>
<asp:Label Text='<%#Bind("name")
CssClass="abc" />

%>'

ID="urname"

runat="server"

Width="200px"

ID="status"

runat="server"

Width="200px"

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<HeaderTemplate>
Status
</HeaderTemplate>
<ItemTemplate>
<asp:Label Text='<%#Bind("status")
CssClass="abc" />

%>'

- 59 -

Project Report

</ItemTemplate>
</asp:TemplateField>
</Columns>
<EditRowStyle BackColor="#999999" />
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#E9E7E2" />
<SortedAscendingHeaderStyle BackColor="#506C8C" />
<SortedDescendingCellStyle BackColor="#FFFDF8" />
<SortedDescendingHeaderStyle BackColor="#6F8DAE" />
</asp:GridView>
<asp:SqlDataSource
ID="SqlDataSource1"
runat="server"
ConnectionStrings:200marksConnectionString2 %>"

ConnectionString="<%$

SelectCommand="SELECT * FROM [temporary]"></asp:SqlDataSource>


</td>
</tr>
<tr>
<td align="center">
</tr>
</table>
<asp:DropDownList runat="server" ID="vis" Visible="false">
</asp:DropDownList>
<asp:DropDownList runat="server" ID="vis_id" Visible="false">
</asp:DropDownList>
<center>
<asp:Label Text="" ID="neverhappen" runat="server" Width="300px" ForeColor="Red" FontBold="true"/>
</center>
</asp:Content>

- 60 -

Project Report

Bid_order.aspx
<%@
Page
Title=""
Language="C#"
AutoEventWireup="true"
Inherits="latest_WebSite6_WebSite6_bidorder" %>

MasterPageFile="~/MasterPage.master"
CodeFile="bidorder.aspx.cs"

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" Runat="Server">
<br />
<table width="100%" style="height:300px;">
<tr>
<td colspan="3" style="width:100%;">
<center>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333"
GridLines="None" Width="70%" HeaderStyle-CssClass="abc"
HeaderStyle-Height="40px" PagerStyle-CssClass="abc" PagerStyle-Height="25px"
AllowPaging="True">
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
<Columns>
<asp:TemplateField>
<HeaderTemplate >
Auction_no.
</HeaderTemplate>
<ItemTemplate>
<asp:Label runat="server" ID="auction_id" Text='<%#Eval("auction_id") %>' Width="50px"
CssClass="abc" />
</ItemTemplate>
</asp:TemplateField>

- 61 -

Project Report

<asp:BoundField DataField="user_id" HeaderText="user_id"


SortExpression="user_id" ItemStyle-Width="350px" ItemStyle-Height="50px" ItemStyleCssClass="abc" />
<asp:BoundField DataField="date" HeaderText="date" SortExpression="date"
Width="200px" ItemStyle-Height="50px" ItemStyle-CssClass="abc"/>

ItemStyle-

<asp:TemplateField>
<HeaderTemplate>
price
</HeaderTemplate>
<ItemTemplate>
<asp:TextBox MaxLength="6" runat="server" ID="price" Text='<%#Bind("quoted_price") %>'
Width="100px" CssClass="abc" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<HeaderTemplate>
Product Name
</HeaderTemplate>
<ItemTemplate>
<asp:Label runat="server" ID="prodname" Text='<%#Bind("prod_name") %>' Width="100px"
CssClass="abc" />
</ItemTemplate>
</asp:TemplateField>

<asp:TemplateField>
<HeaderTemplate>
Perform action
</HeaderTemplate>
<ItemTemplate>
<asp:checkbox runat="server" ID="chb" Width="150px" CssClass="abc"/>
</ItemTemplate>
- 62 -

Project Report

</asp:TemplateField>

</Columns>
<EditRowStyle BackColor="#999999" />
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#E9E7E2" />
<SortedAscendingHeaderStyle BackColor="#506C8C" />
<SortedDescendingCellStyle BackColor="#FFFDF8" />
<SortedDescendingHeaderStyle BackColor="#6F8DAE" />
</asp:GridView>
</center>
</td>
</tr>
<tr style="height:100px;">
<td colspan="3">
<asp:Label Text="Max for selected product is " ID="max_label" runat="server" Visible="false" />
</td>
</tr>
<tr>
<td align="center">
<asp:Button Text="Show max bid" ID="asd" runat="server" Width="150px"
OnClick="radio_changed" Height="30px" BackColor="Green" ForeColor="White" FontSize="20px"/>
</td>
<td align="center">
<asp:Button Text="update my bid" ID="update" runat="server" Width="150px"
- 63 -

Project Report

onclick="update_Click" Height="30px" BackColor="Blue" ForeColor="White" FontSize="20px"/>


</td>
<td align="center">
<asp:Button Text="remove bid" ID="remove" runat="server" Width="150px"
onclick="remove_Click" Height="30px" BackColor="Red" ForeColor="White" FontSize="20px"/>
</td>
</tr>
</table>

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


ConnectionString="<%$ ConnectionStrings:200marksConnectionString2 %>"

SelectCommand="SELECT [auction_id], [quoted_price], [prod_name], [date], [user_name],


[user_id] FROM [auction_trans] WHERE ([user_id] = @user_id)">
<SelectParameters>
<asp:SessionParameter Name="user_id" SessionField="uid" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Content>

- 64 -

Project Report

COMMON.aspx
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="COMMON.aspx.cs" Inherits="COMMON" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" Runat="Server">
<table width="100%">
<tr>
<td style="width:80%;" align="center" >
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Visible="False"
CellPadding="4" DataKeyNames="prod_id" DataSourceID="SqlDataSource1"
ForeColor="#333333" GridLines="None" AllowPaging="True" HeaderStyle-CssClass="abc"
HeaderStyle-Height="40px" PagerStyle-CssClass="abc" PagerStyle-Height="25px">
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
<Columns>
<asp:TemplateField>
<HeaderTemplate >
Product_Id
</HeaderTemplate>
<ItemTemplate >
<asp:Label Text='<%#Bind("prod_id")
CssClass="abc" />

%>'

ID="prod_id"

runat="server"

Width="200px"

</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="prod_name" HeaderText="prod_name" ItemStyle-Width="300px"
ItemStyle-Height="50px" ItemStyle-CssClass="abc"
SortExpression="prod_name" />
<asp:TemplateField>
<HeaderTemplate>
Remove Item
- 65 -

Project Report

</HeaderTemplate>
<ItemTemplate>
<asp:checkbox text="" runat="server" ID="chb" Width="200px" CssClass="abc" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EditRowStyle BackColor="#999999" />
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#E9E7E2" />
<SortedAscendingHeaderStyle BackColor="#506C8C" />
<SortedDescendingCellStyle BackColor="#FFFDF8" />
<SortedDescendingHeaderStyle BackColor="#6F8DAE" />
</asp:GridView>
</td>
</tr>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:200marksConnectionString2 %>"
SelectCommand="SELECT [prod_id], [prod_name] FROM [product_master]">
</asp:SqlDataSource>
<tr>
<td align="center">
<asp:Button Text="delete" ID="del" runat="server" onclick="del_Click" Font-Bold="true" FontSize="20px" Visible="false" Height="50px" Width="100px" BackColor="Blue" ForeColor="White"
/>
</td>
</tr>
</table>
<br />
<center>

- 66 -

Project Report

<asp:Label Text="Enter those values that you want to update" ID="error_message" runat="server"
Visible="false" Font-Bold="True" Font-Names="Calisto MT"
Font-Size="Large" />
</center>
<br />
<asp:Label Text="1" ID="temp" runat="server" Visible="false" />
<table style="width:100%;height:500px;" runat="server" id="t">
<tr>
<td class="style6">
<asp:Label ID="cat" runat="server" Font-Bold="True" Font-Names="Calisto MT"
Font-Size="Large"
ForeColor="#009933">Choose Your Category:</asp:Label>
</td>
<td class="style4">
<asp:DropDownList ID="cat_dd" runat="server" AutoPostBack="true"
Width="200px" ><%--onselectedindexchanged="createsess"--%>
<asp:ListItem Text="select"></asp:ListItem>
<asp:ListItem Text="Finearts" />
<asp:ListItem Text="Photographs" />
</asp:DropDownList>

</td>
</tr>
<tr>
<td class="style6">
<asp:Label ID="productName1" runat="server" Font-Bold="True" Font-Names="Calisto MT"
Font-Size="Large"
ForeColor="#666633">Product Name:</asp:Label>
- 67 -

Project Report

</td>
<td class="style4">
<asp:DropDownList runat="server" ID="dd_name" Width="200px" AutoPostBack="true" >
<%--onselectedindexchanged="dd_nchanged"--%>
</asp:DropDownList>
</td>
</tr>

<tr>
<td class="style6">
<asp:Label ID="prodimg" runat="server" Font-Bold="True" Font-Names="Calisto MT"
Font-Size="Large"
ForeColor="#006699">Product Image:</asp:Label>
</td>
<td class="style4">
<asp:FileUpload runat="server" id="fileupload1" BorderWidth="2px"
></asp:FileUpload>

</td>
</tr>
<tr>
- 68 -

Project Report

<td class="style6">
<asp:Label ID="Prodmanu" runat="server" Font-Bold="True" Font-Names="Calisto MT"
Font-Size="Large"
AssociatedControlID="ProductManufacture" ForeColor="#663300">Product
Manufacture:</asp:Label>
</td>
<td class="style4">
<asp:TextBox ID="ProductManufacture" runat="server" Width="200px"
BorderWidth="3px"></asp:TextBox>
<asp:RequiredFieldValidator ID="prodmanufacture" runat="server"
ControlToValidate="ProductManufacture" ErrorMessage="Product manufacture is
mandatory."><h4><b>*Product Manufacture is mandatory.</b></h4></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style6">
<asp:Label ID="prodwar" runat="server" Font-Bold="True" Font-Names="Calisto MT"
Font-Size="Large"
AssociatedControlID="ProductWaranty" ForeColor="#003300">Product
Waranty:</asp:Label>
</td>
<td class="style4">
<asp:TextBox
ID="ProductWaranty"
BorderWidth="3px"></asp:TextBox>

runat="server"

Width="200px"

<asp:RequiredFieldValidator ID="Productwarty" runat="server"


ControlToValidate="ProductWaranty" ErrorMessage="Product Waranty is
mandatory."><h4><b>*Product Waranty is mandatory.</b></h4></asp:RequiredFieldValidator>
</td>
</tr>

- 69 -

Project Report

<tr>
<td class="style6">
<asp:Label ID="productAmount1" runat="server" Font-Bold="True" Font-Names="Calisto MT"
Font-Size="Large"
AssociatedControlID="ProductAmount" ForeColor="#990000">Product
Amount:</asp:Label>
</td>
<td class="style4">
<asp:TextBox
ID="ProductAmount"
BorderWidth="3px"></asp:TextBox>

runat="server"

Width="200px"

<asp:RequiredFieldValidator ID="Passwordamount" runat="server"


ControlToValidate="ProductAmount" ErrorMessage="Product Amount is
mandatory."><h4><b>*Product Amount is mandatory.</b></h4></asp:RequiredFieldValidator>
</td>
</tr>

<tr>
<td class="style6">
<asp:Label ID="Productfea" runat="server" Font-Bold="True" Font-Names="Calisto MT"
Font-Size="Large"
AssociatedControlID="ProductFeature" ForeColor="#666633">Product
Features:</asp:Label>
</td>
<td class="style4">
<asp:TextBox
ID="ProductFeature"
BorderWidth="3px"></asp:TextBox>

runat="server"

Width="200px"

<asp:RequiredFieldValidator ID="Passwordfeatur" runat="server"

- 70 -

Project Report

ControlToValidate="ProductFeature" ErrorMessage="Product Feature is


mandatory."><h4>
<b>*Product Feature is mandatory.</b></h4>
</asp:RequiredFieldValidator>
</td>
</tr>

<tr>
<td class="style6">
<asp:Label ID="productdesc" runat="server" Font-Bold="True" Font-Names="Calisto MT"
Font-Size="Large"
AssociatedControlID="ProductDescription" ForeColor="#666699">Product
Description:</asp:Label>
</td>
<td class="style4">
<asp:TextBox ID="ProductDescription" runat="server" Width="200px"
BorderWidth="3px"></asp:TextBox>
<asp:RequiredFieldValidator ID="Passwordesc" runat="server"
ControlToValidate="ProductDescription" ErrorMessage="Product Description is
mandatory."><h4><b>*Product Description is mandatory.</b></h4></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style6" >
<asp:Label ID="starttime" runat="server" Font-Bold="True" Font-Names="Calisto MT"
Font-Size="Large"
ForeColor="#CC9900" >Auction Start Time:</asp:Label>

- 71 -

Project Report

</td>
<td class="style4">
<asp:DropDownList runat="server" ID="hr" >
</asp:DropDownList>
<asp:DropDownList runat="server" ID="min" >
</asp:DropDownList>
<asp:DropDownList runat="server" ID="ap" >
<asp:ListItem Text="AM" />
<asp:ListItem Text="PM" />
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="style6">
<asp:Label ID="endtime1" runat="server" Font-Bold="True" Font-Names="Calisto MT"
Font-Size="Large"
ForeColor="#660033">Auction End Time:</asp:Label>
</td>
<td class="style4">
<asp:DropDownList runat="server" ID="DropDownList1">
</asp:DropDownList>
<asp:DropDownList runat="server" ID="DropDownList2" >
</asp:DropDownList>
<asp:DropDownList runat="server" ID="DropDownList3" >
<asp:ListItem Text="AM" />
- 72 -

Project Report

<asp:ListItem Text="PM" />


</asp:DropDownList>
</td>
</tr>
</table>
<center>
<asp:Button ID="Button1" Text="Submit" Font-Size="Large" Font-Names="Calisto MT"
Font-Bold="true" runat="server" BackColor="#FF6666" BorderColor="Maroon"
BorderStyle="Solid" BorderWidth="3px" EnableViewState="False"
ForeColor="Black" />
</center>
</asp:Content>

- 73 -

Project Report

Login.aspx
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="latest_WebSite6_WebSite6_login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" Runat="Server" >
<table width="100%" style="height:500px;background-image:url(Images/black-and-white-abstractbackground.jpg);">
<tr>
<td style="height:500px;width:40px;">
<center>
<asp:Login ID="Login1" runat="server" BackColor="#F7F7DE" BorderColor="#CCCC99"
BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="10pt"
Height="343px" Width="289px" onloggedin="sess_Click">
<LayoutTemplate>
<table cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
<tr>
<td>
<table cellpadding="0" style="height:423px;width:289px;">
<tr>
<td align="center" colspan="2"
style="color:White;background-color:Gray;font-weight:bold;fontfamily:Comic Sans MS; font-size:large;">
Log In</td>
</tr>
<tr>
<td align="center">
<asp:Label ID="UserNameLabel" runat="server" Font-Bold="true" Font-Names="Calisto MT"
Font-Size="Medium" AssociatedControlID="UserName">User Name:</asp:Label>
</td>
<td>
- 74 -

Project Report

<asp:TextBox ID="UserName" runat="server"></asp:TextBox>


<asp:RequiredFieldValidator ID="UserNameRequired" runat="server"
ControlToValidate="UserName" ErrorMessage="User Name is
required."
ToolTip="User Name is required."
ValidationGroup="Login1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="center">
<asp:Label ID="PasswordLabel" runat="server" Font-Bold="true" Font-Names="Calisto MT" FontSize="Medium" AssociatedControlID="Password">Password:</asp:Label>
</td>
<td>
<asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="PasswordRequired" runat="server"
ControlToValidate="Password" ErrorMessage="Password is
required."
ToolTip="Password is required."
ValidationGroup="Login1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<asp:CheckBox ID="RememberMe" runat="server" Font-Bold="true" Font-Names="Calisto MT"
Font-Size="Medium" Text="Remember me next time." />
</td>
</tr>
<tr>
<td align="center" colspan="2">
<asp:Button ID="LoginButton" runat="server" CommandName="Login"
Font-Bold="true" Font-Names="Calisto MT" Font-Size="Medium"
Text="Log In"
ValidationGroup="Login1" />
- 75 -

Project Report

</td>
</tr>
<tr>
<td align="center" colspan="2" style="color:Red;">
<asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
</td>
</tr>
</table>
</td>
</tr>
</table>
</LayoutTemplate>
<TitleTextStyle BackColor="#6B696B" Font-Bold="True" ForeColor="#FFFFFF" />
</asp:Login>
</center>
</td>
<td style="height:500px;width:60%;">
<center>
<asp:Label Text="" ID="err" ForeColor="Red" Font-Size="15px" runat="server" />
<asp:CreateUserWizard
BorderColor="#FFDFAD"

ID="Cuw1"

runat="server"

BackColor="#FFFBD6"

BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em"


Height="423px" Width="423px" OnCreatedUser="add_db"
oncontinuebuttonclick="cont_cick" onnextbuttonclick="Cuw1_CreatingUser" >
<ContinueButtonStyle BackColor="White" BorderColor="#CC9966" BorderStyle="Solid"
BorderWidth="1px" Font-Names="Verdana" ForeColor="#990000" />
<CreateUserButtonStyle BackColor="White" BorderColor="#CC9966" BorderStyle="Solid"
BorderWidth="1px" Font-Size="Large" Font-Names="Calisto MT"
ForeColor="Gray" />
<TitleTextStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
<ContentTemplate>

- 76 -

Project Report

<table style="background-color: #FFFBD6; font-family: Verdana; font-size: 100%; height: 423px;


width: 423px;">
<tr>
<td align="center" colspan="2" style="color: White; background-color: Gray; font-weight: bold;
font-family: Comic Sans MS; font-size: large;">
Registration for new Users
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="UserNameLabel" runat="server" Font-Bold="true" Font-Names="Calisto MT"
Font-Size="Medium" AssociatedControlID="UserName">User
Name:</asp:Label>
</td>
<td>
<asp:TextBox ID="UserName" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator
ID="UserNameRequired"
ControlToValidate="UserName" ForeColor="Red"

runat="server"

ErrorMessage="User Name is required." ToolTip="User Name is


required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="Label10" runat="server" Font-Bold="true" Font-Names="Calisto MT" FontSize="Medium"
AssociatedControlID="sur">Surname:</asp:Label>
</td>
<td>
<asp:TextBox ID="sur" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ErrorMessage="surname is required" Text="*" ForeColor="Red"
ControlToValidate="sur" ValidationGroup="CreateUserWizard1"
runat="server" />
</td>

- 77 -

Project Report

</tr>
<tr>
<td align="right">
<asp:Label ID="PasswordLabel" runat="server" Font-Bold="true" Font-Names="Calisto MT"
Font-Size="Medium"
AssociatedControlID="Password">Password:</asp:Label>
</td>
<td>
<asp:TextBox ID="Password" runat="server" TextMode="Password"
></asp:TextBox>
<asp:RequiredFieldValidator
ID="PasswordRequired"
ControlToValidate="Password" ForeColor="Red"

runat="server"

ErrorMessage="Password is required." ToolTip="Password is


required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="ConfirmPasswordLabel" runat="server" Font-Bold="true" Font-Names="Calisto
MT"
Font-Size="Medium"
AssociatedControlID="ConfirmPassword">Confirm Password:</asp:Label>
</td>
<td>
<asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator
ID="ConfirmPasswordRequired"
ControlToValidate="ConfirmPassword"

runat="server"

ErrorMessage="Confirm Password is required." ToolTip="Confirm


Password is required."
ValidationGroup="CreateUserWizard1"
ForeColor="Red">*</asp:RequiredFieldValidator>
<asp:CompareValidator
ErrorMessage="*"
ControlToCompare="ConfirmPassword"
ControlToValidate="Password" Text="*" ForeColor="Red" Type="String"
runat="server" />
</td>

- 78 -

Project Report

</tr>
<tr>
<td align="right">
<asp:Label ID="EmailLabel" runat="server" Font-Bold="true" Font-Names="Calisto MT"
Font-Size="Medium" AssociatedControlID="Email">Email:</asp:Label>
</td>
<td>
<asp:TextBox ID="Email" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator
Display="Dynamic"
ControlToValidate="Email" ForeColor="Red"

ID="EmailRequired"

runat="server"

ErrorMessage="E-mail is required." ToolTip="E-mail is required."


ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator
ForeColor="Red"

ErrorMessage="errormessage"

ControlToValidate="Email"

runat="server" Text="*" ValidationExpression="\w+([-+.']\w+)*@\w+


([-.]\w+)*\.\w+([-.]\w+)*" />
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="Label1" runat="server"
Size="Medium"

Font-Bold="true" Font-Names="Calisto MT" Font-

AssociatedControlID="Mobile">Mobile number:</asp:Label>
</td>
<td>
<asp:TextBox ID="Mobile" runat="server" />
<asp:RequiredFieldValidator
ErrorMessage="enter
ur
mobile
ControlToValidate="Mobile" ValidationGroup="CreateUserWizard1"

number"

Text="*"

runat="server" Display="Dynamic" ForeColor="Red"/>


<asp:RegularExpressionValidator
ForeColor="Red"
Display="Dynamic"
ValidationGroup="CreateUserWizard1" ID="RegularExpressionValidator1" ErrorMessage="enter in
digits only" Text="*"
ControlToValidate="Mobile" runat="server"
ValidationExpression="^(?:(?:\+|0{0,2})91(\s*[\-]\s*)?|[0]?)?
[789]\d{9}$">*</asp:RegularExpressionValidator>
- 79 -

Project Report

</td>
</tr>
</tr>
<tr>
<td align="right">
<asp:Label ID="AddressLabel" runat="server" Font-Bold="true" Font-Names="Calisto MT"
Font-Size="Medium"
AssociatedControlID="Question">Address1:</asp:Label>
</td>
<td>
<asp:TextBox ID="Question" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="AddressRequired" runat="server" ControlToValidate="Question"
ForeColor="Red"
ErrorMessage="User Address Required." ToolTip="User Address is
required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="AddressLabel2" runat="server" Font-Bold="true" Font-Names="Calisto MT"
Font-Size="Medium"
AssociatedControlID="Answer">Address2:</asp:Label>
</td>
<td>
<asp:TextBox ID="Answer" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator
ErrorMessage="Address
2
is
ControlToValidate="Answer" ValidationGroup="CreateUserWizard1"

mandatory"

Text="*"

runat="server" ForeColor="Red"/>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="AddressLabel3" runat="server" Font-Bold="true" Font-Names="Calisto MT"

- 80 -

Project Report

Font-Size="Medium"
AssociatedControlID="Add3">Address3:</asp:Label>
</td>
<td>
<asp:TextBox ID="Add3" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="Label3" runat="server" Font-Bold="true" Font-Names="Calisto MT" FontSize="Medium"> State:</asp:Label>
</td>
<td>
<asp:TextBox ID="stateid" runat="server" />
<asp:RequiredFieldValidator Text="*" ForeColor="Red" ValidationGroup="CreateUserWizard1"
ErrorMessage="state cannot be empty" ControlToValidate="stateid" runat="server" />
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="Label4" runat="server" Font-Bold="true" Font-Names="Calisto MT" FontSize="Medium"> City</asp:Label>
</td>
<td>
<asp:TextBox ID="cityid" runat="server" />
<asp:RequiredFieldValidator ValidationGroup="CreateUserWizard1" Text="*" ForeColor="Red"
ErrorMessage="city cannot be empty" ControlToValidate="cityid" runat="server" />
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="Label5" runat="server" Font-Bold="true" Font-Names="Calisto MT" FontSize="Medium"> Zip code</asp:Label>
</td>

- 81 -

Project Report

<td>
<asp:TextBox ID="zipid" runat="server" />
</td>
<td>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"
ControlToValidate="ConfirmPassword" Display="Dynamic" FontBold="true" Font-Names="Calisto MT"
Font-Size="Medium" ErrorMessage="The Password and Confirmation
Password must match."
ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
</td>
</tr>
<tr>
<td align="center" colspan="2" style="color: Red;">
<asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False" ></asp:Literal>
</td>
</tr>
</table>
</ContentTemplate>
</asp:CreateUserWizardStep>
<asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server">
</asp:CompleteWizardStep>
</WizardSteps>
<HeaderStyle
BackColor="#FFCC66"
BorderWidth="2px"

BorderColor="#FFFBD6"

BorderStyle="Solid"

Font-Bold="True" Font-Size="0.9em" ForeColor="#333333"


HorizontalAlign="Center" />
<NavigationButtonStyle BackColor="White" BorderColor="#CC9966" BorderStyle="Solid"
BorderWidth="1px" Font-Names="Verdana" ForeColor="#990000" />
- 82 -

Project Report

<SideBarButtonStyle ForeColor="White" />


<SideBarStyle BackColor="#990000" Font-Size="0.9em" VerticalAlign="Top" />
</asp:CreateUserWizard>
</center>
</td>
</tr>
</table>
</asp:Content>

Master.aspx

- 83 -

Project Report

<%@ Master Language="C#"


Inherits="MasterPage" %>

AutoEventWireup="true"

CodeFile="MasterPage.master.cs"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

1.0

Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link href="css/style.css" rel="stylesheet" type="text/css" />
<title></title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<!--[if lte IE 6]><style type="text/css" media="screen">.tabbed { height:420px; }</style><![endif]->
<script src="js/jquery-1.4.1.min.js" type="text/javascript"></script>
<script src="js/jquery.jcarousel.pack.js" type="text/javascript"></script>
<script src="js/jquery.slide.js" type="text/javascript"></script>
<script src="js/jquery-func.js" type="text/javascript"></script>
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<!-- Top -->
<div id="top">
<div class="shell">
<!-- Header -->
<div id="header">
<h1 id="logo">
<a href="#">Urgan Gear</a></h1>
<div id="navigation">
<ul>
<li>
<asp:HyperLink NavigateUrl="~/Default2.aspx" ID="onlyadmin" runat="server" Text="ADMIN"
Visible="false"/></li>
- 84 -

Project Report

<li><a href="Default.aspx">Home</a></li>
<li><a href="prod_cat.aspx?cat=1">FineArts</a></li>
<li><a href="prod_cat.aspx?cat=2">Photographs</a></li>
<li><a href="Selers.aspx">sell</a></li>
<li ><a href="bidorder.aspx">MyBid</a></li>
<li>
<asp:HyperLink
NavigateUrl="~/payment.aspx"
runat="server" /></li>

ID="paymenturl"

Text="Payment"

<li class="last">
<asp:HyperLink NavigateUrl="login.aspx" ID="log" Text="" runat="server" />
<asp:Button Text="" ID="logout" runat="server"
Width="50px" CausesValidation="false" />

onclick="logout_Click"

Height="20px"

</li>
</ul>
</div>
</div>
<!-- End Header -->
<!-- Slider -->
<div id="slider">
<div id="slider-holder">
<ul>
<li><a href="">
<img
src="Images/13-04-sail-boat-art-modern-palette-knife.jpg"
width="980" /></a></li>

alt=""

height="418"

<li><a href="">
<img src="Images/tiger-painting.jpg" alt="" height="418" width="980"/></a></li>
<li><a href="">
<img src="Images/1-oil-painting-silver-bowl.jpg" alt="" height="418" width="980"/></a></li>
<li><a href="">
<img
src="Images/paintings%20trees%20childhood%20children
%201280x1024%20wallpaper_www.wallpaperfo.com_68.jpg"
alt=""
height="418"
width="980"/></a></li>
<li><a href="">

- 85 -

Project Report

<img src="Images/].jpg" alt="" height="418" width="980"/></a></li>


<li><a href="">
<img src="Images/20-colorful-paintings.jpg" alt="" height="418" width="980"/></a></li>
</ul>
</div>
<div id="slider-nav">
<a href="#" class="prev">Previous</a><a href="#" class="next">Next</a>
</div>
</div>
<!-- End Slider -->
</div>
</div>
<!-- Top -->
<!-- Main -->
<div id="main">
<div class="shell">
<!-- Search, etc -->
<div class="options">
<div class="search">
<span class="field">
<asp:Label Text="" ID="displaypage" runat="server" Font-Size="Large" />
</span>

</div>
<span class="left">
<asp:Label
/></span>

Text=""

ID="welcome"

runat="server"

Font-Size="Large"

ForeColor="Brown"

<div class="right">
<span class="cart"><a href="bidorder.aspx" class="cart-ico">&nbsp;</a><strong>
<asp:Label Text="0 Items" runat="server" ID="rs" /></strong>
- 86 -

Project Report

</span><span class="left more-links"><a href="#"></a><a href="#"></a>


</span>
</div>
</div>
<!-- End Search, etc -->
<!-- Content -->
<div id="content" >
<!-- Tabs -->
<!-- Tabs -->
<!-- Container -->
<div id="container">
<div class="tabbed">
<!-- First Tab Content -->
<div class="tab-content" style="display: block;" >
<asp:ContentPlaceHolder ID="Main" runat="server">
</asp:ContentPlaceHolder>
</div>
<!-- End First Tab Content -->
</div>
<!-- Brands -->
<!-- End Brands -->
<!-- Footer -->
<div id="footer" >
<div class="left" >
<a
href="Default.aspx">Home</a><span>|</span><a
</span><a href="prod_cat.aspx?cat=2">

href="selers.aspx">Sell</a><span>|

Photography </a><span>|</span><a href="prod_cat.aspx?cat=1">Fine Arts</a><span>|


</span><a href="bidorder.aspx">My Bid</a><span>|</span><a href="#">Contact Us</a>
</div>
<div class="right">

- 87 -

Project Report

&copy; <a href="Default.aspx">AuctionHouse.com.</a>


</div>
</div>
<!-- End Footer -->
</div>
<!-- End Container -->
</div>
<!-- End Content -->
</div>
</div>
<!-- End Main -->
</form>
</body>
</html>

Payment.aspx
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="payment.aspx.cs" Inherits="payment" %>

- 88 -

Project Report

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" Runat="Server">
<div id="diva" runat="server">
<%-- <h2>
Make Your Payment</h2>
</br>
<h4>
Please Verify User Detail</h4>
</br>--%>
<table width="100%" runat="server" id="t">
<tr style="width:100%;">
<td>
<h2>
Make Your Payment</h2></td>
</tr>
<tr style="width:100%;">
<td>
<h4>
Please Verify User Detail</h4></td></tr>
</table>
<br />

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%"


DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="auction_id" HeaderText="auction_id"
SortExpression="auction_id" />
<asp:BoundField DataField="user_id" HeaderText="user_id"
SortExpression="user_id" Visible="false" />
- 89 -

Project Report

<asp:BoundField DataField="quoted_final" HeaderText="quoted_final"


SortExpression="quoted_final" />
<asp:BoundField DataField="date" HeaderText="date" SortExpression="date" />
<asp:BoundField DataField="min_price" HeaderText="min_price"
SortExpression="min_price" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:200marksConnectionString2 %>"
SelectCommand="SELECT [auction_id], [user_id], [quoted_final], [date], [min_price]
FROM [auction_result] WHERE (([user_id] = @user_id) AND ([status] = @status))">
<SelectParameters>
<asp:SessionParameter Name="user_id" SessionField="uid" Type="String" />
<asp:Parameter DefaultValue="unpaid" Name="status" Type="String" />
</SelectParameters>
</asp:SqlDataSource>

<br />

<table runat="server" id="t1" style="width:100%;">


<tr >
<td><asp:Label ID="lblpmode" runat="server" Text="Payment Mode:"/>
</td>
<td><asp:RadioButton GroupName="CR_Bank" ID="cc" runat="server" Text="Credit Card"
oncheckedchanged="cc_CheckedChanged" AutoPostBack="True" Checked="true" />
<asp:RadioButton GroupName="CR_Bank"
AutoPostBack="True"

ID="dc"

runat="server"

Text="Debit

Card"

oncheckedchanged="dc_CheckedChanged" />
</td>

- 90 -

Project Report

</tr>
<tr>
<td colspan="2" align="center">
<asp:PlaceHolder ID="creditcard" runat="server" Visible="False">
<asp:RadioButtonList
ID="RadioButtonList1"
RepeatDirection="Vertical" Visible="True">

runat="server"

RepeatLayout="Table"

<asp:ListItem Text="AmericanExpress" Value="1" Selected="True"></asp:ListItem>


<asp:ListItem Text="Master" Value="2"></asp:ListItem>
<asp:ListItem Text="Visa" Value="3"></asp:ListItem>
</asp:RadioButtonList>

</asp:PlaceHolder>

<asp:PlaceHolder ID="PlaceHolder1" runat="server" Visible="False">


<asp:RadioButtonList
ID="RadioButtonList2"
RepeatDirection="Vertical">

runat="server"

RepeatLayout="Table"

<asp:ListItem Text="State Bank" Value="1" Selected="True"></asp:ListItem>


<asp:ListItem Text="HDFC" Value="2"></asp:ListItem>
<asp:ListItem Text="ICICI" Value="3"></asp:ListItem>
</asp:RadioButtonList>

</asp:PlaceHolder>
</td>
</tr>
<tr>
<td colspan="2" align="center"><asp:Button Text="Submit" runat="server"
ID="btnsubmit" onclick="btnsubmit_Click"/></td>
</tr>

- 91 -

Project Report

</table>
<center>
</center>
<asp:Label Text="" ID="nogrid" ForeColor="Red" Font-Size="20px" runat="server" Visible="false"
/>
</div>
</asp:Content>

Paymentauthor.aspx
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="paymentauthor.aspx.cs" Inherits="paymentauthor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
- 92 -

Project Report

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" Runat="Server">
<div id="diva" runat="server">
<table>
<tr>
<td colspan="2"><h3>Payment Information(Please enter your card details to authorise this
transaction)</h3></td>
</tr>
<tr>
<td>
<asp:Label Text="Card Number" runat="server" id="lblcno"/>
</td>
<td>
<asp:TextBox id="txtcno" runat="server" MaxLength="20" Width="248px" />
<asp:RegularExpressionValidator
ErrorMessage="Plz enter number in correct format"
ControlToValidate="txtcno"
ForeColor="Red"
runat="server"
ID="REV_For_All"
/>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator2" runat="server"
ErrorMessage="CreditCard Number can not be blank"
ForeColor="red"
ControlToValidate="txtcno"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
- 93 -

Project Report

<asp:Label Text="Name On Card" runat="server" id="lblname"/>


</td><td><asp:textbox ID="txtcname" runat="server" Width="249px" />
<asp:RequiredFieldValidator
ID="RequiredFieldValidator1"
runat="server"
ErrorMessage="Name can not be blank"
ForeColor="red"
ControlToValidate="txtcname"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:Label Text="Expiry Date" runat="server" id="lbledate"/>
</td>
<td>
<asp:DropDownList ID="mm" runat="server" Height="16px" Width="43px" >
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem>4</asp:ListItem>
<asp:ListItem>5</asp:ListItem>
<asp:ListItem>6</asp:ListItem>
<asp:ListItem>7</asp:ListItem>
<asp:ListItem>8</asp:ListItem>
<asp:ListItem>9</asp:ListItem>
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>11</asp:ListItem>
<asp:ListItem>12</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="yyyy" runat="server" Height="16px" Width="60px" >
<asp:ListItem>2015</asp:ListItem>
<asp:ListItem>2016</asp:ListItem>
<asp:ListItem>2017</asp:ListItem>
- 94 -

Project Report

<asp:ListItem>2018</asp:ListItem>
<asp:ListItem>2019</asp:ListItem>
<asp:ListItem>2020</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
<asp:Label Text="CVD2 Number" runat="server" id="lblcvd"/>
</td>
<td><asp:textbox ID="txtcvd" runat="server" Width="83px" />
<asp:RequiredFieldValidator
ID="RequiredFieldValidator3"
runat="server"
ForeColor="red"
ErrorMessage="CVD Number can not be blank"
ControlToValidate="txtcvd"></asp:RequiredFieldValidator>

<asp:RegularExpressionValidator ID="REV_cre" runat="server"


ErrorMessage="Enter Correct CVD Number"
ForeColor="Red"
ControlToValidate="txtcvd" >
</asp:RegularExpressionValidator>

</td>
</tr>
<tr>
<td colspan="2" align="center">
<asp:Button ID="btncancel" Text="Cancel"
runat="server" onclick="btncancel_Click" />
<asp:Button ID="btnpayment" Text="Make Payment" runat="server" onclick="btnpayment_Click"
- 95 -

Project Report

/></td>
<asp:Label ID="msg" runat="server"/>
</tr>
</table>
</div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Timer ID="Timer1" runat="server" Interval="7000" ontick="Timer1_Tick" >
</asp:Timer>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" />
</Triggers>
</asp:UpdatePanel>
<asp:Label Text="Thank u for ur payment" runat="server" ID="thanks" Visible="false" />
<br />
<asp:HyperLink ID="h" NavigateUrl="~/Default.aspx" Visible="false" Text="Please wait for few
seconds. If not redirected automatically please click here" runat="server" />
</asp:Content>

Prerebid.aspx
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="prerebid.aspx.cs" Inherits="prerebid" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

- 96 -

Project Report

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" Runat="Server">
<table>
<tr>
<td align="left" >
<a href="rebid_prod.aspx">REBID</a>
</td>
<td align="left">
<a href="prerebid.aspx">|PREREBID</a>
</td>
<td align="left">
<a href="selers.aspx">|ADD/REMOVE PRODUCTS</a>
</td>
</tr>
</table>
<asp:Label Text="" ID="datem" runat="server" Visible="false" />
<center>
<asp:Label Text="No more bids to remind. Thank you" Visible="false" ID="nomore" runat="server"
ForeColor="Red" Font-Bold="true"/>
<asp:GridView runat="server" DataSourceID="SqlDataSource1" ID="GridView1"
AutoGenerateColumns="False"
ForeColor="#333333" GridLines="None" Width="70%"
HeaderStyle-CssClass="abc" HeaderStyle-Height="40px" PagerStyle-CssClass="abc"
PagerStyle-Height="25px" AllowPaging="True">
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
<Columns>
<asp:TemplateField>
<HeaderTemplate>
Auction_Id
</HeaderTemplate>
<ItemTemplate>
<asp:Label Text='<%# Bind("auction_id") %>' runat="server" ID="ll" />
</ItemTemplate>
- 97 -

Project Report

</asp:TemplateField>
<asp:TemplateField>
<HeaderTemplate>
<asp:Label ID="L99" Text="user_id" runat="server" Visible="false"/>
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="Label1" Text='<%# Bind("user_id") %>' runat="server" Visible="false"/>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<HeaderTemplate>
prod_id
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="Label2" Text='<%# Bind("prod_id") %>' runat="server" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="min_price" HeaderText="min_price"
SortExpression="min_price" />
<asp:BoundField DataField="quoted_final" HeaderText="quoted_final"
SortExpression="quoted_final" />
<asp:BoundField DataField="date" HeaderText="date" SortExpression="date" />
<asp:BoundField DataField="status" HeaderText="status"
SortExpression="status" />
</Columns>
<EditRowStyle BackColor="#999999" />
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#E9E7E2" />
<SortedAscendingHeaderStyle BackColor="#506C8C" />
- 98 -

Project Report

<SortedDescendingCellStyle BackColor="#FFFDF8" />


<SortedDescendingHeaderStyle BackColor="#6F8DAE" />
</asp:GridView>
<asp:Button
Text="send
BackColor="Orange"

reminder"

ID="place"

runat="server"

ForeColor="White"

OnClick="place_Click" />
</center>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:200marksConnectionString2 %>"
SelectCommand="SELECT * FROM [auction_result] WHERE (([status] = @status) AND
([date] = @date))">
<SelectParameters>
<asp:Parameter DefaultValue="unpaid" Name="status" Type="String" />
<asp:ControlParameter ControlID="datem" Name="date" PropertyName="Text"
Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Content>

Prod_cat.aspx
<%@
Page
Title=""
Language="C#"
MasterPageFile="MasterPage.master"
AutoEventWireup="true" CodeFile="prod_cat.aspx.cs" Inherits="prod_cat" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" Runat="Server">

- 99 -

Project Report

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


ConnectionString="<%$ ConnectionStrings:200marksConnectionString2 %>"
SelectCommand="SELECT * FROM [product_master] WHERE ([cat_id] = @cat_id) and
sel_bid='active' " >
<SelectParameters>
<asp:QueryStringParameter Name="cat_id" QueryStringField="cat" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
<asp:ListView ID="ListView1" runat="server" DataSourceID="srs1" GroupItemCount="4">
<LayoutTemplate>
<div class="items">
<div class="cl">
&nbsp;</div>
<table cellspacing="5" cellpadding="10" width="90%">
<asp:PlaceHolder runat="server" ID="groupPlaceHolder" />
</table>
<div class="cl">
&nbsp;</div>
</LayoutTemplate>
<GroupTemplate>
<tr>
<asp:PlaceHolder runat="server" ID="itemPlaceHolder" />
</tr>
</GroupTemplate>
<ItemTemplate>
<td>
<ul>
<li>
<div class="image">
<a href="temp.aspx?pid=<%#Eval("prod_id")
%#Eval("prod_manu") %>">

%>&pname=<%#Eval("prod_name")

%>&r=<

<img src="Images/<%#Eval("prod_image") %>" height="83" width="128" alt="" /></a>


</div>

- 100 -

Project Report

<p class="price">
<span>
Name : <%#Eval("prod_name") %></span><br />
<span>
Manu : <%#Eval("prod_manu") %></span><br />
<a href="#">
Desc : <%#Eval("prod_desc") %></a>
</p>
<p class="price">
Price: <strong>
<%#Eval("prod_amt") %></strong></p>
<p class="price">
<a href="temp.aspx?pid=<%#Eval("prod_id")
%#Eval("prod_manu") %>">

%>&pname=<%#Eval("prod_name")

%>&r=<

<img alt="" src="Images/Capture.JPG" height="35" width="65"/></a>


</p>
</li>
</ul>
</td>
</ItemTemplate>
</asp:ListView>
</asp:Content>

Rebid_prod.aspx
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="rebid_prod.aspx.cs" Inherits="rebid_prod" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
- 101 -

Project Report

<asp:Content ID="Content2" ContentPlaceHolderID="Main" Runat="Server">


<table>
<tr>
<td align="left" >
<a href="rebid_prod.aspx">REBID</a>
</td>
<td align="left">
<a href="prerebid.aspx">|PREREBID</a>
</td>
<td align="left">
<a href="selers.aspx">|ADD/REMOVE PRODUCTS</a>
</td>
</tr>
</table>
<center>
<asp:Label Text="No more bids for rebidding. Thank you" Visible="false" ID="nomore"
runat="server" ForeColor="Red" Font-Bold="true"/>
.<asp:Label Text="" ID="datem" runat="server" Visible="false" />
<asp:GridView runat="server" DataSourceID="SqlDataSource1" ID="GridView1"
AutoGenerateColumns="False"
ForeColor="#333333" GridLines="None" Width="70%"
HeaderStyle-CssClass="abc" HeaderStyle-Height="40px" PagerStyle-CssClass="abc"
PagerStyle-Height="25px" AllowPaging="True">
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
<Columns>
<asp:TemplateField>
<HeaderTemplate>
Auction_Id
</HeaderTemplate>
<ItemTemplate>
<asp:Label Text='<%# Bind("auction_id") %>' runat="server" ID="ll" />
</ItemTemplate>
- 102 -

Project Report

</asp:TemplateField>
<asp:TemplateField>
<HeaderTemplate>
<asp:Label ID="L99" Text="user_id" runat="server" Visible="false"/>
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="Label1" Text='<%# Bind("user_id") %>' runat="server" Visible="false"/>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<HeaderTemplate>
prod_id
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="Label2" Text='<%# Bind("prod_id") %>' runat="server" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="min_price" HeaderText="min_price"
SortExpression="min_price" />
<asp:BoundField DataField="quoted_final" HeaderText="quoted_final"
SortExpression="quoted_final" />
<asp:BoundField DataField="date" HeaderText="date" SortExpression="date" />
<asp:BoundField DataField="status" HeaderText="status"
SortExpression="status" />
</Columns>
<EditRowStyle BackColor="#999999" />
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#E9E7E2" />
<SortedAscendingHeaderStyle BackColor="#506C8C" />
- 103 -

Project Report

<SortedDescendingCellStyle BackColor="#FFFDF8" />


<SortedDescendingHeaderStyle BackColor="#6F8DAE" />
</asp:GridView>
<asp:Button Text="Place the product for rebid" ID="place" runat="server"
onclick="place_Click" BackColor="Black" ForeColor="White" />
</center>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:200marksConnectionString2 %>"
SelectCommand="SELECT * FROM [auction_result] WHERE (([status] = @status) AND
([date] = @date))">
<SelectParameters>
<asp:Parameter DefaultValue="unpaid" Name="status" Type="String" />
<asp:ControlParameter ControlID="datem" Name="date" PropertyName="Text"
Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Content>

Sellers.aspx
<%@
Page
Title=""
Language="C#"
MasterPageFile="MasterPage.master"
AutoEventWireup="true" CodeFile="selers.aspx.cs" Inherits="latest_WebSite6_WebSite6_Default2"
%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

- 104 -

Project Report

<style type="text/css">
.style3
{
height: 19px;
width:40%;
}
.style4
{
width: 225px;
height: 19px;
}
.style6
{
width: 246px;
height: 19px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" Runat="Server">
<center>
<table width="100%">
<tr>
<td style="width:80%;">
<asp:Label Text="" ID="error_message" runat="server" Visible="false" />
</td>
<td>
</td>
<td align="left">
<asp:HyperLink NavigateUrl="~/COMMON.aspx?do=remove" Text="REMOVE PRODUCTS"
ID="rem" runat="server" Visible="false" /></td>
</tr>
</table>
- 105 -

Project Report

<table style="width:100%;height:500px;">
<tr>
<td class="style6">
<asp:Label ID="productName1" runat="server" Font-Bold="True" Font-Names="Calisto MT"
Font-Size="Large"
AssociatedControlID="ProductName" ForeColor="#666633">Product
Name:</asp:Label>
</td>
<td class="style4">
<asp:TextBox
ID="ProductName"
BorderWidth="3px"></asp:TextBox>

runat="server"

Width="200px"

<asp:RequiredFieldValidator ID="PasswordRequired" runat="server"


ControlToValidate="ProductName" ErrorMessage="Product name is mandatory."
><h4><b>*Product Name is mandatory.</b></h4></asp:RequiredFieldValidator>
</td>
</tr>

<tr>
<td class="style6">
<asp:Label ID="cat" runat="server" Font-Bold="True" Font-Names="Calisto MT"
Font-Size="Large"
ForeColor="#009933">Choose Your Category:</asp:Label>
</td>
<td class="style4">
<asp:DropDownList runat="server" ID="dd_cat" DataSourceID="SqlDataSource1"
DataTextField="cat_name" DataValueField="cat_name" Width="210px"
BorderWidth="3px">

- 106 -

Project Report

</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:200marksConnectionString2 %>"
SelectCommand="SELECT [cat_name], [cat_id] FROM [category_master]">
</asp:SqlDataSource>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="ProductName" ErrorMessage="Product name is mandatory."
><h4><b>*Product Name is mandatory.</b></h4></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style6">
<asp:Label ID="prodimg" runat="server" Font-Bold="True" Font-Names="Calisto MT"
Font-Size="Large"
ForeColor="#006699">Product Image:</asp:Label>
</td>
<td class="style4">
<asp:FileUpload runat="server" id="fileupload1" BorderWidth="2px"
></asp:FileUpload>

</td>
</tr>
<tr>
<td class="style6">
<asp:Label ID="Prodmanu" runat="server" Font-Bold="True" Font-Names="Calisto MT"
- 107 -

Project Report

Font-Size="Large"
AssociatedControlID="ProductManufacture" ForeColor="#663300">Product
Manufacture:</asp:Label>
</td>
<td class="style4">
<asp:TextBox ID="ProductManufacture" runat="server" Width="200px"
BorderWidth="3px"></asp:TextBox>
<asp:RequiredFieldValidator ID="prodmanufacture" runat="server"
ControlToValidate="ProductManufacture" ErrorMessage="Product manufacture is
mandatory."><h4><b>*Product Manufacture is mandatory.</b></h4></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style6">
<asp:Label ID="prodwar" runat="server" Font-Bold="True" Font-Names="Calisto MT"
Font-Size="Large"
AssociatedControlID="ProductWaranty" ForeColor="#003300">Product
Waranty:</asp:Label>
</td>
<td class="style4">
<asp:TextBox
ID="ProductWaranty"
BorderWidth="3px"></asp:TextBox>

runat="server"

Width="200px"

<asp:RequiredFieldValidator ID="Productwarty" runat="server"


ControlToValidate="ProductWaranty" ErrorMessage="Product Waranty is
mandatory."><h4><b>*Product Waranty is mandatory.</b></h4></asp:RequiredFieldValidator>
</td>
</tr>

- 108 -

Project Report

<tr>
<td class="style6">
<asp:Label ID="productAmount1" runat="server" Font-Bold="True" Font-Names="Calisto MT"
Font-Size="Large"
AssociatedControlID="ProductAmount" ForeColor="#990000">Product
Amount:</asp:Label>
</td>
<td class="style4">
<asp:TextBox
ID="ProductAmount"
BorderWidth="3px"></asp:TextBox>

runat="server"

Width="200px"

<asp:RequiredFieldValidator ID="Passwordamount" runat="server"


ControlToValidate="ProductAmount" ErrorMessage="Product Amount is
mandatory."><h4><b>*Product Amount is mandatory.</b></h4></asp:RequiredFieldValidator>
</td>
</tr>

<tr>
<td class="style6">
<asp:Label ID="Productfea" runat="server" Font-Bold="True" Font-Names="Calisto MT"
Font-Size="Large"
AssociatedControlID="ProductFeature" ForeColor="#666633">Product
Features:</asp:Label>
</td>
<td class="style4">
<asp:TextBox
ID="ProductFeature"
BorderWidth="3px"></asp:TextBox>

runat="server"

Width="200px"

<asp:RequiredFieldValidator ID="Passwordfeatur" runat="server"


ControlToValidate="ProductFeature" ErrorMessage="Product Feature is
mandatory."><h4>
<b>*Product Feature is mandatory.</b></h4>

- 109 -

Project Report

</asp:RequiredFieldValidator>
</td>
</tr>

<tr>
<td class="style6">
<asp:Label ID="productdesc" runat="server" Font-Bold="True" Font-Names="Calisto MT"
Font-Size="Large"
AssociatedControlID="ProductDescription" ForeColor="#666699">Product
Description:</asp:Label>
</td>
<td class="style4">
<asp:TextBox ID="ProductDescription" runat="server" Width="200px"
BorderWidth="3px"></asp:TextBox>
<asp:RequiredFieldValidator ID="Passwordesc" runat="server"
ControlToValidate="ProductDescription" ErrorMessage="Product Description is
mandatory."><h4><b>*Product Description is mandatory.</b></h4></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style6" >
<asp:Label ID="starttime" runat="server" Font-Bold="True" Font-Names="Calisto MT"
Font-Size="Large"
ForeColor="#CC9900" Visible="false">Auction Start Time:</asp:Label>
</td>
<td class="style4">
<asp:DropDownList runat="server" ID="hr" Visible="false">

- 110 -

Project Report

</asp:DropDownList>
<asp:DropDownList runat="server" ID="min" Visible="false">
</asp:DropDownList>
<asp:DropDownList runat="server" ID="ap" Visible="false">
<asp:ListItem Text="AM" />
<asp:ListItem Text="PM" />
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="style6">
<asp:Label ID="endtime1"
Visible="false"

runat="server"

Font-Bold="True"

Font-Names="Calisto

MT"

Font-Size="Large"
ForeColor="#660033">Auction End Time:</asp:Label>
</td>
<td class="style4">
<asp:DropDownList runat="server" ID="DropDownList1" Visible="false">
</asp:DropDownList>
<asp:DropDownList runat="server" ID="DropDownList2" Visible="false">
</asp:DropDownList>
<asp:DropDownList runat="server" ID="DropDownList3" Visible="false">
<asp:ListItem Text="AM" />
<asp:ListItem Text="PM" />
- 111 -

Project Report

</asp:DropDownList>
</td>
</tr>
</table>
</center>
<center>
<asp:Button Text="Submit" Font-Size="Large" Font-Names="Calisto MT"
Font-Bold="true" runat="server" BackColor="#FF6666" BorderColor="Maroon"
BorderStyle="Solid" BorderWidth="3px" EnableViewState="False" CausesValidation="true"
ForeColor="Black" onclick="Unnamed1_Click" />
</center>
</asp:Content>

Temp.aspx
<%@
Page
Language="C#"
Inherits="WebSite6_temp" %>

AutoEventWireup="true"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

CodeFile="temp.aspx.cs"

1.0

Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml">

- 112 -

Project Report

<head runat="server">
<link href="css/style.css" rel="stylesheet" type="text/css" />
<title></title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<!--[if lte IE 6]><style type="text/css" media="screen">.tabbed { height:420px; }</style><![endif]->
<script src="js/jquery-1.4.1.min.js" type="text/javascript"></script>
<script src="js/jquery.jcarousel.pack.js" type="text/javascript"></script>
<script src="js/jquery.slide.js" type="text/javascript"></script>
<script src="js/jquery-func.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div style="background-color: Gray">
<div style="background-color: Black; height: 120px; width: 100%">
<div class="shell">
<!-- Header -->
<div id="header">
<h1 id="logo">
<a href="Default.aspx">Auction House</a></h1>
<div id="navigation">
<ul>
<li><a href="Default.aspx">Home</a></li>
<li><a href="selers.aspx">sell</a></li>
<li><a href="prod_cat.aspx?cat=1">FineArts</a></li>
<li><a href="prod_cat.aspx?cat=2">Photographs</a></li>
<li><a href="bidorder.aspx">MyBid</a></li>
<li>
<asp:HyperLink
NavigateUrl="~/payment.aspx"
runat="server" /></li>

ID="paymenturl"

Text="Payment"

- 113 -

Project Report

<li class="last">
<asp:HyperLink NavigateUrl="login.aspx" ID="log" Text="" runat="server" />
<asp:Button Text="" ID="logout" runat="server" onclick="lll" Height="20px" Width="50px"/>
</li>
</ul>
</div>
</div>
</div>
</div>
<%-- header ends here--%>
<div style="height: 25px; width: 100%">
</div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div style="background-color: White; height: 60px; width: 100%;">
<br />
<h3>
CLOSING IN :
<asp:Label ID="time" runat="server" Style="font-size: x-large; color: Black;"
Text="" />
</h3>
</div>
<asp:Timer ID="Timer1" runat="server" Interval="700" OnTick="Timer1_Tick">
</asp:Timer>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" />
</Triggers>
</asp:UpdatePanel>
<asp:TextBox Text="" ID="pid_fa" runat="server" Visible="false" />
<div style="height: 40px; width: 100%">
</div>
- 114 -

Project Report

<div style="width: 100%; height: 60%; background-color: White">


<asp:SqlDataSource
ID="SqlDataSource1"
runat="server"
ConnectionStrings:200marksConnectionString2 %>"

ConnectionString="<%$

SelectCommand="SELECT * FROM [product_master] WHERE ([prod_id] =


@prod_id)">
<SelectParameters>
<asp:QueryStringParameter Name="prod_id" QueryStringField="pid" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
<table width="100%">
<tr>
<td align="center" colspan="2">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ErrorMessage="enter an amount" FontSize="Large" ForeColor="Red"
ControlToValidate="bid" runat="server" Display="Dynamic" />
<asp:Label Text=""
ForeColor="Red" />

ID="error_great"

runat="server"

Font-Bold="true"

Font-Size="Large"

<asp:HyperLink Text="click here to rebid or view bid details" NavigateUrl="~/bidorder.aspx"


runat="server" ID="mult" Visible="false" />
</td>
</tr>
</table>
<asp:ListView runat="server" ID="l1" DataSourceID="SqlDataSource1">
<LayoutTemplate>
<table width="100%" style="margin-left:10px;" cellpadding="20%" id="temp" >
<asp:PlaceHolder runat="server" ID="itemPlaceholder" />
</table>
</LayoutTemplate>
<ItemTemplate>
<tr>
<td style="width:57%;" >
<img src="Images/<%#Eval("prod_image") %>" style="border-width: 10px; border-color: Aqua;"
alt="" height="400px" width="95%" />
- 115 -

Project Report

</td>
<td style="font-size: large; color: Olive;" align="left">
<table width="100%" style="height:400px;" id="temp1" >
<tr>
<td style="font-size: large; color: Gray;" align="left">
<asp:Label ID="Label5" Text="Name " runat="server" />
</td>
<td style="font-size: large; color: Gray;" align="left"> : </td>
<td style="font-size: x-large; color: Gray;">
<asp:Label ID="Label6" Text='<%#Eval("prod_name") %>' runat="server" />
</td>
</tr>
<tr>
<td style="font-size: large; color: Gray;" align="left">
<asp:Label ID="Label1" Text="Manufacturer " runat="server" />
</td>
<td style="font-size: large; color: Gray;" align="left"> : </td>
<td style="font-size: x-large; color: Gray;">
<asp:Label ID="Label2" Text='<%#Eval("prod_manu") %>' runat="server" />
</td>
</tr>
<tr>
<td style="font-size: large; color: Gray;" align="left">
<asp:Label ID="Label3" Text="Description " runat="server" />
</td>
<td style="font-size: large; color: Gray;" align="left"> : </td>
<td style="font-size: x-large; color: Gray;">
<asp:Label ID="Label4" Text='<%#Eval("prod_desc") %>' runat="server" />
</td>
</tr>
<tr>
<td style="font-size: large; color: Gray;" align="left">
- 116 -

Project Report

<asp:Label ID="Label7" Text="Amount " runat="server" />


</td>
<td style="font-size: large; color: Gray;" align="left"> : </td>
<td style="font-size: x-large; color: Gray;">
Rs.<asp:Label ID="Label8" Text='<%#Eval("prod_amt") %>'
runat="server" />
</td>
</tr>
</table>
</td>
</tr>
</ItemTemplate>
</asp:ListView>
</div>
<div style="background-color:White;">
<table width="100%" id="mysess" runat="server">
<tr>
<td width="60%"></td>
<td>
<table width="100%">
<tr>
<td align="center">
<asp:TextBox runat="server" ID="bid" Width="100" Height="30" Font-Size="X-Large"
Text="" ForeColor="Gray" MaxLength="5" />
</td>
<td style="font-size: large; color: Gray;" align="left"></td>
<td>
<asp:ImageButton
OnClick="check" />

ID="bid_button"

runat="server"

ImageUrl="Images/bid.JPG"

</td>
</tr>

- 117 -

Project Report

</table>
</td>
</tr>
</table>
</div>
<asp:Label Text="" ID="pid" runat="server" Visible="false"/>
</div>
<br /><br />
<div style="height: 40px; width: 100%;">
<hr />
<asp:Label Text="RELATED PRODUCTS" runat="server" Height="25px" Width="100%"
Font-Size="20px" ForeColor="White" BackColor="Gray" />
<hr />
<br />
<asp:SqlDataSource runat="server" ID="srelated"
ConnectionString="<%$ ConnectionStrings:200marksConnectionString2 %>"
SelectCommand="SELECT * FROM [product_master] WHERE (([prod_manu] =
@prod_manu) AND ([prod_id] &lt;&gt; @prod_id))" >
<SelectParameters>
<asp:QueryStringParameter Name="prod_manu" QueryStringField="r" Type="String" />
<asp:QueryStringParameter Name="prod_id" QueryStringField="pid" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
<asp:ListView ID="ListView1" runat="server" DataSourceID="srelated" GroupItemCount="4">
<LayoutTemplate>
<div class="items" style="width:100%;margin-left:5%;margin-right:10%;">
- 118 -

Project Report

<div class="cl">
&nbsp;</div>
<table cellspacing="5" cellpadding="10" width="100%">
<asp:PlaceHolder runat="server" ID="groupPlaceHolder" />
</table>
<div class="cl">
&nbsp;</div>
</LayoutTemplate>
<GroupTemplate>
<tr>
<asp:PlaceHolder runat="server" ID="itemPlaceHolder" />
</tr>
</GroupTemplate>
<ItemTemplate>
<td>
<ul>
<li>
<div class="image">
<a
href="temp.aspx?pid=<%#Eval("prod_id")
%#Eval("prod_manu") %>">

%>&cat=<%#Eval("cat_id")

%>&r=<

<img src="Images/<%#Eval("prod_image") %>" height="83" width="128" alt="" /></a>


</div>
<p class="price">
<span>
Name : <%#Eval("prod_name") %></span><br />
<span>
Manu : <%#Eval("prod_manu") %></span><br />
<a href="#">
Desc : <%#Eval("prod_desc") %></a>
</p>
<p class="price">
Price: <strong>
<%#Eval("prod_amt") %></strong></p>
- 119 -

Project Report

<p class="price">
<a
href="temp.aspx?pid=<%#Eval("prod_id")
%#Eval("prod_manu") %>">

%>&cat=<%#Eval("cat_id")

%>&r=<

<img alt="" src="Images/Capture.JPG" height="35" width="65"/></a>


</p>
</li>
</ul>
</td>
</ItemTemplate>
</asp:ListView>
</div>
<div style=" width: 100%;height:120px;">
<hr />
<asp:Label ID="Label9" Text="Shipping" runat="server" Height="25px" Width="100%"
Font-Bold="True" Font-Size="20px" ForeColor="White" BackColor="Gray" />
<hr />
<br />
<asp:Label Text="a" ID="shipping" runat="server" Font-Bold="true"
Font-Size="Medium" />

Font-Names="Constantia"

<br />
<br />
<br />
</div>
<div style=" width: 100%;height:120px;">
<hr />
<asp:Label ID="Label10" Text="List value details" runat="server" Height="25px" Width="100%"
Font-Bold="True" Font-Size="20px" ForeColor="White" BackColor="Gray" />
<hr />
<br />
<asp:Label Text="a" ID="listvalue" runat="server" Height="50px"
Names="Constantia" Font-Size="Medium" />

Font-Bold="true" Font-

</div>

- 120 -

Project Report

<hr />
<div id="footer" >
<div class="left">
<a
href="Default.aspx">Home</a><span>|</span><a
href="prod_cat.aspx?cat=2">

href="">sell</a><span>|</span><a

Photography </a><span>|</span><a href="prod_cat.aspx?cat=1">Fine arts</a><span>|


</span><a href="bidorder.aspx">MyBid</a><span>|</span><a href="#">contact</a>
</div>
<div class="right">
&copy; <a href="Default.aspx">AuctionHouse.com.</a>
</div>
</div>
</form>
</body>
</html>

Updateauction.aspx

<%@ Page Language="C#" AutoEventWireup="true"


Inherits="latest_WebSite6_WebSite6_updateauction" %>

CodeFile="updateauction.aspx.cs"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

1.0

Transitional//EN"

- 121 -

Project Report

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>

Web.config
<?xml version="1.0"?>
<!-For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<connectionStrings>
- 122 -

Project Report

<add name="200marksConnectionString2" connectionString="Data Source=.;Initial


Catalog=200marks;Integrated Security=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
<authentication mode="Forms">
</authentication>
</system.web>

</configuration>

Bidorder.aspx
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections.Specialized;

- 123 -

Project Report

using System.Web.Configuration;
using System.Data;
using System.Data.SqlClient;
public partial class latest_WebSite6_WebSite6_bidorder : System.Web.UI.Page
{
SqlConnection con; SqlCommand cmd, cmd1, cmm, command; int tep; SqlDataReader dr;
DateTime st, et; TimeSpan ts;
protected void Page_Load(object sender, EventArgs e)
{
con
=
new
SqlConnection(WebConfigurationManager.ConnectionStrings["200marksConnectionString2"].ToStr
ing());
if (Session["name"] == null)
{
Response.Redirect("~/Login.aspx");
}
else
{
if (GridView1.Rows.Count == 0)
{
max_label.Visible = true;
max_label.Text = "you currently have no bidds";
max_label.Font.Size = 20;
max_label.Font.Bold = true;
max_label.ForeColor = System.Drawing.Color.Red;
asd.Visible = false;
update.Visible = false;
remove.Visible = false;
}
else
{
asd.Visible = true;

- 124 -

Project Report

update.Visible = true;
remove.Visible = true;
}
}
Session["laba"] = 4;
}
public static IOrderedDictionary GetValues(GridViewRow row)
{
IOrderedDictionary values = new OrderedDictionary();
foreach (DataControlFieldCell cell in row.Cells)
{
if (cell.Visible)
{
// Extract values from the cell
cell.ContainingField.ExtractValuesFromCell(values, cell, row.RowState, true);
}
}
return values;
}
protected void edit(int j)
{
for (int i = 0; i < GridView1.Rows.Count; i++)
{
IOrderedDictionary rowValues = new OrderedDictionary();
rowValues = GetValues(GridView1.Rows[i]);
CheckBox cbRemove = new CheckBox();
cbRemove = (CheckBox)GridView1.Rows[i].FindControl("chb");
Label l = (Label)GridView1.Rows[i].FindControl("auction_id");
string auction = l.Text;
Label l1 = (Label)GridView1.Rows[i].FindControl("prodname");
string pname = l1.Text;
- 125 -

Project Report

TextBox t=(TextBox)GridView1.Rows[i].FindControl("price");
try
{
Convert.ToInt32(t.Text);
}
catch (Exception ret)
{
t.Text = "0";
}
if (cbRemove.Checked)
{
if (j == 1)
{//update
if (Convert.ToInt32(Session["user_price"]) < Convert.ToInt32(t.Text))
{
cmd = new SqlCommand("update auction_trans set quoted_price='"+t.Text+"' where
auction_id='"+auction+"' and user_id='"+Session["uid"]+"'", con);
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
cmd.ExecuteNonQuery();
con.Close();
cmd.Dispose();
}
}
if(j==2)
{
cmd = new SqlCommand("delete from auction_trans where auction_id='" + auction + "'
and user_id='" + Session["uid"] + "'", con);
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
cmd.ExecuteNonQuery();

- 126 -

Project Report

con.Close();
cmd.Dispose();
}
if (j == 3)
{
max_label.Visible = true;
command = new SqlCommand("select end_time from auction_table where
auction_id='" + auction + "'", con);
cmm = new SqlCommand("select max(quoted_price) from auction_trans where
prod_name='" + pname + "'", con);
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
SqlDataReader ff = cmm.ExecuteReader();
if (ff.HasRows)
{
ff.Read();
max_label.Text = "max bid for selected product is "+ff.GetValue(0).ToString();
max_label.ForeColor = System.Drawing.Color.DarkGreen;
max_label.Font.Italic = true;
max_label.Font.Name = "verdana";
tep = tep+1;
}
ff.Dispose();
cmm.Dispose();
con.Close();
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
dr = command.ExecuteReader();

- 127 -

Project Report

if (dr.HasRows)
{
dr.Read();
st = Convert.ToDateTime(DateTime.Now.ToLongTimeString());
et = Convert.ToDateTime(dr.GetValue(0).ToString());
if (et > st)
{
ts = et - st;
max_label.Text = max_label.Text + " and auction ends in " + ts;
}
max_label.ForeColor = System.Drawing.Color.DarkGreen;
max_label.Font.Italic = true;
max_label.Font.Name = "verdana";
}
command.Dispose();
dr.Dispose();
con.Close();
}
}
}
}
protected void update_Click(object sender, EventArgs e)
{
edit(1);
GridView1.DataSourceID = "SqlDataSource1";
GridView1.DataBind();
Response.Redirect("~/bidorder.aspx");
}
protected void remove_Click(object sender, EventArgs e)
- 128 -

Project Report

{
edit(2);
GridView1.DataSourceID = "SqlDataSource1";
GridView1.DataBind();
Response.Redirect("~/bidorder.aspx");
}
protected void radio_changed(object sender, EventArgs e)
{
edit(3);
if (tep != 1)
{
max_label.Text = "you can only select only one max bid show at a time";
}
GridView1.DataSourceID = "SqlDataSource1";
GridView1.DataBind();
}
}

Common.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections.Specialized;
using System.Data.SqlClient;
- 129 -

Project Report

using System.Data;
using System.Web.Configuration;
public partial class COMMON : System.Web.UI.Page
{
SqlConnection con; SqlCommand cmd, cmd1;
protected void Page_Load(object sender, EventArgs e)
{

if (Session["uid"] == null)
Response.Redirect("~/login.aspx");
con
=
new
SqlConnection(WebConfigurationManager.ConnectionStrings["200marksConnectionString2"].ToStr
ing());
if (Session["name"].ToString().ToLower() != "administrator")
{
Response.Redirect("~/Default.aspx");
}
GridView1.Visible = true;
del.Visible = true;
Button1.Visible = false;
error_message.Visible = false;
t.Visible = false;

}
public static IOrderedDictionary GetValues(GridViewRow row)

- 130 -

Project Report

{
IOrderedDictionary values = new OrderedDictionary();
foreach (DataControlFieldCell cell in row.Cells)
{
if (cell.Visible)
{
// Extract values from the cell
cell.ContainingField.ExtractValuesFromCell(values, cell, row.RowState, true);
}
}
return values;
}
protected void edit()
{
for (int i = 0; i < GridView1.Rows.Count; i++)
{
IOrderedDictionary rowValues = new OrderedDictionary();
rowValues = GetValues(GridView1.Rows[i]);
CheckBox cbRemove = new CheckBox();
cbRemove = (CheckBox)GridView1.Rows[i].FindControl("chb");
Label l = (Label)GridView1.Rows[i].FindControl("prod_id");
string prod = l.Text;
if (cbRemove.Checked)
{
cmd = new SqlCommand("delete from auction_table where prod_id = "+prod, con);
cmd1 = new SqlCommand("delete from product_master where prod_id = " + prod, con);
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
cmd.ExecuteNonQuery();
cmd1.ExecuteNonQuery();
con.Close();
cmd.Dispose();
- 131 -

Project Report

cmd1.Dispose();
}
}
}
protected void del_Click(object sender, EventArgs e)
{
edit();
GridView1.DataSourceID = "SqlDataSource1";
GridView1.DataBind();
}
}

Default.aspx.cs

using System;
using System.Collections.Generic;
using System.Linq;

- 132 -

Project Report

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Session["laba"] = 0;
}
}

Default2.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

- 133 -

Project Report

using System.Data;
using System.Data.SqlClient;
using System.Web.Configuration;
using System.Collections.Specialized;
using System.Net.Mail;
using ASPSnippets.SmsAPI;
public partial class Default2 : System.Web.UI.Page
{
SqlConnection con;
SqlCommand cmd,cmdd,cmdd2,cmdd3;
SqlDataReader dr,drr,drr2;
string winner,s,winner_id,url,def,paypage;
string winstat, lostat;
string content, reciever;
string need_pid, need_price;
string payment;
protected void Page_Load(object sender, EventArgs e)
{
Session["laba"] = "announce";
payment = "unpaid";
winstat="won";
lostat = "lost";
con
=
new
SqlConnection(WebConfigurationManager.ConnectionStrings["200marksConnectionString2"].ToStr
ing());
cmdd3 = new SqlCommand();
cmdd3.Connection = con;
if (Session["name"]!= null)
{
string str = Session["name"].ToString();
if (str.ToLower() == "administrator")

- 134 -

Project Report

{
}
else
{
Response.Redirect("~/Default.aspx");
}
}
else
{
Response.Redirect("~/login.aspx");
}
if (!IsPostBack)
{
gridview1.Visible = false;
auc.Items.Add("select");
cmd = new SqlCommand("select distinct[auction_id] from auction_trans", con);
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
dr = cmd.ExecuteReader();
while (dr.HasRows)
{
dr.Read();
try
{
auc.Items.Add("" + dr.GetValue(0));
}
catch (Exception ex)
{
break;
- 135 -

Project Report

}
}
con.Close();
cmd.Dispose();
dr.Dispose();
}
else
{
gridview1.Visible = true;
}
}
protected void postdelete()
{
SqlCommand ll = new SqlCommand("delete from temporary", con);
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
ll.ExecuteNonQuery();
con.Close();
ll.Dispose();
vis.Items.Clear();
vis_id.Items.Clear();
}
protected void auc_SelectedIndexChanged(object sender, EventArgs e)
{
postdelete();
s = ""+auc.SelectedValue;
int i;
- 136 -

Project Report

try
{
i=Convert.ToInt32(s);
}
catch(Exception emm)
{
i=0;
}
if(i==0)
{
gridview1.Visible = false;
}
else
{
cmdd=new SqlCommand("select [user_name],[user_id] from auction_trans where
quoted_price=(select max(quoted_price) from auction_trans where auction_id='"+s+"')",con);
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
drr=cmdd.ExecuteReader();
if (drr.HasRows)
{
drr.Read();
winner = drr.GetValue(0).ToString();
winner_id = drr.GetValue(1).ToString();
Session["winner_id"] = winner_id; ;
}
cmdd.Dispose();
drr.Dispose();
Update();
}
con.Close();
- 137 -

Project Report

}
protected void Update()
{
cmdd2 = new SqlCommand("select [user_name],[user_id] from auction_trans where
auction_id=" + s, con);
drr2 = cmdd2.ExecuteReader();
while (drr2.HasRows)
{
drr2.Read();
try
{
vis.Items.Add("" + drr2.GetValue(0).ToString());
vis_id.Items.Add(""+drr2.GetValue(1).ToString());
}
catch (Exception e)
{
break;
}

}
cmdd2.Dispose();
drr2.Dispose();
fff();
gridview1.DataSourceID = "SqlDataSource1";
gridview1.DataBind();
}
- 138 -

Project Report

protected void fff()


{
for (int i = 0; i < vis.Items.Count; i++)
{
if (vis.Items[i].Value.ToString() == winner)
{
cmdd3.CommandType = CommandType.Text;
cmdd3.CommandText = "insert into temporary values('" + s + "','" + vis.Items[i].Value +
"','" + winstat + "','" + vis_id.Items[i].Value + "')";
}
else
{
cmdd3.CommandType = CommandType.Text;
cmdd3.CommandText = "insert into temporary values('" + s + "','" + vis.Items[i].Value +
"','" + lostat + "','" + vis_id.Items[i].Value + "')";
}
cmdd3.ExecuteNonQuery();
}
cmdd3.Dispose();
}
protected void sendsms(string tonum)
{
SMS.APIType = SMSGateway.Site2SMS;
SMS.MashapeKey = "PDMy4lTIHBmshkPe1DaamSrhfTfDp1fHd2JjsnJsrooF9YFq9N";
SMS.Username = "9930857483";
SMS.Password = "abcd1234";
//Single SMS
SMS.SendSms(tonum, "Congratulations!!! You won a bid. Please check ur email for further
process ");

- 139 -

Project Report

protected void send_mail_Click(object sender, EventArgs e)


{
url = HttpContext.Current.Request.Url.AbsoluteUri;
def= url.Replace("Default2.aspx","Default.aspx");
paypage = url.Replace("Default2.aspx","payment.aspx");
if (auc.SelectedIndex == 0)
{
}
else
{
SqlCommand email = new SqlCommand();
email.Connection = con;
email.CommandType = CommandType.Text;

if (con.State == ConnectionState.Open)
con.Close();
con.Open();
//message content
DataSet ds = new DataSet();
SqlDataAdapter da = new SqlDataAdapter("SELECT user_id, email,mobile FROM
user_master WHERE (user_id in (SELECT user_id FROM auction_trans WHERE (auction_id = '"
+ auc.SelectedItem.ToString() + "')))", con);
da.Fill(ds);
con.Close();
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
if (ds.Tables[0].Rows[i][0].ToString() == Session["winner_id"].ToString())
{

- 140 -

Project Report

content = "you won the bid with ur auction_id =" + auc.SelectedValue + ". For payment
please log on to "+def+" or please click the link below." + @"
"+paypage;
Session["winner_mob"] = ds.Tables[0].Rows[i][2].ToString();
}
else
{
content = "your bid was less than the max bid with auction_id = " + auc.SelectedValue +
". thank u for ur participation";
}

reciever = ds.Tables[0].Rows[i][1].ToString();
neverhappen.Text = SendEmail(reciever, "Antique Auction", content);
}
sendsms(Session["winner_mob"].ToString());
//Insert in Auction Result
if (neverhappen.Text.ToString() != "Error sending email.!!!")
{
SqlCommand amd = new SqlCommand("select prod_id,min_price from auction_table
where auction_id=" + auc.SelectedValue, con);
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
//Save Prod_id
SqlDataReader ll = amd.ExecuteReader();
if (ll.HasRows)
{
ll.Read();
need_pid = ll.GetValue(0).ToString();
need_price = ll.GetValue(1).ToString();
}
ll.Dispose();

- 141 -

Project Report

amd.Dispose();
SqlCommand qu_price = new SqlCommand("select max(quoted_price) from auction_trans
where auction_id=" + auc.SelectedValue, con);
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
SqlDataReader l = qu_price.ExecuteReader();
if (l.HasRows)
{
l.Read();
Session["quoted_price"] = l.GetValue(0).ToString();
}
l.Dispose();
qu_price.Dispose();
SqlCommand umm = new SqlCommand("insert into auction_result values('" +
auc.SelectedValue + "','" + Session["winner_id"] + "','" + need_pid + "','" + need_price + "','" +
Session["quoted_price"] + "','" + DateTime.Now.ToShortDateString() + "','" + payment + "')", con);
umm.ExecuteNonQuery();
umm.Dispose();
con.Close();
//Retrive all details from ProductMaster
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
DataSet dss = new DataSet();
SqlDataAdapter daa = new SqlDataAdapter("SELECT * FROM product_master WHERE
prod_id =" + need_pid, con);
daa.Fill(dss);
con.Close();
SqlCommand vv = new SqlCommand();
vv.Connection = con;
vv.CommandType = CommandType.Text;
if (con.State == ConnectionState.Open)
- 142 -

Project Report

con.Close();
con.Open();
//Insert all details in Dummy prod+aucid
vv.CommandText = "insert into prod_dummy
[0].ToString() + "','" + dss.Tables[0].Rows[0][1].ToString()
[2].ToString() + "','" + dss.Tables[0].Rows[0][3].ToString()
[4].ToString() + "','" + dss.Tables[0].Rows[0][5].ToString()
[6].ToString() + "','" + dss.Tables[0].Rows[0][7].ToString()
[8].ToString() + "','" + auc.SelectedValue + "')";

values('" +
+ "','" +
+ "','" +
+ "','" +
+ "','" +

dss.Tables[0].Rows[0]
dss.Tables[0].Rows[0]
dss.Tables[0].Rows[0]
dss.Tables[0].Rows[0]
dss.Tables[0].Rows[0]

vv.ExecuteNonQuery();
vv.Dispose();
con.Close();
//Delete from Main Auction Table
SqlCommand dell = new SqlCommand("delete from auction_table where auction_id=" +
auc.SelectedValue, con);
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
dell.ExecuteNonQuery();
dell.Dispose();
//Delete from ProductMaster
SqlCommand deel = new SqlCommand("delete from product_master where prod_id=" +
need_pid, con);
deel.ExecuteNonQuery();
SqlCommand fool = new SqlCommand("delete from auction_trans where auction_id=" +
auc.SelectedValue, con);
fool.ExecuteNonQuery();
deel.Dispose();
fool.Dispose();
SqlCommand fol = new SqlCommand("delete from temporary where auction_id=" +
auc.SelectedValue, con);
fol.ExecuteNonQuery();

- 143 -

Project Report

con.Close();
string auc_Sel = auc.SelectedItem.ToString();
auc.Items.Remove(auc_Sel);
auc.SelectedIndex = 0;
gridview1.DataBind();
gridview1.Visible = false;
}
}
}
protected string SendEmail(string toAddress, string subject, string body)
{
string result = "Message Sent Successfully..!!";
string senderID = "temppro94@gmail.com";// use senders email id here..
const string senderPassword = "temp@1234"; // sender password here
try
{
SmtpClient smtp = new SmtpClient
{
Host = "smtp.gmail.com", // smtp server address here
Port = 587,
EnableSsl = true,
DeliveryMethod = SmtpDeliveryMethod.Network,
Credentials = new System.Net.NetworkCredential(senderID, senderPassword),
Timeout = 30000,
};
MailMessage message = new MailMessage(senderID, toAddress, subject, body);
smtp.Send(message);
}
catch (Exception ex)
{
result = "Error sending email.!!!";
}
- 144 -

Project Report

return result;
}

Login.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

- 145 -

Project Report

using System.Data.SqlClient;
using System.Web.Configuration;
public partial class latest_WebSite6_WebSite6_login : System.Web.UI.Page
{
String prod_id; int uid;
SqlConnection con;
string name,surname,email,add1,add2,add3,mobile,state,city,zip;
protected void Page_Load(object sender, EventArgs e)
{
if (Session["name"] != null)
{
Response.Redirect("~/Default.aspx");
}
Session["laba"] = 3;
try
{
prod_id = Request.QueryString["pid"].ToString();
}
catch (Exception ex)
{
prod_id = "0";
}

}
protected void add_db(object sender, EventArgs e)
{
name =""+ Cuw1.UserName;
email = "" + Cuw1.Email;
TextBox t=new TextBox();
t=(TextBox)Cuw1.CreateUserStep.ContentTemplateContainer.FindControl("sur");
surname = "" + t.Text;
- 146 -

Project Report

t = (TextBox)Cuw1.CreateUserStep.ContentTemplateContainer.FindControl("Question");
add1 = "" + t.Text;
t = t = (TextBox)Cuw1.CreateUserStep.ContentTemplateContainer.FindControl("Answer");
add2 = "" + t.Text;
t = t = (TextBox)Cuw1.CreateUserStep.ContentTemplateContainer.FindControl("add3");
add3 = "" + t.Text;
t = t = (TextBox)Cuw1.CreateUserStep.ContentTemplateContainer.FindControl("Mobile");
mobile = "" + t.Text;
t = (TextBox)Cuw1.CreateUserStep.ContentTemplateContainer.FindControl("stateid");
state="" + t.Text;
t = (TextBox)Cuw1.CreateUserStep.ContentTemplateContainer.FindControl("cityid");
city = "" + t.Text;
t = (TextBox)Cuw1.CreateUserStep.ContentTemplateContainer.FindControl("zipid");
zip = "" + t.Text;
SqlConnection
con
=
new
SqlConnection(WebConfigurationManager.ConnectionStrings["200marksConnectionString2"].ToStr
ing());
SqlCommand cmd1 = new SqlCommand("select count(user_id) from user_master", con);
//SqlCommand cmd = new SqlCommand("insert into user_master
values('"+uid+"','"+name+"','"+surname+"','"+email+"','"+mobile+"','"+add1+"','"+add2+"','"+add3+
"','"+state+"','"+city+"','"+zip+"')", con);
if (con.State == ConnectionState.Open)
{
con.Close();
}
con.Open();
SqlDataReader dr = cmd1.ExecuteReader();
if (dr.HasRows)
{
dr.Read();
uid = Convert.ToInt32(dr.GetValue(0).ToString());
}
uid = uid + 1;
- 147 -

Project Report

SqlCommand cmd = new SqlCommand("insert into user_master values('" + uid + "','" +


name + "','" + surname + "','" + email + "','" + mobile + "','" + add1 + "','" + add2 + "','" + add3 + "','"
+ state + "','" + city + "','" + zip + "')", con);
cmd1.Dispose();
dr.Dispose();
cmd.ExecuteNonQuery();
cmd.Dispose();
con.Close();
}
protected void sess_Click(object sender, EventArgs e)
{
con
=
new
SqlConnection(WebConfigurationManager.ConnectionStrings["200marksConnectionString2"].ToStr
ing());
Session["name"] = "" + Login1.UserName;
SqlCommand amd = new SqlCommand("select user_id from user_master where name='" +
Session["name"] + "'", con);
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
SqlDataReader hh = amd.ExecuteReader();
if (hh.HasRows)
{
hh.Read();
Session["uid"] = "" + hh.GetValue(0);
}
hh.Dispose();
amd.Dispose();
con.Close();
try
{
int i = Convert.ToInt32(Request.QueryString["pay"]);
if(i!=0)

- 148 -

Project Report

Response.Redirect("~/payment.aspx");
}
catch (Exception eee)
{
}
if (prod_id == "0")
Response.Redirect("~/Default.aspx");

else
Response.Redirect("~/temp.aspx?pid=" + Request.QueryString["pid"] + "&pname=" +
Request.QueryString["pname"].ToString() + "&r=" + Request.QueryString["r"].ToString());
}
protected void cont_cick(object sender, EventArgs e)
{
if (prod_id == "0")
Response.Redirect("~/login.aspx");
else
Response.Redirect("~/login.aspx?pid=" + Request.QueryString["pid"] + "&pname=" +
Request.QueryString["pname"].ToString() + "&r=" + Request.QueryString["r"].ToString());
}
protected void Cuw1_CreatingUser(object sender, LoginCancelEventArgs e)
{
Page.Validate("CreateUserWizard1");
if (Page.IsValid)
{
e.Cancel = false;
}
else

- 149 -

Project Report

{
e.Cancel = true;
err.Text = "Fill in the highlighted fields";
}
}
protected void Cuw1_CreatingUser(object sender, WizardNavigationEventArgs e)
{
}
}

Masterpage.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

- 150 -

Project Report

using System.Web.Configuration;
public partial class MasterPage : System.Web.UI.MasterPage
{
SqlConnection con;
SqlCommand cmd;
SqlDataReader dr;
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (Session["name"].ToString().ToLower().Equals("administrator"))
{
paymenturl.Visible = false;
if (Session["laba"].ToString() == "rebid")
{
displaypage.Text = "PLACE REBID";
}
else
{
if (Session["laba"].ToString() == "prerebid")
{
displaypage.Text = "REMINDER";
}
else
{
if (Session["laba"].ToString() == "announce")
{
displaypage.Text = "RESULTS";
}
}
}
- 151 -

Project Report

}
}
catch (Exception ee)
{
}
if (Session["laba"].ToString() == "0")
{
displaypage.Text = "ALL PRODUCTS";
}
if (Session["laba"].ToString() == "1")
{
displaypage.Text = "FINEARTS";
}
if (Session["laba"].ToString() == "2")
{
displaypage.Text = "PHOTOGRAPHS";
}
if (Session["laba"].ToString() == "3")
{
displaypage.Text = "LOGIN";
}
if (Session["laba"].ToString() == "4")
{
displaypage.Text = "MYBID";
}
if (Session["laba"].ToString() == "5")
{
displaypage.Text = "PAYMENT";
}
if (Session["laba"].ToString() == "6")
{
displaypage.Text = "PAYMENT CONFIRM";
- 152 -

Project Report

}
if (Session["laba"].ToString() == "7")
{
displaypage.Text = "ADD PRODUCTS";
if (Session["name"].ToString().ToLower().Equals("administrator"))
{
displaypage.Text = "ADD/REMOVE";
}
}
displaypage.ForeColor = System.Drawing.Color.Brown;
displaypage.Font.Bold = true;
if (Session["name"] == null)
{
log.Text = "Login";
log.NavigateUrl = "~/login.aspx";
logout.Visible = false;
}
else
{
welcome.Text = "Welcome " + Session["name"].ToString();
logout.Visible = true;
logout.Text = "logout";
logout.BackColor = System.Drawing.Color.Black;
logout.ForeColor = System.Drawing.Color.White;
con
=
new
SqlConnection(WebConfigurationManager.ConnectionStrings["200marksConnectionString2"].ToStr
ing());
cmd = new SqlCommand("select count(auction_id) from auction_trans where user_id='" +
Session["uid"] + "'", con);
if (con.State == ConnectionState.Open)
con.Close();
con.Open();

- 153 -

Project Report

dr = cmd.ExecuteReader();
if (dr.HasRows)
{
dr.Read();
rs.Text = dr.GetValue(0).ToString() + " Items";
}
con.Close();
cmd.Dispose();
dr.Dispose();
if (Session["name"].ToString().ToLower() == "administrator")
{
onlyadmin.Visible = true;
}
}
}
protected void logout_Click(object sender, EventArgs e)
{
Session["name"] = null;
Session["uid"] = null;
Response.Redirect("~/Default.aspx");
}
}

Payment.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class payment : System.Web.UI.Page

- 154 -

Project Report

{
string card_type, bank_name;
protected void Page_Load(object sender, EventArgs e)
{
Session["laba"] = 5;
if (Session["uid"]==null)
{
Response.Redirect("~/login.aspx?pay=1");
}
if (GridView1.Rows.Count > 0)
{
}
else
{
t.Visible = false;
t1.Visible = false;
nogrid.Text = "Please Bidd something inorder to pay";
nogrid.Visible = true;
}
}
protected void btnsubmit_Click(object sender, EventArgs e)
{
if (cc.Checked == true)
{
card_type = "Credit Card";
bank_name = RadioButtonList1.SelectedItem.ToString();
}
else
{
card_type = "Debit Card";
bank_name = RadioButtonList2.SelectedItem.ToString();
}
- 155 -

Project Report

Response.Redirect("~/paymentauthor.aspx?&qs_card_type=" + card_type +
"&qs_bank_name=" + bank_name);
}
protected void cc_CheckedChanged(object sender, EventArgs e)
{
creditcard.Visible = true;
PlaceHolder1.Visible = false;
}
protected void dc_CheckedChanged(object sender, EventArgs e)
{
creditcard.Visible = false;
PlaceHolder1.Visible = true;
}
}

PaymentAuthor.aspx
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
- 156 -

Project Report

using System.Web.Configuration;
public partial class paymentauthor : System.Web.UI.Page
{
string var_card_type, var_bank_name; string amt; int auto, ct, sect; DateTime temp;
protected void Page_Load(object sender, EventArgs e)
{
Session["laba"] = "6";
String bid = Request.QueryString["bid"];
String cid = Request.QueryString["cid"];
// String radio = Request.QueryString[3];
if (Session["uid"] == null)
{
Response.Redirect("~/Default.aspx");
}
// msg.Text = radio;
if (!IsPostBack)
{
var_card_type = Request.QueryString["qs_card_type"].ToString();
var_bank_name = Request.QueryString["qs_bank_name"].ToString();
if (Request.QueryString["qs_bank_name"] == "AmericanExpress")
{
REV_For_All.ValidationExpression = "^3[47][0-9]{13}$";
REV_cre.ValidationExpression = @"\d{4}";
}
if (Request.QueryString["qs_bank_name"] == "Master")
{
REV_For_All.ValidationExpression = "^5[1-5][0-9]{14}$";
REV_cre.ValidationExpression = @"\d{4}";
}
if (Request.QueryString["qs_bank_name"] == "Visa")
- 157 -

Project Report

{
REV_For_All.ValidationExpression = "^4[0-9]{12}(?:[0-9]{3})?$";
REV_cre.ValidationExpression = @"\d{4}";
}
if (Request.QueryString["qs_bank_name"] == "Bank1")
{
REV_For_All.ValidationExpression = @"\d{4}\-\d{4}\-\d{4}\-\d{4}";
REV_cre.ValidationExpression = @"\d{3}";
}
}
}
protected void btnpayment_Click(object sender, EventArgs e)
{
SqlConnection
con1
=
new
SqlConnection(WebConfigurationManager.ConnectionStrings["200marksConnectionString2"].ToStr
ing());
con1.Open();
SqlCommand cmd1 = new SqlCommand("SELECT max(payid) + 1 FROM payment_detail",
con1);
SqlDataReader pp = cmd1.ExecuteReader();
if (pp.HasRows)
{
pp.Read();
try
{
auto = Convert.ToInt32(pp.GetValue(0));
}
catch(Exception ghg)
{
auto=0;
}
auto=auto+1;

- 158 -

Project Report

}
con1.Close();
cmd1.Dispose();
if (con1.State == ConnectionState.Open)
{
con1.Close();
}
string stat="unpaid";
try
{
SqlCommand mmd = new SqlCommand("select sum(quoted_final) from auction_result
where user_id=" + Session["uid"] + "and status='" + stat + "'", con1);
con1.Open();
SqlDataReader gg = mmd.ExecuteReader();
if (gg.HasRows)
{
gg.Read();
amt = gg.GetValue(0).ToString();
}
gg.Dispose();
mmd.Dispose();
con1.Close();
}
catch (Exception mam)
{
amt = "0";
}
SqlConnection
con
=
new
SqlConnection(WebConfigurationManager.ConnectionStrings["200marksConnectionString2"].ToStr
ing());
con.Open();
SqlCommand cmd = new SqlCommand("insert into payment_detail
values(@payid,@pamount,@cardno,@user_id,@expmm,@expyyyy,@cvdno)", con);
cmd.Parameters.AddWithValue("@payid", auto);
- 159 -

Project Report

cmd.Parameters.AddWithValue("@pamount", amt);
cmd.Parameters.AddWithValue("@cardno",txtcno.Text);
cmd.Parameters.AddWithValue("@user_id", Session["uid"].ToString());
cmd.Parameters.AddWithValue("@expmm", mm.Text);
cmd.Parameters.AddWithValue("@expyyyy", yyyy.Text);
cmd.Parameters.AddWithValue("cvdno", txtcvd.Text);
cmd.ExecuteNonQuery();
stat="paid";
SqlCommand ll = new SqlCommand("update auction_result set status='"+stat+"' where
user_id="+Session["uid"],con);
ll.ExecuteNonQuery();
ll.Dispose();
cmd.Dispose();
con.Close();
// msg.Text = "record added successfully";
thanks.Visible = true;
ct = Convert.ToInt32(System.DateTime.Now.Second);
sect = ct + 10;
diva.Visible = false;
h.Visible = true;
}
protected void btncancel_Click(object sender, EventArgs e)
{
Response.Redirect("~/Default.aspx");
}
protected void Timer1_Tick(object sender, EventArgs e)
{
if (thanks.Visible == true)
{
ct=ct = Convert.ToInt32(System.DateTime.Now.Second);
if (ct >= sect)
{
Response.Redirect("~/Default.aspx");
- 160 -

Project Report

}
}
}

Prerebid.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections.Specialized;
using System.Data.SqlClient;
using System.Data;

- 161 -

Project Report

using System.Web.Configuration;
using System.Net.Mail;
public partial class prerebid : System.Web.UI.Page
{
SqlConnection con;
string name, email, mob; string content;
protected void Page_Load(object sender, EventArgs e)
{
content = "Please pay your bill immediately else the bid u won will be lost. Terms and
conditions*";
con
=
new
SqlConnection(WebConfigurationManager.ConnectionStrings["200marksConnectionString2"].ToStr
ing());
datem.Text = DateTime.Now.Date.AddDays(-1).ToShortDateString();
if (GridView1.Rows.Count > 0)
{
}
else
{
place.Visible = false;
nomore.Visible = true;
}
Session["laba"] = "prerebid";
string s = "" + Session["name"];
if (s.ToLower() != "administrator")
{
Response.Redirect("~/login.aspx");
}
}
public static IOrderedDictionary GetValues(GridViewRow row)

- 162 -

Project Report

{
IOrderedDictionary values = new OrderedDictionary();
foreach (DataControlFieldCell cell in row.Cells)
{
if (cell.Visible)
{
// Extract values from the cell
cell.ContainingField.ExtractValuesFromCell(values, cell, row.RowState, true);
}
}
return values;
}
protected void place_Click(object sender, EventArgs e)
{
for (int i = 0; i < GridView1.Rows.Count; i++)
{
IOrderedDictionary rowValues = new OrderedDictionary();
rowValues = GetValues(GridView1.Rows[i]);
Label l = (Label)GridView1.Rows[i].FindControl("Label1");
string user_id = l.Text;
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
DataSet ds=new DataSet();
SqlDataAdapter dr = new SqlDataAdapter("select name,email,mobile from user_master
where user_id=" + user_id, con);
dr.Fill(ds);
for (i = 0; i < ds.Tables[0].Rows.Count; i++)
{
name = ds.Tables[0].Rows[i][0].ToString();
email = ds.Tables[0].Rows[i][1].ToString();
mob = ds.Tables[0].Rows[i][2].ToString();
- 163 -

Project Report

SendEmail(email, "ANTIQUE AUCTION", content);


}
}
GridView1.DataBind();
place.Visible = false;
nomore.Visible = true;
GridView1.Visible = false;

}
protected string SendEmail(string toAddress, string subject, string body)
{
string result = "Message Sent Successfully..!!";
string senderID = "temppro94@gmail.com";// use senders email id here..
const string senderPassword = "temp@1234"; // sender password here
try
{
SmtpClient smtp = new SmtpClient
{
Host = "smtp.gmail.com", // smtp server address here
Port = 587,
EnableSsl = true,
DeliveryMethod = SmtpDeliveryMethod.Network,
Credentials = new System.Net.NetworkCredential(senderID, senderPassword),
Timeout = 30000,
};
MailMessage message = new MailMessage(senderID, toAddress, subject, body);
smtp.Send(message);
}
catch (Exception ex)
{
- 164 -

Project Report

result = "Error sending email.!!!";


}
return result;
}
}

Prod_Cat.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class prod_cat : System.Web.UI.Page
{
int i;
protected void Page_Load(object sender, EventArgs e)

- 165 -

Project Report

{
try
{
if (Request.QueryString["cat"].ToString() == "1")
{
i = 1;
}
else
{
i = 2;
}
}
catch (Exception mm)
{
Response.Redirect("~/Default.aspx");
}
Session["laba"] = i;
}
}

Rebid_prod.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections.Specialized;
using System.Data;
using System.Data.SqlClient;
using System.Web.Configuration;

- 166 -

Project Report

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


{
SqlConnection con;
string sel,start,end;
DateTime ff; int i;
protected void Page_Load(object sender, EventArgs e)
{
con
=
new
SqlConnection(WebConfigurationManager.ConnectionStrings["200marksConnectionString2"].ToStr
ing());
Session["laba"] = "rebid";
string s = ""+Session["name"];
if (s.ToLower() != "administrator")
{
Response.Redirect("~/login.aspx");
}
datem.Text=DateTime.Now.Date.AddDays(-2).ToShortDateString();
if (GridView1.Rows.Count > 0)
{
place.Visible = true;
}
else
{
place.Visible = false;
nomore.Visible = true;
}
}
public static IOrderedDictionary GetValues(GridViewRow row)
{
IOrderedDictionary values = new OrderedDictionary();
foreach (DataControlFieldCell cell in row.Cells)
{

- 167 -

Project Report

if (cell.Visible)
{
// Extract values from the cell
cell.ContainingField.ExtractValuesFromCell(values, cell, row.RowState, true);
}
}
return values;
}
protected void place_Click(object sender, EventArgs e)
{
for (int i = 0; i < GridView1.Rows.Count; i++)
{
IOrderedDictionary rowValues = new OrderedDictionary();
rowValues = GetValues(GridView1.Rows[i]);
Label l = (Label)GridView1.Rows[i].FindControl("ll");
string auction = l.Text;
Label l1 = (Label)GridView1.Rows[i].FindControl("Label2");
string pid = l1.Text;
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
DataSet ds=new DataSet();
SqlDataAdapter dr = new SqlDataAdapter("select * from prod_dummy where prod_id=" +
pid, con);
dr.Fill(ds);
for(i=0;i<ds.Tables[0].Rows.Count;i++)
{
sel="active";
SqlCommand cmd1 = new SqlCommand("insert into product_master values('" + pid + "','"
+ ds.Tables[0].Rows[i][1].ToString() + "','" + ds.Tables[0].Rows[i][2].ToString() + "','" +

- 168 -

Project Report

ds.Tables[0].Rows[i][3].ToString() + "','" + ds.Tables[0].Rows[i][4].ToString() + "','" +


ds.Tables[0].Rows[i][5].ToString() + "','" + ds.Tables[0].Rows[i][6].ToString() + "','" +
ds.Tables[0].Rows[i][7].ToString() + "','" + ds.Tables[0].Rows[i][8].ToString() + "','" + sel + "')",
con);
cmd1.ExecuteNonQuery();
cmd1.Dispose();
ff = Convert.ToDateTime(DateTime.Now.ToLongTimeString());
if (DateTime.Now.Hour <= 9)
{
start = "0" + DateTime.Now.ToLongTimeString();
end = "0" + ff.AddHours(4).ToLongTimeString();
}
else
{
start = "" + DateTime.Now.ToLongTimeString();
end = "" + ff.AddHours(4).ToLongTimeString();
}
TimeSpan tspn = Convert.ToDateTime(DateTime.Now.ToLongTimeString()) - ff;
if (ff.AddHours(4)<ff)
{
start = "09:00:00 AM";
end = "05:00:00 PM";
}
SqlCommand cmd2 = new SqlCommand("insert into auction_table values('" + auction +
"','" + pid + "','" + start + "','" + end + "','" + ds.Tables[0].Rows[i][6].ToString() + "')", con);
cmd2.ExecuteNonQuery();
cmd2.Dispose();
SqlCommand lld = new SqlCommand("delete from auction_result where prod_id=" + pid,
con);
lld.ExecuteNonQuery();
lld.Dispose();
SqlCommand ld = new SqlCommand("delete from prod_dummy where prod_id=" + pid,
con);

- 169 -

Project Report

ld.ExecuteNonQuery();
ld.Dispose();
}
ds.Dispose();
dr.Dispose();
con.Close();
}
GridView1.DataSourceID = "SqlDataSource1";
GridView1.DataBind();
if (GridView1.Rows.Count > 0)
{
place.Visible = true;
}
else
{
place.Visible = false;
nomore.Visible = true;
}
}
}

Selers.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Web.Configuration;

- 170 -

Project Report

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


{
SqlConnection con; SqlCommand cmd,cmd1,cmd2,cmd3,cmd4,cmd5; SqlDataReader dr;
int pid_cnt,auc_id;
int cat_id; String st, et;
string pname, pimg, pman, pwar, pamt, pfeat, pdesc;
string sell; string s;
int sid;
protected void Page_Load(object sender, EventArgs e)
{
Session["laba"] = "7";
if (Session["name"] == null)
{
Response.Redirect("~/Login.aspx");
}
else
{
s=Session["name"].ToString().ToLower();
if (s == "administrator")
{
starttime.Visible = true;
hr.Visible = true;
min.Visible = true;
ap.Visible = true;
endtime1.Visible = true;
DropDownList1.Visible = true;
DropDownList2.Visible = true;
DropDownList3.Visible = true;

- 171 -

Project Report

rem.Visible = true;
for (int i = 1; i < 13; i++)
{
if (i < 10)
{
hr.Items.Add("0" + i);
DropDownList1.Items.Add("0" + i);
}
else
{
hr.Items.Add("" + i);
DropDownList1.Items.Add("" + i);
}
}
for (int i = 1; i < 60; i++)
{
if (i < 10)
{
min.Items.Add("0" + i);
DropDownList2.Items.Add("0" + i);
}
else
{
min.Items.Add("" + i);
DropDownList2.Items.Add("" + i);
}
}
}
sell = "active";
}
}
protected void Unnamed1_Click(object sender, EventArgs e)
{
- 172 -

Project Report

if (fileupload1.HasFile)
{
if (fileupload1.PostedFile.ContentType == "image/jpeg")
{
if (fileupload1.PostedFile.ContentLength < 5000000)
{
con
=
new
SqlConnection(WebConfigurationManager.ConnectionStrings["200marksConnectionString2"].ToStr
ing());
cmd = new SqlCommand("select max(prod_id) from product_master ", con);
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
dr = cmd.ExecuteReader();
if (dr.HasRows)
{
dr.Read();
pid_cnt = Convert.ToInt32(dr.GetValue(0));
pid_cnt = pid_cnt + 1;
}
con.Close();
cmd.Dispose();
cat_id = Convert.ToInt32(dd_cat.SelectedIndex) + 1;
pname = ProductName.Text;
pimg = "" + fileupload1.FileName;
int i = 0;
try
{
pwar = "" + Convert.ToDouble(ProductWaranty.Text)+" year";
}
catch (Exception ex)
{
error_message.Text = "enter waranty in years.";

- 173 -

Project Report

error_message.ForeColor = System.Drawing.Color.Red;
error_message.Visible = true;
i = 1;
}
try
{
pamt = "" + Convert.ToDouble(ProductAmount.Text);
}
catch (Exception ex)
{
error_message.Text = "enter amount in Rupees.";
error_message.ForeColor = System.Drawing.Color.Red;
error_message.Visible = true;
i = 1;
}
pman = "" + ProductManufacture.Text;
pfeat = "" + ProductFeature.Text;
pdesc = "" + ProductDescription.Text;
if (i == 0)
{
cmd1 = new SqlCommand("insert into product_master values('" + pid_cnt + "','" +
cat_id + "','" + pname + "','" + pimg + "','" + pman + "','" + pwar + "'," + pamt + ",'" + pfeat + "','" +
pdesc + "','"+sell+"')", con);
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
cmd1.ExecuteNonQuery();
con.Close();
cmd1.Dispose();
fileupload1.SaveAs(Server.MapPath("~/Images/") + fileupload1.FileName);
if (s == "administrator")

- 174 -

Project Report

{
st = "" + hr.SelectedValue + ":" + min.SelectedValue + ":00 " + ap.SelectedValue;
et = "" + DropDownList1.SelectedValue + ":" + DropDownList2.SelectedValue +
":00 " + DropDownList3.SelectedValue;
}
else
{
st = "01:01:00 AM";
et = "05:00:00 PM";
cmd4 = new SqlCommand("select max(seller_id) from seller_master", con);
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
SqlDataReader dru = cmd4.ExecuteReader();
if (dru.HasRows)
{
dru.Read();
try
{
sid = Convert.ToInt32(dru.GetValue(0).ToString());
}
catch (Exception emm)
{
sid = 0;
}
sid = sid + 1;
}
cmd4.Dispose();
dru.Dispose();
cmd5 = new SqlCommand("insert into seller_master
values('"+sid+"','"+pid_cnt+"','"+pamt+"')", con);
cmd5.ExecuteNonQuery();
cmd5.Dispose();

- 175 -

Project Report

con.Close();
}
cmd2 = new SqlCommand("select max(auction_id) from auction_table ", con);
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
dr = cmd2.ExecuteReader();
if (dr.HasRows)
{
dr.Read();
auc_id = Convert.ToInt32(dr.GetValue(0));
auc_id = auc_id + 1;
}
con.Close();
cmd2.Dispose();
cmd3 = new SqlCommand("insert into auction_table
values('"+auc_id+"','"+pid_cnt+"','"+st+"','"+et+"','"+pamt+"')",con);
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
cmd3.ExecuteNonQuery();
con.Close();
cmd3.Dispose();
error_message.Text = "Your data have been uploaded Successfully.Thankyou.....!!!";
error_message.ForeColor = System.Drawing.Color.SeaGreen;
error_message.Font.Size = 20;
error_message.Font.Italic = true;
error_message.Font.Name = "Comic Sans MS";
error_message.Visible = true;
}
}
else
{
- 176 -

Project Report

error_message.Text = "file size exceeds 10 MB.";


error_message.ForeColor = System.Drawing.Color.Red;
error_message.Visible = true;
}
}
else
{
error_message.Text="pls specify a correct image";
error_message.ForeColor = System.Drawing.Color.Red;
error_message.Visible = true;
}
}
else
{
error_message.Text = "you cant submit until you upload an image of ur product";
error_message.ForeColor = System.Drawing.Color.Red;
error_message.Visible = true;
}
}
}

Temp.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Web.Configuration;

- 177 -

Project Report

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


{
DateTime st, et,mmt; TimeSpan ts; int entamt,count; SqlConnection con;
int i;
protected void Page_Load(object sender, EventArgs e)
{
try
{
Request.QueryString["pid"].ToString();
}
catch(Exception olap)
{
Response.Redirect("~/Default.aspx");
}
if (!IsPostBack)
{
form1.DefaultButton = "bid_button";
form1.DefaultFocus = "bid";
}
if (Session["name"] == null)
{
log.Text = "Login";
log.NavigateUrl = "~/login.aspx";
logout.Visible = false;
}
else
{
logout.Visible = true;
logout.Text = "logout";
logout.BackColor = System.Drawing.Color.Black;
logout.ForeColor = System.Drawing.Color.White;
- 178 -

Project Report

}
shipping.Text = @"
This item ships only within the 50 United States via FedEx Ground. Item cannot be shipped to a P.O.
Box or Military address; such addresses will be held until a street address is obtained and will be
cancelled if a street address cannot be obtained within a reasonable time. Due the nature of storage
and packaging, fine art items may take between 3-8 business days to be shipped from time of
purchase.";
listvalue.Text = @"
List Prices are generally provided to us by the artist, publisher, or gallery where the art was
purchased. The list price may have no reflection on what a piece will actually sell for on the open
market and are meant as a guide only. Due to second hand and closeout markets these prices are
often irrelevant. We encourage you to purchase items based solely on your appreciation of the image
or recognition of the artist.
";
Con=new
SqlConnection(WebConfigurationManager.ConnectionStrings["200marksConnectionString2"].ToStr
ing());
SqlCommand cmd = new SqlCommand("select end_time,start_time from auction_table
where prod_id =" + Request.QueryString["pid"], con);
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
SqlDataReader dr = cmd.ExecuteReader();
if (dr.HasRows)
{
dr.Read();
st = Convert.ToDateTime(DateTime.Now.ToLongTimeString());
et = Convert.ToDateTime(dr.GetValue(0).ToString());
mmt = Convert.ToDateTime(dr.GetValue(1).ToString());
if ((et < st) || (mmt > st))
{
bid.Visible = false;
bid_button.Visible = false;
time.Text = "Closed";
}
}
- 179 -

Project Report

cmd.Dispose();
dr.Dispose();
SqlCommand cmd1 = new SqlCommand("select prod_amt from product_master where
prod_id =" + Request.QueryString["pid"], con);
SqlDataReader dr1 = cmd1.ExecuteReader();
if (dr1.HasRows)
{
dr1.Read();
pid_fa.Text = "" + (dr1.GetValue(0).ToString());
}
cmd1.Dispose();
dr1.Dispose();
con.Close();
}
protected void check(object sender, EventArgs e)
{
try
{
Convert.ToInt32(bid.Text);
i = 0;
}
catch (Exception ef)
{
i = 1;
error_great.Text = "enter amount in numbers only";
mult.Visible = false;
}
if (i == 0)
{
if (Convert.ToInt32(bid.Text) <= Convert.ToInt32(pid_fa.Text))
{
error_great.Text = "enter an amt greater than min amount";
}
- 180 -

Project Report

else
{
string temp = @"" + Request.QueryString["pname"].ToString();
if (Session["name"] != null)
{
SqlCommand cmdd = new SqlCommand("select count(auction_id) from
auction_trans where prod_name='" + temp + "' and user_id='" + Session["uid"].ToString() + "'",
con);
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
SqlDataReader drr = cmdd.ExecuteReader();
if (drr.HasRows)
{
drr.Read();
count = Convert.ToInt32(drr.GetValue(0).ToString());
}
drr.Dispose();
cmdd.Dispose();
con.Close();
}
else
{
count = 0;
}
if (count < 1)
{
Response.Redirect("~/updateauction.aspx?pid=" + Request.QueryString["pid"] +
"&price=" + bid.Text + "&pname=" + Request.QueryString["pname"].ToString() + "&r=" +
Request.QueryString["r"].ToString());
}
else
{
error_great.Text = "u have already bid this item";
- 181 -

Project Report

mult.Visible = true;
}
}
}
}
protected void Timer1_Tick(object sender, EventArgs e)
{
if ((et > st)&&(st>mmt))
{
ts = et - st;
time.Text = "" + ts;
}
}
protected void lll(object sender, EventArgs e)
{
Session["name"] = null;
Response.Redirect("~/Default.aspx");
}
}

Updateauction.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Web.Configuration;
public partial class latest_WebSite6_WebSite6_updateauction : System.Web.UI.Page

- 182 -

Project Report

{
SqlConnection con; SqlCommand cmd,cmd1;
string s,auctionid,pname,date,returnpage,p;
protected void Page_Load(object sender, EventArgs e)
{
date=DateTime.Now.ToShortDateString();
try
{
Session["user_price"] = Request.QueryString["price"].ToString();
pname=Request.QueryString["pname"].ToString();
s = Request.QueryString["pid"].ToString();
returnpage = "pid=" + Request.QueryString["pid"] + "&pname="
Request.QueryString["pname"].ToString() + "&r=" + Request.QueryString["r"].ToString();

}
catch (Exception ex)
{
Response.Redirect("~/Default.aspx");
}
con
=
new
SqlConnection(WebConfigurationManager.ConnectionStrings["200marksConnectionString2"].ToStr
ing());
cmd=new SqlCommand("select auction_id from auction_table where prod_id="+s,con);
p = Session["user_price"].ToString();
if (Session["name"] == null)
Response.Redirect("~/login.aspx?"+returnpage );
else
{
String uname = Session["name"].ToString();
//retrieve auction_id from auction table
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
SqlDataReader dr = cmd.ExecuteReader();

- 183 -

Project Report

if (dr.HasRows)
{
dr.Read();
auctionid = dr.GetValue(0).ToString();
}
dr.Dispose();
cmd.Dispose();
//insert into auction_trans table
cmd1 = new SqlCommand("insert into auction_trans values('" + auctionid + "','" +
Session["uid"].ToString() + "','" + date + "','" + p + "','" + pname +"','"+uname+"')", con);
// cmd1 = new SqlCommand("insert into image values(1,'abc');", con);
cmd1.ExecuteNonQuery();
cmd1.Dispose();
con.Close();
Response.Redirect("~/bidorder.aspx");
}
}
}

- 184 -

Project Report

PROJECT OUTPUT SCREEN

o/p Admin page

- 185 -

Project Report

o/p Bidders info page


- 186 -

Project Report

- 187 -

Project Report

o/p Admin managing bid

- 188 -

Project Report

o/p Admin bid management

- 189 -

Project Report

o/p Admin uploading product

o/p Bid order page


- 190 -

Project Report

- 191 -

Project Report

- 192 -

Project Report

o/p Login/Registration page

- 193 -

Project Report

o/p Payment module page

- 194 -

Project Report

o/p Payment authentication page

- 195 -

Project Report

o/p Product category page

- 196 -

Project Report

o/p Sellers product upload page

- 197 -

Project Report

o/p Product description page

- 198 -

Project Report

REPORT

This is tentative page, because this is changeable at submission of report. But the main
aim of this report generation page is as follows:1. The User management module give the option to user, it is vendor and customer
2. The Auction management modules add a product and edit the product information.
3. Customer make payment of item.

Crystal reports code:


Admincrystal.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="adminreports.aspx.cs"
Inherits="adminreports" %>
<%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral,
PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>

- 199 -

Project Report

</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td align="left" >
<a href="rebid_prod.aspx">REBID</a>
</td>
<td align="left">
<a href="prerebid.aspx">|PREREBID</a>
</td>
<td align="left">
<a href="selers.aspx">|ADD/REMOVE PRODUCTS</a>
</td>
<td align="left">
<a href="Default2.aspx">|ADMIN</a>
</td>
<td>
<a href="categorywisereport.aspx">category wise products</a>
</td>
</tr>
</table>
<table width="100%">
<tr>
<td align="center">
<asp:Button Text="view other date reports" ID="b" runat="server"
onclick="b_Click" Height="70px" />
</td>

- 200 -

Project Report

</tr>
</table>
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
AutoDataBind="True" GroupTreeImagesFolderUrl="" Height="1202px"
ReportSourceID="CrystalReportSource1" ToolbarImagesFolderUrl=""
ToolPanelView="None" ToolPanelWidth="200px" Width="903px" />
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
<Report FileName="CrystalReport.rpt">
</Report>
</CR:CrystalReportSource>
</div>
</form>
</body>
</html>

Categorywisereport
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="categorywisereport.aspx.cs"
Inherits="categorywisereport" %>
<%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral,
PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
- 201 -

Project Report

<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td align="left">
<a href="rebid_prod.aspx">REBID</a>
</td>
<td align="left">
<a href="prerebid.aspx">|PREREBID</a>
</td>
<td align="left">
<a href="selers.aspx">|ADD/REMOVE PRODUCTS</a>
</td>
<td align="left">
<a href="Default2.aspx">|ADMIN</a>
</td>
<td>
<a href="adminreports.aspx">reports date wise</a>
</td>
</tr>
</table>
<table>
<tr>
<td>
<asp:Button Text="view other date reports" ID="b" runat="server" OnClick="b_Click"
Height="70px" />
</td>
</tr>
<tr>
<td>

- 202 -

Project Report

<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"


AutoDataBind="True"
GroupTreeImagesFolderUrl="" Height="1202px"
ReportSourceID="CrystalReportSource1"
ToolbarImagesFolderUrl="" ToolPanelView="None" ToolPanelWidth="200px"
Width="903px" />
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
<Report FileName="prod_crys.rpt">
</Report>
</CR:CrystalReportSource>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>

Adminreports.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class adminreports : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Session["name"] == null)
- 203 -

Project Report

{
Response.Redirect("~/login.aspx");
}
else
{
if (Session["name"].ToString().ToLower() != "administrator")
{
Response.Redirect("~/Default.aspx");
}
}
}
protected void b_Click(object sender, EventArgs e)
{
CrystalReportViewer1.RefreshReport();
}
}

Categorywisereports.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class categorywisereport : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Session["name"] == null)
{
- 204 -

Project Report

Response.Redirect("~/login.aspx");
}
else
{
if (Session["name"].ToString().ToLower() != "administrator")
{
Response.Redirect("~/Default.aspx");
}
}
}
protected void b_Click(object sender, EventArgs e)
{
CrystalReportViewer1.RefreshReport();
}
}

- 205 -

Project Report

Program evaluation
Program evaluation is a systematic method for collecting, analyzing, and using information to
answer questions about projects, policies and programs, particularly about their effectiveness and
efficiency. In both the public and private sectors, stakeholders often want to know whether the programs
they are funding, implementing, voting for, receiving or objecting to are producing the intended effect.
While program evaluation first focuses around this definition, important considerations often include
how much the program costs per participant, how the program could be improved, whether the program
is worthwhile, whether there are better alternatives, if there are unintended outcomes, and whether the
program goals are appropriate and useful. Evaluators help to answer these questions, but the best way to
answer the questions is for the evaluation to be a joint project between evaluators and stakeholders.

The process of evaluation is considered to be a relatively recent phenomenon. However, planned social
evaluation has been documented as dating as far back as 2200 BC. Evaluation became particularly
relevant in the U.S. in the 1960s during the period of the Great Society social programs associated with
the Kennedy and Johnson administrations. Extraordinary sums were invested in social programs, but the
impacts of these investments were largely unknown.

- 206 -

Project Report

Program evaluations can involve both quantitative and qualitative methods of social research. People
who do program evaluation come from many different backgrounds, such
as sociology, psychology, economics, social work, and public policy. Some graduate schools also have
specific training programs for program evaluation.

FUTURE SCOPE
This application can be easily implemented under various situations. We can add new
featuresas and when we require. Reusability is possible as and when require in this
application. There is flexibility in all the modules.
SOFTWARE SCOPE: Extensibility
:This software is extendable in ways that its original developers may not expect. The
following principles enhances extensibility like hide data structure, avoid traversing
multiple links or methods, avoid case statements on object type and distinguish public
and private operations.
Reusability:
Reusability is possible as and when require in this application. We can update it next version.Reusable
software reduces design, coding and testing cost by amortizing effort over several designs.Reducing the
amount of code also simplifies understanding, which increases the likelihood that thecode is correct. We
follow up both types of reusability: Sharing of newly written code within a project and reuse of
previously written code on new projects.
Understandability:
A method is understandable if someone other than the creator of the method can
understandthe code (as well as the creator after a time lapse). We use the method, which
small andcoherent helps to accomplish this.
Cost-effectiveness:
Its cost is under the budget and make within given time period. It is desirable to aim for
asystem with a minimum cost subject to the condition that it must satisfy the
entirerequirement.Scope of this document is to put down the requirements,

- 207 -

Project Report

clearlyidentifying the informationneeded by the user, the source of the information and
outputs expected from the system

BIBILIOGRAPHY:
Books

An Integrated Approach to Software Engineering- Pankaj Jalote

Database Management System- Elmasri and Navath

Wikipedia

Websites- http://www.bestprojectsidea.com/

www.scribd.com

- 208 -

Project Report

CONCLUSION:

Online Auction System software developed for an institute has been designed to achieve
maximum efficiency and reduce the time taken to handle the storing activity. It is designed to replace an
existing manual record system thereby reducing time taken for calculations and for storing data.

The system uses Asp .Net as front end and Microsoft SQL as a backend for the database.

The system is strong enough to withstand regressive daily operations under conditions where the
database is maintained and cleared over a certain time of span.

The implementation of the system in the organization will considerably reduce data entry, time
and also provide readily calculated reports.

- 209 -

Project Report

- 210 -

Project Report

- 211 -

Project Report

- 212 -

Project Report

- 213 -

Project Report

- 214 -

Project Report

- 215 -

Project Report

- 216 -

You might also like