You are on page 1of 136

INDEX

Sr.No. Topics Page


1. Introduction of the Online Building Construction site 2
2. Objective and Scope of the Online Building Construction site
3. Project Analysis
4. Data Dictionary
5. E-R Diagram
6. Process Diagram
7. User Side Screen Shots
8. Admin Side Screen Shots
9. User Side Coding Pages
10. Admin Side Coding Pages
11. Testing
12. Software and Hardware Requirements
13. Limitations and Future Scopes of the Online Building Construction
site Management System
14. References
15. Glossary

13
6
1 Introduction of the Online Building Construction Site
Management System

13
6
2 Objective and Scope of the Online Building
Construction Site Management System

2.1 Objectives
2.2 Scope

13
6
3 Project Analysis

13
6
4. Data Dictionary

1. AdminMaster
2. BookingMaster
3. CityMaster
4. CountryMaster
5. CustModifyMaster
6. CustomerMaster
7. EnquiryMaster
8. Gallary
9. LocationMaster
10. OverviewMast
11. ParkingMast
12. SampleFlateMast
13. SiteFloorMast
14. SiteLayoutmaster
15. SiteMast
16. SpecificationAmmentiesMaster
17. StateMaster
18. UserMaster

AdminMaster

Field Name Data Type Allow Nulls


AdminId varchar(50) PK - NOT NULL
AdminPassword varchar(50) FK
SecreteQuestion varchar(50) FK
SecreteAnswer varchar(50) FK

BookingMaster

Field Name Data Type Allow Nulls


BookingId numeric(18, 0) PK – NOT NULL
BookingType varchar(50) FK
BookingLocation varchar(50) FK
BookingDate datetime FK
BookingAmount numeric(18, 0) FK

CityMaster

Field Name Data Type Allow Nulls


CityId numeric(18, 0) PK – NOT NULL

13
6
CityName varchar(50) FK
CityAllias varchar(50) FK

CountryMaster

Field Name Data Type Allow Nulls


CountryId numeric(18, 0) PK – NOT NULL
CountryName varchar(50) FK
CountryAllias varchar(50) FK

CustModifyMaster

Field Name Data Type Allow Nulls


ModId numeric(18, 0) PK – NOT NULL
ModType varchar(50) FK
ModDate datetime FK
ModRate datetime FK
ModMatQty numeric(18, 0) FK
ModMatType varchar(50) FK
CustId numeric(18, 0) FK
CustName varchar(50) FK
CustMailId varchar(50) FK
BookingId numeric(18, 0) FK

CustomerMaster

Field Name Data Type Allow Nulls


CustId numeric(18, 0) PK – NOT NULL
CustName varchar(50) FK
CustAdd varchar(50) FK
CustHomeNo1 numeric(18, 0) FK
CustHomeNo2 numeric(18, 0) FK
CustMobNo1 numeric(18, 0) FK
CustMobNo2 numeric(18, 0) FK
CustGender char(10) FK
CustType varchar(50) FK
CustMailId varchar(50) FK
BookingId numeric(18, 0) FK

EnquiryMaster

Field Name Data Type Allow Nulls


EnqId numeric(18, 0) PK – NOT NULL
EnqType varchar(50) FK
EnqDate datetime FK
EnqLocation varchar(50) FK
EnqOfcNo1 numeric(18, 0) FK
EnqOfcNo2 numeric(18, 0) FK
EnqMobNo1 numeric(18, 0) FK
EnqMobNo2 nchar(10) FK

13
6
Gallary

Field Name Data Type Allow Nulls


GallaryId numeric(18, 0) PK – NOT NULL
SiteName varchar(50) FK
SmallPic varchar(50) FK
BigPic varchar(50) FK

LocationMaster

Field Name Data Type Allow Nulls


LocationId numeric(18, 0) PK – NOT NULL
fkSiteId numeric(18, 0) FK
LocationBigPic varchar(100) FK
LocationSmallPic varchar(100) FK

OverviewMast

Field Name Data Type Allow Nulls


OverviewId numeric(18, 0) PK – NOT NULL
OverviewText varchar(2000) FK
fkSiteId numeric(18, 0) FK

ParkingMast

Field Name Data Type Allow Nulls


ParkigAllotmentId numeric(18, 0) PK – NOT NULL
fkSiteId numeric(18, 0) FK
ParkingBigPic varchar(100) FK
ParkingSmallPic varchar(100) FK

SampleFlateMast

Field Name Data Type Allow Nulls


SampleFlateId numeric(18, 0) PK – NOT NULL
fksiteId numeric(18, 0) FK
SampleFlateBigPic varchar(100) FK
SampleFlateSmallPic varchar(100) FK

SiteFloorMast

Field Name Data Type Allow Nulls


FloorPlanId numeric(18, 0) PK – NOT NULL
fkSiteId numeric(18, 0) FK
FloorPlanBigPic varchar(100) FK
FloorPlanSmalPic varchar(100) FK

13
6
SiteLayoutmaster

Field Name Data Type Allow Nulls


LayoutPlanId numeric(18, 0) PK – NOT NULL
fkSiteId numeric(18, 0) FK
LayoutPlanBigPic varchar(100) FK
LayoutPlansmallPic varchar(100) FK

SiteMast

Field Name Data Type Allow Nulls


SiteId numeric(18, 0) PK – NOT NULL
SiteName varchar(50) FK
SiteStartDate datetime FK
SiteEndDate datetime FK
ContactPersonName varchar(50) FK
Address varchar(150) FK
ZipCode numeric(18, 0) FK
State varchar(50) FK
Country varchar(50) FK
Phone1 numeric(18, 0) FK
Phone2 numeric(18, 0) FK
Phone3 numeric(18, 0) FK
EmailId varchar(50) FK
RegNo numeric(18, 0) FK
Remark varchar(50) FK

SpecificationAmmentiesMaster

Field Name Data Type Allow Nulls


Specif_AmenId numeric(18, 0) PK – NOT NULL
fkSiteId numeric(18, 0) FK
SpecificationString varchar(2000) FK
AmmenitiesString varchar(2000) FK

StateMaster

Field Name Data Type Allow Nulls


StateId numeric(18, 0) PK – NOT NULL
StateName varchar(50) FK
StateAllias varchar(50) FK

UserMaster

Field Name Data Type Allow Nulls


UserId varchar(50) PK – NOT NULL
Password varchar(50) FK
SecretQuestion varchar(50) FK
SecretAnswer varchar(50) FK

13
6
13
6
5. E-R Diagram

RELATIONSHIP DIAGRAM

Site Details

Site 1 Has M Site Details

Site Map

Site 1 Has M Site Map

Ammenties

Site 1 Has M Ammenties

Site Overview

Site 1 Has M Overview

13
6
RELATIONSHIP DIAGRAM

Site Layout Plan

Site 1 Has M Site Layout Plan

Parking Plan

Site 1 Has M Parking Plan

Booking Detail

Admin 1 Update M Booking

13
6
ENTITY-RELATIONSHIP

Admin-Client Booking Chart

Admin Update Booking Detail

Check by View by

Enquiry Form Submit Client

13
6
‘0’ Level DFD
OR
Context Level DFD

Submit Enquiry Form

Client

Get Updated Details


Pancham Groups.com

Get Site Plan

Site Overview

Ammenties

Parking Plan

Admin

Update Site Details of

Ammenties,

Site Overview,

Parking Plan

13
6
1ST Level DFD

User Maser
Submit User Details

Booking Master
1.0

User Registration
Process Gallary Master

Admin Site Information


Maser

Ammenties
Enter Username & Password 2.0 Maser

Login Customer
Informaton Maser
Process

Enter Master Details

3.0
Visit the Site
4.0 Master
Management &
Booking
Visit the Site Management

Customer
Get Site Details

13
6
1st Level DFD

Enter User Details

Admin

User Maser

1.1

User Details
Entry Process

1.2

Validation
Process

User Maser

1.3
Confirm to Admin

Data Store
Procedure

13
6
3rd
Level DFD

Login & Enter into Home Page


Booking Maser

3.1 Client
Admin Information Maser
Retrieve
Admin Home
Floor Plan Maser

3.2
Gallary Maser
Information to User

Selection
&
Manage Member Ammenties
Maser

Select the Page to Maintain Database

3.3

3.5 Data Entry


&
Verification
Confirm
Updation

3.4
User Maser

Data Storage
Process Client Req. Modificaton
Maser

Site Inforation
Maser

Enquiry Maser

Sample Flat
Maser

13
6
4th Level DFD

Choice the Page Site Overview


Maser

Client Layout Plan


Maser

4.1 Floor Plan Maser

Page Selection
Process
Ammenties
Maser

4.2

Browse
Page

Booking Maser

Gallary Maser

4.3
Confirm to Client

Enquiry
Form Fillup

Enquiry Maser

13
6
4th Level DFD

Booking Chart
Management
Booking Master

Admin

4.11 Client

Update Booking

4.22

Browse
Booking Chart
Master

4.33
Data Retrieve by Admin

Submit
Enquiry

ADMIN FORM:-

1. AdminRegisterfrm.aspx
2. AdminLoginfrm.aspx

13
6
3. AdminForgotpwdfrm.aspx
4. AdminChangepwdfrm.aspx
5. AdminHomefrm.aspx
6. AdminOverviewfrm.aspx
7. AdminLayoutPlanfrm.aspx
8. AdminFloorMastfrm.aspx
9. AdminParkingfrm.aspx
10. AdminLocationfrm.aspx
11. AdminSpecAmmenfrm.aspx
12. AdminBookingfrm.aspx
13. AdminSampleFlatefrm.aspx
14. AdminGallaryfrm.aspx
15. AdminVideofrm.aspx
16. CountryMastfrm.aspx
17. StateMastfrm.aspx
18. CityMastfrm.aspx

Admin Side Screen Shots

AdminRegisterfrm.aspx

13
6
Admin Register Form:

This form allows admin to register them selves by filling some information in the form
like Username, Password, Retype Password, Secrete Question, Answer, etc. Here
all the fields are validated using JavaScript & Ajax Toll Kit and this information will
be stored in the database.

After filling all the desired information in the form, the user will become
register user of the system and will be redirected to the home page of the system.

If click on reset button to clear all fields, message and reset cursor to the first
field Username.

AdminLoginfrm.aspx

13
6
Admin Login Form:

The above login form will allow admin to login to the system if s/he is already
registered with the system. Otherwise admin will create his/her profile by clicking the
given link Sign Up User.

If admin is already registered with the system then s/he will be redirected to
the home page of the system.

Else admin will register them selves by Sign Up User link and redirected to
the Admin Registration page.

This page also allows the register admin to retrieve their forgot password by
clicking the link Forgot Password?

This page also allows the register admin to Change their password by clicking
the link Change Password?

AdminForgotpwdfrm.aspx

13
6
Admin Forgot Password Form:

Using Above form Admin can get their forgotten password into their registered
email address. Admin only need to write his/her registered Username and the
Personal detail like, Secrete Question, Answer and then get password on screen.

If Admin is not register and tries this functionality then an error message
comes.

If register Admin did some spelling mistake while writing the Username,
Secret Question, Answer and the written Username, Secret Question, Answer is not
equal to send an error message will be generated on screen.

If click on reset button to clear all fields, message and reset cursor to the first
field Username.

AdminChangepwdfrm.aspx

13
6
Admin Change Password Form:

Using this facility Admin can able to change their password. Here user will
enter his/her Current Password and enter New Password and again Re-type New
Password.

Old Password, New Password and Re-Type New Password are validated
using JavaScript and Ajax Tool Kit.

If Old Password is not matched with the stored Password in the database
then error will be thrown to the Admin. Same way New Password and Re-Type New
Password will be compared if it is not same then again an error will be thrown to the
Admin and Admin will get the according action.

If click on reset button to clear all fields, message and reset cursor to the first
field Username.
AdminHomefrm.aspx

13
6
Admin Home Form:

If admin is registered and login into the system then s/he can get this home
page in which s/he can able to edit profile, view profile and also able to change their
password.

Here Admin can also have the Listed menu which will be created using
JavaScript. Using which admin can Add, View, Update or Delete user etc.

This page allows Browse page facility to the admin by clicking on screen listed
different links.

AdminOverviewfrm.aspx

13
6
Admin Overview Form:

Admin can select site id from dropdown list and s/he can see result of
overview of site in the given textbox.

Admin can fetch data by select data from dropdown list and reset button to
clear all fields, message and reset cursor to the first field site id.

AdminLayoutPlanfrm.aspx

13
6
Admin Layout Plan Form:

Admin can select site Name from dropdown list and s/he can upload layout
plan big picture and layout plan small picture by the given browse button.

Admin can store record by clicking on save button and reset button to clear all
fields and reset cursor to the first field site name.

If click on reset button to clear all fields, message and reset cursor to the first
field
Site name.

AdminFloorMastfrm.aspx

13
6
Admin Floor Master Validation Form:

Admin Floor Master Page is validated using JavaScript.

Here simple JavaScript is used to validate this page. If user forgot fill up any
field then error message will be generated and user will again redirected to his page
showing the message that 1st File upload field can’t be blank.

Admin can store record by clicking on save button and reset button to clear all
fields and reset cursor to the first field site name.

If click on reset button to clear all fields, message and reset cursor to the first
field
Site name.

AdminParkingfrm.aspx

13
6
Admin Parking Master Validation Form:

Admin Parking Master Page is validated using JavaScript.

Here simple JavaScript is used to validate this page. If user forgot fill up any
field then error message will be generated and user will again redirected to this page
showing the message that 2nd File upload field can’t be blank.

Admin can store record by clicking on save button and reset button to clear all
fields and reset cursor to the first field site name.

If click on reset button to clear all fields, message and reset cursor to the first
field
Site name.

AdminLocationfrm.aspx

13
6
Admin Location Master Form:

Admin Location Master Page is validated using JavaScript.

Here simple JavaScript is used to validate this page. If user forgot fill up any
field then error message will be generated and user will again redirected to this page
showing the message that 1st or 2nd File upload field can’t be blank.

Admin can store record by clicking on save button and reset button to clear all
fields and reset cursor to the first field site name.

If click on reset button to clear all fields, message and reset cursor to the first
field
Site name.

AdminSpecAmmenfrm.aspx

13
6
Admin Specification Amenities Form:

Admin Specification Amenities Page is validated using JavaScript.

Here simple JavaScript is used to validate this page. If user forgot fill up any
field then error message will be generated and user will again redirected to this page
showing the message that Specification of Site and Amenities field can’t be blank.

Admin can store record by clicking on save button and reset button to clear all
fields and reset cursor to the first field site name.

If click on reset button to clear all fields, message and reset cursor to the first
field
Site name.

AdminBookingfrm.aspx

13
6
Admin Booking Chart Form:

Admin Booking Chart Page is validated using JavaScript.

Here simple JavaScript is used to validate this page. If user forgot fill up any
field then error message will be generated and user will again redirected to this page
showing the message that Specification of Site and Amenities field can’t be blank.

Admin can only see the stored record by selecting dropdown list and reset
button to clear all fields and reset cursor to the first field site name.

If click on reset button to clear all fields, message and reset cursor to the first
field
Site name.

AdminSampleFlatefrm.aspx

13
6
Admin Sample Flat Master Form:

Admin Sample Flat Master Page is validated using JavaScript.

Here simple JavaScript is used to validate this page. If user forgot fill up any
field then error message will be generated and user will again redirected to this page
showing the message that 1st or 2nd File upload field can’t be blank.

Admin can store record by clicking on save button and reset button to clear all
fields and reset cursor to the first field site name.

If click on reset button to clear all fields, message and reset cursor to the first
field
Site name.

AdminGallaryfrm.aspx

13
6
Admin Gallery Form:

Admin Gallery Page is validated using JavaScript.

Here simple JavaScript is used to validate this page. If user forgot fill up any
field then error message will be generated and user will again redirected to this page
showing the message that 1st or 2nd File upload field can’t be blank.

Admin can store record by clicking on save button and reset button to clear all
fields and reset cursor to the first field site name.

If click on reset button to clear all fields, message and reset cursor to the first
field
Site name.

AdminVideofrm.aspx

13
6
Admin Video Form:

Admin Video Page is validated using JavaScript.

Here simple JavaScript is used to validate this page. If user forgot fill up any
field then error message will be generated and user will again redirected to this page
showing the message that File upload field can’t be blank.

Admin can store record by clicking on save button and reset button to clear all
fields and reset cursor to the first field site name.

If click on reset button to clear all fields, message and reset cursor to the first
field
Site name.

CountryMastfrm.aspx

13
6
Admin Country Master Form:

Admin Country Master Page is validated using JavaScript.

Here simple JavaScript is used to validate this page. If user forgot fill up any
field then error message will be generated and user will again redirected to this page
showing the message that Country Alias field can’t be blank.

Admin can store record by clicking on save button and reset button to clear all
fields and reset cursor to the first field Country name.

If click on reset button to clear all fields, message and reset cursor to the first
field
Country name.

StateMastfrm.aspx

13
6
Admin Site Master Form:

Admin Site Master Page is validated using JavaScript.

Here simple JavaScript is used to validate this page. If user forgot fill up any
field then error message will be generated and user will again redirected to this page
showing the message that Country Alias field can’t be blank.

Admin can store record by clicking on save button and reset button to clear all
fields and reset cursor to the first field Site name.

If click on reset button to clear all fields, message and reset cursor to the first
field
Site name.

CityMastfrm.aspx

13
6
Admin City Master Form:

Admin City Master Page is validated using JavaScript.

Here simple JavaScript is used to validate this page. If user forgot fill up any
field then error message will be generated and user will again redirected to this page
showing the message that City Alias field can’t be blank.

Admin can store record by clicking on save button and reset button to clear all
fields and reset cursor to the first field City name.

If click on reset button to clear all fields, message and reset cursor to the first
field
City name.

CLIENT FORM:-

1. ClientRegisterfrm.aspx
2. ClientLoginfrm.aspx
3. ClientForgotPwdffrm.aspx

13
6
4. ClientChangePwdfrm.aspx
5. ClientHomefrm.aspx
6. ClientOverviewfrm.aspx
7. ClientLayoutPlanfrm.aspx
8. ClientFloorPlanfrm.aspx
9. ClientParkingfrm.aspx
10. ClientLocationfrm.aspx
11. ClientSpecAmmenfrm.aspx
12. ClientSampleFlatfrm.aspx
13. ClientGalleryfrm.aspx
14. ClientVideofrm.aspx
15. ClientEnquiryfrm.aspx
16. ClientSiteMastfrm.aspx
17. ClinentInfoMastfrm.aspx
18. CustModificatoinMast.aspx

User Side Screen Shots

ClientRegisterfrm.aspx

13
6
Client Register Form:

This form allows Client to register them selves by filling some information in the form
like Username, Password, Retype Password, Secrete Question, Answer, etc. Here
all the fields are validated using JavaScript & Ajax Toll Kit and this information will
be stored in the database.

After filling all the desired information in the form, the user will become
register user of the system and will be redirected to the home page of the system.

If click on reset button to clear all fields, message and reset cursor to the first
field Username.

ClientLoginfrm.aspx

13
6
Client Login Form:

The above login form will allow client to login to the system if s/he is already
registered with the system. Otherwise Client will create his/her profile by clicking the
given link Sign Up User.

If client is already registered with the system then s/he will be redirected to the
home page of the system.
Else client will register them selves by Sign Up User link and redirected to the
Client Registration page.

This page also allows the register client to retrieve their forgot password by
clicking the link Forgot Password?
This page also allows the register admin to Change their password by clicking
the link Change Password?
ClientHomefrm.aspx

13
6
Client Home Form:

If client is registered and login into the system then s/he can get this home
page in which s/he can able to edit profile, view profile and also able to change their
password.

Here client can also have the Listed menu which will be created using
JavaScript. Using which admin can Add, View, Update or Delete user etc.

This page allows Browse page facility to the client by clicking on screen listed
different links.

ClientForgotPwdffrm.aspx

13
6
Client Forgot Password Form:

Using Above form Client can get their forgotten password into their registered
email address. Client only needs to write his/her registered Username and the
Personal detail like, Secrete Question, Answer and then get password on screen.

If client is not register and tries this functionality then an error message
comes.

If register client did some spelling mistake while writing the Username, Secret
Question, Answer and the written Username, Secret Question, Answer is not equal
to send an error message will be generated on screen.

If click on reset button to clear all fields, message and reset cursor to the first
field Username.

ClientChangePwdfrm.aspx

13
6
Client Change Password Form:

Using this facility client can able to change their password. Here user will
enter his/her Current Password and enter New Password and again Re-type New
Password.

Old Password, New Password and Re-Type New Password are validated
using JavaScript and Ajax Tool Kit.

If Old Password is not matched with the stored Password in the database
then error will be thrown to the client. Same way New Password and Re-Type New
Password will be compared if it is not same then again an error will be thrown to the
client and Admin will get the according action.

If click on reset button to clear all fields, message and reset cursor to the first
field Username.
ClientOverviewfrm.aspx

13
6
Client Overview Form:

Client can select site name from dropdown list and s/he can see result of
overview of site in the given textbox.

Client can store record by clicking on save button and reset button to clear all
fields and reset cursor to the first field site name.

Client can fetch data by select data from dropdown list and reset button to
clear all fields, message and reset cursor to the first field site name.

ClientLayoutPlanfrm.aspx

13
6
Client Layout Plan Form:

Client can select site id from dropdown list and s/he can see the images by
click on show image button then display layout plan big picture and layout plan small
picture on the page.

Client can fetch data by selecting dropdown list and click on show image button then
user can see the stored images on page.

ClientFloorPlanfrm.aspx

13
6
Client Floor Master Validation Form:

Client Floor Master Page is validated using JavaScript.

Client can select site id from dropdown list and s/he can see the images by
click on show image button then display Floor plan big picture and Floor plan small
picture on the page.

Client can fetch data by selecting dropdown list and click on show image button then
user can see the stored images on page.

ClientParkingfrm.aspx

13
6
Client Parking Master Validation Form:

Client Parking Master Page is validated using JavaScript.

Client can select site id from dropdown list and s/he can see the images by
click on show image button then display Parking plan big picture and Parking plan
small picture on the page.

Client can fetch data by selecting dropdown list and click on show image button then
user can see the stored images on page.

ClientLocationfrm.aspx

13
6
Client Location Master Validation Form:

Client Location Master Page is validated using JavaScript.

Client can select site id from dropdown list and s/he can see the images by
click on show image button then display Location Master big picture and Location
Master small picture on the page.

Client can fetch data by selecting dropdown list and click on show image button then
user can see the stored images on page.

ClientSpecAmmenfrm.aspx

13
6
Client Specification Amenities Form:

Client Specification Amenities Page is validated using JavaScript.

Here simple JavaScript is used to validate this page. If user forgot fill up any
field then error message will be generated and user will again redirected to this page
showing the message that Specification of Site and Amenities field can’t be blank.

Client can store record by clicking on save button and reset button to clear all
fields and reset cursor to the first field site id.

If click on reset button to clear all fields, message and reset cursor to the first
field
Site id.

ClientFloorPlanfrm.aspx

13
6
Client Floor Plan Master Validation Form:

Client Floor Plan Master Page is validated using JavaScript.

Client can select site id from dropdown list and s/he can see the images by
click on show image button then display Floor plan big picture and Floor plan small
picture on the page.

Client can fetch data by selecting dropdown list and click on show image button then
user can see the stored images on page.

ClientBookingfrm.aspx

13
6
Client Booking Chart Form:

Client Booking Chart Page is validated using JavaScript. And also use Ajax
Tool kit for Calendar.

Here simple JavaScript is used to validate this page. If user forgot fill up any
field then error message will be generated and user will again redirected to this page
showing the message that Booking Location, Booking Date and Booking Amount
field can’t be blank.

Client can only see the stored record by selecting dropdown list and reset
button to clear all fields and reset cursor to the first field Booking type.

If click on reset button to clear all fields, message and reset cursor to the first
field
Booking type.

ClientFloorPlanfrm.aspx

13
6
Client Floor Plan Master Validation Form:

Client Floor Plan Master Page is validated using JavaScript.

Client can select site id from dropdown list and s/he can see the images by
click on show image button then display Floor plan big picture and Floor plan small
picture on the page.

Client can fetch data by selecting dropdown list and click on show image button then
user can see the stored images on page.

ClientGalleryfrm.aspx

13
6
Client Gallery Form:

Client can only see the stored images by clicking on Previous and Next
button.

ClientLocationfrm.aspx

13
6
Client Location Master Validation Form:

Client Location Master Page is validated using JavaScript.

Client can select site id from dropdown list and s/he can see the images by
click on show image button then display Location Master big picture and Location
Master small picture on the page.

Client can fetch data by selecting dropdown list and click on show image button then
user can see the stored images on page.

ClientEnquityfrm.aspx

13
6
Client Enquiry Form:

Client Enquiry Page is validated using JavaScript. And also use Ajax Tool kit
for Calendar.

Here simple JavaScript is used to validate this page. If user forgot fill up any
field then error message will be generated and user will again redirected to this page
showing the message that Enquiry type, Enquiry Date, Enquiry Place, Enquiry office
contact no1 , Enquiry office contact no2, Enquiry office contact no3, Enquiry mobile
no1 and Enquiry mobile no2 field can’t be blank.

Client can store the record by click save button and If click on reset button to
clear all fields, message and reset cursor to the first field Enquiry type.

ClientSiteMastfrm.aspx

13
6
Client Site Master Form:

Client Site Master Page is validated using JavaScript. And also use Ajax Tool
kit for Calendar.

Here simple JavaScript is used to validate this page. If user forgot fill up any
field then error message will be generated and user will again redirected to this page
showing the message that Name of Site, Start Date, End Date, Contact Person,
Address, Zip code, State, Country, Contact no1, Contact no2, Contact no3, E-mail id,
Registration no, Remark field can’t be blank.

Client can store the record by click save button and If click on reset button to
clear all fields, message and reset cursor to the first field Name of Site.

ClinentInfoMastfrm.aspx

13
6
Client Information Master Form:

Client Information Master Page is validated using JavaScript. And also use
Ajax Tool kit for Calendar.

Here simple JavaScript is used to validate this page. If user forgot fill up any
field then error message will be generated and user will again redirected to this page
showing the message that Customer Name, Address, Customer Home Contact no1,
Customer Home Contact no2, Customer Mobile no1, Customer Mobile no2,
Customer Gender, Customer Type, Customer E-mail id and Booking id field can’t be
blank.

Client can store the record by click save button and If click on reset button to
clear all fields, message and reset cursor to the first field Customer Name.

CustModificatoinMast.aspx

13
6
Client Requirement Modification Master Form:

Client Requirement Modification Master Page is validated using JavaScript.


And also use Ajax Tool kit for Calendar.

Here simple JavaScript is used to validate this page. If user forgot fill up any
field then error message will be generated and user will again redirected to this page
showing the message that Modification Type, Modification Date, Modification Rate,
Modification Material Quantity, Modification Material Type, Customer id, Customer
Name, Customer E-mail id and Booking id field can’t be blank.

Client can store the record by click save button and If click on reset button to
clear all fields, message and reset cursor to the first field Modification Type.

13
6
Admin Side Code

ADMIN FORM:-

19. AdminRegisterfrm.aspx
20. AdminLoginfrm.aspx
21. AdminForgotpwdfrm.aspx
22. AdminChangepwdfrm.aspx
23. AdminHomefrm.aspx
24. AdminOverviewfrm.aspx
25. AdminLayoutPlanfrm.aspx
26. AdminFloorMastfrm.aspx
27. AdminParkingfrm.aspx
28. AdminLocationfrm.aspx
29. AdminSpecAmmenfrm.aspx
30. AdminBookingfrm.aspx
31. AdminSampleFlatefrm.aspx
32. AdminGallaryfrm.aspx
33. AdminVideofrm.aspx
34. CountryMastfrm.aspx

13
6
AdminRegisterfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

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


{
public static SqlConnection con;

public void Reset()


{
lblmsg.Text = "";
txtusrnm.Text = "";
txtpwd.Text = "";
txtretypepwd.Text = "";
txtans.Text = "";
dpsecretquestion.SelectedIndex = -1;
txtusrnm.Focus();
}

protected void Page_Load(object sender, EventArgs e)


{
txtusrnm.Focus();
txtpwd.TextMode = TextBoxMode.Password;
txtretypepwd.TextMode = TextBoxMode.Password;

try
{

13
6
if (!IsPostBack)
{
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
con.Open();

}
catch (Exception ex)
{
Response.Write(ex.Message.ToString());
}

protected void btnregister_Click(object sender, EventArgs e)


{
try
{

SqlCommand cmd;

if(txtpwd.Text == txtretypepwd.Text)
{
cmd = new SqlCommand("insert into AdminMaster values('" +
txtusrnm.Text + "','"+ txtpwd.Text +"','" + dpsecretquestion.SelectedValue
+ "','" + txtans.Text + "')", con);
cmd.CommandType = CommandType.Text;
cmd.ExecuteNonQuery();
lblmsg.Text = "User has been added Successfully...";
cmd.Dispose();
}
else
{
lblmsg.Text = "Original Pass and Retype Pasword does not
Match ";

}
catch (Exception ex)
{
Response.Write(ex.Message.ToString());

}
protected void btnreset_Click(object sender, EventArgs e)
{
Reset();
}
protected void lnkLogin_Click(object sender, EventArgs e)
{
Response.Redirect("AdminLoginfrm.aspx");
}
protected void lnkRegister_Click(object sender, EventArgs e)

13
6
{
Response.Redirect("AdminRegisterfrm.aspx");
}
}

AdminLoginfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

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


{
public static SqlConnection con;

public void Reset()


{
lblmsg.Text = "";
txtusrnm.Text = "";
txtpwd.Text = "";
}

protected void Page_Load(object sender, EventArgs e)


{
txtusrnm.Focus();
txtpwd.TextMode = TextBoxMode.Password;

con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
}

protected void btnlogin_Click(object sender, EventArgs e)


{
string str = "select count(*) from AdminMaster where AdminId='" +
txtusrnm.Text + "' and AdminPassword='" + txtpwd.Text + "'";
SqlCommand cmd = new SqlCommand(str, con);
con.Open();
cmd.CommandType = CommandType.Text;

int Cnt = Convert.ToInt16(cmd.ExecuteScalar());

13
6
cmd.Dispose();
con.Close();

if (Cnt == 1)
{
Response.Redirect("AdminHomefrm.aspx");
}
else
{
lblmsg.Text = "Wrong user Name or Password...";
}

}
protected void lnkbtnforgotpwd_Click(object sender, EventArgs e)
{
Response.Redirect("AdminForgotpwdfrm.aspx");
}
protected void lnkbtnchangepwd_Click(object sender, EventArgs e)
{
Response.Redirect("AdminChangepwdfrm.aspx");
}
protected void lnkbtnsignup_Click(object sender, EventArgs e)
{
Response.Redirect("AdminRegisterfrm.aspx");
}
protected void lnkbtnlogin_Click(object sender, EventArgs e)
{
Response.Redirect("AdminLoginfrm.aspx");
}
protected void lnkbtnregister_Click(object sender, EventArgs e)
{
Response.Redirect("AdminRegisterfrm.aspx");
}
}

13
6
AdminForgotpwdfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

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


{
public static SqlConnection con;

public void Reset()


{
lblmsg.Text = "";
txtusername.Text = "";
txtanswer.Text = "";
dpsecretquestion.SelectedIndex = -1;
txtusername.Focus();
}

protected void Page_Load(object sender, EventArgs e)


{
txtusername.Focus();
//txtanswer.TextMode = TextBoxMode.Password;

con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());

}
protected void btnchangpwd_Click(object sender, EventArgs e)
{
con.Open();
string str = "select AdminPassword from AdminMaster where AdminId =
'" + txtusername.Text + "' and SecreteQuestion='" +
dpsecretquestion.SelectedValue + "' and SecreteAnswer='" + txtanswer.Text +
"'";
SqlCommand cmd = new SqlCommand(str, con);
cmd.CommandType = CommandType.Text;
cmd.Dispose();

string Pass = Convert.ToString(cmd.ExecuteScalar());

if (Pass != "")
{
Response.Write(lblmsg.Text = Pass);
}

13
6
else
{
lblmsg.Text = "UserId SecretQuesion and SecretAns does not
exist...";
con.Close();
}

protected void btnreset_Click(object sender, EventArgs e)


{
Reset();
}

protected void lnkLogin_Click(object sender, EventArgs e)


{
Response.Redirect("AdminLoginfrm.aspx");
}

protected void lnkRegister_Click(object sender, EventArgs e)


{
Response.Redirect("AdminRegisterfrm.aspx");
}
}

AdminChangepwdfrm.aspx

using System;

13
6
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

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


{
public static SqlConnection con;

public void Reset()


{
lblmsg.Text = "";
txtusername.Text = "";
txtoldpassword.Text = "";
txtnewpassword.Text = "";
txtretypepassword.Text = "";
}

protected void Page_Load(object sender, EventArgs e)


{
txtusername.Focus();
txtoldpassword.TextMode = TextBoxMode.Password;
txtnewpassword.TextMode = TextBoxMode.Password;
txtretypepassword.TextMode = TextBoxMode.Password;

con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());

protected void btnchangpwd_Click(object sender, EventArgs e)


{
con.Open();
string str = "select count(*) from AdminMaster where AdminId='" +
txtusername.Text + "' and AdminPassword='" + txtoldpassword.Text + "'";
SqlCommand cmd = new SqlCommand(str, con);

int Cnt = Convert.ToInt16(cmd.ExecuteScalar());

if (Cnt == 1)
{
if (txtnewpassword.Text == txtretypepassword.Text)
{
str = "update AdminMaster set AdminPassword ='" +
txtnewpassword.Text + "' where AdminId='" + txtusername.Text + "' ";
SqlCommand cmd1 = new SqlCommand(str, con);
cmd.CommandType = CommandType.Text;
cmd1.ExecuteNonQuery();
lblmsg.Text = "Password has been Changed...";
cmd.Dispose();
}
else

13
6
{
lblmsg.Text = "New Password and Confirm Password does not
match...";
}
}
else
{
lblmsg.Text = "Either UserName or Password is wrong...";
}
con.Close();

}
protected void btnreset_Click(object sender, EventArgs e)
{
Reset();

}
protected void lnkLogin_Click(object sender, EventArgs e)
{
Response.Redirect("AdminLoginfrm.aspx");

}
protected void lnkRegister_Click(object sender, EventArgs e)
{
Response.Redirect("AdminRegisterfrm.aspx");

AdminHomefrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

13
6
public partial class AdminHomefrm : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
}

AdminOverviewfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

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


{
public static SqlConnection con;

13
6
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
con.Open();
bindd();
}

public void bindd()


{
SqlCommand cmd = new SqlCommand("select * from OverviewMast", con);
cmd.CommandType = CommandType.Text;
SqlDataReader red = cmd.ExecuteReader();
drpSiteName.DataSource = red;
drpSiteName.DataValueField = "fkSiteId";
drpSiteName.DataBind();
red.Close();
cmd.Dispose();
}

protected void btnReset_Click(object sender, EventArgs e)


{
Reset();
}

public void Reset()


{
txtOverviewText.Text = "";
drpSiteName.SelectedIndex = -1;
drpSiteName.Focus();
}

protected void drpSiteName_SelectedIndexChanged(object sender,


EventArgs e)
{
try
{
SqlCommand cmd = new SqlCommand("select * from OverviewMast
where fkSiteId='" + drpSiteName.SelectedValue + "' ", con);
cmd.CommandType = CommandType.Text;
SqlDataReader red = cmd.ExecuteReader();
while (red.Read())
{
txtOverviewText.Text = red["OverviewText"].ToString();
}
red.Close();
cmd.Dispose();
}
catch (Exception ex)
{
lblMsg.Text = ex.Message.ToString();
}

13
6
}

AdminLayoutPlanfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.IO;
using System.Data.SqlClient;

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


{
public mySqlHandler mySql = new mySqlHandler();

protected void Page_Load(object sender, EventArgs e)


{
if (!IsPostBack)
{
bindSiteName();
}

13
6
}

public void bindSiteName()


{
String strg = "Select SiteId,SiteName from SiteMast";
mySql.myBindDropDownList(strg, drpSiteName);

public void Reset()


{
lblMsg.Text = "";

drpSiteName.Focus();
}

protected void btnSave_Click(object sender, EventArgs e)


{
try
{
String strg = "Insert into
SiteLayoutmaster(fkSiteId,LayoutPlanBigPic,LayoutPlansmallPic) values ('" +
drpSiteName.SelectedValue + "','" +
fluploadBigPic.PostedFile.FileName.ToString() + "','" +
fluploadSmallPic.PostedFile.FileName.ToString() + "')";
mySql.myInsertData(strg);
lblMsg.Text = "Record has been Inserted Successfully ";
drpSiteName.SelectedIndex = -1;
}
catch (Exception ex)
{
lblMsg.Text = "Record Cant be Inserted , " +
ex.Message.ToString();
}
}

protected void btnReset_Click(object sender, EventArgs e)


{
Reset();
}

protected void btnsmallpic_Click(object sender, EventArgs e)


{
//string filename = fluploadBigPic.FileName.ToString();
//fluploadBigPic.SaveAs(Server.MapPath("~\\images\\") + filename);
//imgbigpic.ImageUrl = "~\\images\\" + filename.ToString();
}

protected void btnbigpic_Click(object sender, EventArgs e)


{
//string filename = fluploadSmallPic.FileName.ToString();
//fluploadSmallPic.SaveAs(Server.MapPath("~\\images\\") +
filename);
//imgsmallpic.ImageUrl = "~\\images\\" + filename.ToString();
}
}

13
6
AdminFloorMastfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.IO;
using System.Data.SqlClient;

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


{
public mySqlHandler mySql = new mySqlHandler();

protected void Page_Load(object sender, EventArgs e)


{
if (!IsPostBack)
{

bindSiteName();
}
}

public void bindSiteName()


{
String strg = "Select SiteId,SiteName from SiteMast";
mySql.myBindDropDownList(strg, drpSiteName);

13
6
}

public void Reset()


{
lblMsg.Text = "";
drpSiteName.SelectedIndex = -1;
drpSiteName.Focus();
}

protected void btnSave_Click(object sender, EventArgs e)


{

try
{
String strg = "Insert into
SiteFloorMast(fkSiteId,FloorPlanBigPic,FloorPlanSmalPic) values ('" +
drpSiteName.SelectedValue + "','" +
fluploadBigPic.PostedFile.FileName.ToString() + "','" +
fluploadSmallPic.PostedFile.FileName.ToString() + "')";
mySql.myInsertData(strg);
lblMsg.Text = "Record has been Inserted Successfully ";
drpSiteName.SelectedIndex = -1;
}
catch (Exception ex)
{
lblMsg.Text = "Record Cant be Inserted , " +
ex.Message.ToString();
}
}

protected void btnReset_Click(object sender, EventArgs e)


{
Reset();
}
protected void btnsmallpic_Click(object sender, EventArgs e)
{
//string filename = fluploadBigPic.FileName.ToString();
//fluploadBigPic.SaveAs(Server.MapPath("~\\Pics\\") + filename);
//imgbigpic.ImageUrl = "~\\Pics\\" + filename.ToString();
}
protected void btnbigpic_Click(object sender, EventArgs e)
{
//string filename =fluploadSmallPic.FileName.ToString();

//fluploadSmallPic.SaveAs(Server.MapPath("//C:/rahul/pancham_net_11/Pics/")
+ filename);
//imgsmallpic.ImageUrl = "//C:/rahul/pancham_net_11/Pics/" +
filename.ToString();

13
6
AdminParkingfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

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


{
public mySqlHandler mySql = new mySqlHandler();

protected void Page_Load(object sender, EventArgs e)


{
if (!IsPostBack)
{
bindSiteName();
}
}

public void bindSiteName()


{
String strg = "Select SiteId,SiteName from SiteMast";
mySql.myBindDropDownList(strg, drpSiteName);
}

public void Reset()


{
lblMsg.Text = "";
drpSiteName.SelectedIndex = -1;
drpSiteName.Focus();
}

13
6
protected void drpSiteName_SelectedIndexChanged(object sender,
EventArgs e)
{

protected void btnSave_Click(object sender, EventArgs e)


{
try
{
String strg = "Insert into
ParkingMast(fkSiteId,ParkingBigPic,ParkingSmallPic) values ('" +
drpSiteName.SelectedValue + "','" +
fluploadBigPic.PostedFile.FileName.ToString() + "','" +
fluploadSmallPic.PostedFile.FileName.ToString() + "')";
mySql.myInsertData(strg);
lblMsg.Text = "Record has been Inserted Successfully ";
drpSiteName.SelectedIndex = -1;
}
catch (Exception ex)
{
lblMsg.Text = "Record Cant be Inserted , " +
ex.Message.ToString();
}
}

protected void btnReset_Click(object sender, EventArgs e)


{
Reset();
}

protected void btnsmallpic_Click(object sender, EventArgs e)


{
//string filename = fluploadBigPic.FileName.ToString();
//fluploadBigPic.SaveAs(Server.MapPath("~\\images\\") + filename);
//imgbigpic.ImageUrl = "~\\images\\" + filename.ToString();
}

protected void btnbigpic_Click(object sender, EventArgs e)


{
//string filename = fluploadSmallPic.FileName.ToString();
//fluploadSmallPic.SaveAs(Server.MapPath("~\\images\\") +
filename);
//imgsmallpic.ImageUrl = "~\\images\\" + filename.ToString();
}

13
6
AdminLocationfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

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


{
public mySqlHandler mySql = new mySqlHandler();

protected void Page_Load(object sender, EventArgs e)


{
if (!IsPostBack)
{
bindSiteName();
}
}

public void bindSiteName()


{
String strg = "Select SiteId,SiteName from SiteMast";
mySql.myBindDropDownList(strg, drpSiteName);

public void Reset()


{
lblMsg.Text = "";
drpSiteName.Focus();
drpSiteName.SelectedIndex = -1;
}

protected void drpSiteName_SelectedIndexChanged(object sender,


EventArgs e)
{

13
6
}

protected void btnSave_Click(object sender, EventArgs e)


{
try
{
String strg = "Insert into
LocationMaster(fkSiteId,LocationBigPic,LocationSmallPic) values ('" +
drpSiteName.SelectedValue + "','" +
fluploadBigPic.PostedFile.FileName.ToString() + "','" +
fluploadSmallPic.PostedFile.FileName.ToString() + "')";
mySql.myInsertData(strg);
lblMsg.Text = "Record has been Inserted Successfully ";
drpSiteName.SelectedIndex = -1;
}
catch (Exception ex)
{
lblMsg.Text = "Record Cant be Inserted , " +
ex.Message.ToString();
}
}

protected void btnReset_Click(object sender, EventArgs e)


{
Reset();
}
protected void btnsmallpic_Click(object sender, EventArgs e)
{
//string filename = fluploadBigPic.FileName.ToString();
//fluploadBigPic.SaveAs(Server.MapPath("~\\images\\") + filename);
//imgbigpic.ImageUrl = "~\\images\\" + filename.ToString();
}
protected void btnbigpic_Click(object sender, EventArgs e)
{
//string filename = fluploadSmallPic.FileName.ToString();
//fluploadSmallPic.SaveAs(Server.MapPath("~\\images\\") +
filename);
//imgsmallpic.ImageUrl = "~\\images\\" + filename.ToString();
}
}

13
6
AdminSpecAmmenfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

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


{
public mySqlHandler mySql = new mySqlHandler();

protected void Page_Load(object sender, EventArgs e)


{
if (!IsPostBack)
{
bindSiteName();
}
}

public void bindSiteName()


{
String strg = "Select SiteId,SiteName from SiteMast";
mySql.myBindDropDownList(strg, drpSiteName);
}

protected void DropDownList1_SelectedIndexChanged(object sender,


EventArgs e)
{

protected void btnSave_Click(object sender, EventArgs e)


{
String strg = "insert into
SpecificationAmmentiesMaster(fkSiteId,SpecificationString,AmmenitiesString)
values('"+ drpSiteName.SelectedValue +"','" + txtSpecificationstring.Text +
"','"+ txtAmmenitiesstring.Text+"')";
mySql.myInsertData(strg);
lblMsg.Text = "Record has been Inserted Successfully ";

protected void btnReset_Click(object sender, EventArgs e)


{

13
6
Reset();
}

public void Reset()


{
lblMsg.Text = "";
txtSpecificationstring.Text = "";
txtAmmenitiesstring.Text = "";
drpSiteName.SelectedIndex = -1;
drpSiteName.Focus();
}

13
6
AdminBookingfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

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


{
public static SqlConnection con;

protected void Page_Load(object sender, EventArgs e)


{
drpBookingType.Focus();

if (!IsPostBack)
{
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
}
}

public void Reset()


{
lblMsg.Text = "";
txtBookingLocation.Text = "";
txtBookingDate.Text = "";
txtBookingAmt.Text = "";
drpBookingType.SelectedIndex = -1;
drpBookingType.Focus();
}

protected void btnReset_Click(object sender, EventArgs e)


{
Reset();
}

protected void drpBookingType_SelectedIndexChanged(object sender,


EventArgs e)
{
try
{
con.Open();
SqlCommand cmd = new SqlCommand("select * from BookingMaster
where BookingType='" + drpBookingType.SelectedValue.ToString() + "' ",
con);
cmd.CommandType = CommandType.Text;
SqlDataReader red = cmd.ExecuteReader();
while (red.Read())
{

13
6
txtBookingLocation.Text =
red["BookingLocation"].ToString();
txtBookingDate.Text = red["BookingDate"].ToString();
txtBookingAmt.Text=red["BookingAmount"].ToString();
}
red.Close();
cmd.Dispose();
con.Close();
//drpBookingType.SelectedIndex = -1;
}
catch (Exception ex)
{
lblMsg.Text = ex.Message.ToString();
}
}
}

AdminSampleFlatefrm.aspx

using System;
using System.Collections;
using System.Configuration;

13
6
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

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


{
public mySqlHandler mySql = new mySqlHandler();

protected void Page_Load(object sender, EventArgs e)


{
drpSiteName.Focus();

if (!IsPostBack)
{
bindSiteName();
}
}

public void bindSiteName()


{
String strg = "Select SiteId,SiteName from SiteMast";
mySql.myBindDropDownList(strg, drpSiteName);

public void Reset()


{
lblMsg.Text = "";
drpSiteName.SelectedIndex = -1;
drpSiteName.Focus();
}

protected void drpSiteName_SelectedIndexChanged(object sender,


EventArgs e)
{

protected void btnSave_Click(object sender, EventArgs e)


{
try
{
String strg = "Insert into
SampleFlateMast(fkSiteId,SampleFlateBigPic,SampleFlateSmallPic) values ('"
+ drpSiteName.SelectedValue + "','" +
fluploadBigPic.PostedFile.FileName.ToString() + "','" +
fluploadSmallPic.PostedFile.FileName.ToString() + "')";
mySql.myInsertData(strg);
lblMsg.Text = "Record has been Inserted Successfully ";
drpSiteName.SelectedIndex = -1;
}
catch (Exception ex)
{
lblMsg.Text = "Record Cant be Inserted , " +
ex.Message.ToString();

13
6
}
}

protected void btnReset_Click(object sender, EventArgs e)


{
Reset();
}

protected void btnbigpic_Click(object sender, EventArgs e)


{
//string filename = fluploadBigPic.FileName.ToString();
//fluploadBigPic.SaveAs(Server.MapPath("~\\images\\") + filename);
//imgbigpic.ImageUrl = "~\\images\\" + filename.ToString();
}
protected void btnsmallpic_Click(object sender, EventArgs e)
{
//string filename = fluploadSmallPic.FileName.ToString();
//fluploadSmallPic.SaveAs(Server.MapPath("~\\images\\") +
filename);
//imgsmallpic.ImageUrl = "~\\images\\" + filename.ToString();
}
}

AdminGallaryfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;

13
6
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

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


{
public mySqlHandler mySql = new mySqlHandler();

protected void Page_Load(object sender, EventArgs e)


{
drpSiteName.Focus();
if (!IsPostBack)
{
bindSiteName();
}
}
public void clean()
{
drpSiteName.SelectedIndex = -1;
lblMsg.Text = "";
}

public void bindSiteName()


{
String strg = "Select SiteId,SiteName from SiteMast";
mySql.myBindDropDownList(strg, drpSiteName);

protected void btnSave_Click(object sender, EventArgs e)


{
String FilePath1 = "~\\images\\ImageS\\" +
fluploadSmallPic.FileName.ToString();
String FilePath2 = "~\\images\\ImageL\\" +
fluploadBigPic.FileName.ToString();

String FileDirection1 = Server.MapPath("~\\images\\ImageS\\" +


fluploadSmallPic.FileName.ToString());
fluploadSmallPic.SaveAs(FileDirection1);
String FileDirection2 = Server.MapPath("~\\images\\ImageL\\" +
fluploadBigPic.FileName.ToString());
fluploadBigPic.SaveAs(FileDirection2);

try
{
String strg = "Insert into Gallary(SiteName,SmallPic,BigPic)
values ('" + drpSiteName.SelectedItem.Text + "','" + FilePath1 + "','" +
FilePath2 + "')";
mySql.myInsertData(strg);
lblMsg.Text = "Record has been Inserted Successfully ";
drpSiteName.SelectedIndex = -1;
}
catch (Exception ex)
{
lblMsg.Text = "Record Cant be Inserted , " +
ex.Message.ToString();

13
6
}
}

protected void btnReset_Click(object sender, EventArgs e)


{
lblMsg.Text = "";
drpSiteName.Focus();
}

AdminVideofrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

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


{

13
6
public mySqlHandler mySql = new mySqlHandler();

protected void Page_Load(object sender, EventArgs e)


{
if (!IsPostBack)
{
bindSiteName();
}
}

public void bindSiteName()


{
String strg = "Select SiteId,SiteName from SiteMast";
mySql.myBindDropDownList(strg, drpSiteName);

protected void btnSave_Click(object sender, EventArgs e)


{
String FilePath1 = "~\\images\\ImageS\\" +
fluploadSmallPic.FileName.ToString();
// String FilePath2 = "~\\images\\ImageL\\" +
fluploadBigPic.FileName.ToString();

String FileDirection1 = Server.MapPath("~\\images\\ImageS\\" +


fluploadSmallPic.FileName.ToString());
fluploadSmallPic.SaveAs(FileDirection1);

//String FileDirection2 = Server.MapPath("~\\images\\ImageL\\" +


fluploadBigPic.FileName.ToString());
// fluploadBigPic.SaveAs(FileDirection2);

try
{
String strg = "Insert into
SiteFloorMast(fkSiteId,FloorPlanSmalPic) values ('" +
drpSiteName.SelectedValue + "','" + FilePath1.ToString() + "')";
mySql.myInsertData(strg);
lblMsg.Text = "Record has been Inserted Successfully ";
drpSiteName.SelectedIndex = -1;
}
catch (Exception ex)
{
lblMsg.Text = "Record Cant be Inserted , " +
ex.Message.ToString();
}
}

public void Reset()


{
lblMsg.Text = "";
drpSiteName.SelectedIndex = -1;
drpSiteName.Focus();
}

protected void btnReset_Click(object sender, EventArgs e)


{
Reset();
}

13
6
protected void drpSiteName_SelectedIndexChanged(object sender,
EventArgs e)
{

}
}

CountryMastfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

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


{
public mySqlHandler mysql = new mySqlHandler();

protected void Page_Load(object sender, EventArgs e)


{
drpCountryName.Focus();

13
6
if (!IsPostBack)
{
}
}

protected void btnSave_Click(object sender, EventArgs e)


{
try
{
string strg = "Insert into
CountryMaster(CountryName,CountryAllias) values('" +
drpCountryName.SelectedValue.ToUpper() + "','" +
txtCountryAllias.Text.ToUpper() + "')";
mysql.myInsertData(strg);
lblMsg.Text = "Record has been added succesfully...";
}
catch (Exception ex)
{
lblMsg.Text = "Record can be inserted, " +
ex.Message.ToString();
}
}

protected void btnReset_Click(object sender, EventArgs e)


{
lblMsg.Text = "";
txtCountryAllias.Text = "";
drpCountryName.Focus();
}
}

StateMastfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

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


{
public mySqlHandler mysql = new mySqlHandler();

protected void Page_Load(object sender, EventArgs e)


{
drpStateName.Focus();

if (!IsPostBack)
{

13
6
}
}
protected void btnSave_Click(object sender, EventArgs e)
{
try
{
string strg = "Insert into StateMaster(StateName,StateAllias)
values('" + drpStateName.SelectedValue.ToUpper() + "','" +
txtStateAllias.Text.ToUpper() + "')";
mysql.myInsertData(strg);
lblMsg.Text="Record has been inserted succesfully...";
}
catch(Exception ex)
{
lblMsg.Text="Record can not be inserted, " +
ex.Message.ToString();
}
}

protected void btnReset_Click(object sender, EventArgs e)


{
lblMsg.Text = "";
txtStateAllias.Text = "";
drpStateName.SelectedIndex = -1;
drpStateName.Focus();
}
}

CityMastfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

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


{
public mySqlHandler mysql = new mySqlHandler();

protected void Page_Load(object sender, EventArgs e)


{
drpCityName.Focus();

if (!IsPostBack)
{
}
}

protected void btnSave_Click(object sender, EventArgs e)


{

13
6
try
{
string strg = "Insert into CityMaster(CityName,CityAllias)
values('"+ drpCityName.SelectedValue.ToUpper() +"','" +
txtCityAllias.Text.ToUpper() + "')";
mysql.myInsertData(strg);
lblMsg.Text = "Record has been inserted succesfully...";
}
catch (Exception ex)
{
lblMsg.Text = "Record can not be inserted, " +
ex.Message.ToString();
}
}

protected void btnReset_Click(object sender, EventArgs e)


{
lblMsg.Text = "";
txtCityAllias.Text = "";
drpCityName.Focus();
}
}

Client Side Code

CLIENT FORM:-

19. ClientRegisterfrm.aspx
20. ClientLoginfrm.aspx
21. ClientForgotPwdffrm.aspx
22. ClientChangePwdfrm.aspx
23. ClientHomefrm.aspx
24. ClientOverviewfrm.aspx
25. ClientLayoutPlanfrm.aspx
26. ClientFloorPlanfrm.aspx

13
6
27. ClientParkingfrm.aspx
28. ClientLocationfrm.aspx
29. ClientSpecAmmenfrm.aspx
30. ClientSampleFlatfrm.aspx
31. ClientGalleryfrm.aspx
32. ClientVideofrm.aspx
33. ClientEnquityfrm.aspx
34. ClientSiteMastfrm.aspx
35. ClinentInfoMastfrm.aspx
36. CustModificatoinMast.aspx

ClientRegisterfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

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

13
6
{
public static SqlConnection con;

public void Reset()


{
LblMsg.Text = "";
TxtUserName.Text = "";
TxtPwd.Text = "";
TxtRetypePwd.Text = "";
TxtAnswer.Text = "";
DrpSecretQuestion.SelectedIndex = -1;
TxtUserName.Focus();
}

protected void Page_Load(object sender, EventArgs e)


{
TxtUserName.Focus();
TxtPwd.TextMode = TextBoxMode.Password;
TxtRetypePwd.TextMode = TextBoxMode.Password;

try
{
if (!IsPostBack)
{
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
}
}
catch (Exception ex)
{
Response.Write(ex.Message.ToString());
}

}
protected void BtnRegister_Click(object sender, EventArgs e)
{
try
{
con.Open();
SqlCommand cmd = new SqlCommand();

if (TxtPwd.Text == TxtRetypePwd.Text)
{
cmd = new SqlCommand("insert into UserMaster values('" +
TxtUserName.Text + "','" + TxtPwd.Text + "','" +
DrpSecretQuestion.SelectedValue + "','" + TxtAnswer.Text + "')", con);
cmd.CommandType = CommandType.Text;
cmd.ExecuteNonQuery();
LblMsg.Text = "User has been added Successfully...";
cmd.Dispose();
con.Close();
}
else
{
LblMsg.Text = "Original Pass and Retype Pasword does not
Match ";
}

13
6
catch (Exception ex)
{
Response.Write(ex.Message.ToString());
}

}
protected void BtnReset_Click(object sender, EventArgs e)
{
Reset();
}
}

ClientLoginfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

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


{
public static SqlConnection con;

public void Reset()


{
LblMsg.Text = "";
TxtUserName.Text = "";
TxtPassword.Text = "";

13
6
}

protected void Page_Load(object sender, EventArgs e)


{
Reset();
TxtUserName.Focus();
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());

protected void BtnLogin_Click(object sender, EventArgs e)


{
string str = "select count(*) from UserMaster where UserId='" +
TxtUserName.Text + "' and Password='" + TxtPassword.Text + "'";
SqlCommand cmd = new SqlCommand(str, con);
con.Open();
cmd.CommandType = CommandType.Text;

int Cnt = Convert.ToInt16(cmd.ExecuteScalar());


cmd.Dispose();
con.Close();

if (Cnt == 1)
{
LblMsg.Text = "Wrong user Name or Password ";
}
else
{
Response.Redirect("ClientHomefrm.aspx");
}

protected void LnkBtnForgotPwd_Click(object sender, EventArgs e)


{
Response.Redirect("ClientForgotPwdffrm.aspx");
}
protected void LnkBtnChangePwd_Click(object sender, EventArgs e)
{
Response.Redirect("ClientChangePwdfrm.aspx");
}
protected void LnkBtnSignUp_Click(object sender, EventArgs e)
{
Response.Redirect("ClientRegisterfrm.aspx");
}
}

13
6
ClientForgotPwdffrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

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


{
public static SqlConnection con;

public void Reset()


{
LblMsg.Text = "";
TxtUsername.Text = "";
TxtAnswer.Text = "";
}

protected void Page_Load(object sender, EventArgs e)


{
TxtUsername.Focus();
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());

13
6
}
protected void BtnGetpwd_Click(object sender, EventArgs e)
{
con.Open();
string str = "select Password from UserMaster where UserId = '" +
TxtUsername.Text + "' and SecretQuestion='" +
DrpSecretQuestion.SelectedValue + "' and SecretAnswer='" + TxtAnswer.Text +
"'";
SqlCommand cmd = new SqlCommand(str, con);
cmd.CommandType = CommandType.Text;
cmd.Dispose();

string Pass = Convert.ToString(cmd.ExecuteScalar());

if (Pass != "")
{
Response.Write(LblMsg.Text = Pass);
}
else
{
LblMsg.Text = "UserId SecretQuesion and SecretAns does not
exist...";
con.Close();
}

}
protected void BtnReset_Click(object sender, EventArgs e)
{
Reset();
}
}

13
6
ClientChangePwdfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

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


{
public static SqlConnection con;

public void Reset()


{
LblMsg.Text = "";
TxtUsername.Text = "";
TxtOldpwd.Text = "";
TxtNewpwd.Text = "";
TxtRetypepwd.Text = "";
TxtUsername.Focus();
}

protected void Page_Load(object sender, EventArgs e)


{
TxtUsername.Focus();
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());

protected void btnchangpwd_Click(object sender, EventArgs e)

13
6
{
con.Open();
string str = "select count(*) from UserMaster where UserId='" +
TxtUsername.Text + "' and Password='" + TxtOldpwd.Text + "'";
SqlCommand cmd = new SqlCommand(str, con);

int Cnt = Convert.ToInt16(cmd.ExecuteScalar());

if (Cnt == 1)
{
if (TxtNewpwd.Text == TxtRetypepwd.Text)
{
str = "update UserMaster set Password ='" + TxtNewpwd.Text
+ "' where UserId='" + TxtUsername.Text + "' ";
SqlCommand cmd1 = new SqlCommand(str, con);
cmd.CommandType = CommandType.Text;
cmd1.ExecuteNonQuery();
LblMsg.Text = "Password has been Changed...";
cmd.Dispose();
}
else
{
LblMsg.Text = "New Password and Confirm Password does not
match...";
}
}
else
{
LblMsg.Text = "Either UserName or Password is wrong...";
}
con.Close();

}
protected void BtnReset_Click(object sender, EventArgs e)
{
Reset();
}
}

13
6
ClientHomefrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

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


{

protected void Page_Load(object sender, EventArgs e)


{

}
}

13
6
ClientOverviewfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

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


{
public mySqlHandler mysql = new mySqlHandler();

protected void Page_Load(object sender, EventArgs e)


{
drpSiteName.Focus();

Master.ApplicationName = "Overview";

if (!IsPostBack)
{
bindSiteName();
}
}

public void bindSiteName()


{
String strg = "Select SiteId,SiteName from SiteMast";
mysql.myBindDropDownList(strg, drpSiteName);

protected void btnSave_Click(object sender, EventArgs e)


{
try
{
String strg = "insert into OverviewMast(fksiteId,OverviewText)
values('" + drpSiteName.SelectedValue + "','" +
txtOverviewText.Text.ToUpper() + "')";
mysql.myInsertData(strg);
lblMsg.Text = "Record has been Added Succesfully ";
}
catch (Exception ex)
{
lblMsg.Text = ex.Message.ToString();
}
}

13
6
protected void btnReset_Click(object sender, EventArgs e)
{
Reset();
}

public void Reset()


{
lblMsg.Text = "";
txtOverviewText.Text = "";
drpSiteName.SelectedIndex = -1;
drpSiteName.Focus();
}
}

ClientLayoutPlanfrm.aspx

13
6
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

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


{

public static SqlConnection con;

protected void Page_Load(object sender, EventArgs e)


{

if (!IsPostBack)
{
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
con.Open();
bindd();
}
}

protected void btnShowImage_Click(object sender, EventArgs e)


{
SqlCommand cmd = new SqlCommand("select * from SiteLayoutmaster
where fkSiteId='" + DropDownList1.SelectedValue + "'", con);
cmd.CommandType = CommandType.Text;
SqlDataReader red = cmd.ExecuteReader();
DataList1.DataSource = red;
DataList1.DataBind();
red.Close();
cmd.Dispose();
}

public void bindd()


{
SqlCommand cmd = new SqlCommand("select * from SiteLayoutmaster",
con);
cmd.CommandType = CommandType.Text;
SqlDataReader red = cmd.ExecuteReader();
DropDownList1.DataSource = red;
DropDownList1.DataValueField = "fkSiteId";
DropDownList1.DataBind();
red.Close();
cmd.Dispose();
}

13
6
ClientFloorPlanfrm.aspx
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;

13
6
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

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


{
public static SqlConnection con;

protected void Page_Load(object sender, EventArgs e)


{
if (!IsPostBack)
{
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
con.Open();
bindd();
}

public void bindd()


{
SqlCommand cmd = new SqlCommand("select * from SiteFloorMast",
con);
cmd.CommandType = CommandType.Text;
SqlDataReader red = cmd.ExecuteReader();
DropDownList1.DataSource = red;
DropDownList1.DataValueField = "fkSiteId";
DropDownList1.DataBind();
red.Close();
cmd.Dispose();
}

protected void btnShowImage_Click(object sender, EventArgs e)


{
SqlCommand cmd = new SqlCommand("select * from SiteFloorMast where
fkSiteId='" + DropDownList1.SelectedValue + "'", con);
cmd.CommandType = CommandType.Text;
SqlDataReader red = cmd.ExecuteReader();
DataList1.DataSource = red;
DataList1.DataBind();
red.Close();
cmd.Dispose();
}
}
ClientParkingfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

13
6
public partial class ClientParkingfrm : System.Web.UI.Page
{
public static SqlConnection con;

protected void Page_Load(object sender, EventArgs e)


{
if (!IsPostBack)
{
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
con.Open();
bindd();
}
}

public void bindd()


{
SqlCommand cmd = new SqlCommand("select * from ParkingMast", con);
cmd.CommandType = CommandType.Text;
SqlDataReader red = cmd.ExecuteReader();
DropDownList1.DataSource = red;
DropDownList1.DataValueField = "fkSiteId";
DropDownList1.DataBind();
red.Close();
cmd.Dispose();
}

public void Reset()


{
lblMsg.Text = "";
DropDownList1.SelectedIndex = -1;
DropDownList1.Focus();
}

protected void btnReset_Click(object sender, EventArgs e)


{
Reset();
}

protected void btnShowImage_Click(object sender, EventArgs e)


{
SqlCommand cmd = new SqlCommand("select * from ParkingMast where
fkSiteId='" + DropDownList1.SelectedValue + "'", con);
cmd.CommandType = CommandType.Text;
SqlDataReader red = cmd.ExecuteReader();
DataList1.DataSource = red;
DataList1.DataBind();
red.Close();
cmd.Dispose();
DropDownList1.SelectedIndex = -1;
}
}

13
6
ClientLocationfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

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


{
public static SqlConnection con;

protected void Page_Load(object sender, EventArgs e)


{
if (!IsPostBack)
{

13
6
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
con.Open();
bindd();
}
}

public void bindd()


{
SqlCommand cmd = new SqlCommand("select * from LocationMaster",
con);
cmd.CommandType = CommandType.Text;
SqlDataReader red = cmd.ExecuteReader();
DropDownList1.DataSource = red;
DropDownList1.DataValueField = "fkSiteId";
DropDownList1.DataBind();
red.Close();
cmd.Dispose();
}

public void Reset()


{
lblMsg.Text = "";
DropDownList1.SelectedIndex = -1;
DropDownList1.Focus();
}

protected void btnShowImage_Click(object sender, EventArgs e)


{
SqlCommand cmd = new SqlCommand("select * from LocationMaster where
fkSiteId='" + DropDownList1.SelectedValue + "'", con);
cmd.CommandType = CommandType.Text;
SqlDataReader red = cmd.ExecuteReader();
DataList1.DataSource = red;
DataList1.DataBind();
red.Close();
cmd.Dispose();
DropDownList1.SelectedIndex = -1;
}
protected void btnReset_Click(object sender, EventArgs e)
{
Reset();
}
}

13
6
ClientSpecAmmenfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

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


{
public static SqlConnection con;

protected void Page_Load(object sender, EventArgs e)


{
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
con.Open();
bindd();
}

public void bindd()


{
SqlCommand cmd = new SqlCommand("select * from
SpecificationAmmentiesMaster", con);
cmd.CommandType = CommandType.Text;

13
6
SqlDataReader red = cmd.ExecuteReader();
drpSiteName.DataSource = red;
drpSiteName.DataValueField = "fkSiteId";
drpSiteName.DataBind();
red.Close();
cmd.Dispose();
}

public void Reset()


{
lblMsg.Text = "";
txtAmmenitiesstring.Text = "";
txtSpecificationstring.Text = "";
drpSiteName.SelectedIndex = -1;
drpSiteName.Focus();
}

protected void btnReset_Click(object sender, EventArgs e)


{
Reset();
}
protected void DropDownList1_SelectedIndexChanged(object sender,
EventArgs e)
{
try
{
SqlCommand cmd = new SqlCommand("select * from
SpecificationAmmentiesMaster where fkSiteId='" + drpSiteName.SelectedValue
+ "' ", con);
cmd.CommandType = CommandType.Text;
SqlDataReader red = cmd.ExecuteReader();
while (red.Read())
{
txtSpecificationstring.Text =
red["SpecificationString"].ToString();
txtAmmenitiesstring.Text =
red["AmmenitiesString"].ToString();
}
red.Close();
cmd.Dispose();
drpSiteName.SelectedIndex = -1;
}
catch (Exception ex)
{
lblMsg.Text = ex.Message.ToString();
}
}
}

13
6
ClientSampleFlatfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

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


{
public static SqlConnection con;

protected void Page_Load(object sender, EventArgs e)


{
if (!IsPostBack)
{
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
con.Open();
bindd();
}
}

public void bindd()


{
SqlCommand cmd = new SqlCommand("select * from SampleFlateMast",
con);
cmd.CommandType = CommandType.Text;
SqlDataReader red = cmd.ExecuteReader();
DropDownList1.DataSource = red;
DropDownList1.DataValueField = "fksiteId";

13
6
DropDownList1.DataBind();
red.Close();
cmd.Dispose();
}

public void Reset()


{
lblMsg.Text = "";
DropDownList1.SelectedIndex = -1;
DropDownList1.Focus();
}

protected void btnReset_Click(object sender, EventArgs e)


{
Reset();
}

protected void btnShowImage_Click(object sender, EventArgs e)


{
SqlCommand cmd = new SqlCommand("select * from SampleFlateMast
where fksiteId='" + DropDownList1.SelectedValue + "'", con);
cmd.CommandType = CommandType.Text;
SqlDataReader red = cmd.ExecuteReader();
DataList1.DataSource = red;
DataList1.DataBind();
red.Close();
cmd.Dispose();
DropDownList1.SelectedIndex = -1;
}
}

13
6
ClientGalleryfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

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


{
public static SqlConnection con;

protected void Page_Load(object sender, EventArgs e)


{
if (!IsPostBack)
{
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
this.BindData();
Master.ApplicationName = "Gallery";
}

#region "Data Row Paging"


PagedDataSource pdsData = new PagedDataSource();

public void BindData()


{

try
{

con.Close();
con.Open();
DateTime dt = DateTime.Now;

string str = "select * from Gallary";

13
6
//string str = "select * from ItemMaster where '" +
dt.ToString() + "' >= Itemstartdate and '" + dt.ToString() + "' <=
ItemEndDate and Statusflag='Unsold'";
SqlCommand cmd = new SqlCommand(str, con);
cmd.CommandType = CommandType.Text;

DataTable dtTable = new DataTable();


SqlDataAdapter adpt = new SqlDataAdapter();
adpt.SelectCommand = cmd;
adpt.Fill(dtTable);

if (dtTable.Rows.Count > 0)
{
pdsData.DataSource = dtTable.DefaultView;
pdsData.AllowPaging = true;
pdsData.PageSize = 4;
pdsData.CurrentPageIndex = DataCurrentPage;
lnkbtnNextData.Enabled = !pdsData.IsLastPage;
lnkbtnPreviousData.Enabled = !pdsData.IsFirstPage;

//hidScript.Value = "";

DataList1.DataSource = pdsData;
DataList1.DataBind();

doDataPaging();
dlDataPaging.Visible = true;
if (dtTable.Rows.Count > 1)
divPaging.Visible = true;
else
divPaging.Visible = false;

//HtmlGenericControl countbox =
(HtmlGenericControl)DataList1.Items[0].FindControl("countbox");
//string strScript = "LoadCounter(2011,0,18,9,4,30,'" +
countbox.ClientID + "');";
//ScriptManager.RegisterClientScriptBlock(Page,
Page.GetType(), Guid.NewGuid().ToString(), strScript, true);

}
else
{
DataList1.DataSource = null;
DataList1.DataBind();
divPaging.Visible = false;
}
}
catch (Exception ex)
{
Response.Write(ex.Message.ToString());
}
}
protected void DataList1_ItemDataBound(object sender,
DataListItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.AlternatingItem ||
e.Item.ItemType == ListItemType.Item)
{
//HtmlGenericControl countbox =
(HtmlGenericControl)e.Item.FindControl("countbox");

13
6
//DateTime dtEndDate =
Convert.ToDateTime(DataBinder.Eval(e.Item.DataItem,
"ItemEndDate").ToString());
//string strMonth = (dtEndDate.Month - 1).ToString();
//string strDate = dtEndDate.Date.ToString("dd");
//string strYear = dtEndDate.Year.ToString();
//string strHour = dtEndDate.Hour.ToString();
//string strMinute = dtEndDate.Minute.ToString();
//string strSecond = dtEndDate.Second.ToString();
//string strScript = "'" + strYear + "','" + strMonth + "','" +
strDate + "','" + strHour + "','" + strMinute + "','" + strSecond + "','" +
countbox.ClientID + "'";
//hidScript.Value += strScript + "@";
////ScriptManager.RegisterClientScriptBlock(Page,
Page.GetType(), Guid.NewGuid().ToString(), strScript, true);
// Image imgProduct = (Image)e.Item.FindControl("imgProduct");
ImageButton imgProduct =
(ImageButton)e.Item.FindControl("imgProduct");
//imgProduct.OnClientClick = "loadImage('"+
ResolveUrl(DataBinder.Eval(e.Item.DataItem,"FloorPlanBigPic").ToString())
+"'); retuen false;";

imgProduct.OnClientClick = "loadImage('" +
ResolveUrl(DataBinder.Eval(e.Item.DataItem, "BigPic").ToString()) +
"');return false;";
// imgProduct.OnClientClick = "loadImage('" +
ResolveUrl(DataBinder.Eval(e.Item.DataItem, "FloorPlanBigPic").ToString())
+ "');return false;";
}

protected void DataList1_DataBinding(object sender, EventArgs e)


{

protected void dlDataPaging_ItemDataBound(object sender,


DataListItemEventArgs e)
{
LinkButton lnkbtnPage =
(LinkButton)e.Item.FindControl("lnkbtnPaging");
HtmlGenericControl divPage =
(HtmlGenericControl)e.Item.FindControl("divPage");
if (lnkbtnPage.CommandArgument.ToString() ==
DataCurrentPage.ToString())
{
lnkbtnPage.Enabled = false;
lnkbtnPage.Font.Bold = true;
divPage.Style.Add("background-image",
"url(images/page_no_box.png)");
}
}
protected void dlDataPaging_ItemCommand(object source,
DataListCommandEventArgs e)
{
if (e.CommandName.Equals("lnkbtnPaging"))
{
DataCurrentPage =
Convert.ToInt16(e.CommandArgument.ToString());
BindData();

13
6
}
}
protected void lnkbtnPreviousData_Click(object sender, EventArgs e)
{
DataCurrentPage -= 1;
BindData();
}
private void doDataPaging()
{
DataTable dt = new DataTable();
dt.Columns.Add("PageIndex");
dt.Columns.Add("PageText");
for (int i = 0; i < pdsData.PageCount; i++)
{
DataRow dr = dt.NewRow();
dr[0] = i;
dr[1] = i + 1;
dt.Rows.Add(dr);
}

dlDataPaging.DataSource = dt;
dlDataPaging.DataBind();
}
protected void lnkbtnNextData_Click(object sender, EventArgs e)
{
DataCurrentPage += 1;
BindData();
}
public int DataCurrentPage
{

get
{
if (this.ViewState["DataCurrentPage"] == null)
return 0;
else
return
Convert.ToInt16(this.ViewState["DataCurrentPage"].ToString());
}

set
{
this.ViewState["DataCurrentPage"] = value;
}

}
#endregion

13
6
ClientVideofrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

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


{
public static SqlConnection con;

protected void Page_Load(object sender, EventArgs e)


{
if (!IsPostBack)
{
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
this.BindData();
Master.ApplicationName = "Gallery";
}

#region "Data Row Paging"


PagedDataSource pdsData = new PagedDataSource();

public void BindData()


{

try
{

con.Close();
con.Open();
DateTime dt = DateTime.Now;

string str = "select * from Gallary";


//string str = "select * from ItemMaster where '" +
dt.ToString() + "' >= Itemstartdate and '" + dt.ToString() + "' <=
ItemEndDate and Statusflag='Unsold'";
SqlCommand cmd = new SqlCommand(str, con);
cmd.CommandType = CommandType.Text;

DataTable dtTable = new DataTable();


SqlDataAdapter adpt = new SqlDataAdapter();
adpt.SelectCommand = cmd;

13
6
adpt.Fill(dtTable);

if (dtTable.Rows.Count > 0)
{
pdsData.DataSource = dtTable.DefaultView;
pdsData.AllowPaging = true;
pdsData.PageSize = 4;
pdsData.CurrentPageIndex = DataCurrentPage;
lnkbtnNextData.Enabled = !pdsData.IsLastPage;
lnkbtnPreviousData.Enabled = !pdsData.IsFirstPage;

//hidScript.Value = "";

DataList1.DataSource = pdsData;
DataList1.DataBind();

doDataPaging();
dlDataPaging.Visible = true;
if (dtTable.Rows.Count > 1)
divPaging.Visible = true;
else
divPaging.Visible = false;

//HtmlGenericControl countbox =
(HtmlGenericControl)DataList1.Items[0].FindControl("countbox");
//string strScript = "LoadCounter(2011,0,18,9,4,30,'" +
countbox.ClientID + "');";
//ScriptManager.RegisterClientScriptBlock(Page,
Page.GetType(), Guid.NewGuid().ToString(), strScript, true);

}
else
{
DataList1.DataSource = null;
DataList1.DataBind();
divPaging.Visible = false;
}
}
catch (Exception ex)
{
Response.Write(ex.Message.ToString());
}
}
protected void DataList1_ItemDataBound(object sender,
DataListItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.AlternatingItem ||
e.Item.ItemType == ListItemType.Item)
{
//HtmlGenericControl countbox =
(HtmlGenericControl)e.Item.FindControl("countbox");
//DateTime dtEndDate =
Convert.ToDateTime(DataBinder.Eval(e.Item.DataItem,
"ItemEndDate").ToString());
//string strMonth = (dtEndDate.Month - 1).ToString();
//string strDate = dtEndDate.Date.ToString("dd");
//string strYear = dtEndDate.Year.ToString();
//string strHour = dtEndDate.Hour.ToString();
//string strMinute = dtEndDate.Minute.ToString();
//string strSecond = dtEndDate.Second.ToString();

13
6
//string strScript = "'" + strYear + "','" + strMonth + "','" +
strDate + "','" + strHour + "','" + strMinute + "','" + strSecond + "','" +
countbox.ClientID + "'";
//hidScript.Value += strScript + "@";
////ScriptManager.RegisterClientScriptBlock(Page,
Page.GetType(), Guid.NewGuid().ToString(), strScript, true);
// Image imgProduct = (Image)e.Item.FindControl("imgProduct");
ImageButton imgProduct =
(ImageButton)e.Item.FindControl("imgProduct");
//imgProduct.OnClientClick = "loadImage('"+
ResolveUrl(DataBinder.Eval(e.Item.DataItem,"FloorPlanBigPic").ToString())
+"'); retuen false;";

imgProduct.OnClientClick = "loadImage('" +
ResolveUrl(DataBinder.Eval(e.Item.DataItem, "BigPic").ToString()) +
"');return false;";
// imgProduct.OnClientClick = "loadImage('" +
ResolveUrl(DataBinder.Eval(e.Item.DataItem, "FloorPlanBigPic").ToString())
+ "');return false;";
}

protected void DataList1_DataBinding(object sender, EventArgs e)


{

protected void dlDataPaging_ItemDataBound(object sender,


DataListItemEventArgs e)
{
LinkButton lnkbtnPage =
(LinkButton)e.Item.FindControl("lnkbtnPaging");
HtmlGenericControl divPage =
(HtmlGenericControl)e.Item.FindControl("divPage");
if (lnkbtnPage.CommandArgument.ToString() ==
DataCurrentPage.ToString())
{
lnkbtnPage.Enabled = false;
lnkbtnPage.Font.Bold = true;
divPage.Style.Add("background-image",
"url(images/page_no_box.png)");
}
}
protected void dlDataPaging_ItemCommand(object source,
DataListCommandEventArgs e)
{
if (e.CommandName.Equals("lnkbtnPaging"))
{
DataCurrentPage =
Convert.ToInt16(e.CommandArgument.ToString());
BindData();
}
}
protected void lnkbtnPreviousData_Click(object sender, EventArgs e)
{
DataCurrentPage -= 1;
BindData();
}
private void doDataPaging()
{

13
6
DataTable dt = new DataTable();
dt.Columns.Add("PageIndex");
dt.Columns.Add("PageText");
for (int i = 0; i < pdsData.PageCount; i++)
{
DataRow dr = dt.NewRow();
dr[0] = i;
dr[1] = i + 1;
dt.Rows.Add(dr);
}

dlDataPaging.DataSource = dt;
dlDataPaging.DataBind();
}
protected void lnkbtnNextData_Click(object sender, EventArgs e)
{
DataCurrentPage += 1;
BindData();
}
public int DataCurrentPage
{

get
{
if (this.ViewState["DataCurrentPage"] == null)
return 0;
else
return
Convert.ToInt16(this.ViewState["DataCurrentPage"].ToString());
}

set
{
this.ViewState["DataCurrentPage"] = value;
}

}
#endregion

ClientEnquityfrm.aspx

using System;
using System.Collections;
using System.Configuration;

13
6
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

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


{
public mySqlHandler mysql = new mySqlHandler();

protected void Page_Load(object sender, EventArgs e)


{
txtEnqType.Focus();

if (!IsPostBack)
{
}
}

protected void btnsubmit_Click(object sender, EventArgs e)


{
try
{
string strg = "Insert into
EnquiryMaster(EnqType,EnqDate,EnqLocation,EnqOfcNo1,EnqOfcNo2,EnqMobNo1,Enq
MobNo2) values('" + txtEnqType.Text.ToUpper() + "','" +
txtEnqDate.Text.ToString() + "','" + drpEnqPlace.SelectedValue.ToUpper() +
"','" + txtEnqOfcNo1.Text + "','" + txtEnqOfcNo2.Text + "','" +
txtEnqMobNo1.Text + "','" + txtEnqMobNo2.Text + "')";
mysql.myInsertData(strg);
lblmsg.Text="Record has been inserted succesfully...";
}
catch(Exception ex)
{
lblmsg.Text="Recored cant be inserted, " +
ex.Message.ToString();
}
}

public void Reset()


{
lblmsg.Text = "";
txtEnqType.Text = "";
txtEnqDate.Text = "";
txtEnqOfcNo1.Text = "";
txtEnqOfcNo2.Text = "";
txtEnqMobNo1.Text = "";
txtEnqMobNo2.Text = "";
drpEnqPlace.SelectedIndex = -1;
txtEnqType.Focus();
}

protected void btnreset_Click(object sender, EventArgs e)


{
Reset();
}
}

13
6
ClientSiteMastfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;

13
6
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

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


{
public static SqlConnection con;

protected void Page_Load(object sender, EventArgs e)


{
DropDownList1.Focus();

if (!IsPostBack)
{
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
con.Open();
bindd();
}
}

protected void btnReset_Click(object sender, EventArgs e)


{
Reset();
}

public void Reset()


{
lblMsg.Text = "";
txtEndDate.Text = "";
txtStartDate.Text = "";
txtContectPersName.Text = "";
txtSiteAddress.Text = "";
txtZipCode.Text = "";
txtContectNo1.Text = "";
txtContectNo2.Text = "";
txtContectNo3.Text = "";
txtEmilId.Text = "";
txtRegNo.Text = "";
txtsiteRemark.Text = "";
drpStateName.SelectedIndex = -1;
drpCountryName.SelectedIndex = -1;
DropDownList1.SelectedIndex = -1;
DropDownList1.Focus();
}

public void bindd()


{
SqlCommand cmd = new SqlCommand("select * from SiteMast", con);
cmd.CommandType = CommandType.Text;
SqlDataReader red = cmd.ExecuteReader();
DropDownList1.DataSource = red;
DropDownList1.DataTextField = "SiteName";
DropDownList1.DataValueField = "SiteId";
DropDownList1.DataBind();
red.Close();
cmd.Dispose();
}

13
6
protected void DropDownList1_SelectedIndexChanged(object sender,
EventArgs e)
{

try
{
SqlCommand cmd = new SqlCommand("select * from SiteMast where
SiteId='" + DropDownList1.SelectedValue + "' ", con);
cmd.CommandType = CommandType.Text;
SqlDataReader red = cmd.ExecuteReader();
while (red.Read())
{
txtStartDate.Text = red["SiteStartDate"].ToString();
txtEndDate.Text = red["SiteEndDate"].ToString();
txtContectPersName.Text =
red["ContactPersonName"].ToString();
txtSiteAddress.Text = red["Address"].ToString();
txtZipCode.Text = red["ZipCode"].ToString();
drpStateName.Text = red["State"].ToString();
drpCountryName.Text = red["Country"].ToString();
txtContectNo1.Text = red["Phone1"].ToString();
txtContectNo2.Text = red["Phone2"].ToString();
txtContectNo3.Text = red["Phone3"].ToString();
txtEmilId.Text = red["EmailId"].ToString();
txtRegNo.Text = red["RegNo"].ToString();
txtsiteRemark.Text = red["Remark"].ToString();
}
red.Close();
cmd.Dispose();

}
catch (Exception ex)
{
lblMsg.Text = ex.Message.ToString();
}

}
}

ClinentInfoMastfrm.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

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


{
public mySqlHandler mysql = new mySqlHandler();

13
6
protected void Page_Load(object sender, EventArgs e)
{
txtCustName.Focus();

if (!IsPostBack)
{
bindData();
}
}

protected void btnsubmit_Click(object sender, EventArgs e)


{
try
{
string strg = "Insert into
CustomerMaster(CustName,CustAdd,CustHomeNo1,CustHomeNo2,CustMobNo1,CustMobN
o2,CustGender,CustType,CustMailId,BookingId) values('" + txtCustName.Text +
"','" + txtCustAddress.Text + "','" + txtCustHNo1.Text + "','" +
txtCustHNo2.Text + "','" + txtCustMobNo1.Text + "','" + txtCustMobNo2.Text
+ "','" + drpCustGender.SelectedValue.ToString() + "','" +
drpCustType.SelectedValue.ToString() + "','" + txtCustEmailid.Text + "','"
+ drpBookingId.SelectedValue + "')";
mysql.myInsertData(strg);
lblmsg.Text = "Record has been inserted succesfully...";
drpBookingId.SelectedIndex = -1;
drpCustGender.SelectedIndex = -1;
drpCustType.SelectedIndex = -1;
}
catch (Exception ex)
{
lblmsg.Text = "Record cant be inserted, " +
ex.Message.ToString();
}
}

public void Reset()


{
lblmsg.Text = "";
txtCustName.Text = "";
txtCustAddress.Text = "";
txtCustHNo1.Text = "";
txtCustHNo2.Text = "";
txtCustMobNo1.Text = "";
txtCustMobNo2.Text = "";
txtCustEmailid.Text = "";
drpCustGender.SelectedIndex = -1;
drpCustType.SelectedIndex = -1;
drpBookingId.SelectedIndex = -1;
txtCustName.Focus();
}

protected void btnreset_Click(object sender, EventArgs e)


{
Reset();
}

public void bindData()


{
try
{

13
6
String strg = "Select BookingId,BookingType from
BookingMaster";

mysql.myBindDropDownList(strg, drpBookingId);
}
catch (Exception ex)
{
lblmsg.Text = ex.Message.ToString();
}
}

CustModificatoinMast.aspx

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

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


{
public mySqlHandler mysql = new mySqlHandler();
public SqlConnection con;

protected void Page_Load(object sender, EventArgs e)


{
TxtModifyMatType.Focus();

13
6
if (!IsPostBack)
{
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
binddata();
bindd();
}
}

protected void BtnSubmit_Click(object sender, EventArgs e)


{
try
{
string strg = "Insert into
CustModifyMaster(ModType,ModDate,ModRate,ModMatQty,ModMatType,CustId,CustNa
me,CustMailId,BookingId) values('" + TxtModifyType.Text + "','" +
txtModifyDate.Text.ToString() + "','" + TxtModifyRate.Text + "','" +
TxtModifyQty.Text + "','" + TxtModifyMatType.Text + "','" +
DrpCustomerId.SelectedValue.ToString() + "','" +
DrpCustomerName.SelectedValue + "','" + TXtCustMailId.Text + "','" +
DrpBookingId.SelectedValue.ToString() + "')";
mysql.myInsertData(strg);
lblMsg.Text = "Record has been inserted succesfully...";
}
catch (Exception ex)
{
lblMsg.Text = "Record cant be inserted," +
ex.Message.ToString();
}
}

public void Reset()


{
lblMsg.Text = "";
TxtModifyType.Text = "";
txtModifyDate.Text = "";
TxtModifyRate.Text = "";
TxtModifyQty.Text = "";
TxtModifyMatType.Text = "";
TXtCustMailId.Text = "";
DrpCustomerId.SelectedIndex = -1;
DrpCustomerName.SelectedIndex = -1;
DrpBookingId.SelectedIndex = -1;
TxtModifyType.Focus();
}

protected void btnReset_Click(object sender, EventArgs e)


{
Reset();
}

public void binddata()


{
try
{
String strg = "Select CustId,CustName from CustomerMaster";
mysql.myBindDropDownList(strg, DrpCustomerName);
}
catch (Exception ex1)
{

13
6
lblMsg.Text = "1" + ex1.Message.ToString();
}
}

public void bindd()


{
con.Open();
SqlCommand cmd = new SqlCommand("select * from BookingMaster",
con);
cmd.CommandType = CommandType.Text;
SqlDataReader red1 = cmd.ExecuteReader();

DrpBookingId.DataSource = red1;
DrpBookingId.DataValueField = "BookingId";
DrpBookingId.DataBind();
red1.Close();
cmd.Dispose();
con.Close();
}

protected void DrpCustomerId_SelectedIndexChanged(object sender,


EventArgs e)
{
try
{
SqlCommand cmd = new SqlCommand("select * from CustomerMaster
where CustId='" + DrpCustomerId.SelectedValue + "' ", con);
cmd.CommandType = CommandType.Text;
SqlDataReader red2 = cmd.ExecuteReader();
while (red2.Read())
{
DrpCustomerId.Text = red2["CustId"].ToString();
}
red2.Close();
cmd.Dispose();
}
catch (Exception ex2)
{
lblMsg.Text = "2" + ex2.Message.ToString();
}
}

protected void DrpCustomerName_SelectedIndexChanged(object sender,


EventArgs e)
{
try
{
SqlCommand cmd = new SqlCommand("select * from CustomerMaster
where CustName='" + DrpCustomerName.SelectedValue + "' ", con);
cmd.CommandType = CommandType.Text;
SqlDataReader red3 = cmd.ExecuteReader();
while (red3.Read())
{
DrpCustomerName.Text = red3["CustName"].ToString();
}
red3.Close();
cmd.Dispose();
}
catch (Exception ex3)
{
lblMsg.Text = "3" + ex3.Message.ToString();

13
6
}
}

protected void DrpBookingId_SelectedIndexChanged(object sender,


EventArgs e)
{
try
{
SqlCommand cmd = new SqlCommand("select * from BookingMaster
where BookingId='" + DrpBookingId.SelectedValue + "' ", con);
cmd.CommandType = CommandType.Text;
SqlDataReader red4 = cmd.ExecuteReader();
while (red4.Read())
{
DrpBookingId.Text = red4["BookingId"].ToString();
}
red4.Close();
cmd.Dispose();
}
catch (Exception ex4)
{
lblMsg.Text = "4" + ex4.Message.ToString();
}
}
}

11. Testing

Unit Testing

Test Phase Unit Testing


Functionality Login into the system

13
6
Procedure 1. Click on the login button without entering username or
password.
2. Click on the login button after entering some username leaving
password field blank.
3. Click on the login button after entering some password but
leaving username field blank.
4. Click on the login button after entering some wrong username
but correct password and vice versa.
Expected Outcomes The user should not login into the system and some error
message follows.

Step No. Data Used Actual Outcome

1. Click on login button without entering A Message came to enter username.


username or password.

2. Click on login button after entering A Message came to enter password.


some username but keeping password
field blank.

3. Click on login button after entering A Message came to enter username.


some password but keeping username
field blank.
Click on login button after entering A Message displayed on login page.
4. some wrong username but correct
password.

Test Phase Unit Testing


Functionality Recover password if user forgot password to use the online exit
poll system.
Procedure Click on the button without entering registered email address
Expected Outcomes The user should not get password to use the system and some
error message follows.

13
6
Step No. Data Used Actual Outcome

1. Click on the button without A Message came to user to enter registered


entering registered email email address.
address.

Test Phase Unit Testing


Functionality Security Testing
Procedure Login into the system with valid username and password. Note
down the URL address for user’s area and logout. Now try to get
the URL noted directly from browser.
Expected Outcomes The user should not get user’s area and s/he should be taken
forcibly to login page.

Step No. Data Used Actual Outcome

1. Login into the system with valid username The index page is displayed.
and password. Note down the URL address
for user’s area and logout. Now try to get the
URL noted directly from browser.

12. Software and Hardware Requirement

Due to the use of Asp.net 2008 and Microsoft SQL Server 2005 combination, the
system can be called platform independent. However; a recommended setup is
given below.

13
6
Hardware Requirement

The server on which this project is to be installed may have the following
minimum hardware requirements:

• Intel Core2duo 2.20 GHz or more.

• 2 GB RAM.

• At least 1GB free space for the installation of ASP.net Development Server – Port-
1031, ASP.net 2008 and Microsoft SQL Server 2005.

• CD/DVD writer for backup purpose.

• Leased line internet access with a bandwidth of at least 2 Mbps since this system is
to be on internet. The client side any low end computer with internet access facility
can be used.

Software Requirement

The software platform on the server side may be as follows:

• Microsoft SQL Server 2005 or higher Relational Database Management System.

• ASP.net, C# or higher server side scripting language.

• ASP.net Development Server – Port-1031 web server.

• Windows or Linux server.

The tools that will be required to develop the system will be as follows:

• ASP.net Server (Active Server Page).

• Flash.

On the client side the sole requirement is any html compatible browser which
supports JavaScript e.g. Microsoft Internet explorer /Firefox/Opera etc.

13. Limitations and future scope of the Online Building


Construction Site Management System [OBCSMS].

13
6
 OBCSMS has been primarily targeted for a medium sized community and has
been tested. It is possible that the system may not function as well or within
the prescribed parameters if deployed in a different environment.

 Security policy is dependent on password protection only.

Future Scope of the project.

The strength of the open source SQL Server/ASP.net combination used in the
project means that OBCSMS will be a cheaper option than any other closed-source.
OBCSMS and the large user community and support services will ensure that any
future development and extensions can be undertaken with ease.

14. References

http://www.google.com
http://www.asp.net
http://www.mysql.com
http://www.javascriptkit.com
http://www.w3schools.com
http://www.isconhieghts.co.in
http://www.monalisaconstruction.co.in

GLOSSARY

ASP.NET

13
6
A popular Web-server used to host websites in the World Wide Web

Common Gateway Interface (CGI)

Active Server Pages (ASP). A specification for a dynamically created web page. Allows a
script or ASP application to be executed on a web server to generate a web page sent to a
viewer.
JSP Pages generated using ASP generally has the file extension of .asp

Data Dictionary

Common Gateway Interface (CGI). Interface standard allowing programs to interface to web
servers. CGI programs can be written in any compile able language. CGI programs are
executed on the server, normally in response to some input from a web page

A collection of descriptions of the data objects or items in a data model for the benefit of
programmers and others who need to refer to them.

Entity-Relationship Diagram

A data flow diagram (DFD) is a graphical representation of the "flow" of data through an
information system.

GANTT chart

A data modeling technique that creates a graphical representation of the entities, and the
relationships between entities, within an information system.

A Gantt chart is a horizontal bar chart developed as a production control tool in 1917 by
Henry L. Gantt, an American engineer and social scientist. Frequently used in project
management, a Gantt chart provides a graphical illustration of a schedule that helps to plan,
coordinate, and track specific tasks in a project. Gantt charts may be simple versions created
on graph paper or more complex automated versions created using project management
applications such as Microsoft Project or Excel.

A graphical (rather than purely textual) user interface to a computer.

Abbreviation of Institute of Electrical and Electronics Engineers, pronounced I-triple-E.


Founded in 1884 as the AIEE, the IEEE was formed in 1963 when AIEE merged with IRE.
IEEE is an organization composed of engineers, scientists, and students. The IEEE is best
known for developing standards for the computer and electronics industry.

Microsoft Internet Information Server (or Services). This is the standard web server available
under Windows (from NT4 onwards).

Integration Testing

Also known as integration and testing (I&T), is a software development process which
program units are combined and tested as groups in multiple ways. In this context, a unit is
defined as the smallest testable part of an application. Integration testing can expose problems

13
6
with the interfaces among program components before trouble occurs in real-world program
execution.

A Web Based Online Building Construction Site Management System.

A very popular open source database system. SQL Server is a multiuser, multi-threaded
database server, which is suitable for office database uses and for on web-servers.

Program Evaluation Review Technique (PERT)

A PERT chart is a project management tool used to schedule, organize, and coordinate tasks
within a project. PERT stands for Program Evaluation Review Technique, a methodology
developed by the U.S. Navy in the 1950s to manage the Polaris submarine missile program.
A similar methodology, the Critical Path Method (CPM) was developed for project
management in the private sector at about the same time.

Active Server Page (ASP)

A general purpose (server side) scripting language for web development that can be
embedded in HTML. ASP is a popular alternative to ASP and ASP.NET, because it is cross
platform, free and open source. ASP is a recursive acronym for "ASP: Active Server Page".

Schema

The organization or structure for a database. The activity of data modeling leads to a schema.
(The plural form is schemata. The term is from a Greek word for "form" or "figure." Another
word from the same source is "schematic.") The term is used in discussing both relational
databases and object-oriented databases. The term sometimes seems to refer to a visualization
of a structure and sometimes to a formal text-oriented description.

DFD (Data Flow Diagram)

GUI
IEEE
IIS
SQL Server

Software Requirement Specification (SRS )

Software Requirement Specification as per IEEE 830-1998, which is the latest revision.

13
6
A comprehensive description of the intended purpose and environment for software under
development. The SRS fully describes what the software will do and how it will be expected
to perform. Methods of defining an SRS are described by the IEEE (Institute of Electrical and
Electronics Engineers) specification 8301998

Unit Testing

Unit testing is a software development process in which the smallest testable parts of an
application, called units, are individually and independently scrutinized for proper operation.
Unit testing is often automated but it can also be done manually.

Uniform Resource Locator (URL)

Uniform Resource Locator, the unique address of any resource on the web.

W3C

The W3C is an industry consortium which seeks to promote standards for the evolution of the
Web and interoperability between WWW products by producing specifications and reference
software. Although W3C is funded by industrial members, it is vendor-neutral, and its
products are freely available to all.

***************************************************************************

A Package combining Microsoft SQL Server and ASP .net

***************************************************************************

13
6

You might also like