Professional Documents
Culture Documents
Proj RPT 0
Proj RPT 0
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
BookingMaster
CityMaster
13
6
CityName varchar(50) FK
CityAllias varchar(50) FK
CountryMaster
CustModifyMaster
CustomerMaster
EnquiryMaster
13
6
Gallary
LocationMaster
OverviewMast
ParkingMast
SampleFlateMast
SiteFloorMast
13
6
SiteLayoutmaster
SiteMast
SpecificationAmmentiesMaster
StateMaster
UserMaster
13
6
13
6
5. E-R Diagram
RELATIONSHIP DIAGRAM
Site Details
Site Map
Ammenties
Site Overview
13
6
RELATIONSHIP DIAGRAM
Parking Plan
Booking Detail
13
6
ENTITY-RELATIONSHIP
Check by View by
13
6
‘0’ Level DFD
OR
Context Level DFD
Client
Site Overview
Ammenties
Parking Plan
Admin
Ammenties,
Site Overview,
Parking Plan
13
6
1ST Level DFD
User Maser
Submit User Details
Booking Master
1.0
User Registration
Process Gallary Master
Ammenties
Enter Username & Password 2.0 Maser
Login Customer
Informaton Maser
Process
3.0
Visit the Site
4.0 Master
Management &
Booking
Visit the Site Management
Customer
Get Site Details
13
6
1st Level DFD
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
3.1 Client
Admin Information Maser
Retrieve
Admin Home
Floor Plan Maser
3.2
Gallary Maser
Information to User
Selection
&
Manage Member Ammenties
Maser
3.3
3.4
User Maser
Data Storage
Process Client Req. Modificaton
Maser
Site Inforation
Maser
Enquiry Maser
Sample Flat
Maser
13
6
4th Level DFD
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
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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
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 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 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 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:
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 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 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 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:
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;
try
{
13
6
if (!IsPostBack)
{
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
con.Open();
}
catch (Exception ex)
{
Response.Write(ex.Message.ToString());
}
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;
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
}
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;
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();
if (Pass != "")
{
Response.Write(lblmsg.Text = Pass);
}
13
6
else
{
lblmsg.Text = "UserId SecretQuesion and SecretAns does not
exist...";
con.Close();
}
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;
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
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;
13
6
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
con.Open();
bindd();
}
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;
13
6
}
drpSiteName.Focus();
}
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;
bindSiteName();
}
}
13
6
}
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();
}
}
//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;
13
6
protected void drpSiteName_SelectedIndexChanged(object sender,
EventArgs e)
{
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;
13
6
}
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;
13
6
Reset();
}
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;
if (!IsPostBack)
{
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
}
}
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;
if (!IsPostBack)
{
bindSiteName();
}
}
13
6
}
}
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;
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
}
}
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;
13
6
public mySqlHandler mySql = new mySqlHandler();
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();
}
}
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;
13
6
if (!IsPostBack)
{
}
}
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;
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();
}
}
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;
if (!IsPostBack)
{
}
}
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();
}
}
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;
13
6
{
public static SqlConnection con;
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;
13
6
}
if (Cnt == 1)
{
LblMsg.Text = "Wrong user Name or Password ";
}
else
{
Response.Redirect("ClientHomefrm.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;
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();
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;
13
6
{
con.Open();
string str = "select count(*) from UserMaster where UserId='" +
TxtUsername.Text + "' and Password='" + TxtOldpwd.Text + "'";
SqlCommand cmd = new SqlCommand(str, con);
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;
}
}
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;
Master.ApplicationName = "Overview";
if (!IsPostBack)
{
bindSiteName();
}
}
13
6
protected void btnReset_Click(object sender, EventArgs e)
{
Reset();
}
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;
if (!IsPostBack)
{
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
con.Open();
bindd();
}
}
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;
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;
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;
13
6
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
con.Open();
bindd();
}
}
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;
13
6
SqlDataReader red = cmd.ExecuteReader();
drpSiteName.DataSource = red;
drpSiteName.DataValueField = "fkSiteId";
drpSiteName.DataBind();
red.Close();
cmd.Dispose();
}
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;
13
6
DropDownList1.DataBind();
red.Close();
cmd.Dispose();
}
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;
try
{
con.Close();
con.Open();
DateTime dt = DateTime.Now;
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;
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;";
}
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;
try
{
con.Close();
con.Open();
DateTime dt = DateTime.Now;
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;";
}
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;
if (!IsPostBack)
{
}
}
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;
if (!IsPostBack)
{
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
con.Open();
bindd();
}
}
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;
13
6
protected void Page_Load(object sender, EventArgs e)
{
txtCustName.Focus();
if (!IsPostBack)
{
bindData();
}
}
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;
13
6
if (!IsPostBack)
{
con = new
SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["
PanchamCon"].ToString());
binddata();
bindd();
}
}
13
6
lblMsg.Text = "1" + ex1.Message.ToString();
}
}
DrpBookingId.DataSource = red1;
DrpBookingId.DataValueField = "BookingId";
DrpBookingId.DataBind();
red1.Close();
cmd.Dispose();
con.Close();
}
13
6
}
}
11. Testing
Unit Testing
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.
13
6
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.
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:
• 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.
• 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 tools that will be required to develop the system will be as follows:
• 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
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.
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
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.
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 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.
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.
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.
GUI
IEEE
IIS
SQL Server
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, 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.
***************************************************************************
***************************************************************************
13
6