Professional Documents
Culture Documents
ON
Submitted by
B.SANTHOSH
Reg No: 2221128024
Under the Guidance of
ANANDA COLLEGE
(Accredited with ‘B’ Grade by NAAC)
(Affiliated to Alagappa University, Karaikudi)
Devakottai-630303.
DEPARTMENT OF COMPUTER SCIENCE
BONAFIED CERTIFICATE
This is to certify that the project work entitled “A PROJECT REPORT ON BUILDING
CONTRACTOR BOOKING SYSTEM” is bonafied work done by B.SANTHOSH (Reg
No.2221128024) in partial fulfillment of the requirement for the award of degree of Bachelor of
Computer Science degree under Alagappa University.
Date :
Place : Devakottai
External Examiner
ACKNOWLEDGEMENT
I would like to then the marvelous god for giving us the strength and wisdom for completing this project
successfully.
I wish to express our sincere thanks to principal of our college DR.RM.K. RADHAKRISHNAN,
M.A,M.PHIL,B.ED,PH.D for having conferred on me to undertake the privilege of our project.
I convey our grateful thanks to Prof.M.Gananaguru, M.Sc., M.Phil, Head of the Department of computer science,
who kindly encouraged towards our endeavor.
I deliver my sincere thanks to my guide Asst.Prof. N. Sathyapriya, M.C.A., B.Ed., who guided and encourage to
complete my project in successful manner.
I express my sincere thanks to all the staff members of our Department for their kind encouragement in completing
this course of study.
I also express our sincere thanks to my parents and all our well wishers who helped us complete this project
successfully.
ABSTRACT
This project entitles as “Building Contractor Booking System”. Online booking system is
fast gaining ground as an accepted and used business paradigm. More and more business houses
are implementing web sites providing functionality for performing commercial transactions over
the web. It is reasonable to say that the process of booking on the web is becoming common
place. Building Contractor Booking System is a web application where the customer can book a
building contractor through a web browser. In this project the admin can monitor the overall
process. The contractor can register and login the system using his/her user name and password.
After login process the contractor can update his/her profile like contact type, budget limit etc
and he/she can view the user booking details in his/her module. In this project the user can
register and login the system using his/her user name and password. After login process the user
can view the contractor information. If the user wants to book any contractor, the booking
request is available on user module with payment.
CONTENTS
INDEX PAGE NO
• INTRODUCTION 06
• REQUIREMENT SPECIFICATION 08
• HARDWARE REQUIREMENTS
• SOFTWARE REQUIREMENTS
• ANALYSIS 10
• EXISTING SYSTEM
• PROPOSED SYSTEM
• FEASIBILITY STUDY
• SOFTWARE SPECIFICATION
• DESIGN 25
• MODULE DESCRIPTION
• SYSTEM DESIGN
• UML DIAGRAM OF OUR PROJECT
• SYSTEM IMPLEMENTATION 35
• INTRODUCTION
• TESTING 37
• INTRODUCTION
• TESTING METHODS
• SAMPLE SCREENSHOTS 40
• CODING 56
• CONCLUSION 75
• BIBLIOGRAPHY 77
INTRODUCTION
• INTRODUCTION
• REQUIREMENT SPECIFICATION
• HARDWARE REQUIREMENTS
• RAM : 4GB
• SOFTWARE REQUIREMENTS
• Language : ASP.NET
• EXISTING SYSTEM
Contractor Booking System in paper work. The system follows large number of paper
work for maintaining Contractor details and user can be difficult to know about the Contractor
and his/her feedback. In existing system if the user wants to know about the any Contractor
feedback, there is the manual process to know about that. It’s require more time.
• PROPOSED SYSTEM
The proposed system is developed after a detailed study about the requirements requested by the
user. Proposed system is a computerized one, where all the limitations of manual system are
compensated. Building Contractor Booking System has simplified the working information and
makes a user friendly environment, where the user is provided with much flexibility to manage
effectively. It helps the admin to generate desirable reports more quickly and also to produce
better results.
ADVANTAGES
• FEASIBILITY STUDY
TECHNICAL FEASIBILITY
This assessment is based on an outline design of system requirements, to determine whether the
company has the technical expertise to handle completion of the project. When writing a
feasibility report, the following should be taken to consideration:
• A brief description of the business to assess more possible factors which could affect the
study
At this level, the concern is whether the proposal is both technically and legally feasible
(assuming moderate cost).[citation needed. The technical feasibility assessment is focused on
gaining an understanding of the present technical resources of the organization and their
applicability to the expected needs of the proposed system. It is an evaluation of the hardware
and software and how it meets the need of the proposed system.
Operational feasibility is the measure of how well a proposed system solves the problems, and
takes advantage of the opportunities identified during scope definition and how it satisfies the
requirements identified in the requirements analysis phase of system development. The
operational feasibility assessment focuses on the degree to which the proposed development
project fits in with the existing business environment and objectives with regard to development
schedule, delivery date, corporate culture and existing business processes.
ECONOMIC FEASIBILITY
Economic evaluation is a vital part of investment appraisal, dealing with factors that can be
quantified, measured, and compared in monetary terms (Chen 1996). The results of an economic
evaluation are considered with other aspects to make the project investment decision as the
proper investment appraisal helps to ensure that the right project is undertaken in a manner that
gives it the best chances of success. Project investments involve the expenditure of capital funds
and other resources to generate future benefits, whether in the form of profits, cost savings, or
social benefits. For an investment to be worthwhile, the future benefit should compare favorably
with the prior expenditure of resources need to achieve them.
• SOFTWARE SPECIFICATION
Visual Studio .Net is the fast application improvement device for BASIC. Visual Studio .Net
offers complete mix with ASP.NET and empowers to move and customize server controls and
outline Web Forms as they ought to show up when client sees them. A percentage of alternate
points of interest of making BASIC applications in Visual Studio .Net are
• Visual Studio .Net is a Rapid Application (RAD) apparatus. Rather than adding every
control to the Web Form automatically, it serves to include these controls by utilizing tool stash,
sparing programming endeavors.
• Visual Studio .Net backings custom and composite controls. Can make custom controls
that embody a typical usefulness that may need to use in various applications.
• Visual Studio .Net makes a glorious showing of rearranging the creation and utilization of
Web Services. Mush of the software engineer neighborly stuff (making all the XML-based
reports) happens consequently, without much exertion on the developer's side.
ASP.NET Environment:
ASP.NET Web administrations are XML-construct benefits that are presented with
respect to the Internet that can be gotten to by other Web administrations and Web
administration customers.
ASP.NET:
ASP.NET is more than the following form of Active Server Pages (ASP); it is a brought
together Web advancement stage that gives the administrations important to designers to
fabricate undertaking class Web applications. While ASP.NET is to a great extent sentence
structure perfect with ASP, it likewise gives another programming model and foundation for
more secure, versatile, and stable applications.
ASP.NET has been intended to work consistently with WYSIWYG HTML editors and
other programming instruments, including Microsoft Visual Studio .NET. Does this make Web
improvement simpler, as well as gives every one of the advantages that these apparatuses bring
to the table, including a GUI that designers can use to drop server controls onto a Web page and
completely coordinated investigating backing. Engineers can browse the accompanying two
elements when making a " ASP.NET application, Web Forms and Web administrations, or
consolidate these in any capacity they see fit.
• Web Forms permits you to assemble intense structures based Web pages. At the point
when building these pages, you can utilize ASP.NET server controls to make normal Ul
components, and system them for basic assignments. These controls permit you to quickly
assemble a Web Form out of reusable implicit or custom segments, rearranging the code of a
page.
• An XML Web administration gives the intends to get to server usefulness remotely
ASP.Net Architecture:
Features:
Utilize a dialect displayed on C++ linguistic structure, instantly commonplace to C++ and
Java designers, and also natural new dialect builds that incredibly streamline advancement
errands
• Reliable Interoperability
Utilize code to call local Windows APIs, use pre-constructed COM parts, and influence
existing ActiveX controls to flawlessly coordinate existing applications and segments.
Make Web-based arrangements in C# utilizing the mutual Web Forms Designer and XML
Designer. Engineers can likewise utilize IntelliSense elements and label finish or pick the
WYSIWYG manager for move and customize creating to construct intelligent Web applications.
. NET Framework:
Microsoft planned VB from the beginning to exploit its new .NET Framework. The .NET
Framework is comprised of four sections, the Common Language Runtime, an arrangement of
class libraries, an arrangement of programming dialects, and the ASP.NET environment.
The .NET Framework was composed on account of three objectives. In the first place, it was
planned to make Windows applications considerably more solid, while likewise furnishing an
application with more prominent level of security.
IIS is the web server is utilized here. IIS 5.0 or above is key for the ASP.NET for the
earth. This arrival of ASP.NET uses IIS 5.0 as the priKim host environment. IIS dependably
accept that an arrangement of accreditations maps to a Windows NT record and uses them to
verify a client. There are three various types of validation accessible in IIS 5.0: BASIC,
DIGEST, and INTEGRATED WINDOWS Authentication (NTLM or Kerberos). You can
choose the kind of verification to use in the IIS regulatory administrations.
On the off chance that you ask for a URL containing an ASP.NET application, the solicitation
and confirmation data are given off to the application. ASP.NET gives the two extra sorts of
verification depicted in the accompanying table.
Web Service:
Web administrations are ostensibly the most energizing and improve elements of
Microsoft's. NET activity and they are liable to significantly influence the way business
collaborate utilizing PC application. Rundown of conceivable Web administrations is as changes
as the rundown of conceivable business opportunities. Web administration would normally
perform a center business administration, for example, client confirmation, Visa approval,
valuing a derivates security, submitting a buy request for a stock or estimating a same-day
shipment.
A web administration might likewise return data to the guest. This administration dwells
some place on the Web and can be gotten to from different areas on the Web. For this
administration to be called, there are various components that must be set up. To start with, the
guest must' know how to call the administration. Second, the call must be made over the Web.
At long last, the “web administration must know how to react”.
Social database frameworks are the most critical database frameworks utilized as a part of the
product business today. A standout amongst the most remarkable frameworks is Microsoft SQL
Server. SQL Server is a database administration framework created and showcased by
Microsoft. It runs solely under Windows NT and Windows 95/98.
• SQL Server gives information warehousing elements that as of recently have just been
accessible in Oracle and other more costly DBMSs.
• Query advancement
• Data honesty
• Concurrency control
SQL Server is a Relational Database Management System. The SQL Server social dialect
is called Transact-SQL.SQL is resource arranged dialect. This implies that SQL can inquiry
numerous lines from one or more tables utilizing only one announcement. This component
permits the utilization of this dialect at a coherently larger amount than procedural dialects.
Another vital property of SQL is its non-procedurally. SQL contains two sub dialects DDL and
DML.
The SQL Server chairman's essential device for connecting with the framework is
Enterprise Manager. The Enterprise Manager has two primary purposes: Administration of the
database server and Management of database items.
• SQL Server Query Analyzer gives a graphical presentation of the execution arrangement
of a question and a programmed segment that recommends which list ought to be utilized for a
chose inquiry. This intelligent segment of SQL Server performs the assignments like:
A put away method is an exceptional sort of clump written in Transact-SQL utilizing the
SQL dialect and SQL augmentations. It is saved money on the database server to enhance the
execution and consistency of monotonous undertakings. SQL Server backings put away
methods and framework techniques. Put away techniques can be utilized for the accompanying
purposes: to control access approval, to make a review trial of exercises in database tables, to
discrete information definition & information control articulations concerning a database &
every single comparing application.
• Restricting the utilization of specific sections and lines of tables - that is to control access
to a specific piece of one or more tables,
• To shroud the points of interest of confounded inquiries, to limit embedded & redesigned
qualities to certain extents.
The Query Optimizer is the piece of SQL Server that chooses how to best perform a question. It
creates a few inquiry execution gets ready for the given question & chooses the arrangement
with the most minimal expense.
SQL Server can work in one of two security modes:
• Windows NT
• Mixed
Windows NT security mode solely utilizes Windows NT client records to sign into the
SQL Server framework. Blended mode permits clients to associate with SQL Server utilizing
the Windows NT security framework or the SQL Server framework. Moreover it gives three
security offices to controlling access to database objects:
• Views.
• Stored methodology
A Windows NT client record or a SQL server login name permits a client to sign into the
SQL server framework. A client who hence needs to get to a database of the framework needs a
database client record to work in the DB. In this manner clients must have a DB client represent
each DB they need to utilize. In the event that there is no such record the client may be
permitted to work in the DB under the visitor account."
Put away methods can likewise be utilized to limit information access. The confinement
of information access utilizing put away methodology is based upon the property that the
consent to execute a put away' strategy is free of any authorization for DB objects that are
referenced by the put away system.
SQL server gives an instrument called a trigger for upholding procedural respectability
requirements.
A trigger is an instrument that is conjured when a specific activity happens on a specific table.
Every trigger has 3 general parts:
• A name
• The activity
• The execution
SQL server keeps record of every change it makes to the db amid an exchange. This is
essential in the event that a lapse happens amid the execution of the exchange. For this situation
all already executed explanations inside of the exchange must be moved back. SQL server keeps
every one of these records, specifically the previously, then after the fact values, in one or more
documents called the exchange log. Each DB of the SQL server framework has its own
particular exchange log. Concurrency in multi-client frameworks, for example, SQL Server has
chosen impact of execution. At the point when access to the information is taken care of such
that stand out project at once can utilize the information, preparing moderates significantly. SQL
Server like all different DBMSs takes care of this issue utilizing exchanges. All announcements
inside an exchange manufacture a nuclear unit. This implies that either all announcements are
executed or for the situation of disappointment, all announcements are wiped out.
Microsoft SQL Server bolsters a full arrangement of elements that outcome in the
accompanying. SQL incorporates an arrangement of managerial and advancement instruments
that enhance our capacity to introduce, convey, oversee and use SQL Server over a few locales.
• Adaptability
The same database motor can be utilized crosswise over stages going from smart phones
Microsoft Windows95 to substantial; multiprocessor servers running Microsoft Windows NT,
Enterprise Edition.
SQL Server incorporates instruments for removing and examining synopsis information
for online investigative preparing (OLAP). SQL Server likewise incorporates apparatuses for
outwardly planning databases and breaking down information utilizing English based inquiries.
Implanted SQL applications utilize the DB-library DLL to get to SQL server. The SQL
Server ODBC driver clients don't get to Microsoft SQL Server straightforwardly. They utilize an
application kept in touch with access the information in SQL Server. SQL Server can likewise
be gotten to through COM, Microsoft ActiveX, or Windows DNA (Windows Distributed
Internet Applications Architecture) parts. Applications are composed to get to SQL Server
through a database Application Programming Interface (API).
Web Clients:
• Dynamic Web pages containing different sorts of markup dialect which are created by
Web parts running in the Web level.
• Web program, which renders the pages got from the server.
A Web customer is now and again called a slim customer. Slim customers as a rule don't
question databases, execute complex business guidelines, or associate with legacy applications.
HTML
HTML remains for Hyper Text Markup Language. It is a basic content designing dialect
used to make hypertext records. It is a stage free dialect not at all like most other programming
dialect. HTML is impartial and can be utilized on numerous stage or desktop. It is this
component of HTML that makes it mainstream as standard on the WWW. This adaptable dialect
permits the making of hypertext connections, otherwise called hyperlinks. These hyperlinks can
be utilized to unite reports on diverse machine, on the same system or on an alternate system, or
can even indicate purpose of content in the same record.
HTML is utilized for making archives where the accentuation is on the presence of the
record. It is likewise utilized for DTP. The records made utilizing HTML can have content with
diverse sizes, weights and hues. It can also contain graphics to make the document more
effective.
DESIGN
• DESIGN
Contractor
• Login
• Accept/Reject Booking
• Report
User
• Register
• Login
• Booking Request
• Notification
• Feed Back
• Make Payment
MODULE DESCRIPTION
Contractor
• Login
In this module, contractor can login in the system using username and password.
In this module, contractor can update his/her profile like contactor id, name, location,
contract type, budget limit etc.
• Accept/Reject Booking
In this module, the contractor can accept or reject the user booking. If the contractor
accepts or rejects the user booking request the automatic notification is sent to the user
registered mobile number.
• Report
In this module, the contractor can generate the report based on user requirements,
booking details etc.
User
• Register
There is registration form available where new user can create their account by providing
required information to the system. The registration form details are like name, email,
gender, mobile number, address, and etc. These details are stored in the database. And
then can getting to the username and password in the system.
• Login
In this module, user can login in the system using username and password.
• Booking Request
In this module, the user can send the booking request to the contractor.
• Notification
In this project the contractor can accept or reject the user booking request the automatic
notification is sent to the user registered mobile number.
• Feed Back
In this module, the user can post the feedback about contractor service.
• Make Payment
In this module used to make payment. This module contains user’s card details like name,
card no, amount etc.
• Post Complaint
In this module, the user can post the complaint about contractor service. The user
complaint request is sent to the admin.
• SYSTEM DESIGN
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. System architecture can comprise system components,
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 architecture
description languages (ADLs).
• An allocated arrangement of physical elements which provides the design solution for a
consumer product or life-cycle process intended to satisfy the requirements of the
functional architecture and the requirements baseline.
• The composite of the design architectures for products and their life-cycle processes.
A use case diagram at its simplest is a representation of a user's interaction with the system that
shows the relationship between the user and the different use cases in which the user is involved.
In this context, a "system" is something being developed or operated, such as a web site. The
"actors" are people or entities operating under defined roles within the system.
Class Diagram
A class diagram in the Unified Modeling Language (UML) is a type of static structure diagram
that describes the structure of a system by showing the system's classes, their attributes,
operations and the relationships among objects. The class diagram is the main building block of
object-oriented modeling. It is used for general conceptual modeling of the systematic of the
application, and for detailed modeling translating the models into programming code.
Sequence Diagram
A sequence diagram shows object interactions arranged in time sequence. It depicts the objects
and classes involved in the scenario and the sequence of messages exchanged between the
objects needed to carry out the functionality of the scenario. Sequence diagrams are typically
associated with use case realizations in the Logical View of the system under development.
Sequence diagrams are sometimes called event diagrams or event scenarios.
Collaboration Diagram
Activity Diagram
Activity diagram displays a special state diagram, where most of the state are action states
and most of the transitions are triggered by completion o0f the action in the source states. The
activity can be described as an operation of the system. So the control flow is drawn from one
operation to another. This flow can be sequential, branched or concurrent. Activity diagrams
deals with all type of flow control by using different elements.
SYSTEM
IMPLEMENTATION
• SYSTEM IMPLEMENTATION
• INTRODUCTION
Implementation is the stage in the project where the theoretical design is turned into a
working system. The most critical stage is achieving a successful system and in giving
confidence on the new system for the users, what it will work efficient and effectively. It
involves careful planning, investing of the current system, and its constraints on implementation,
design of methods to achieve the change over methods. The implementation process begins with
preparing a plan for the implementation of the system. According to this plan, the activities are to
be carried out in these plans; discussion has been made regarding the equipment, resources and
how to test activities. The coding step translates a detail design representation into a
programming language
Realization. Programming languages are vehicles for communication between human and
computers programming language characteristics and coding style can profoundly affect
software quality and maintainability. The coding is done with the following characteristics in
mind.
• Ease of design to code translation.
• Code efficiency.
• Memory efficiency.
• Maintainability.
Implementation is the stage of the project when the theoretical design is turned out into a
working system. Thus it can be considered to be the most critical stage in achieving a successful
new system and in giving the user, confidence that the new system will work and be effective.
TESTING
• TESTING
• INTRODUCTION
Testing is a series of different tests that whose primary purpose is to fully exercise the
computer based system. Although each test has a different purpose, all work should verify that all
system element have been properly integrated and performed allocated function. Testing is the
process of checking whether the developed system works according to the actual requirement
and objectives of the system. The philosophy behind testing is to find the errors. A good test is
one that has a high probability of finding an undiscovered error. A successful test is one that
uncovers the undiscovered error. Test cases are devised with this purpose in mind. A test case is a
set of data that the system will process as an input. After a system has been verified, it needs to
be thoroughly tested to ensure that every component of the system is performing in accordance
with the specific requirements and that it is operating as it should including when the wrong
functions are requested or the wrong data is introduced. Testing measures consist of developing
a set of test criteria either for the entire system or for specific hardware, software and
communications components. For an important and sensitive system such as an electronic voting
system, a structured system testing program may be established to ensure that all aspects of the
system are thoroughly tested.
• TESTING METHODS
Unit Testing
Unit testing refers testing of all the individual programs. This is sometimes called as
program testing. This test should be carried out during programming stage in order to find the
errors in coding and logic for each program in each module. Unit test focuses verification effort
on the smallest unit of software design module. In this project, the user must fill each field
otherwise the user to enter values.
Validation Testing
Valid and invalid data should be created and the program should be made to process this
data to catch errors. When the user of each module wants to enter into the page by the login page
using the use rid and password .If the user gives the wrong password or use rid then the
information is provided to the user like “you must enter user id and password”. Here the inputs
given by the user are validated. That is password validation, format of date are correct, textbox
validation. Changes that need to be done after result of this testing.
Acceptance Teasing
• SAMPLE SCREENSHOTS
CODING
• CODING
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;
}
protected void Button1_Click(object sender, EventArgs e)
{
TextBox5.Text = "";
}
}
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;
string s = FileUpload1.PostedFile.FileName;
FileUpload1.PostedFile.SaveAs(Server.MapPath("~/upload/"+s));
string a = "~/upload/" + s;
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;
}
protected void Button1_Click(object sender, EventArgs e)
{
cmd = new SqlCommand("update bookingTB set status='"+DropDownList1.Text+"' where
id ='" + TextBox1.Text + "'", con);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
Response.Write("<script>alert('Status Update')</script>");
}
}
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;
}
protected void Button1_Click(object sender, EventArgs e)
{
if (TextBox1.Text == "admin" & TextBox2.Text == "admin")
{
Response.Redirect("AdminHome.aspx");
}
else
{
Response.Write("<Script> alert('Password Mismatch!') </Script>");
}
}
protected void Button2_Click(object sender, EventArgs e)
{
TextBox1.Text = "";
TextBox2.Text = "";
}
}
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;
sing 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;
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;
}
protected void Button2_Click(object sender, EventArgs e)
{
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
TextBox7.Text = "";
TextBox8.Text = "";
TextBox9.Text = "";
}
}
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;
public partial class Search : System.Web.UI.Page
{
SqlConnection con = new SqlConnection(@"Data Source=.\
SQLEXPRESS;AttachDbFilename=|DataDirectory|\contradb.mdf;Integrated Security=True;User
Instance=True");
SqlCommand cmd;
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;
}
con.Close();
}
protected void Button1_Click(object sender, EventArgs e)
{
cmd = new SqlCommand("insert into bookingTB values('" + Session["uname"].ToString() +
"','" + style + "','" + Session["id"].ToString() + "','" + amount.Text + "','" + no.Text + "','"
+details.Text + "','" +a+ "','" + b + "','" + c + "','"+d+"')", con);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
Response.Write("<script>alert('Request Sended Wait for Constructor approval')</script>");
}
}
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;
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;
}
protected void Button1_Click(object sender, EventArgs e)
{
con.Open();
cmd = new SqlCommand("select * from regtb where username='" + TextBox1.Text + "' and
Password='" + TextBox2.Text + "'", con);
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
Session["uname"] = TextBox1.Text;
Session["Mobile"] = dr["mobile"].ToString();
Response.Redirect("UserHome.aspx");
}
else
{
Response.Write("<script> alert('username or Password Incorrct!') </Script>");
}
con.Close();
}
protected void Button2_Click(object sender, EventArgs e)
{
TextBox1.Text = "";
TextBox2.Text = "";
}
}
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;
TextBox1.Visible = false;
TextBox2.Visible = false;
DropDownList1.Visible = false;
cmd = new SqlCommand("select * from bookingTB where username
='"+Session["uname"].ToString()+"' and status !=''", con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
da.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();
con.Close();
if (Label2.Text == "Approved")
{
TextBox1.Visible = true;
TextBox2.Visible = true;
DropDownList1.Visible = true;
}
}
protected void Button1_Click(object sender, EventArgs e)
{
cmd = new SqlCommand("update bookingTB set card_type='" + DropDownList1.Text +
"',card_no='"+TextBox1.Text+"',cv_no='"+TextBox2.Text+"' where id ='" + TextBox3.Text + "'
and username='"+Session["uname"].ToString()+"'", con);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
Response.Write("<script>alert('Status Update')</script>");
}
CONCLUSION
• CONCLUSION
The project entitled as “Building Contractor Booking System” has been developed to satisfy all
the proposed requirements. The process of recording details about contractor details, user details
and contractor feedback details is more simple and easy. The system reduces the possibility of
errors to a great extent and maintains the data in an efficient manner. User friendliness is the
unique feature of this system. The system generates the reports as and when required. The
system is highly interactive and flexible for further enhancement. The coding is done in a
simplified and easy to understandable manner so that other team trying to enhance the project
can do so without facing much difficulty. The documentation will also assist in the process as it
has also been carried out in a simplified and concise way.
BIBLIOGRAPHY
10. BIBLIOGRAPHY
BOOK REFERENCE:
• N.J. Belkin and W.B. Croft, “Information Filtering andInformation Retrieval: Two Sides
of the Same Coin?”Comm.
• ASP to ASP.NET Migration Handbook (Christian Nagel et al, Wrox, January 2003)
• Professional .NET Network Programming 2nd Edition (Christian Nagel et al, Wrox,
September 2004)
WEBSITE REFERENCE
• www.csharpcornar.com
• www. Microsoft.com/sql
• www.databasejournal.com
• www.microsoft.com/vcsharp