Professional Documents
Culture Documents
Realestate Final
Realestate Final
UNIVERSITY MUMBAI
IN PARTIAL OF FULLFILLMENT TO THE DEGREE
OF
BACHELOR OF SCIENCE
SMT.CHANDIBAI HIMATHMAL
MANSUKHANI COLLEGE
ULHASNAGAR-421003
T.Y.Bsc(COMPUTER SCIENCE)
ACADEMIC YEAR 2017-2018
OOAD PROJECT ON
ONLINE REALESTATE
BY
VIOLET BENEDICT SWAMY
PROJECT INCHARGE
MRS.SREENA NAIR
1
ONLINE
REALESTAT
E
2
Page
Sr. No Topic No.
A. System Documentation
1. College Certificate --
2. Acknowledgement 5
3. Organizational Overview 6
4. Description of Present System 7
5. Limitations of Present System 8
6. Proposed System and Its Advantages 9
7. Gantt Chart 10
8. Event List 11
9. Event Table 15
10. Entity Relationship Diagram(ER Diagram) 19
11. Use Case Diagram 24
12. Use Case Description 27
13. Activity Data Matrix (CRUD Table) 29
14. Activity Diagram 30
15. Class Diagram 32
16. Object Diagram 33
17. Sequence/Collaboration Diagram 34
18. State Diagram 36
19. Component Diagram 37
20. Structured Diagram 38
21. Deployment Diagram 41
22. Package Diagram 43
23. Menu Tree 45
24. System Coding and Conventions 47
25. System Control and Standards 47
26. Form Listing 48
27. Report Listing 49
28. Database and List of tables with Description 46
B. Project Documentation
1. Program Source Code 53
2. Data Entry Screens 100
C. Validations
1. Test Case 118
2. Test Data 118
3. Test Results 118
3
D. Report Layouts 123
E. References And Bibliography 125
4
SYSTEM
DOCUMENTATION
5
6
ACKNOWLEDGEMENT
I thank our internal project guide Mrs. Serena, who has done a lot to keep
this project systematically and on schedule. I am thankful for their valuable
guidance to every stage of the project. Finally, I would thank to all others, who
give there extended support to complete this project.
7
GANTT CHART
Implementation
4 28 10-Feb-18 04-Mar-18
Phase
4.1 Construct the 20
Software 10-Feb-18 01-Mar-18
Component
4.2 Verify & test The 5 02-Mar-18 06-Mar-18
component
4.3 Training And 2
07-Mar-18 08-Mar-18
Document
8
4.4 Install Software 1 09-Mar-18 09-Mar-18
9
Organizational Overview
The Project entitled FINDHOMES is aimed at developing a system to manage the Property and
User information in a Database. It is an online system that can be accessed through the
company’s internal networks by authorized users. This will be done through a standard login
process. This will provide a fast and centralized data management system that will be beneficial
for the company.
10
Description of Present System
This Software will be helpful in the smooth functioning of the organization due to integration of
various functions. The software maintains central database with following information stored in
different tables: Properties and User’s details in the database table, Search Property for particular
Category, Registration ofCustomer, ExistingCustomer Details, Property Enquiry, and Details.
11
Limitations of Present System
Managing and keeping records ofall Users, Wish list are notincluded and they keep somerecord
manually. Business is not on the web which was biggest Disadvantage. User can get Information
about Properties by visiting to the office or to the nearest branch which was a very tedious job.
Not good communication between the different branches so there is lacking of coordination
between them. Customer record is notmaintained properly.
12
Proposed System and Its Advantages
The existing system will be replaced by the use of modern and sophisticated computer
technology. The proposed system is designed taking into consideration all the limitations of
existing manual system and as per the user requirements. The system incorporates all the
requirements suggested by the user. It is designed in such a way that it can hold all the
information that is necessary for data storage, data processing, and to generate various reports as
per the users requirements. It is designed in such a way to minimize all the limitation and
drawbacks of the existing system. The system is developed by using ASP.Net as front -end and
MS-SQL Server 2005 as the back-end. Some of the important Advantages to be considered are-
Time saving, Easy access to information whenever user requires it, Less paper work, Reduction
in maintenance cost, Report generation, Security as per the authentication policies is provided.
The interface is user friendly.
13
Event List
• An occurrence at specific time of place that can be described and is worth remembering is
known as event. • It is used in system analysis and designing.
!
Types Of Event
There are three types of events to consider when using decomposition technique to identify
someevent
• Temporal: " Occurs as aresult ofreaching point in name. " Based onsystemdeadlines.
14
Event List
15
Event Table
A table that lists events in tabular format that is in rows and key pieces of information
about each event in columns.
16
Sr. Event Trigger Sour Activity Response Destination
No. ce
1 Admin creating Admin logins Admin Admin Logged New Entry System
login In
10 Customer Deletes Customer can Custo Delete Their Order Delete System
Account Delete mer Own Account
Account
17
Entity Relationship Diagram:
18
19
3.property
20
21
Use Case Diagram
A use case diagram is a set of scenarios that describing an interaction between user and system.
A use case diagram displays the relationship among actors & use cases.
The 2 main components of use case diagram are use case and actor.
Diagrams:-
Actor:-
An actor represents a user or another system will interact with the system that you are modeling.
Use Case:-
A use case is an external view of the system that represents some action that might perform in
order to complete a task.
System Boundary:-
A System boundary defines a scope of what system will be. A system cannot have
infinite functionality a system boundary defines the limitation of system.
22
Activity Data Matrix (CRUD Table)
3 C C C C C
4 Cancel U U U U U
5 Changing Time U U U U U
6 Producing Day R
Report
7 Producing R
Month Report
8 Produce Daywise R
Report
9 Produce Name Wise R
Report
10 Produce OutStanding R
Report
11 Leaving The UD
Organisation
12 Leaving The UD
Organisation
23
24
Activity Diagram
a) Activity diagram describes the workflow behavior of the system.
b) Activity diagram are similar to state diagram because activities are the state of doing
something.
c) The diagram describes the state of activities by showing the sequence of activities
performed.
d) Activity diagram can resolve activities that are conditional or parallel.
e) Activity diagram should be used in conjunction with other modeling techniques such as
interaction diagram & state diagram.
f) Main reason to use the activity diagram is to model workflow behind the system being
designed.
Merge
2
25
DIAGRAM
26
Class Diagram
Class diagrams are widely used to describe the types of objects used in system and their
relationship. Class diagrams models class structure and contents using design elements such as
classes & packages and objects.
Class diagram describes 3 different perspectives when designing a system. These perspectives
become evident as the diagram is created & help solidify the design.
Classes are composed of 3 things:
Class name
Attributes and
Operations.
27
Object Diagram
Object diagram are same as that of class diagram. Instead they contain the values in place of
data types.
The object diagram describes 3 different perspectives when designing a system. This perspective
becomes evident as the system is created & helps solidify the design.
28
Sequence Diagram
Represents objects
activation.
29
++
30
31
State Diagram
a) State diagram are used to describe the behavior of the system.
b) State diagram describe all of the possible state of an object as an event occurs.
c) Each diagram usually represents objects of single class and track the different
state of its object through the system.
d) We use the state diagram to demonstrate the behavior of an object through many
use cases of the system.
We use the state diagram for classes where it is necessary to understand the behavior of the
object through the entire system.
32
33
Component Diagram
a) The component diagram contains component & dependencies.
c) The dependencies between the components show how changes made to one component
may affect each other components in the system.
e) Component diagram can also show the interface used by the component to communicate
with each other.
34
Deployment Diagram
35
Package Diagram
In addition to standard UML dependency relationship there are two special types dependcies
defined between packages:
Package Import
Package Merge
A package imports a relationship between an import namespace and a package indicating
that importing namespace adds the names of members an unlabeled dependency between
two packages an interpreted as a package import relationship. In this relationship
elements within the target package will be imported in source package.
A package merge is a directed relationship between two packages that indicates that the
contents of two packages that are to be combined. It is very similar to generalization.
36
37
38
MENU TREE
39
USER:
Aboutus.aspx
40
Aboutus.aspx
End Class
41
COMPLAINTUSER.ASPX
42
<tr>
<td>
<asp:RequiredFieldValidator ID="rfv1" runat="server" ErrorMessage="Enter
brief description." ControlToValidate="txtmore"
Display="None"></asp:RequiredFieldValidator>
<asp:ValidationSummary ID="vs1" ShowMessageBox="true"
ShowSummary="false" runat="server" HeaderText="Below is the error on this
page:"></asp:ValidationSummary>
</td>
</tr>
</table>
<h2>Upcoming sites/projects</h2>
<marquee>
<asp:Image ID="Image1" runat="server" ImageUrl="images/m1.jpg" style="border-
radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image2" runat="server" ImageUrl="images/m2.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image3" runat="server" ImageUrl="images/m3.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image4" runat="server" ImageUrl="images/m4.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image5" runat="server" ImageUrl="images/m5.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
</marquee>
</center>
</div>
</div>
</div>
</asp:Content>
43
COMPLAINTUSER.ASPX.VB
Imports System.Data.SqlClient
Imports System.Data.Sql
Imports System.Data
Imports ASP.global_asax
Imports System.Net
Imports System.Net.Mail
Private Function EmailSending(ByVal tos As String, ByVal subject As String, ByVal message As String)
Try
Dim Smtp_Server As New SmtpClient
Dim e_mail As New MailMessage()
Smtp_Server.UseDefaultCredentials = False
Smtp_Server.Credentials = New Net.NetworkCredential("noreplyfindhomes1@gmail.com",
"propertyiq12345")
Smtp_Server.Port = 587
Smtp_Server.EnableSsl = True
Smtp_Server.Host = "smtp.gmail.com"
44
e_mail.IsBodyHtml = True
e_mail.Body = message
Smtp_Server.Send(e_mail)
Return 0
Catch ex As Exception
MsgBox("Email Not Sent !!! " + vbCrLf + "Please Check Your Network Connection",
MsgBoxStyle.Information, "Internet Error")
Return 1
End Try
End Function
value = value + 1
End If
End Sub
45
Dim sqlq As String = ""
sqlq = "insert into Complaints values(" & value & ",'" & "Tkt#" & value & "','" &
ddlregarding.SelectedItem.Value & "','" & txtmore.Text & "','" & txtemailid.Text & "')"
cmd = New SqlCommand
cmd.Connection = con
cmd.CommandText = sqlq
cmd.ExecuteNonQuery()
Call EmailSending(txtemailid.Text, "Tkt#" & value & " Complaint/Suggestion submitted", more)
MsgBox("Your query has been submitted." & vbCrLf & "Our representative will assist you
soon.", MsgBoxStyle.SystemModal, "Query submitted")
46
Else
MsgBox("Please choose the issue regarding.", MsgBoxStyle.Exclamation, "Page Error")
End If
End If
End Sub
End Class
47
CONTACTS.ASPX
49
CONTACTS.ASPX.VB
Imports System.Net
Imports System.Net.Mail
Imports System.Data.SqlClient
Imports System.Data.Sql
Imports System.Data
Imports ASP.global_asax
Dim da As SqlDataAdapter
Dim ds As DataSet
Protected Sub cv1_ServerValidate(ByVal source As Object, ByVal args As
System.Web.UI.WebControls.ServerValidateEventArgs) Handles cv1.ServerValidate
If IsNumeric(txtcontact.Text) = False Then
args.IsValid = False
Exit Sub
Else
If Trim(Len(txtcontact.Text)) < 10 Then
args.IsValid = False
Exit Sub
Else
args.IsValid = True
End If
End If
End Sub
txt = "Hello Admin,<br/>Below are the details of the person tried to contact us.
<br/><br/>Person's Name: " & txtname.Text & ".<br/>"
txt = txt & "Email Address: " & txtemailid.Text & ".<br/>"
50
txt = txt & "Subject Line: " & txtsub.Text & ".<br/><br/>"
End If
txtname.Text = ""
txtemailid.Text = ""
txtcontact.Text = ""
txtsub.Text = ""
txtquery.Text = ""
ddltype.SelectedIndex = 0
End If
End Sub
End Try
End Sub
Private Function EmailSending(ByVal tos As String, ByVal subject As String, ByVal message As String)
Try
Dim Smtp_Server As New SmtpClient
Dim e_mail As New MailMessage()
Smtp_Server.UseDefaultCredentials = False
Smtp_Server.Credentials = New Net.NetworkCredential("noreplyfindhomes1@gmail.com",
"propertyiq12345")
Smtp_Server.Port = 587
Smtp_Server.EnableSsl = True
Smtp_Server.Host = "smtp.gmail.com"
51
Return 0
Catch ex As Exception
MsgBox("Email Not Sent !!! " + vbCrLf + "Please Check Your Network Connection",
MsgBoxStyle.Information, "Internet Error")
Return 1
End Try
End Function
End Class
52
CPADMIN.ASPX
53
<asp:RequiredFieldValidator ID="rfv3" runat="server"
ErrorMessage="Re-enter New Password."
ControlToValidate="txtrenewpassword"
Display="None"></asp:RequiredFieldValidator>
<asp:CompareValidator ID="cv1" runat="server"
ErrorMessage="Password does not match."
ControlToCompare="txtnewpassword"
ControlToValidate="txtrenewpassword"
Display="None"></asp:CompareValidator>
<br />
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
HeaderText="Below are the page errors:" ShowMessageBox="True"
ShowSummary="False" />
</td>
</tr>
</table>
</center>
</div>
</div>
</div>
</asp:Content>
CPADMIN.ASPX
Imports System.Data.SqlClient
Imports System.Data.Sql
Imports System.Data
Imports ASP.global_asax
54
Protected Sub btnchange_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Handles btnchange.Click
If Page.IsValid = True Then
Dim cp As String
cp = Session("LoginPass").ToString
If cp <> "" Then
If txtcurrent.Text = Session("LoginPass").ToString Then
'Encryption code
Dim x As Integer
TextLength = Len(txtnewpassword.Text)
For x = 1 To TextLength
sChar = Mid$(txtnewpassword.Text, x, 1)
bASCII = Asc(sChar)
bASCII += 11
If bASCII > 255 Then
bASCII -= 11
End If
pass &= Chr(bASCII)
Next
cmd = New SqlCommand
cmd.CommandType = CommandType.Text
cmd.Connection = con
Dim sqlq As String
sqlq = "update AccountDetails set password='" & pass & "' where emailid='" &
Session("LoginId").ToString & "'"
cmd.CommandText = sqlq
cmd.ExecuteNonQuery()
cmd = Nothing
MsgBox("Password changed sucessfully. Login with your new credentials.",
MsgBoxStyle.Information, "Sucessful")
Response.Redirect("LogOut.aspx")
Else
MsgBox("Current password does not match.", MsgBoxStyle.Information, "Incorrect
password")
End If
End If
End If
End Sub
End Class
CPUSER.ASPX
55
<%@ Page Language="VB" MasterPageFile="~/Master_User.master"
AutoEventWireup="false" CodeFile="CPUser.aspx.vb" Inherits="_Default" title="Change
Password | FindHomes.com" %>
56
ErrorMessage="Re-enter New Password."
ControlToValidate="txtrenewpassword"
Display="None"></asp:RequiredFieldValidator>
<asp:CompareValidator ID="cv1" runat="server"
ErrorMessage="Password does not match."
ControlToCompare="txtnewpassword"
ControlToValidate="txtrenewpassword"
Display="None"></asp:CompareValidator>
<br />
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
HeaderText="Below are the page errors:" ShowMessageBox="True"
ShowSummary="False" />
</td>
</tr>
</table>
</center>
</div>
</div>
</div>
</asp:Content>
CPUSER.ASPX.VB
Imports System.Data.SqlClient
Imports System.Data.Sql
Imports System.Data
Imports ASP.global_asax
57
If Page.IsValid = True Then
Dim cp As String
cp = Session("LoginPass").ToString
If cp <> "" Then
If txtcurrent.Text = Session("LoginPass").ToString Then
'Encryption code
Dim x As Integer
TextLength = Len(txtnewpassword.Text)
For x = 1 To TextLength
sChar = Mid$(txtnewpassword.Text, x, 1)
bASCII = Asc(sChar)
bASCII += 11
If bASCII > 255 Then
bASCII -= 11
End If
pass &= Chr(bASCII)
Next
cmd = New SqlCommand
cmd.CommandType = CommandType.Text
cmd.Connection = con
Dim sqlq As String
sqlq = "update AccountDetails set password='" & pass & "' where emailid='" &
Session("LoginId").ToString & "'"
cmd.CommandText = sqlq
cmd.ExecuteNonQuery()
cmd = Nothing
MsgBox("Password changed sucessfully. Login with your new credentials.",
MsgBoxStyle.Information, "Sucessful")
Response.Redirect("Logout.aspx")
Else
MsgBox("Current password does not match.", MsgBoxStyle.Information, "Incorrect
password")
End If
End If
End If
End Sub
End Class
DEFAULT.ASPX
58
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
DEFAULT.ASPX.VB
End Class
EMAIL.ASPX
59
</tr>
<tr align="left">
<td style="padding: 5px 5px; width: 180px;" valign="top">Your Message</td>
<td style="padding: 5px 5px;"><asp:TextBox ID="txtmsg" runat="server"
Width="248px" class="txtbox" MaxLength="200" Height="125px"
TextMode="MultiLine"></asp:TextBox></td>
</tr>
<tr align="left">
<td style="padding: 5px 5px;"> </td>
<td style="padding: 5px 5px;" align="right">
<asp:Button ID="btnsend" runat="server" Text="Send Now" Width="252px"
class="css_button1" Height="37px" CausesValidation="True"></asp:Button>
</td>
</tr>
<tr align="left">
<td colspan="2">
<asp:RequiredFieldValidator ID="rfv1" runat="server"
ErrorMessage="Enter subject." ControlToValidate="txtsubject"
Display="None"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="rfv2" runat="server"
ErrorMessage="Enter Message." ControlToValidate="txtmsg"
Display="None"></asp:RequiredFieldValidator>
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
ShowMessageBox="True" ShowSummary="False" HeaderText="In order to send the emails,
please resolve the below page errors." />
</td>
</tr>
</table>
<!--<h3>Upcoming sites/projects</h3>
<marquee>
<asp:Image ID="Image1" runat="server" ImageUrl="images/m1.jpg" style="border-
radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image2" runat="server" ImageUrl="images/m2.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image3" runat="server" ImageUrl="images/m3.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image4" runat="server" ImageUrl="images/m4.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image5" runat="server" ImageUrl="images/m5.jpg"
style="border-radius: 10px;" Height="250"></asp:Image>
</marquee>-->
</center>
</div>
</div>
</div>
</asp:Content>
60
EMAIL.ASP.VB
Imports ASP.global_asax
Imports System.Data
Imports System.Data.SqlClient
Imports System.Net
Imports System.Net.Mail
61
If ddlselectid.Text = "All" Then
'Code for multiple emailing.
da = New SqlDataAdapter("select emailid from Subscribers", con)
ds = New DataSet
da.Fill(ds)
If ds.Tables(0).Rows.Count > 0 Then
For y = 0 To ds.Tables(0).Rows.Count - 1
Call EmailSending(ds.Tables(0).Rows(y).Item(0), Trim(txtsubject.Text),
Trim(txtmsg.Text))
Next
MsgBox("Email's sent successfuly.", MsgBoxStyle.Information, "Email Sent")
Try
ddlselectid.SelectedIndex = 0
Catch ex As Exception
End Try
txtmsg.Text = ""
txtsubject.Text = ""
btnsend.Enabled = True
End If
Else
'Code for single email.
Call EmailSending(Trim(ddlselectid.Text), Trim(txtsubject.Text),
Trim(txtmsg.Text))
MsgBox("Email sent successfuly.", MsgBoxStyle.Information, "Email Sent")
Try
ddlselectid.SelectedIndex = 0
Catch ex As Exception
End Try
txtmsg.Text = ""
txtsubject.Text = ""
btnsend.Enabled = True
End If
Else
MsgBox("First select the email address from list.", MsgBoxStyle.Information,
"Information")
End If
End If
End Sub
Private Function EmailSending(ByVal tos As String, ByVal subject As String, ByVal message
As String)
Try
Dim Smtp_Server As New SmtpClient
Dim e_mail As New MailMessage()
Smtp_Server.UseDefaultCredentials = False
62
Smtp_Server.Credentials = New
Net.NetworkCredential("noreplyfindhomes1@gmail.com", "propertyiq12345")
Smtp_Server.Port = 587
Smtp_Server.EnableSsl = True
Smtp_Server.Host = "smtp.gmail.com"
FP.ASPX
63
<tr align="left">
<td> </td>
<td style="padding: 5px 5px">
<asp:Button ID="btnreset" runat="server" Text="Reset Password"
class="css_button1" Height="37px" Width="256px"></asp:Button></td>
</tr>
</table>
<asp:RequiredFieldValidator ID="rfv1" runat="server" ErrorMessage="Enter Email
ID."
ControlToValidate="txtemailid" Display="None"></asp:RequiredFieldValidator>
FP.ASPX.VB
Imports System.Data.SqlClient
Imports System.Data.Sql
Imports System.Data
Imports ASP.global_asax
Imports System.Net
Imports System.Net.Mail
64
Dim ds As DataSet
Shared random As New Random()
65
'update new password in DB.
sqlq = "update AccountDetails set password='" & pass & "'where emailid='" &
txtemailid.Text & "' "
cmd = New SqlCommand
cmd.Connection = con
cmd.CommandText = sqlq
cmd.ExecuteNonQuery()
Private Function EmailSending(ByVal tos As String, ByVal subject As String, ByVal message
As String)
Try
Dim Smtp_Server As New SmtpClient
Dim e_mail As New MailMessage()
Smtp_Server.UseDefaultCredentials = False
Smtp_Server.Credentials = New
Net.NetworkCredential("noreplyfindhomes1@gmail.com", "propertyiq12345")
Smtp_Server.Port = 587
Smtp_Server.EnableSsl = True
Smtp_Server.Host = "smtp.gmail.com"
66
Catch ex As Exception
MsgBox("Email Not Sent !!! " + vbCrLf + "Please Check Your Network Connection",
MsgBoxStyle.Information, "Internet Error")
Return 1
End Try
End Function
End Class
Frmcomplaintrp.aspx
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
Frmcomplaintrp.aspx
End Class
67
FRMMEMBERREPORT.ASPX
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
FRMMEMBERREPORT.ASPX.VB
End Class
FRMPROPERTY.ASPX
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="frmpropertyrpt.aspx.vb"
Inherits="frmpropertyrpt" %>
68
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
FRMPROPERTY.ASPX.VB
End Class
HOMEADMIN.ASPX
69
<div class="mid-grid">
<center>
<table>
<tr>
<td valign="middle"><asp:ImageButton ID="imgproperty" runat="server"
Height="16px" Width="18px" ImageUrl="~/images/plus.png" /></td>
<td valign="middle"><font size="4" color="Lime">Properties
Uploaded</font></td>
</tr>
</table>
<br />
<asp:Panel ID="pnlproperty" runat="server" Visible="False">
<asp:Label ID="lblprop" runat="server" Text=""></asp:Label><br />
<asp:GridView ID="gvprop" runat="server" BackColor="Lime"
BorderColor="Lime" CellPadding="4" CellSpacing="3" ForeColor="Black"
GridLines="None" AllowPaging="True" BorderStyle="Solid" Width="1000px"
Font-Names="Times New Roman">
<RowStyle BackColor="White" />
<FooterStyle BackColor="Lime" Font-Bold="True" ForeColor="White"
BorderColor="Lime" />
<PagerStyle BackColor="Lime" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True"
ForeColor="#333333" />
<HeaderStyle BackColor="Lime" Font-Bold="True" ForeColor="White" />
<EditRowStyle BackColor="#2461BF" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
</asp:Panel>
<br />
<table>
<tr>
<td valign="middle"><asp:ImageButton ID="imgcomp" runat="server"
Height="16px" Width="18px" ImageUrl="~/images/plus.png" /></td>
<td valign="middle"><font size="4" color="Lime">User's Complaints</font></td>
</tr>
</table>
<br />
<asp:Panel ID="pnlcomp" runat="server" Visible="False">
<asp:Label ID="lblcomp" runat="server" Text=""></asp:Label><br />
<asp:GridView ID="GVcomp" runat="server" BackColor="Lime"
BorderColor="Lime" CellPadding="4" CellSpacing="3" ForeColor="Black"
GridLines="None" AllowPaging="True" BorderStyle="Solid" Width="1000px">
<RowStyle BackColor="White" />
<FooterStyle BackColor="Lime" Font-Bold="True" ForeColor="White"
BorderColor="Lime" />
70
<PagerStyle BackColor="Lime" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True"
ForeColor="#333333" />
<HeaderStyle BackColor="Lime" Font-Bold="True" ForeColor="White" />
<EditRowStyle BackColor="#2461BF" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
</asp:Panel>
</center>
</div>
</div>
</div>
<!---End-content---->
</asp:Content>
HOMEADMIN.ASPX.VB
Imports ASP.global_asax
Imports System.Data
Imports System.Data.SqlClient
71
Else
pnlcomp.Visible = False
imgcomp.ImageUrl = "~/images/plus.png"
End If
End Sub
72
HOMEUSER.ASPX
73
<asp:AutoCompleteExtender ID="txtName_AutoCompleteExtender" runat="server"
DelimiterCharacters="" Enabled="True" ServiceMethod="GetCompletionList"
ServicePath="" TargetControlID="txtcity" UseContextKey="True"
MinimumPrefixLength="1" CompletionInterval="10" EnableCaching="true"
CompletionSetCount="3">
</asp:AutoCompleteExtender>
<h2>Upcoming sites/projects</h2>
<marquee>
<asp:Image ID="Image1" runat="server" ImageUrl="images/m1.jpg" style="border-
radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image2" runat="server" ImageUrl="images/m2.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image3" runat="server" ImageUrl="images/m3.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image4" runat="server" ImageUrl="images/m4.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image5" runat="server" ImageUrl="images/m5.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image></marquee>
</center>
</div>
</div>
</div>
</asp:Content>
HOMEUSER.ASPX.VB
Imports ASP.global_asax
Imports System.Data
Imports System.Data.SqlClient
Imports System.Collections.Generic
Imports System.Configuration
<System.Web.Services.WebMethodAttribute()>
<System.Web.Script.Services.ScriptMethodAttribute()> Public Shared Function
74
GetCompletionList(ByVal prefixText As String, ByVal count As Integer, ByVal contextKey As
String) As String()
connection_create()
Dim cmd As New SqlCommand("SELECT locality FROM PropertyDetails", con)
Dim oReader As SqlDataReader
Dim CompletionSet As New List(Of String)()
oReader = cmd.ExecuteReader(CommandBehavior.CloseConnection)
While oReader.Read()
CompletionSet.Add(oReader("locality").ToString())
End While
Return CompletionSet.ToArray()
End Function
End Try
End Sub
Try
locality = Request.QueryString("locality").ToString
Catch ex As Exception
locality = ""
End Try
75
If Page.IsPostBack = False Then
Try
str = ""
connection_create()
da = New SqlDataAdapter("select * from PropertyDetails Order by srno DESC",
con)
ds = New DataSet
da.Fill(ds)
End If
76
str = str & "<font size='5' color='black'>" & ds.Tables(0).Rows(y).Item(6) &
"</font> <font size='3'>in " & ds.Tables(0).Rows(y).Item(9) & "</font><br />"
str = str & "<font size='4' color='black'>Sq-ft Rate: Rs. " &
ds.Tables(0).Rows(y).Item(16) & "/-</font><br /><br />"
str = str & "<font size='4' color='black'>" & ds.Tables(0).Rows(y).Item(23) & "
| " & ds.Tables(0).Rows(y).Item(24) & " | Possession in " & ds.Tables(0).Rows(y).Item(25) &
"/" & ds.Tables(0).Rows(y).Item(26) & "</font><br />"
str = str & "<font size='4' color='black'><br />Covered Area: " &
ds.Tables(0).Rows(y).Item(11) & " " & ds.Tables(0).Rows(y).Item(12) & "</font>"
str = str & "</td>"
str = str & "</tr>"
str = str & "<tr><td colspan='2'><hr style='color:gray' /></td></tr>"
Next
str = str & "</table>"
lblres.Text = str
Else
lblerror.Text = "Properties not found."
lblres.Text = ""
End If
Catch ex As Exception
End Try
End If
Else
'Display products via QS.
Try
str = ""
connection_create()
da = New SqlDataAdapter("select * from PropertyDetails where typeofproperty=" &
category & " and locality=" & locality & " ", con)
ds = New DataSet
da.Fill(ds)
77
pic = ds.Tables(0).Rows(y).Item(30)
End If
78
INDEX.ASPX
79
<a href="#"><img src="images/icon3.png"
title="icon-name" alt="" /></a>
<h3>Location</h3>
<p>
We have developed projects in the good and
residential locations where people can get all the facilities they are looking for.
<br /><br />
</p>
</div>
</div>
<div class="mid-grid">
<h2>Welcome to our site!</h2>
<h1>We are real estate consultants, with a difference!!</h1>
<p>
We at FindHomes focus on providing professional and transparent real-
estate solutions in Maharashtra. We are your one stop solution for all your real estate
requirements. We understand your unique requirements and help make informed decisions on
buying, selling and renting of property in and around Maharashtra.
</p><br />
<a class="button" href="AboutUs.aspx">Read More</a>
</div>
</div>
<!---End-content---->
</asp:Content>
INDEX.ASPX.VB
End Class
LOGOUT.ASPX
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
80
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
LOGOUT.ASPX.VB
Response.Redirect("index.aspx")
End Sub
End Class
MASTER_ADMIN.MASTER
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'
type='text/css'/>
<link href="css/slider.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="js/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="js/jquery.nivo.slider.js"></script>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
81
});
</script>
<script type="text/javascript">
function changeImage()
{
}
images[0] = "images/logo.png";
images[1] = "images/logo1.png";
setTimeout("changeImage()", 300);
</script>
</head>
<body>
<form id="form1" runat="server">
<!----start-header----->
<div class="header">
<div class="wrap">
<div class="top-header">
<div class="logo">
<a href="index.aspx"><img src="images/logo.png"
id="img" alt="LOGO" title="logo" /></a>
</div>
<div class="social-icons">
<ul>
<li><a href="http://www.facebook.com/"
target="_blank"><img src="images/facebook.png" alt="Facebook" title="facebook" /></a></li>
<li><a href="https://twitter.com/?lang=en"
target="_blank"><img src="images/twitter.png" alt="Twitter" title="twitter" /></a></li>
82
<li><a href="https://plus.google.com/"
target="_blank"><img src="images/google.png" alt="Google Plus" title="google pluse"
/></a></li>
<li><a href="Logout.aspx"><img
src="images/logout.png" alt="" title="Logout" /></a></li>
</ul>
</div>
<div class="clear"></div>
</div>
<!---start-top-nav---->
<div class="top-nav">
<div class="top-nav-left">
<ul>
<li class="active"><a
href="Homeadmin.aspx">Properties</a></li>
<li><a
href="Subsadmin.aspx">Subscribers</a></li>
<li><a href="Member.aspx">Members</a></li>
<li><a href="Reports.aspx">Reports</a></li>
<li><a href="Email.aspx">Email</a></li>
<li><a href="Searchadmin.aspx">Search</a></li>
<li><a href="CPAdmin.aspx">Change
Password</a></li>
</ul>
</div>
<div class="top-nav-right">
<div class="telephone">
<span><i class="phone_img"><img
src="images/phone.png" alt="" /></i> CALL</span><span class="number">+91
7276700997</span>
</div>
</div>
<div class="clear"> </div>
</div>
<!---End-top-nav---->
</div>
</div>
<!----End-header----->
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
<!---start-footer---->
<div class="copy-right">
<p><a href="Homeadmin.aspx">Home</a> | <a href="Email.aspx">Email</a> | <a
href="Reports.aspx">Reports</a> | <a href="Member.aspx">Members</a></p>
<p>Designed By <a href=""> Violet</a> | Batch: 2017-18 </p>
</div>
83
<!---End-footer---->
</form>
</body>
</html>
MASTER_ADMIN.MASTER.VB
MASTER_MAIN.MASTER.ASPX
<%@ Master Language="VB" CodeFile="Master_Main.master.vb" Inherits="Master_Main" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'
type='text/css'/>
<link href="css/slider.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="js/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="js/jquery.nivo.slider.js"></script>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>
<script type="text/javascript">
function changeImage()
{
var img = document.getElementById("img");
img.src = images[x];
x++;
setTimeout("changeImage()", 300);
84
}
images[0] = "images/logo.png";
setTimeout("changeImage()", 300);
</script>
</head>
<body>
<form id="form1" runat="server">
<!----start-header----->
<div class="header">
<div class="wrap">
<div class="top-header">
<div class="logo">
<a href="index.aspx"><img src="images/logo.png"
id="img" alt="LOGO" title="logo" /></a>
</div>
<div class="social-icons">
<ul>
<li><a href="http://www.facebook.com/"
target="_blank"><img src="images/facebook.png" alt="Facebook" title="facebook" /></a></li>
<li><a href="https://twitter.com/?lang=en"
target="_blank"><img src="images/twitter.png" alt="Twitter" title="twitter" /></a></li>
<li><a href="https://plus.google.com/"
target="_blank"><img src="images/google.png" alt="Google Plus" title="google pluse"
/></a></li>
<li><a href="SignIn.aspx"><img
src="images/login.png" alt="SignIn" title="SignIn" /></a></li>
</ul>
</div>
<div class="clear"></div>
85
</div>
<!---start-top-nav---->
<div class="top-nav">
<div class="top-nav-left">
<ul>
<li class="active"><a
href="index.aspx">Home</a></li>
<li><a href="Subscribe.aspx">Subscribe</a></li>
<li><a href="AboutUs.aspx">About Us</a></li>
<li><a href="Contact.aspx">Contact</a></li>
</ul>
</div>
<div class="top-nav-right">
<div class="telephone">
<span><i class="phone_img"><img
src="images/phone.png" alt="" /></i> CALL</span><span class="number">+91
7276700997</span>
</div>
</div>
<div class="clear"></div>
</div>
<!---End-top-nav---->
</div>
</div>
<!----End-header----->
<div class="wrap">
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div>
<!---start-footer---->
<div class="copy-right">
<p><a href="index.aspx">Home</a> | <a href="AboutUs.aspx">About Us</a> | <a
href="PP.aspx">Privacy Policy</a> | <a href="Subscribe.aspx">Subscribe</a></p>
<p>Designed By <a href=""> Violet</a> | Batch: 2017-18 </p>
</div>
<!---End-footer---->
</form>
</body>
</html>
MASTER_MAIN.MASTER.VB
86
MASTER_USER.MASTER.ASPX
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'
type='text/css'/>
<link href="css/slider.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="js/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="js/jquery.nivo.slider.js"></script>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>
<script type="text/javascript">
function changeImage()
{
}
images[0] = "images/logo.png";
87
images[1] = "images/logo1.png";
setTimeout("changeImage()", 300);
</script>
</head>
<body>
<form id="form1" runat="server">
<!----start-header----->
<div>
<div class="wrap">
<div class="top-header">
<div class="logo">
<a href="index.aspx"><img src="images/logo.png"
id="img" alt="LOGO" title="logo" /></a>
</div>
<div class="social-icons">
<ul>
<li><a href="http://www.facebook.com/"
target="_blank"><img src="images/facebook.png" alt="Facebook" title="facebook" /></a></li>
<li><a href="https://twitter.com/?lang=en"
target="_blank"><img src="images/twitter.png" alt="Twitter" title="twitter" /></a></li>
<li><a href="https://plus.google.com/"
target="_blank"><img src="images/google.png" alt="Google Plus" title="google pluse"
/></a></li>
<li><a href="Logout.aspx"><img
src="images/logout.png" alt="" title="Logout" /></a></li>
</ul>
</div>
<div class="clear"></div>
</div>
<!---start-top-nav---->
<div class="top-nav">
<div class="top-nav-left">
<ul>
<li class="active"><a
href="Homeuser.aspx">Search</a></li>
<li><a href="ProfileUser.aspx">My
Profile</a></li>
<li><a href="UploadAds.aspx">Upload
Ads</a></li>
<li><a href="MyAds.aspx">My Ads</a></li>
<li><a
href="ComplaintUser.aspx">Complaint</a></li>
<li><a href="CPUser.aspx">Change
Password</a></li>
</ul>
</div>
88
<div class="top-nav-right">
<div class="telephone">
<span><i class="phone_img"><img
src="images/phone.png" alt="" /></i> CALL</span><span class="number">+91
7276700997</span>
</div>
</div>
<div class="clear"> </div>
</div>
<!---End-top-nav---->
</div>
</div>
<!----End-header----->
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
<!---start-footer---->
<div class="copy-right">
<p><a href="index.aspx">Home</a> | <a href="AboutUs.aspx">About Us</a> | <a
href="PP.aspx">Privacy Policy</a> | <a href="Subscribe.aspx">Subscribe</a></p>
<p>Designed By <a href=""> Violet</a> | Batch: 2017-18 </p>
</div>
<!---End-footer---->
</form>
</body>
</html>
MASTER_USER.MASTER.VB
MEMBER.ASPX
89
<center>
<table>
<tr>
<td valign="middle"><asp:ImageButton ID="imgmembers" runat="server"
Height="16px" Width="18px" ImageUrl="~/images/plus.png" /></td>
<td valign="middle"><font size="4" color="Lime">Members
Information</font></td>
</tr>
</table>
<br />
<asp:Panel ID="pnlmembers" runat="server" Visible="False">
<asp:Label ID="lblmembers" runat="server" Text=""></asp:Label><br />
<asp:GridView ID="GVMembers" runat="server" BackColor="Lime"
BorderColor="Lime" CellPadding="20" CellSpacing="10" ForeColor="Black"
GridLines="None" AllowPaging="True" BorderStyle="Solid" Width="1200px"
Font-Names="Times New Roman">
<RowStyle BackColor="White" />
<FooterStyle BackColor="Lime" Font-Bold="True" ForeColor="White"
BorderColor="Lime" />
<PagerStyle BackColor="Lime" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True"
ForeColor="#333333" />
<HeaderStyle BackColor="Lime" Font-Bold="True" ForeColor="White" />
<EditRowStyle BackColor="#2461BF" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
</asp:Panel>
<br />
</center>
</div>
</div>
</div>
</asp:Content>
MEMBER.VB
Imports ASP.global_asax
Imports System.Data
Imports System.Data.SqlClient
90
Dim str As Integer
Dim i, count, value As Integer
MYADS.ASPX
91
<div class="mid-grid">
<center>
<h2>Your Ads will be listed below</h2>
<table>
<tr align="left">
<td style="padding: 5px 5px">Choose your property ID</td>
<td style="padding: 5px 5px">
<asp:DropDownList ID="ddlpropertyID" class="textbox" runat="server"
Width="252px" Height="30px" AutoPostBack="True">
</asp:DropDownList>
</td>
</tr>
</table>
<br /><br />
<asp:Panel ID="pnlproperty" runat="server">
<table>
<tr style="border: solid 1px black;" align="left">
<td style="padding: 5px 5px;" colspan="2">
<font size="5" color="gray"><asp:Label ID="lblcaption" runat="server"
Text=""></asp:Label></font>
</td>
</tr>
92
<font size="4" color="black">Expected Price: <asp:Label ID="lblprice"
runat="server" Text=""></asp:Label></font>
</td>
<td style="padding: 5px 5px">
<font size="4" color="black">Sqft Rate: <asp:Label ID="lblsqftprice"
runat="server" Text=""></asp:Label></font>
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px;" colspan="2" align="center">
<asp:Image ID="imgprop" runat="server"
ImageUrl="images/PropertyImages/na.jpg" Width="130" Height="130" />
<asp:Image ID="imgprop1" runat="server"
ImageUrl="images/PropertyImages/na.jpg" Width="130" Height="130" />
<asp:Image ID="imgprop2" runat="server"
ImageUrl="images/PropertyImages/na.jpg" Width="130" Height="130" />
<asp:Image ID="imgprop3" runat="server"
ImageUrl="images/PropertyImages/na.jpg" Width="130" Height="130" />
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px;" colspan="2" align="center">
<asp:Button ID="btnedit" runat="server" Text="Edit this AD"
class="css_button1" Width="252px" />
<asp:Button ID="btnremove" runat="server" Text="Remove this AD"
class="css_button" Width="252px" />
</td>
</tr>
</table>
</asp:Panel>
<!--<h3>Upcoming sites/projects</h3>
<marquee>
<asp:Image ID="Image1" runat="server" ImageUrl="images/m1.jpg" style="border-
radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image2" runat="server" ImageUrl="images/m2.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image3" runat="server" ImageUrl="images/m3.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image4" runat="server" ImageUrl="images/m4.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image5" runat="server" ImageUrl="images/m5.jpg"
style="border-radius: 10px;" Height="250"></asp:Image>
</marquee>-->
</center>
</div>
</div>
93
</div>
</asp:Content>
MYADS.VB
Imports ASP.global_asax
Imports System.Data
Imports System.Data.SqlClient
End If
pnlproperty.Visible = False
End If
94
End Sub
End Try
End Sub
95
lblcaption.Text = ds.Tables(0).Rows(0).Item(1)
lblprice.Text = ds.Tables(0).Rows(0).Item(6) & "<font size='3'> INR</font>"
lblsqftprice.Text = "Rs. " & ds.Tables(0).Rows(0).Item(7) & "/-<font size='3'> INR "
lbltypeofproperty.Text = ds.Tables(0).Rows(0).Item(2)
lblcity.Text = ds.Tables(0).Rows(0).Item(3)
lblarea.Text = ds.Tables(0).Rows(0).Item(4) & " " & ds.Tables(0).Rows(0).Item(5)
lbltransaction.Text = ds.Tables(0).Rows(0).Item(8)
Try
p1 = ds.Tables(0).Rows(0).Item(9)
p2 = ds.Tables(0).Rows(0).Item(10)
p3 = ds.Tables(0).Rows(0).Item(11)
p4 = ds.Tables(0).Rows(0).Item(12)
Catch ex As Exception
Exit Sub
End Try
End If
End If
End Sub
End Class
96
PP.ASPX
97
by checking the URL in the location bar on your browser), use of any information you provide is
governed by the privacy policy of the operator of the site you are visiting. That policy may differ
from ours. If you can't find the privacy policy of any of these sites via a link from the site's
homepage, you should contact the site directly for more information.
When we present information to our advertisers -- to help them understand our audience
and confirm the value of advertising on our website -- it is usually in the form of aggregated
statistics on traffic to various pages within our site. When you register with TIL, we contact you
from time to time about updation of your content to provide the users such features that we
believe may benefit you.
<br /><br />
98
<font size="4" color="black">INFORMATION SECURITY</font><br />
We take appropriate security measures to protect against unauthorized access to or
unauthorized alteration, disclosure or destruction of data. These include internal reviews of our
data collection, storage and processing practices and security measures, including appropriate
encryption and physical security measures to guard against unauthorized access to systems where
we store personal data.
All information gathered on TIL is securely stored within the TIL controlled database.
The database is stored on servers secured behind a firewall; access to the servers is password-
protected and is strictly limited. However, as effective as our security measures are, no security
system is impenetrable. We cannot guarantee the security of our database, nor can we guarantee
that information you supply will not be intercepted while being transmitted to us over the
Internet. And, of course, any information you include in a posting to the discussion areas is
available to anyone with Internet access.
However the internet is an ever evolving medium. We may change our privacy policy
from time to time to incorporate necessary future changes. Of course, our use of any information
we gather will always be consistent with the policy under which the information was collected,
regardless of what the new policy may be.
<br /></p>
</div>
</div>
</asp:Content>
PP.VB
End Class
PPU.ASPX
99
orientation, i) biometric information, j) password etc., and / or your occupation, interests, and the
like.. The Information as supplied by the users enables us to improve our sites and provide you
the most user-friendly experience.
<br /><br />
All required information is service dependent and TIL may use the above said User
information to, maintain, protect, and improve its services (including advertising services) and
for developing new services
<br /><br />
Such information will not be considered as sensitive if it is freely available and accessible
in the public domain or is furnished under the Right to Information Act, 2005 or any other law
for the time being in force.
<br /><br /><br />
100
<br /><br /><br />
101
protected and is strictly limited. However, as effective as our security measures are, no security
system is impenetrable. We cannot guarantee the security of our database, nor can we guarantee
that information you supply will not be intercepted while being transmitted to us over the
Internet. And, of course, any information you include in a posting to the discussion areas is
available to anyone with Internet access.
<br /><br />
However the internet is an ever evolving medium. We may change our privacy policy
from time to time to incorporate necessary future changes. Of course, our use of any information
we gather will always be consistent with the policy under which the information was collected,
regardless of what the new policy may be.
<br /><br /></p>
</div>
</div>
</div>
</asp:Content>
PPU.VB
End Class
PROFILEUSER.ASPX
102
</tr>
<tr align="left">
<td style="padding: 5px 5px; width: 180px;">Name</td>
<td style="padding: 5px 5px" align="center"><asp:TextBox ID="txtname"
class="txtbox" runat="server" MaxLength="50" Width="252px"></asp:TextBox></td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Gender</td>
<td style="padding: 5px 5px" align="center">
<asp:DropDownList ID="ddlgender" runat="server" Width="253px"
Height="30" class="txtbox">
<asp:ListItem>Male</asp:ListItem>
<asp:ListItem>Female</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Date of Birth</td>
<td style="padding: 5px 5px" align="center">
<asp:DropDownList ID="ddlday" runat="server" Width="77px" class="txtbox"
Height="30">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem>4</asp:ListItem>
<asp:ListItem>5</asp:ListItem>
<asp:ListItem>6</asp:ListItem>
<asp:ListItem>7</asp:ListItem>
<asp:ListItem>8</asp:ListItem>
<asp:ListItem>9</asp:ListItem>
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>11</asp:ListItem>
<asp:ListItem>12</asp:ListItem>
<asp:ListItem>13</asp:ListItem>
<asp:ListItem>14</asp:ListItem>
<asp:ListItem>15</asp:ListItem>
<asp:ListItem>16</asp:ListItem>
<asp:ListItem>17</asp:ListItem>
<asp:ListItem>18</asp:ListItem>
<asp:ListItem>19</asp:ListItem>
<asp:ListItem>20</asp:ListItem>
<asp:ListItem>21</asp:ListItem>
<asp:ListItem>22</asp:ListItem>
<asp:ListItem>23</asp:ListItem>
<asp:ListItem>24</asp:ListItem>
<asp:ListItem>25</asp:ListItem>
103
<asp:ListItem>26</asp:ListItem>
<asp:ListItem>27</asp:ListItem>
<asp:ListItem>28</asp:ListItem>
<asp:ListItem>29</asp:ListItem>
<asp:ListItem>30</asp:ListItem>
<asp:ListItem>31</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddlmonth" runat="server" Width="77px"
class="txtbox" Height="30">
<asp:ListItem>Jan</asp:ListItem>
<asp:ListItem>Feb</asp:ListItem>
<asp:ListItem>Mar</asp:ListItem>
<asp:ListItem>Apr</asp:ListItem>
<asp:ListItem>May</asp:ListItem>
<asp:ListItem>Jun</asp:ListItem>
<asp:ListItem>Jul</asp:ListItem>
<asp:ListItem>Aug</asp:ListItem>
<asp:ListItem>Sep</asp:ListItem>
<asp:ListItem>Oct</asp:ListItem>
<asp:ListItem>Nov</asp:ListItem>
<asp:ListItem>Dec</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddlyear" runat="server" Width="78px" class="txtbox"
Height="30">
<asp:ListItem>1985</asp:ListItem>
<asp:ListItem>1986</asp:ListItem>
<asp:ListItem>1987</asp:ListItem>
<asp:ListItem>1988</asp:ListItem>
<asp:ListItem>1989</asp:ListItem>
<asp:ListItem>1990</asp:ListItem>
<asp:ListItem>1991</asp:ListItem>
<asp:ListItem>1992</asp:ListItem>
<asp:ListItem>1993</asp:ListItem>
<asp:ListItem>1994</asp:ListItem>
<asp:ListItem>1995</asp:ListItem>
<asp:ListItem>1996</asp:ListItem>
<asp:ListItem>1997</asp:ListItem>
<asp:ListItem>1998</asp:ListItem>
<asp:ListItem>1999</asp:ListItem>
<asp:ListItem>2000</asp:ListItem>
<asp:ListItem>2001</asp:ListItem>
<asp:ListItem>2002</asp:ListItem>
<asp:ListItem>2003</asp:ListItem>
<asp:ListItem>2004</asp:ListItem>
104
</asp:DropDownList>
</td>
</tr>
<tr align="left">
<td colspan="2">
<br />
<hr style="color:Gray"; />
</td>
</tr>
<tr align="left">
<td colspan="2" style="padding: 5px 5px" align="center"><u>Current
Address</u></td>
</tr>
<tr align="left">
<td valign="top" style="padding: 5px 5px">Building/Street/Area</td>
<td style="padding: 5px 5px" align="center"><asp:TextBox ID="txtaddress"
runat="server" TextMode="MultiLine" MaxLength="220" Width="252px" class="txtbox"
Height="88px"></asp:TextBox></td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Country</td>
<td style="padding: 5px 5px" align="center"><asp:TextBox ID="txtcountry"
class="txtbox" runat="server" MaxLength="50" Width="252px"></asp:TextBox></td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">State</td>
<td style="padding: 5px 5px" align="center"><asp:TextBox ID="txtstate"
runat="server" class="txtbox" MaxLength="50" Width="252px"></asp:TextBox></td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">City</td>
<td style="padding: 5px 5px" align="center"><asp:TextBox ID="txtcity"
runat="server" class="txtbox" MaxLength="50" Width="252px"></asp:TextBox></td>
</tr>
<tr align="left">
<td style="padding: 5px 5px; width: 180px;">Pincode</td>
<td style="padding: 5px 5px" align="center"><asp:TextBox ID="txtpincode"
runat="server" class="textbox" MaxLength="6" Width="252px"></asp:TextBox></td>
</tr>
<tr align="left">
<td colspan="2">
<br />
<hr style="color:Gray"; />
</td>
</tr>
<tr align="left">
105
<td colspan="2" style="padding: 5px 5px" align="center"><u>Contact
Information</u></td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Contact Number</td>
<td style="padding: 5px 5px" align="center"><asp:TextBox ID="txtcontact"
class="txtbox" runat="server" MaxLength="10" Width="252px"></asp:TextBox></td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Email ID</td>
<td style="padding: 5px 5px" align="center"><asp:TextBox ID="txtemailid"
class="txtbox" ReadOnly="true" runat="server" MaxLength="50"
Width="252px"></asp:TextBox></td>
</tr>
<tr align="left">
<td style="padding: 5px 5px"> </td>
<td align="center" style="padding: 5px 5px">
<asp:Button ID="btnsave" runat="server" Text="Save" Width="252px"
class="css_button1" Height="37px"></asp:Button>
</td>
</tr>
<tr align="left">
<td colspan="2">
<asp:RequiredFieldValidator ID="rfvname" runat="server"
ErrorMessage="Enter your name." ControlToValidate="txtname"
Display="None"></asp:RequiredFieldValidator>
106
ControlToValidate="txtcity" Display="None"></asp:RequiredFieldValidator>
PROFILEUSER.ASPX.VB
Imports ASP.global_asax
Imports System.Data
Imports System.Data.SqlClient
107
Dim cmd As SqlCommand
Dim da As SqlDataAdapter
Dim ds As DataSet
Dim val As Integer
Dim str As Integer
Dim i, count, value As Integer
'Fill ID.
da = New SqlDataAdapter("select * from Customer where emailid='" & email & "' ",
con)
ds = New DataSet
da.Fill(ds)
If ds.Tables(0).Rows.Count > 0 Then
'code for fill all controls from customer table and disable all controls with edit button.
lblid.Text = ds.Tables(0).Rows(0).Item(1)
txtname.Text = ds.Tables(0).Rows(0).Item(2)
ddlgender.Text = ds.Tables(0).Rows(0).Item(3)
'CODE TO BREAK DOWN DATE OF BIRTH.
Dim dob As String = ""
Dim ch As Char
Dim str As String = ""
Dim d, m, y As Boolean : d = False : m = False : y = False
Dim i As Integer
dob = ds.Tables(0).Rows(0).Item(4)
For i = 1 To dob.Length
ch = Mid$(dob, i, 1)
If ch = "/" Then
If d = False Then
d = True
ddlday.Text = str
str = ""
GoTo FL
108
End If
If m = False Then
m = True
ddlmonth.Text = str
str = ""
GoTo FL
End If
Else
str = str & ch
End If
FL: Next
If str <> "" Then
y = True
ddlyear.Text = str
str = ""
End If
txtaddress.Text = ds.Tables(0).Rows(0).Item(5)
txtcountry.Text = ds.Tables(0).Rows(0).Item(6)
txtstate.Text = ds.Tables(0).Rows(0).Item(7)
txtcity.Text = ds.Tables(0).Rows(0).Item(8)
txtpincode.Text = ds.Tables(0).Rows(0).Item(9)
txtcontact.Text = ds.Tables(0).Rows(0).Item(10)
txtemailid.Text = ds.Tables(0).Rows(0).Item(11)
disable()
btnsave.Enabled = True
btnsave.Text = "Edit"
btnsave.CssClass = "css_button"
Else
'code for fill id from account table and enable all controls with save button.
da = New SqlDataAdapter("select accid from AccountDetails where emailid='" &
email & "' ", con)
ds = New DataSet
da.Fill(ds)
If ds.Tables(0).Rows.Count > 0 Then
lblid.Text = ds.Tables(0).Rows(0).Item(0)
txtemailid.Text = Session("LoginId").ToString()
Else
MsgBox("Session expired. Please login again.", MsgBoxStyle.Information, "Error
occurred")
Response.Redirect("LogOut.aspx")
End If
enable()
109
btnsave.Enabled = True
btnsave.CssClass = "css_button1"
btnsave.Text = "Save"
End If
End If
End Sub
ddlday.Enabled = True
ddlmonth.Enabled = True
ddlyear.Enabled = True
txtaddress.Enabled = True
txtcountry.Enabled = True
txtstate.Enabled = True
txtcity.Enabled = True
txtpincode.Enabled = True
txtcontact.Enabled = True
End Sub
ddlday.Enabled = False
ddlmonth.Enabled = False
ddlyear.Enabled = False
txtaddress.Enabled = False
txtcountry.Enabled = False
txtstate.Enabled = False
txtcity.Enabled = False
txtpincode.Enabled = False
txtcontact.Enabled = False
End Sub
110
arr.Clear()
If count = 0 Then
value = 1
Else
For a = 0 To count - 1
arr.Add(ds.Tables(0).Rows(a).Item(0))
arr.Sort()
Next
value = value + 1
End If
End Sub
enable()
btnsave.Text = "Save"
btnsave.CssClass = "css_button1"
btnsave.Enabled = True
111
cmd = New SqlCommand
cmd.Connection = con
cmd.CommandText = sqlq
cmd.ExecuteNonQuery()
MsgBox("Information saved.", MsgBoxStyle.OkOnly, "Success")
disable()
btnsave.Enabled = True
btnsave.Text = "Edit"
btnsave.CssClass = "css_button"
Else
'Code for save
autogenerate()
sqlq = "insert into Customer values(" & value & ",'" & lblid.Text & "','" &
txtname.Text & "','" & ddlgender.Text & "','" & ddlday.Text & "/" & ddlmonth.Text & "/" &
ddlyear.Text & "','" & txtaddress.Text & "','" & txtcountry.Text & "','" & txtstate.Text & "','" &
txtcity.Text & "','" & txtpincode.Text & "','" & txtcontact.Text & "','" & txtemailid.Text & "')"
cmd = New SqlCommand
cmd.Connection = con
cmd.CommandText = sqlq
cmd.ExecuteNonQuery()
MsgBox("Information saved.", MsgBoxStyle.OkOnly, "Success")
disable()
btnsave.Enabled = True
btnsave.Text = "Edit"
btnsave.CssClass = "css_button"
End If
Else
ValidationSummary1.ShowMessageBox = True
End If
End If
End Sub
112
args.IsValid = False
ElseIf IsNumeric(txtpincode.Text) = False Then
args.IsValid = False
Else
args.IsValid = True
End If
End Sub
d = Now.Date.Day
m = Now.Date.Month
y = Now.Date.Year
d1 = ddlday.Text
m1 = ddlmonth.Text
y1 = ddlyear.Text
REPORTS.ASPX
113
<center>
<h2>Click on below link, to generate reports</h2>
<p>
<a href="frmmemberreport.aspx" style="color:blue" target="_blank">1.
Member's
Information.</a><br />
<a href="frmpropertyrpt.aspx" style="color:blue" target="_blank">2. Property
Ads.</a><br />
<a href="frmcomplaintrpt.aspx" style="color:blue" target="_blank">3.
Complaints.</a><br />
</p>
<h2>Upcoming sites/projects</h2>
<marquee>
<asp:Image ID="Image1" runat="server" ImageUrl="images/m1.jpg" style="border-
radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image2" runat="server" ImageUrl="images/m2.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image3" runat="server" ImageUrl="images/m3.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image4" runat="server" ImageUrl="images/m4.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image5" runat="server" ImageUrl="images/m5.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image></marquee>
</center>
</div>
</div>
</div>
</asp:Content>
REPORTS.ASPX.VB
End Class
SEARCHADMIN.ASPX
114
<div class="wrap">
<div>
<div class="mid-grid">
<center>
<h2>Your Happy Home Journey Begins Here...</h2>
<table>
<tr>
<td style="padding: 5px 5px">
<asp:TextBox ID="txtcity" placeholder=" Search Locality" runat="server"
MaxLength="30" Width="600px" Height="35" class="txtbox"></asp:TextBox>
<asp:DropDownList ID="ddlcategory" runat="server" Width="230px"
class="textbox" Height="38">
<asp:ListItem>--Property Type--</asp:ListItem>
<asp:ListItem>Multistorey Apartment</asp:ListItem>
<asp:ListItem>Builder Floor Apartment</asp:ListItem>
<asp:ListItem Value="Residental House">Residental House</asp:ListItem>
<asp:ListItem>Villa</asp:ListItem>
<asp:ListItem>Penthouse</asp:ListItem>
<asp:ListItem>Studio Apartment</asp:ListItem>
<asp:ListItem>Office IT Park</asp:ListItem>
<asp:ListItem>Commercial Shop</asp:ListItem>
<asp:ListItem>Commercial Showroom</asp:ListItem>
<asp:ListItem>Commercial Land</asp:ListItem>
<asp:ListItem>Warehouse</asp:ListItem>
<asp:ListItem>Other</asp:ListItem>
</asp:DropDownList>
<asp:Button ID="btnsearch" class="css_button1" runat="server"
Text="Search Now" Width="150px" Height="38" />
</td>
</tr>
</table>
<br />
<asp:Label ID="lblres" runat="server" Text=""></asp:Label><br />
<asp:Label ID="lblerror" runat="server" Text="" Font-Bold="True" ForeColor="Red"
Font-Size="Medium"></asp:Label>
115
</center>
</div>
</div>
</div>
</asp:Content>
SEARCHADMIN.ASPX.VB
Imports ASP.global_asax
Imports System.Data
Imports System.Data.SqlClient
Imports System.Collections.Generic
Imports System.Configuration
<System.Web.Services.WebMethodAttribute()>
<System.Web.Script.Services.ScriptMethodAttribute()> Public Shared Function
GetCompletionList(ByVal prefixText As String, ByVal count As Integer, ByVal contextKey As
String) As String()
connection_create()
Dim cmd As New SqlCommand("SELECT locality FROM PropertyDetails", con)
Dim oReader As SqlDataReader
Dim CompletionSet As New List(Of String)()
oReader = cmd.ExecuteReader(CommandBehavior.CloseConnection)
While oReader.Read()
CompletionSet.Add(oReader("locality").ToString())
End While
Return CompletionSet.ToArray()
End Function
116
category = Request.QueryString("category").ToString
Catch ex As Exception
category = ""
End Try
Try
locality = Request.QueryString("locality").ToString
Catch ex As Exception
locality = ""
End Try
End If
117
str = str & "<a href='Summary.aspx?pid=" & ds.Tables(0).Rows(y).Item(1) & "
' ><img src=images/PropertyImages/" & pic & " style='Width:180px; Height:180px; vertical-
align:top;' /></a>"
str = str & "</td>"
str = str & "<td>"
str = str & "<font size='5' color='gray'>" & ds.Tables(0).Rows(y).Item(2) &
"</font><font size='3' color='black'> by " &
ds.Tables(0).Rows(y).Item(4) &
"</font>
<font size='5' color='black'><img src='images/rup.png' style='Width:
17px; Height: 17px;' />" & ds.Tables(0).Rows(y).Item(15) & "</font><br />"
str = str & "<font size='3' color='blue'>" & ds.Tables(0).Rows(y).Item(1) &
"</font><br /><br />"
str = str & "<font size='5' color='black'>" & ds.Tables(0).Rows(y).Item(6) &
"</font> <font size='3'>in " & ds.Tables(0).Rows(y).Item(9) & "</font><br />"
str = str & "<font size='4' color='black'>Sq-ft Rate: Rs. " &
ds.Tables(0).Rows(y).Item(16) & "/-</font><br /><br />"
str = str & "<font size='4' color='black'>" & ds.Tables(0).Rows(y).Item(23) & "
| " & ds.Tables(0).Rows(y).Item(24) & " | Possession in " & ds.Tables(0).Rows(y).Item(25) &
"/" & ds.Tables(0).Rows(y).Item(26) & "</font><br />"
str = str & "<font size='4' color='black'><br />Covered Area: " &
ds.Tables(0).Rows(y).Item(11) & " " & ds.Tables(0).Rows(y).Item(12) & "</font>"
str = str & "</td>"
str = str & "</tr>"
str = str & "<tr><td colspan='2'><hr style='color:gray' /></td></tr>"
Next
str = str & "</table>"
lblres.Text = str
Else
lblerror.Text = "Properties not found."
lblres.Text = ""
End If
Catch ex As Exception
End Try
End If
Else
'Display products via QS.
Try
str = ""
connection_create()
da = New SqlDataAdapter("select * from PropertyDetails where typeofproperty=" &
category & " and locality=" & locality & " ", con)
ds = New DataSet
da.Fill(ds)
118
str = str & "<table style='Width:800px'>"
str = str & "<tr><td colspan='2' align='right'><font size='2' color='black'><br/>For
more details click on the property image.</font></td></tr>"
str = str & "<tr><td colspan='2'><hr style='color:gray' /></td></tr>"
For y = 0 To ds.Tables(0).Rows.Count - 1
End If
119
Next
str = str & "</table>"
lblres.Text = str
Else
lblerror.Text = "Properties not found."
lblres.Text = ""
End If
Catch ex As Exception
End Try
End If
End Sub
End Try
End Sub
End Class
SIGNIN.ASPX
120
<td>Password </td>
<td><asp:TextBox ID="txtpassword" class="txtbox" TextMode="Password"
runat="server"
MaxLength="20"></asp:TextBox></td>
</tr>
<tr>
<td align="right" colspan="2"><asp:LinkButton ID="btnforgotpassword"
runat="server"
PostBackUrl="~/FP.aspx">Forgot Password?</asp:LinkButton></td>
</tr>
<tr>
<td> </td>
<td><asp:Button ID="btnsignIn" runat="server" class="css_button1" Text="SignIn"
Width="266px" Height="37px" /></td>
</tr>
<tr>
<td align="center" colspan="2">
<br />
<h3>Don't have an Account? Click <a href="SignUp.aspx">HERE</a> to
Register.</h3>
</td>
</tr>
</table>
</center>
</div>
</div>
<!---End-content---->
</asp:Content>
SIGNIN.ASPX.VB
Imports System.Data.SqlClient
Imports System.Data.Sql
Imports System.Data
Imports ASP.global_asax
121
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles
Me.Load
Try
Dim e1 As String
Dim type As String
e1 = "" : type = ""
Try
e1 = Session("LoginId").ToString
type = Session("type").ToString
Catch ex As Exception
End Try
If type = "Admin" Then
Response.Redirect("Homeagent.aspx")
ElseIf type = "Member" Then
Response.Redirect("Homeuser.aspx")
End If
connection_create()
Catch ex As Exception
End Try
End Sub
122
txtpassword.Focus()
Else
Dim save As String
save = ds.Tables(0).Rows(0).Item(1)
If save = pass Then
'Show other page
Session("LoginId") = txtemailid.Text
Me.Session.Item("LoginPass") = txtpassword.Text
Me.Session.Item("type") = ds.Tables(0).Rows(0).Item(2)
Dim type As String = ds.Tables(0).Rows(0).Item(2)
If type = "Admin" Then
'MsgBox("Admin Login")
Response.Redirect("Homeadmin.aspx")
ElseIf type = "Member" Then
'MsgBox("Member Login")
Response.Redirect("Homeuser.aspx")
End If
Else
'error code
MsgBox("Either Username/password doesn't match.", MsgBoxStyle.Exclamation,
"")
txtpassword.Text = ""
txtpassword.Focus()
End If
End If
Else
MsgBox("Either Username/password is empty.", MsgBoxStyle.Exclamation, "")
End If
End Sub
End Class
SIGNUP.ASPX
123
<td colspan="2"><asp:ValidationSummary ID="ValidationSummary1" runat="server"
HeaderText="Please resolve the below page error to continue with account
creation"></asp:ValidationSummary></td>
</tr>
<tr align="left">
<td style="padding: 5px 5px; width: 180px;">Your Name</td>
<td style="padding: 5px 5px"><asp:TextBox ID="txtname" class="txtbox"
runat="server" MaxLength="50" Width="250px"></asp:TextBox></td>
</tr>
<tr align="left">
<td style="padding: 5px 5px; width: 180px;">Email ID</td>
<td style="padding: 5px 5px"><asp:TextBox ID="txtemailid" class="txtbox"
runat="server" MaxLength="40" Width="250px"></asp:TextBox></td>
</tr>
<tr align="left">
<td style="padding: 5px 5px; width: 180px;">Password</td>
<td style="padding: 5px 5px"><asp:TextBox ID="txtpassword" class="txtbox"
runat="server" TextMode="Password" MaxLength="20" Width="250px"></asp:TextBox></td>
</tr>
<tr align="left">
<td style="padding: 5px 5px; width: 180px;">Re-Enter Password</td>
<td style="padding: 5px 5px"><asp:TextBox ID="txtrepassword" class="txtbox"
runat="server" TextMode="Password" MaxLength="20" Width="250px"></asp:TextBox></td>
</tr>
<tr align="left">
<td style="padding: 5px 5px; width: 180px; height: 64px;">Unique Pin</td>
<td style="padding: 5px 5px; height: 64px;">
<asp:TextBox ID="txtpin" runat="server" TextMode="Password" class="txtbox"
MaxLength="4" Width="250px"></asp:TextBox><br />
<font size="3" color="black">Unique pin should be of 4 digits.<br />It will be use
to retirve your password.</font>
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px; width: 180px; height: 55px;">Spam Check*</td>
<td style="padding: 5px 5px; height: 55px;">
Please answer this simple question<br />
<asp:TextBox ID="txtans" runat="server" class="txtbox" placeholder=" 7 + 6 "
MaxLength="2" Width="250px"></asp:TextBox>
</td>
</tr>
<tr align="left">
<td colspan="2" style="padding: 5px 5px;">
<asp:CheckBox ID="chkpolicychk" Checked="true" runat="server" Text="I agree
to FindHomes privacy policy. <br />I would like to receive property related info via Email." />
<br />Privacy Policy
124
</td>
</tr>
<tr align="left">
<td></td>
<td style="padding:5px 5px" colspan="2">
<asp:Button ID="btnsubmit" runat="server" class="css_button1" Text="Register
Now" Height="37px" Width="257px"></asp:Button>
</td>
</tr>
</table>
125
</center>
</div>
</div>
<!---End-content---->
</asp:Content>
SIGNUP.ASPX.VB
Imports System.Net
Imports System.Net.Mail
Imports System.Data.SqlClient
Imports System.Data.Sql
Imports System.Data
Imports ASP.global_asax
126
For Each sss In arr
value = sss
Next
value = value + 1
End If
End Sub
Private Function EmailSending(ByVal tos As String, ByVal subject As String, ByVal message
As String)
Try
Dim Smtp_Server As New SmtpClient
Dim e_mail As New MailMessage()
Smtp_Server.UseDefaultCredentials = False
Smtp_Server.Credentials = New
Net.NetworkCredential("noreplyfindhomes1@gmail.com", "propertyiq12345")
Smtp_Server.Port = 587
Smtp_Server.EnableSsl = True
Smtp_Server.Host = "smtp.gmail.com"
Smtp_Server.Send(e_mail)
MsgBox("Account Created Successfully. An Email has sent to your id with login
credentials.", MsgBoxStyle.Information, "Email Sent")
Return 0
Catch ex As Exception
MsgBox("Account Created Successfully but Email Not Sent !!! " + vbCrLf + "Please
Check Your Network Connection", MsgBoxStyle.Information, "Internet Error")
Return 1
End Try
End Function
127
txtemailid.Text = ""
txtpassword.Text = ""
txtrepassword.Text = ""
txtans.Text = ""
txtname.Text = ""
txtemailid.Focus()
Exit Sub
Else
chkuser = True
End If
da = Nothing
ds = Nothing
End Sub
128
sChar = Mid$(txtpassword.Text, x, 1)
bASCII = Asc(sChar)
bASCII += 11
If bASCII > 255 Then
bASCII -= 11
End If
pass &= Chr(bASCII)
Next
Call autogenerate()
cmd = New SqlCommand
cmd.CommandType = CommandType.Text
cmd.Connection = con
Dim sqlq As String
sqlq = "insert into AccountDetails values('" & value & "','" & "M" & value & "','"
& txtname.Text & "','" & txtemailid.Text & "','" & pass & "','" & txtpin.Text & "','Member')"
cmd.CommandText = sqlq
cmd.ExecuteNonQuery()
cmd = Nothing
'Email coding
Try
Call EmailSending(txtemailid.Text, "New account information",
"Congratulations your account has been created successfully." & vbCrLf & vbCrLf & "You are
now the member of FindHomes.com ." & vbCrLf & "Your Login ID :" & txtemailid.Text &
vbCrLf & "Your Password is: " & txtpassword.Text & vbCrLf & "Reset pin: " & txtpin.Text)
Catch ex As Exception
End Try
Response.Redirect("SignIn.aspx")
chkuser = False
txtemailid.Text = ""
txtpin.Text = ""
txtname.Text = ""
txtans.Text = ""
End If
Else
MsgBox("The answer your provided is incorrect. Please try again.",
MsgBoxStyle.Information, "Incorrect Answer")
End If
Else
MsgBox("You must accept the policies of FindHomes. Please click on the check box.",
MsgBoxStyle.Information, "")
End If
End If
End Sub
129
Protected Sub CustomValidator1_ServerValidate(ByVal source As Object, ByVal args As
System.Web.UI.WebControls.ServerValidateEventArgs) Handles
CustomValidator1.ServerValidate
If IsNumeric(txtpin.Text) = False Then
args.IsValid = False
Exit Sub
Else
If Trim(Len(txtpin.Text)) < 4 Then
args.IsValid = False
Exit Sub
Else
args.IsValid = True
End If
End If
End Sub
End Class
SUBSADMIN.ASPX
130
<RowStyle BackColor="White" />
<FooterStyle BackColor="Lime" Font-Bold="True" ForeColor="White"
BorderColor="Lime" />
<PagerStyle BackColor="Lime" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True"
ForeColor="#333333" />
<HeaderStyle BackColor="Lime" Font-Bold="True" ForeColor="White" />
<EditRowStyle BackColor="#2461BF" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
</asp:Panel>
</center>
</div>
</div>
</div>
</asp:Content>
SUBSADMIN.ASPX.VB
Imports ASP.global_asax
Imports System.Data
Imports System.Data.SqlClient
131
GVSubs.DataBind()
SUBSCRIBE.ASPX
<%@ Page Language="VB" MasterPageFile="~/Master_Main.master"
AutoEventWireup="false" CodeFile="Subscribe.aspx.vb" Inherits="_Default" title="Subscribe"
%>
132
</table>
<asp:RequiredFieldValidator ID="rfv1" runat="server" ErrorMessage="Enter Email
Address." ControlToValidate="txtemailid"
Display="None"></asp:RequiredFieldValidator>
SUBSCRIBE.ASPX.VB
Imports ASP.global_asax
Imports System.Data
Imports System.Data.SqlClient
133
Dim val As Integer
Dim str As Integer
Dim i, count, value As Integer
value = value + 1
End If
End Sub
134
sqlq = "insert into Subscribers values(" & value & ",'" & txtemailid.Text & "')"
cmd = New SqlCommand
cmd.Connection = con
cmd.CommandText = sqlq
cmd.ExecuteNonQuery()
MsgBox("Congratulations! You are now subscribed with our updates and news.",
MsgBoxStyle.Information, "Success")
txtemailid.Text = ""
Response.Redirect("index.aspx")
End If
End If
End Sub
End Sub
End Class
SUBSCRIBEU.ASPX
135
<asp:RequiredFieldValidator ID="rfv1" runat="server" ErrorMessage="Enter Email
Address." ControlToValidate="txtemailid"
Display="None"></asp:RequiredFieldValidator>
SUBSCRIBE.ASPX.VB
Imports ASP.global_asax
Imports System.Data
Imports System.Data.SqlClient
value = value + 1
End If
End Sub
137
If Page.IsValid = True Then
'Check already subscribed.
connection_create()
da = New SqlDataAdapter("select * from Subscribers where emailid='" & txtemailid.Text
& "' ", con)
ds = New DataSet
da.Fill(ds)
If ds.Tables(0).Rows.Count > 0 Then
MsgBox("Email ID is already subscribed with us.", MsgBoxStyle.Information,
"Information")
Else
'Code to add email in DB.
autogenerate()
MsgBox("Congratulations! You are now subscribed with our updates and news.",
MsgBoxStyle.Information, "Success")
txtemailid.Text = ""
Response.Redirect("index.aspx")
End If
End If
End Sub
End Class
SUMMARY.ASPX
138
<table style="width: 80%">
<tr>
<td align="center" valign='top'>
<asp:Image ID="imgpic1" style="vertical-align:top;" runat="server"
Width="300" Height="300" ImageUrl="images/PropertyImages/na.jpg" /><br /><br />
<asp:ImageButton ID="imgbtn1" runat="server" Height="100" Width="100"
ImageUrl="images/PropertyImages/na.jpg" />
<asp:ImageButton ID="imgbtn2" runat="server" Height="100" Width="100"
ImageUrl="images/PropertyImages/na.jpg" />
<asp:ImageButton ID="imgbtn3" runat="server" Height="100" Width="100"
ImageUrl="images/PropertyImages/na.jpg" />
<asp:ImageButton ID="imgbtn4" runat="server" Height="100" Width="100"
ImageUrl="images/PropertyImages/na.jpg" />
</td>
<td valign='top'>
<asp:Label ID="lblcaption" runat="server" Text=""></asp:Label>
<asp:Label ID="lbldeveloper" runat="server" Text=""></asp:Label>
<asp:Label ID="lblprice" runat="server" Text=""></asp:Label><br />
<asp:Label ID="lblpropertyid" runat="server" Text=""></asp:Label>
<br /><br />
<asp:Label ID="lblproprietor" runat="server" Text=""></asp:Label><br /><br
/><br />
<asp:Label ID="lblcity" runat="server" Text=""></asp:Label><br /><br /><br />
<asp:Label ID="lblwanttoandtype" runat="server" Text=""></asp:Label><br
/><br /><br />
<asp:Label ID="lbltrantype" runat="server" Text=""></asp:Label><br /><br
/><br />
<asp:Label ID="lblpossession" runat="server" Text=""></asp:Label><br /><br
/><br />
<asp:Label ID="lblsqftrate" runat="server" Text=""></asp:Label><br /><br />
</td>
</tr>
<tr><td colspan="2"> <br /></td></tr>
<tr>
<td colspan="2" style="background-color:#FFFFCC"><font
size="4">Area</font></td>
</tr>
<tr><td colspan="2"> <br /></td></tr>
<tr>
<td colspan="2">
<asp:Label ID="lblcovered" runat="server" Text=""></asp:Label><br /><br />
<asp:Label ID="lblcarpet" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr><td colspan="2"> <br /></td></tr>
<tr>
139
<td colspan="2" style="background-color:#FFFFCC"><font size="4">Detailed
Features</font></td>
</tr>
<tr><td colspan="2"> <br /></td></tr>
<tr>
<td colspan="2">
<asp:Label ID="lblbedrooms" runat="server" Text=""></asp:Label><br /><br />
<asp:Label ID="lblbathrooms" runat="server" Text=""></asp:Label><br /><br />
<asp:Label ID="lblbalco" runat="server" Text=""></asp:Label><br /><br />
<asp:Label ID="lblfurnished" runat="server" Text=""></asp:Label><br /><br />
<asp:Label ID="lblfloor" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr><td colspan="2"> <br /></td></tr>
<tr>
<td colspan="2" style="background-color:#FFFFCC"><font size="4">Contact
Information</font></td>
</tr>
<tr><td colspan="2"> <br /></td></tr>
<tr>
<td colspan="2">
<asp:Label ID="lbladdress" runat="server" Text=""></asp:Label><br />
<asp:Label ID="lblsiteaddress" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr><td colspan="2"> <br /></td></tr>
<tr>
<td colspan="2" style="background-color:#FFFFCC"><font
size="4">Description</font></td>
</tr>
<tr>
<td colspan="2">
<asp:Label ID="lbldesc" runat="server" Text=""></asp:Label>
</td>
</tr>
</table>
<br /><br />
</p>
<h2>Upcoming sites/projects</h2>
<div class="clear"> </div>
<marquee>
<asp:Image ID="Image1" runat="server" ImageUrl="images/m1.jpg" style="border-
radius: 10px;" Width="500" Height="250"></asp:Image>
140
<asp:Image ID="Image2" runat="server" ImageUrl="images/m2.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image3" runat="server" ImageUrl="images/m3.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image4" runat="server" ImageUrl="images/m4.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image5" runat="server" ImageUrl="images/m5.jpg"
style="border-radius: 10px;" Height="250"></asp:Image>
</marquee>
</div>
</div>
</div>
</asp:Content>
SUMMARY.ASPX.VB
Imports ASP.global_asax
Imports System.Data
Imports System.Data.SqlClient
connection_create()
da = New SqlDataAdapter("select * from PropertyDetails where propertyid='" & pid & "' ", con)
ds = New DataSet
da.Fill(ds)
If ds.Tables(0).Rows.Count > 0 Then
lblres.Text = ds.Tables(0).Rows(0).Item(2)
141
If ds.Tables(0).Rows(0).Item(28) <> "" Then
imgpic1.ImageUrl = "images/PropertyImages/" & ds.Tables(0).Rows(0).Item(28)
ElseIf ds.Tables(0).Rows(0).Item(29) <> "" Then
imgpic1.ImageUrl = "images/PropertyImages/" & ds.Tables(0).Rows(0).Item(29)
ElseIf ds.Tables(0).Rows(0).Item(30) <> "" Then
imgpic1.ImageUrl = "images/PropertyImages/" & ds.Tables(0).Rows(0).Item(30)
ElseIf ds.Tables(0).Rows(0).Item(31) <> "" Then
imgpic1.ImageUrl = "images/PropertyImages/" & ds.Tables(0).Rows(0).Item(31)
Else
imgpic1.ImageUrl = "images/PropertyImages/na.jpg"
End If
lblwanttoandtype.Text = "<font size='4'>" & ds.Tables(0).Rows(0).Item(6) & " | Property for "
& ds.Tables(0).Rows(0).Item(5) & "</font>"
142
lbltrantype.Text = "<font size='4'>Transaction Type: " & ds.Tables(0).Rows(0).Item(23) &
"</font>"
lblpossession.Text = "<font size='4'>" & ds.Tables(0).Rows(0).Item(24) & " | Possession on " &
ds.Tables(0).Rows(0).Item(25) & "/" & ds.Tables(0).Rows(0).Item(26) & "</font>"
lblsqftrate.Text = "<font size='4'>Rate per SQ-FT: Rs. " & ds.Tables(0).Rows(0).Item(16) & "/-
</font>"
lblcovered.Text = "<font size='3'>Covered Area: " & ds.Tables(0).Rows(0).Item(11) & " " &
ds.Tables(0).Rows(0).Item(12) & "</font>"
lblcarpet.Text = "<font size='3'>Carpet Area: " & ds.Tables(0).Rows(0).Item(13) & " " &
ds.Tables(0).Rows(0).Item(14) & "</font>"
143
Dim a As String = ""
a = imgbtn3.ImageUrl
imgpic1.ImageUrl = a
End Sub
SUMMARYUSER.ASPX
144
<asp:Label ID="lblpropertyid" runat="server" Text=""></asp:Label>
<br /><br />
<asp:Label ID="lblproprietor" runat="server" Text=""></asp:Label><br /><br
/><br />
<asp:Label ID="lblcity" runat="server" Text=""></asp:Label><br /><br /><br />
<asp:Label ID="lblwanttoandtype" runat="server" Text=""></asp:Label><br
/><br /><br />
<asp:Label ID="lbltrantype" runat="server" Text=""></asp:Label><br /><br
/><br />
<asp:Label ID="lblpossession" runat="server" Text=""></asp:Label><br /><br
/><br />
<asp:Label ID="lblsqftrate" runat="server" Text=""></asp:Label><br /><br />
</td>
</tr>
<tr><td colspan="2"> <br /></td></tr>
<tr>
<td colspan="2" style="background-color:#FFFFCC"><font
size="4">Area</font></td>
</tr>
<tr><td colspan="2"> <br /></td></tr>
<tr>
<td colspan="2">
<asp:Label ID="lblcovered" runat="server" Text=""></asp:Label><br /><br />
<asp:Label ID="lblcarpet" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr><td colspan="2"> <br /></td></tr>
<tr>
<td colspan="2" style="background-color:#FFFFCC"><font size="4">Detailed
Features</font></td>
</tr>
<tr><td colspan="2"> <br /></td></tr>
<tr>
<td colspan="2">
<asp:Label ID="lblbedrooms" runat="server" Text=""></asp:Label><br /><br />
<asp:Label ID="lblbathrooms" runat="server" Text=""></asp:Label><br /><br />
<asp:Label ID="lblbalco" runat="server" Text=""></asp:Label><br /><br />
<asp:Label ID="lblfurnished" runat="server" Text=""></asp:Label><br /><br />
<asp:Label ID="lblfloor" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr><td colspan="2"> <br /></td></tr>
<tr>
<td colspan="2" style="background-color:#FFFFCC"><font size="4">Contact
Information</font></td>
</tr>
145
<tr><td colspan="2"> <br /></td></tr>
<tr>
<td colspan="2">
<asp:Label ID="lbladdress" runat="server" Text=""></asp:Label><br />
<asp:Label ID="lblsiteaddress" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr><td colspan="2"> <br /></td></tr>
<tr>
<td colspan="2" style="background-color:#FFFFCC"><font
size="4">Description</font></td>
</tr>
<tr>
<td colspan="2">
<asp:Label ID="lbldesc" runat="server" Text=""></asp:Label>
</td>
</tr>
</table>
<br /><br />
</p>
<h2>Upcoming sites/projects</h2>
<div class="clear"> </div>
<marquee>
<asp:Image ID="Image1" runat="server" ImageUrl="images/m1.jpg" style="border-
radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image2" runat="server" ImageUrl="images/m2.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image3" runat="server" ImageUrl="images/m3.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image4" runat="server" ImageUrl="images/m4.jpg"
style="border-radius: 10px;" Width="500" Height="250"></asp:Image>
<asp:Image ID="Image5" runat="server" ImageUrl="images/m5.jpg"
style="border-radius: 10px;" Height="250"></asp:Image>
</marquee>
</div>
</div>
</div>
</asp:Content>
SUMMARYUSER.ASPX.VB
Imports ASP.global_asax
Imports System.Data
146
Imports System.Data.SqlClient
connection_create()
da = New SqlDataAdapter("select * from PropertyDetails where propertyid='" & pid &
"' ", con)
ds = New DataSet
da.Fill(ds)
If ds.Tables(0).Rows.Count > 0 Then
lblres.Text = ds.Tables(0).Rows(0).Item(2)
147
imgbtn1.ImageUrl = "images/PropertyImages/" & ds.Tables(0).Rows(0).Item(28)
End If
If ds.Tables(0).Rows(0).Item(29) <> "" Then
imgbtn2.ImageUrl = "images/PropertyImages/" & ds.Tables(0).Rows(0).Item(29)
End If
If ds.Tables(0).Rows(0).Item(30) <> "" Then
imgbtn3.ImageUrl = "images/PropertyImages/" & ds.Tables(0).Rows(0).Item(30)
End If
If ds.Tables(0).Rows(0).Item(31) <> "" Then
imgbtn4.ImageUrl = "images/PropertyImages/" & ds.Tables(0).Rows(0).Item(31)
End If
148
lblcovered.Text = "<font size='3'>Covered Area: " & ds.Tables(0).Rows(0).Item(11)
& " " & ds.Tables(0).Rows(0).Item(12) & "</font>"
lblcarpet.Text = "<font size='3'>Carpet Area: " & ds.Tables(0).Rows(0).Item(13) &
" " & ds.Tables(0).Rows(0).Item(14) & "</font>"
149
Protected Sub imgbtn4_Click(ByVal sender As Object, ByVal e As
System.Web.UI.ImageClickEventArgs) Handles imgbtn4.Click
Dim a As String = ""
a = imgbtn4.ImageUrl
imgpic1.ImageUrl = a
End Sub
End Class
UPLOADADS.ASPX
<tr align="left">
<td style="padding: 5px 5px">Caption</td>
<td style="padding: 5px 5px" align="center">
150
<asp:TextBox ID="txtcaption" class="txtbox" runat="server" MaxLength="50"
Width="252px"></asp:TextBox>
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Builder Name</td>
<td style="padding: 5px 5px" align="center">
<asp:TextBox ID="txtBuilder" class="txtbox" runat="server" MaxLength="50"
Width="252px"></asp:TextBox>
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Builder Company Name</td>
<td style="padding: 5px 5px" align="center">
<asp:TextBox ID="txtBuilderComp" class="txtbox" runat="server"
MaxLength="50" Width="252px"></asp:TextBox>
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">I want to</td>
<td style="padding: 5px 5px" align="center">
<asp:RadioButton ID="radsale" runat="server" Text="Sale" Checked="True"
GroupName="prop" />
<asp:RadioButton ID="radrentout" runat="server" Text="Rent Out"
GroupName="prop" />
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Type of property</td>
<td style="padding: 5px 5px" align="center">
<asp:DropDownList ID="ddltypeofproperty" runat="server" class="txtbox"
Width="253px" Height="30px">
<asp:ListItem>Multistorey Apartment</asp:ListItem>
<asp:ListItem>Builder Floor Apartment</asp:ListItem>
<asp:ListItem>Residental House</asp:ListItem>
<asp:ListItem>Villa</asp:ListItem>
<asp:ListItem>Penthouse</asp:ListItem>
<asp:ListItem>Studio Apartment</asp:ListItem>
<asp:ListItem>Office IT Park</asp:ListItem>
<asp:ListItem>Commercial Shop</asp:ListItem>
<asp:ListItem>Commercial Showroom</asp:ListItem>
<asp:ListItem>Commercial Land</asp:ListItem>
151
<asp:ListItem>Warehouse</asp:ListItem>
<asp:ListItem>Other</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Office/Home Address</td>
<td style="padding: 5px 5px" align="center">
<asp:TextBox ID="txtaddress" class="txtbox" runat="server" MaxLength="200"
Height="100px" TextMode="MultiLine" Width="250px"></asp:TextBox>
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Site Address</td>
<td style="padding: 5px 5px" align="center">
<asp:TextBox ID="txtsiteaddress" class="txtbox" runat="server"
MaxLength="200" Height="100px" TextMode="MultiLine" Width="250px"></asp:TextBox>
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">City</td>
<td style="padding: 5px 5px" align="center">
<asp:DropDownList ID="ddlcity" runat="server" Width="253px" Height="30px"
class="txtbox">
<asp:ListItem>Mumbai (Bombay)</asp:ListItem>
<asp:ListItem>Pune</asp:ListItem>
<asp:ListItem>Nagpur</asp:ListItem>
<asp:ListItem>Thane</asp:ListItem>
<asp:ListItem>Pimpri-Chinchwad</asp:ListItem>
<asp:ListItem>Nashik</asp:ListItem>
<asp:ListItem>Kalyan-Dombivali</asp:ListItem>
<asp:ListItem>Vasai-Virar</asp:ListItem>
<asp:ListItem>Aurangabad</asp:ListItem>
<asp:ListItem>Navi Mumbai</asp:ListItem>
<asp:ListItem>Solapur</asp:ListItem>
<asp:ListItem>Bhiwandi</asp:ListItem>
<asp:ListItem>Amravati</asp:ListItem>
<asp:ListItem>Nanded</asp:ListItem>
<asp:ListItem>Kolhapur</asp:ListItem>
<asp:ListItem>Sangli</asp:ListItem>
<asp:ListItem>Jalgaon</asp:ListItem>
<asp:ListItem>Akola</asp:ListItem>
<asp:ListItem>Latur</asp:ListItem>
152
<asp:ListItem>Dhule</asp:ListItem>
<asp:ListItem>Ahmednagar</asp:ListItem>
<asp:ListItem>Chandrapur</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Locality</td>
<td style="padding: 5px 5px" align="center">
<asp:TextBox ID="txtlocality" class="txtbox" runat="server" MaxLength="50"
Width="252px"></asp:TextBox>
</td>
</tr>
<tr align="left">
<td colspan="2" align="center">
<font color="#0066ff" size="5">Area</font><br />
<hr style="color:Gray" />
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Covered Area</td>
<td style="padding: 5px 5px" align="center">
<asp:TextBox ID="txtcoveredarea" class="txtbox" runat="server"
MaxLength="50" Width="148px"></asp:TextBox>
<asp:DropDownList ID="ddlcoveredarea" runat="server" Width="100px"
Height="30px" class="txtbox">
<asp:ListItem>Sq-ft</asp:ListItem>
<asp:ListItem>Sq-yrd</asp:ListItem>
<asp:ListItem>Sq-m</asp:ListItem>
<asp:ListItem>Cent</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Carpet Area</td>
<td style="padding: 5px 5px" align="center">
<asp:TextBox ID="txtcarpetarea" class="txtbox" runat="server"
MaxLength="50" Width="148px"></asp:TextBox>
<asp:DropDownList ID="ddlcarpetarea" runat="server" Width="100px"
Height="30px" class="txtbox">
<asp:ListItem>Sq-ft</asp:ListItem>
<asp:ListItem>Sq-yrd</asp:ListItem>
153
<asp:ListItem>Sq-m</asp:ListItem>
<asp:ListItem>Cent</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr align="left">
<td colspan="2" align="center">
<font color="#0066ff" size="5">Sale Price</font><br />
<hr style="color:Gray" />
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Expected Price (INR)</td>
<td style="padding: 5px 5px" align="center">
<asp:TextBox ID="txtexprice" class="txtbox" runat="server" MaxLength="50"
Width="252px"></asp:TextBox>
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Price per Sq-ft (INR)</td>
<td style="padding: 5px 5px" align="center">
<asp:TextBox ID="txtpricesqft" class="txtbox" runat="server" MaxLength="50"
Width="252px"></asp:TextBox>
</td>
</tr>
<tr align="left">
<td colspan="2" align="center">
<font color="#0066ff" size="5">Property Features</font><br />
<hr style="color:Gray" />
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">No. of Bedrooms</td>
<td style="padding: 5px 5px" align="center">
<asp:DropDownList ID="ddlbedrooms" runat="server" Width="253px"
Height="30px" class="txtbox">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem>4</asp:ListItem>
<asp:ListItem>5</asp:ListItem>
154
<asp:ListItem>6</asp:ListItem>
<asp:ListItem>7</asp:ListItem>
<asp:ListItem>8</asp:ListItem>
<asp:ListItem>9</asp:ListItem>
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>11</asp:ListItem>
<asp:ListItem>12</asp:ListItem>
<asp:ListItem>>12</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">No. of Bathrooms</td>
<td style="padding: 5px 5px" align="center">
<asp:DropDownList ID="ddlbathrooms" runat="server" Width="253px"
Height="30px" class="textbox">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem>4</asp:ListItem>
<asp:ListItem>5</asp:ListItem>
<asp:ListItem>>5</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">No. of Balconies (Optional)</td>
<td style="padding: 5px 5px" align="center">
<asp:DropDownList ID="ddlbalconies" runat="server" Width="253px"
Height="30px" class="txtbox">
<asp:ListItem>0</asp:ListItem>
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem>4</asp:ListItem>
<asp:ListItem>5</asp:ListItem>
<asp:ListItem>>5</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Is your property</td>
<td style="padding: 5px 5px" align="center">
155
<asp:DropDownList ID="ddlfurnished" runat="server" Width="253px"
Height="30px" class="txtbox">
<asp:ListItem>--Furnished Status--</asp:ListItem>
<asp:ListItem>Furnished</asp:ListItem>
<asp:ListItem>Unurnished</asp:ListItem>
<asp:ListItem>Semi-Furnished</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Floor No of your property</td>
<td style="padding: 5px 5px" align="center">
<asp:DropDownList ID="ddlfloornumberofproperty" runat="server"
Width="253px" Height="30px" class="txtbox">
</asp:DropDownList>
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Total Floors in your building</td>
<td style="padding: 5px 5px" align="center">
<asp:DropDownList ID="ddltotalfloors" runat="server" Width="253px"
Height="30px" class="txtbox">
</asp:DropDownList>
</td>
</tr>
<tr align="left">
<td colspan="2" align="center">
<font color="#0066ff" size="5">Transaction Type , Property Availability or Age
of Construction</font><br />
<hr style="color:Gray" />
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Transaction Type</td>
<td style="padding: 5px 5px" align="center">
<asp:DropDownList ID="ddltransactiontype" runat="server" Width="253px"
Height="30px" class="txtbox">
<asp:ListItem>New Property</asp:ListItem>
<asp:ListItem>Resale</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
156
<tr align="left">
<td style="padding: 5px 5px">Possession Status</td>
<td style="padding: 5px 5px" align="center">
<asp:DropDownList ID="ddlpossession" runat="server" Width="253px"
Height="30px"
class="txtbox">
<asp:ListItem>Under Construction</asp:ListItem>
<asp:ListItem>Ready to move</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Available from</td>
<td style="padding: 5px 5px" align="center">
<asp:DropDownList ID="ddlavailmonth" runat="server" Width="118px"
Height="30px" class="txtbox">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem>4</asp:ListItem>
<asp:ListItem>5</asp:ListItem>
<asp:ListItem>6</asp:ListItem>
<asp:ListItem>7</asp:ListItem>
<asp:ListItem>8</asp:ListItem>
<asp:ListItem>9</asp:ListItem>
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>11</asp:ListItem>
<asp:ListItem>12</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddlavailyear" runat="server" Width="128px"
Height="30px" class="txtbox">
<asp:ListItem>2018</asp:ListItem>
<asp:ListItem>2019</asp:ListItem>
<asp:ListItem>2020</asp:ListItem>
<asp:ListItem>2021</asp:ListItem>
<asp:ListItem>2022</asp:ListItem>
<asp:ListItem>2023</asp:ListItem>
<asp:ListItem>2024</asp:ListItem>
<asp:ListItem>2025</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
157
<tr align="left">
<td colspan="2" align="center">
<font color="#0066ff" size="5">Description</font><br />
<hr style="color:Gray" />
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Add details of your property</td>
<td style="padding: 5px 5px" align="center">
<asp:TextBox ID="txtdesc" class="txtbox" runat="server" MaxLength="400"
Height="150px" TextMode="MultiLine" Width="252px"
placeholder="Eg: 3 BHK comfortable flat with 2 attached bathrooms located in
Mayur Vihar Phase I, Mumbai. 2 minutes walking distance from metro station, Schools, Star
City Mall and markets are located nearby."></asp:TextBox>
</td>
</tr>
<tr align="left">
<td colspan="2" align="center">
<font color="#0066ff" size="5">Upload pictures</font><br />
<hr style="color:Gray" />
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Picture 1</td>
<td style="padding: 5px 5px" align="center">
<asp:FileUpload ID="fupic1" runat="server" />
<br />
<asp:LinkButton ID="lblpic1" runat="server" Font-Bold="True"
Font-Size="X-Small" ForeColor="Blue"></asp:LinkButton>
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Picture 2</td>
<td style="padding: 5px 5px" align="center">
<asp:FileUpload ID="fupic2" runat="server" />
<br />
<asp:LinkButton ID="lblpic2" runat="server" Font-Bold="True"
Font-Size="X-Small" ForeColor="Blue"></asp:LinkButton>
</td>
</tr>
<tr align="left">
158
<td style="padding: 5px 5px">Picture 3</td>
<td style="padding: 5px 5px" align="center">
<asp:FileUpload ID="fupic3" runat="server" />
<br />
<asp:LinkButton ID="lblpic3" runat="server" Font-Bold="True"
Font-Size="X-Small" ForeColor="Blue"></asp:LinkButton>
</td>
</tr>
<tr align="left">
<td style="padding: 5px 5px">Picture 4</td>
<td style="padding: 5px 5px" align="center">
<asp:FileUpload ID="fupic4" runat="server" />
<br />
<asp:LinkButton ID="lblpic4" runat="server" Font-Bold="True"
Font-Size="X-Small" ForeColor="Blue"></asp:LinkButton>
</td>
</tr>
<tr align="left">
<td colspan="2" style="padding: 5px 5px">
<br />
<asp:CheckBox ID="chkterms" runat="server"
Text="I am the owner/I have the authority to post this property.I agree not to
provide incorrect property information or state a discriminatory preference.In case, the
information does not comply with FindHomes terms, FindHomes.com has the right to
edit/remove the property from their site."
Checked="True" Enabled="False" />
</td>
</tr>
<tr align="left">
<td colspan="2" align="center" style="padding: 5px 5px">
<asp:Button ID="btnsave" runat="server" Text="Submit Now" Width="252px"
class="css_button1" Height="37px"></asp:Button>
</td>
</tr>
<tr align="left">
<td colspan="2">
<asp:RequiredFieldValidator ID="rfv1" runat="server"
ErrorMessage="Enter Caption." ControlToValidate="txtcaption"
Display="None"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="rfv2" runat="server"
ErrorMessage="Ener Builder Name." ControlToValidate="txtBuilder"
Display="None"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="rfv3" runat="server"
159
ErrorMessage="Enter Developer Company Name."
ControlToValidate="txtBuilderComp"
Display="None"></asp:RequiredFieldValidator>
UPLOADADS.ASPX.VB
Imports ASP.global_asax
Imports System.Data
Imports System.Data.SqlClient
160
Partial Class _Default
Inherits System.Web.UI.Page
Dim cmd As SqlCommand
Dim da As SqlDataAdapter
Dim ds As DataSet
Dim val As Integer
Dim str As Integer
Dim i, count, value As Integer
'Fill DDL's
ddlfloornumberofproperty.Items.Clear()
ddltotalfloors.Items.Clear()
ddlfloornumberofproperty.Items.Add("-2")
ddlfloornumberofproperty.Items.Add("-1")
ddlfloornumberofproperty.Items.Add("0")
For x = 1 To 200
ddlfloornumberofproperty.Items.Add(x)
ddltotalfloors.Items.Add(x)
Next
161
End If
End If
End Sub
radsale.Enabled = True
radrentout.Enabled = True
ddltypeofproperty.Enabled = True
txtaddress.Enabled = True
txtsiteaddress.Enabled = True
ddlcity.Enabled = True
txtlocality.Enabled = True
txtcoveredarea.Enabled = True
ddlcoveredarea.Enabled = True
txtcarpetarea.Enabled = True
ddlcarpetarea.Enabled = True
txtexprice.Enabled = True
txtpricesqft.Enabled = True
ddlbedrooms.Enabled = True
ddlbathrooms.Enabled = True
ddlbalconies.Enabled = True
ddlfurnished.Enabled = True
ddlfloornumberofproperty.Enabled = True
ddltotalfloors.Enabled = True
ddltransactiontype.Enabled = True
ddlpossession.Enabled = True
ddlavailmonth.Enabled = True
ddlavailyear.Enabled = True
txtdesc.Enabled = True
fupic1.Enabled = True
fupic2.Enabled = True
fupic3.Enabled = True
162
fupic4.Enabled = True
End Sub
radsale.Enabled = False
radrentout.Enabled = False
ddltypeofproperty.Enabled = False
txtaddress.Enabled = False
txtsiteaddress.Enabled = False
ddlcity.Enabled = False
txtlocality.Enabled = False
txtcoveredarea.Enabled = False
ddlcoveredarea.Enabled = False
txtcarpetarea.Enabled = False
ddlcarpetarea.Enabled = False
txtexprice.Enabled = False
txtpricesqft.Enabled = False
ddlbedrooms.Enabled = False
ddlbathrooms.Enabled = False
ddlbalconies.Enabled = False
ddlfurnished.Enabled = False
ddlfloornumberofproperty.Enabled = False
ddltotalfloors.Enabled = False
ddltransactiontype.Enabled = False
ddlpossession.Enabled = False
ddlavailmonth.Enabled = False
ddlavailyear.Enabled = False
txtdesc.Enabled = False
fupic1.Enabled = False
fupic2.Enabled = False
fupic3.Enabled = False
fupic4.Enabled = False
163
End Sub
radsale.Checked = True
radrentout.Checked = False
ddltypeofproperty.SelectedIndex = 0
txtaddress.Text = ""
txtsiteaddress.Text = ""
ddlcity.SelectedIndex = 0
txtlocality.Text = ""
txtcoveredarea.Text = ""
ddlcoveredarea.SelectedIndex = 0
txtcarpetarea.Text = ""
ddlcarpetarea.SelectedIndex = 0
txtexprice.Text = ""
txtpricesqft.Text = ""
ddlbedrooms.SelectedIndex = 0
ddlbathrooms.SelectedIndex = 0
ddlbalconies.SelectedIndex = 0
ddlfurnished.SelectedIndex = 0
ddlfloornumberofproperty.SelectedIndex = 0
ddltotalfloors.SelectedIndex = 0
ddltransactiontype.SelectedIndex = 0
ddlpossession.SelectedIndex = 0
ddlavailmonth.SelectedIndex = 0
ddlavailyear.SelectedIndex = 0
txtdesc.Text = ""
fupic1.Dispose()
fupic2.Dispose()
fupic3.Dispose()
fupic4.Dispose()
164
'imgphoto.ImageUrl = "~/images/products/NAvail.jpg"
Catch ex As Exception
End Try
End Sub
value = value + 1
End If
End Sub
165
If ds.Tables(0).Rows(0).Item(5) = "Sale" Then
radsale.Checked = True
ElseIf ds.Tables(0).Rows(0).Item(5) = "Rent Out" Then
radrentout.Checked = True
End If
ddltypeofproperty.Text = ds.Tables(0).Rows(0).Item(6)
txtaddress.Text = ds.Tables(0).Rows(0).Item(7)
txtsiteaddress.Text = ds.Tables(0).Rows(0).Item(8)
ddlcity.Text = ds.Tables(0).Rows(0).Item(9)
txtlocality.Text = ds.Tables(0).Rows(0).Item(10)
txtcoveredarea.Text = ds.Tables(0).Rows(0).Item(11)
ddlcoveredarea.Text = ds.Tables(0).Rows(0).Item(12)
txtcarpetarea.Text = ds.Tables(0).Rows(0).Item(13)
ddlcarpetarea.Text = ds.Tables(0).Rows(0).Item(14)
txtexprice.Text = ds.Tables(0).Rows(0).Item(15)
txtpricesqft.Text = ds.Tables(0).Rows(0).Item(16)
ddlbedrooms.Text = ds.Tables(0).Rows(0).Item(17)
ddlbathrooms.Text = ds.Tables(0).Rows(0).Item(18)
ddlbalconies.Text = ds.Tables(0).Rows(0).Item(19)
ddlfurnished.Text = ds.Tables(0).Rows(0).Item(20)
ddlfloornumberofproperty.Text = ds.Tables(0).Rows(0).Item(21)
ddltotalfloors.Text = ds.Tables(0).Rows(0).Item(22)
ddltransactiontype.Text = ds.Tables(0).Rows(0).Item(23)
ddlpossession.Text = ds.Tables(0).Rows(0).Item(24)
ddlavailmonth.Text = ds.Tables(0).Rows(0).Item(25)
ddlavailyear.Text = ds.Tables(0).Rows(0).Item(26)
txtdesc.Text = ds.Tables(0).Rows(0).Item(27)
'Images
If ds.Tables(0).Rows(0).Item(28) <> "" Then
lblpic1.Text = ds.Tables(0).Rows(0).Item(28)
End If
166
If ds.Tables(0).Rows(0).Item(30) <> "" Then
lblpic3.Text = ds.Tables(0).Rows(0).Item(30)
End If
167
fupic3.SaveAs(Server.MapPath("~") & "/images/PropertyImages/" & lblid.Text &
"c.jpg")
p3 = lblid.Text & "c.jpg"
Else
p3 = ""
End If
sqlq = "Insert into PropertyDetails values(" & value & ",'" & lblid.Text & "','" &
txtcaption.Text & "','" & txtBuilder.Text & "', '" & txtBuilderComp.Text & "', '" & rad & "', '" &
ddltypeofproperty.Text & "', '" & txtaddress.Text & "', '" & txtsiteaddress.Text & "', '" &
ddlcity.Text & "', '" & txtlocality.Text & "', '" & txtcoveredarea.Text & "', '" &
ddlcoveredarea.Text & "', '" & txtcarpetarea.Text & "', '" & ddlcarpetarea.Text & "', '" &
txtexprice.Text & "', '" & txtpricesqft.Text & "', '" & ddlbedrooms.Text & "', '" &
ddlbathrooms.Text & "', '" & ddlbalconies.Text & "', '" & ddlfurnished.Text & "', '" &
ddlfloornumberofproperty.Text & "', '" & ddltotalfloors.Text & "', '" & ddltransactiontype.Text
& "', '" & ddlpossession.Text & "', '" & ddlavailmonth.Text & "', '" & ddlavailyear.Text & "', '" &
txtdesc.Text & "', '" & p1 & "', '" & p2 & "', '" & p3 & "', '" & p4 & "', '" & email & "')"
cmd = New SqlCommand
cmd.Connection = con
cmd.CommandText = sqlq
cmd.ExecuteNonQuery()
'imgphoto.ImageUrl = "~/images/products/" + lblid.Text + ".jpg"
168
MsgBox("Your Advertisement has been submitted. It will be activated soon.",
MsgBoxStyle.Information, "Success")
Else
'update code
169
sqlq = "update PropertyDetails set caption='" & txtcaption.Text & "',buildername='" &
txtBuilder.Text & "',buildercompname='" & txtBuilderComp.Text & "',wantto='" & rad &
"',typeofproperty='" & ddltypeofproperty.Text & "',officehomeaddress='" & txtaddress.Text &
"',siteaddress='" & txtsiteaddress.Text & "',city='" & ddlcity.Text & "',locality='" &
txtlocality.Text & "',coveredarea='" & txtcoveredarea.Text & "',coveredareatype='" &
ddlcoveredarea.Text & "',carpetarea='" & txtcarpetarea.Text & "',carpetareatype='" &
ddlcarpetarea.Text & "',expectedprice='" & txtexprice.Text & "',pricepersqft='" &
txtpricesqft.Text & "',noofbedrooms='" & ddlbedrooms.Text & "',noofbathrooms='" &
ddlbathrooms.Text & "',noofbalconies='" & ddlbalconies.Text & "',furnished='" &
ddlfurnished.Text & "',floorno='" & ddlfloornumberofproperty.Text & "',totalfloors='" &
ddltotalfloors.Text & "',transactiontype='" & ddltransactiontype.Text & "',possessionstatus='" &
ddlpossession.Text & "',availfrommonth='" & ddlavailmonth.Text & "',availfromyear='" &
ddlavailyear.Text & "',description='" & txtdesc.Text & "' where propertyid='" & lblid.Text & "' "
cmd = New SqlCommand
cmd.Connection = con
cmd.CommandText = sqlq
cmd.ExecuteNonQuery()
170
sqlq = "update PropertyDetails set picture4='" & lblid.Text & "d.jpg" & "' where
propertyid='" & lblid.Text & "'"
cmd = New SqlCommand
cmd.Connection = con
cmd.CommandText = sqlq
cmd.ExecuteNonQuery()
End If
End If
clear()
lblid.Text = "Not Available"
disable()
btnnew.Enabled = True
btnsave.Enabled = False
Session("save") = ""
Response.Redirect("UploadAds.aspx")
Catch ex As Exception
End Try
End Sub
171
DATA ENTRY SCREENS
1.HOME PAGE
172
2.SUBCRIBE PAGE
173
2.ABOUT US
3.CONTACT US
174
4.LOGIN PAGE
175
5.REGISTRATION FORM
176
6.USER PROFILE
7.UPLOAD ADS
177
7. MY ADS
178
8.REPORTS
179
Test
Cases,Test
Data
180
What is Test Case?
“A Test Case has a component that describe an input, action or event expected response, to
determine if a feature of an application is working correctly.”
Software testing can be stated as the process of validating and verifying that a computer
program/application/product:
181
Test Case
Purpose: Short sentence or two about the aspect of the system is being
tested. If this gets too long break the test case up or put more
information into descrition.
Assumptions Assumptions that must be met before the test case can be run.
: Example “Logged In”, “guest login allowed” ,
“user testuser exits”.
Test Data: List of variables and possible values used in the test case. You
cal list specific values or describe value ranges. The test case
should be performed once for each combination
Of values. These values written in set notation one per line.
E.g; LoginId{Valid login, invalid login,login empty}
Steps: Steps to carry out the test. See step formatting rules below:
1. Visit Login page
2. Enter User Name
3. Enter Password
4. Click Login
182
pls enter email
2 3 fr pls enter valid pwd
3 pls enter valid email….
Comments: If username and password are correctly entered only then you
will be taken to next page.
183
layout and image and msgbox…
184
Reports
Layout
185
References
And
Bibliography
186
References
Murach’s Visual Basic 2008
College Practical
Integrated Approach to Software
Engineering
187
188