REAL-ESTATE WEBSITE

A PROJECT REPORT
Submitted in partial fulfillment to complete the 6th Semester. Of

BACHELOR OF COMPUTER APPLICATIONS
By

TUSHAR JAISWAL
(Enrollment Number: 05821202009)

Department of Computer Science Maharaja Surajmal Institute C – 4, Janakpuri, New Delhi - 110058
May – 2012

ii

Candidate’s Declaration

I, Tushar Jaiswal Enrollment number 05821202009 , hereby declare that the work which is being presented in the project report entitled “ Real – Estate Website” in partial fulfillment of the requirement to complete the 5 th semester of “Bachelor of Computer Applications” submitted in Maharaja Surajmal Institute, C – 4, Janakpuri, New Delhi – 58, is an authentic record of my work carried out during the period from 20 February 2012 to 17 April 2012 under the guidance of Mr. Harjender Singh Assistant Professor, Department Of Computer Science, Maharaja Surajmal Institute. The matter embodied in this report has not been submitted by me for the award of any other degree.

Tushar Jaiswal Enrollment Number - 05821202009 B.C.A. VI SEM Department of Computer Science Maharaja Surajmal Institute C – 4, Janakpuri, New Delhi – 58

CERTIFICATE

This is to certify that the above statement made by the candidate is correct to the best of our knowledge.

Harjendar Singh Assistant Professor Deptt. Of Computer Science Maharaja Surajmal Institute C – 4, Janakpuri, New Delhi

i

Finally. for giving me an opportunity to undertake this project. I am highly indebted to Maharaja Surajmal Institute for providing me with such a intellectual platform and support to carry out my project work successfully. Mr. which helped me in completing the project work. I wish to express my deep sense of gratitude to. VI SEM ii . The beatitude. I express my heartfelt thanks and gratitude to the director of the institute Prof. yet importantly. my friends for their help and wishes for the successful completion of this project.Acknowledgement ACKNOWLEDGEMENT I take this opportunity to express my profound sense of gratitude and respect to all those who helped me throughout the duration of my project. Assistant Professor. Harjendar Singh.05821202009 B. Tushar Jaiswal Enrollment Number . Words are inadequate in offering thanks to all my teachers for their constant guidance and support throughout this project work. bliss and euphoria that accompany the successful completion of any task would not be completed without the expression of appreciation of simple gratitude to the organization and people who made it possible. Chhillar.A. I would like to express my heartfelt thanks to my beloved parents for their blessings. Maharaja Surajmal Institute for his able guidance and useful suggestions. in time. Azad S.C.

Contents CONTENTS DECLARATION -----------------------------------------------------------------i CERTIFICATE-------------------------------------------------------------------i ACKNOWLEDGEMENT----------------------------------------------------.3 Entity Relationship Diagram Chapter 4: Testing ---------------------------------------------------------------------31 4.2 System Design 2.ii Chapters Page Numbers Chapter 1: Introduction ----------------------------------------------------------------1 1.2 Objectives 1.2 Test Levels 4.3 Table Structure Chapter 3: Flow Charts and DFDS -------------------------------------------------22 3.2 Future Scope of the system iii .1 User Forms Chapter 6: Conclusion ----------------------------------------------------------------57 6.3 Scope of Project Chapter 2: Design and Implementation --------------------------------------------10 2.3 Testing Methods 4.2 Data Flow Diagrams 3.1 System Flow Charts 3.1 Conclusion 6.1 System Analysis 2.4 Test Cases Chapter 5: Samples --------------------------------------------------------------------49 5.1 System Testing 4.1 Introduction 1.

II.Contents Appendix I: Overview-----------------------------------------------------------------60 A.1 Software Specification A.1 Coding Bibliography ---------------------------------------------------------------------------103 iv .I.2 Physical Specification Appendix II: Coding ------------------------------------------------------------------70 A.I.

Chapter I: Introduction 1 .

garage etc They can search for apartment or plot which suits there budget they can aso speciy the amont by entering the cost . • • • • • • Customer looking to buy or rent a new home. malls . The process of searching of dream house or apartment can be done over the internet . . apartment or any other property can search over the internet.1 Introduction Modern technology has been developed to the extent that even search for land . And they can also have the view of apartment online 2 .1. Now customers will not have to go to the agents personally they can search for their desired home or apartment of a reasonable rate which suits their pocket.bathroom they need and then can make the search They can also describe what all facilities they want near there house like schools.apartments is made possible over the internet. apartment or any other property can search over the internet. Customer looking to buy or rent a new home.. Customer can search for desired plot or house in a particular area. They can specify the no of rooms . apartment or any other property can search over the internet. Customer looking to buy or rent a new home. while sitting at their home. Now customers will not have to go to the agents personally they can search for their desired home or apartment of a reasonable rate which suits their pocket.

Request for Data HTML/ASP Page over Client Machine Database .The application will be a windows-based.aspx page with the result (Server) Retrieve Data 3 . self-contained and independent software product.

BLOCK DIAGRAM Search property Who are we contact home user login Realestate website Employee Login staff Username & password login Product &services About us speciality Employee profile View property Search property Contact us Update property listing Add new property listing Register new user Quick search address telephone Email id Enter zip code or city name 4 .

paper work and manual entry. Customers do not have to go to the. To provide easy updating of property listing that involves very little expertise or knowledge.2 Objectives • • The major objective of real estate website is the convenience it offers. 5 . to the agents personally they can save their time by making an online search To make the website user friendly. To provide quick and efficient listing of properties. To eliminate eligible handwriting. To reduce paper work To integrate all information which customer needs in the website To save people time To allow user to enter the acres of land & desired amount for which he wishes to spend To allow the customers to have a pictorial view of the apartment he wishes to buy To overcome the limitations being faced during the manual system of handling the entire records of the company manager and to manage the work schedule as well effectively and efficiently. To provide more security by implementation of various validations.1. apartment or any other property can search the desired property by several clicks of mouse buttons. • • • • • • • • • • • • • To provide more accuracy. By sitting back at home customer looking to buy or rent a new home.

Quickly and easily manages property listings . To allow the user to search plot & land according to his needs The user can specify the location where he wants the land To save user ‘s time by allowing easy access to the site Shortens the time between data collection and data analysis. Reduces workload An advanced yet handy tool with an easy-to-use interface.3 Scope of Project • • • • • • • • • • • • • To design a real estate website of a particular agency using information collected through internet To design a website which integrates all the information needed by user To make the website user friendly. Contributes hugely in saving the time and enhances data quality.1. Data inconsistency almost eliminated Storage requirement highly reduced 6 .

More productive and efficient work.4 ADVANTAGES • • • • • • Customer can do 24*7 searching.1. User friendly Time efficient Paper saving 7 . High degree of Authenticity.

e.5.com 99 acres. Secondary Data: Document Analysis 1. Primary Data: Interview and Internet 2. through the existing website of real estates like:• • • • Makaan .1 DATA COLLECTED BY INTERNET Data about the brief description of organization is collected through Internet i. questionnaire.1.com 8 .com Om properties.com Magic bricks.5 METHDOLOGY USED FOR DATA COLLECTION Data collection can be done through various sources like interviews. 1. document analysis or Internet.

3 DATA COLLECTED THROUGH DOCUMENT ANALYSIS Data is also collected by various documents which demonstrate the working of the system and through the newspaper’ Times Property’ 9 .5.2 DATA COLLECTION THROUGH INTERVIEW Interview is an easy way to interact with the customer. Any suggestion to improve this website? 4. What all improvements are suggested? 3.1.5. Are you satisfied with current website? 1. The objective of conducting an interview is to understand the customer’s expectations from the software. Any special feature that you want to be added to website? 1. what is the problem you are facing? 2. If not.

Chapter II: Design & Implementation 10 .

1. 2.Registering New User Process 4. Property Update Process 5.1.2.2 PROPERTY SEARCHING PROCESS Inputs: The inputs to this process will be the user input for the search for a particular property listing Outputs: 11 .1 System Analysis 2. Property Searching Process 3 . Employee Login process 2.1 DESCRIPTION OF THE PROCESSES Following are the 5 main generalized processes involved in this information system: 1. Updating New Property process LOGIN PROCESS Inputs: The input to the login process will be the login information entered into the system. Outputs: The output to the login process will be user access to the system utilities.

The result of the property searched 2.1. PROPERTY UPDATE PROCESS Inputs: The inputs to this process will be the changes to be made in the currently existing property details Outputs: The new property listing with modified details 2.5 UPDATING NEW PROPERTY PROCESS Inputs: The inputs to this process will be details of anew propert Outputs: The output of this process is new property updated 12 .3 REGISTERING NEW USER PROCESS Inputs: The inputs to this process will be the desired data required.1. For registering a new user Outputs: The output to this process is that if data is correctly provided the new user is registered 2.4 .1.

DESCRIPTION OF ‘INPUT TO’ AND ‘OUTPUT OF’ OF PROCESSES Employee Login Process EMPLOYEE USERNAME. PASSWORD ACCESS TO SYSTEM Role (input) Login Process (output) Property Searching Process SPECIFY PROPERTY (input) TO BE SEARCHED Searching Process (output) SEARCH RESULT Registering New User Process ENTER NEW EMPLOYEE DETAILS STORE THE DETAILS (Input) Account Creation Process (Output) (Saved to reg table) Update property listing process PROPERTY UPDATED (input) UPDATE LISTING Data File (Output) (saved ) Updating New Property Process NEW PROPERTY UPDATED UPDATE LISTING Data File 13 .

(input) (Output) (saved ) 14 .

PRODUCT FUNCTIONS A summary of the major functions that the website will perform: • • • • I t will help user in knowing the company enables the user to know the employees & contact them View property page enables the user to search for specific property Contact us page gives map &driving direction & allows the user to email to a desire employee • In quick search the user can make a search of the desired property by typing zip code or city name • Employee login page allows employee to access by giving user name & password 15 .

com 16 .com like tusharjaiwal@bennett.bennett.VALIDITATION CHECKS • Every user has unique username& password • For making quick search user has to enter either zip code or city • When updating a listing price has to be in numbers • Zipcode has to be in numbers • When registering a new user first name is mandatory • There should be no spaces in between the phone no • The date format should be mm/ dd / yy • The email id of employees should always end with .

This investigation is generally an activity during the system design as the designer need to study the minute details in all aspects of the system . The logical approach involves systematic moves towards the end product keeping in mind the capabilities of the personnel and the equipment at each decision making step. 17 . Nevertheless a system cannot be designed in isolation without the active involvement of the user. the level of detailed study will vary and the system design stage will also vary in the amount of investigations that still need to be done. Designing a new system is a creative process which calls for logical as well as lateral thinking.2 System Design The system objective outlined during the system analysis serve as the basis from which the work of system design is initiated. Depending on the plan of system analysis. Much of the activities involved at this stage is of technical nature requiring a certain amount of degree of experience in designing systems. The user has a vital role to play at this stage too. Lateral thought implies encompassing of ideas beyond the usual functions and equipments. sound knowledge of computer related technology and thorough understanding of computers related technology.2. As we know that data collected during the system requirement analysis will be utilized systematically at this stage.

• Efficiency: This involves accuracy.2.1 SYSTEM DESIGN CONSTRAINTS The system design process is not a step by step adherence of clear procedures and guidelines. • Cost: It is desirable to aim for a system with a minimum cost subject to the condition that it must satisfy all the requirements. 18 .2.2. When designer starts working on system design he will face different types of problems. • Flexibility: The system should be modifiable depending on the changing needs of the user. the following design objectives should be kept in mind: • Practicality: The system must be stable and can be operated by people with average IQ. fall back procedures.2 THE PRIMARY OBJECTIVE OF THE DESIGN IS: Of course to deliver the requirements as specified in the SRS. Many of these will be due to the constraints imposed by the use or limitations of the hardware and software available in the market. • Security: This is very important aspect of the design and should cover areas of hardware reliability. timeliness and comprehensiveness of the system output. physical security of data and provision for detection of fraud and abuse. 2. In general.

• System and Program Test Preparation: Each aspect of the system has a separate test requirement. implementation planning. The operating system limits the programming languages that will run of the system.3 MAJOR SYSTEM DESIGN ACTIVITIES Several development activities are carried out during structured design. • Program Design: In conjunction with database design is a decision on the programming language to be used and the flowcharting.2. They are data base design. • Database Design: This activity deals with the design of the physical database.2. 19 . coding and the debugging procedure prior to conversion. system interface specification and user documentation. System testing is done after all programming and testing is completed. A key is to determine how the access paths are to be implemented. system test preparation. actual operations user interface and so on. The test cases cover every aspect of the proposed system.

2.4 Use case Diagram: A use case diagram is a diagram which consists of set of usecases and actors enclosed by system boundary. Usecases diagram especially important in organizing. modeling the behavior of the system.2. Use case is a set of scenarious tied together by a common user goal. A scenario is a sequence of steps describing the interaction between a user and system. and association between usecases and actors. Use case Diagram: HOME PAGE REAL ESTATE WEBSITE VIEW PROPERTIES user ENTER DETAILS FOR DESIRED PROPERTY CONTACT THE AGENCY 20 .

Add listing Update listing Delete listing View details Employee 21 .

2.3 Table Structures CATEGORY Category ID Category Name Categorydescription Auto number Text text EMPLOYEE Empid Fname Lname Password Areacode Phone Email Gender Username Datestarted Auto number text text Text text text text text text text LIST PROPERTY Listgid Desclong Avaliability Acres Sqrfeet Catergoryid Schooldist Price Numbath Numbed Access Streetnum Street Zip Auto no memo Text text number number number Empid text Proprtyid text text number text currency currency Auto no Auto no PROPERTY Propertyid Propertyname Propertydescription Auto number text Text CONTACT 22 .

emailid subject query Text text text Chapter III: Flowcharts & Data Flow Diagrams 23 .

and quite often are useful when examining how various steps in a process work together. Each of the different types of flow charts tends to provide a different aspect to a process or a task. When dealing with a process flow chart. In order to analyze the finished product or how to operate the process. Four particular types of flow charts have proven useful when dealing with a process analysis: top-down flow chart. detailed flow chart. 24 . two separate stages of the process should be considered: the finished product and the making of the product. work flow diagrams. Flow charts tend to provide people with a common language or reference point when dealing with a project or process. flow charts tend to use simple and easily recognizable symbols. Flow charts provide an excellent form of documentation for a process.1 System Flow Charts A flow chart is defined as a pictorial representation describing a process being studied or even used to plan stages of a project. The basic flow chart symbols below are used when analyzing how to operate a process.3. and a deployment chart.

USER SEARCH FOR PROPERTY 25 .

VIEW PLOT DETAILS 26 .

2 Data Flow Diagrams A graphical tool used to describe and analyze the moment of data through a system manual or automated including the process. stores of data. through processes. Data Flow Diagrams are the central tool and the basis from which other components are developed. may be described logically and independently of the physical components associated with the system. 27 . may be described logically and independently of the physical components associated with the system. The context diagram defines the system that will be studied in the sense that it determines the boundaries. and delays in the system. The DFD is also known as a data flow graph or a bubble chart. A graphical tool used to describe and analyze the moment of data through a system manual or automated including the process. Anything that is not inside the process identified in the context diagram will not be part of the system study. Context Diagram The top-level diagram is often called a “ context diagram”. Data Flow Diagrams are the central tool and the basis from which other components are developed.3. but it plays a very important role in studying the current system. The DFD is also known as a data flow graph or a bubble chart. and delays in the system. through processes. It contains a single process. The transformation of data from input to output. The transformation of data from input to output. stores of data.

-4 : DFD Level1. DETAILS DFD LEVEL 1 REGISTERING NEW EMPLOYEE Figure No.DFD LEVEL 0 Users REAL ESTATE Website PROPERTY.1 28 .

DFD LEVEL 1 EMPLOYEE LOGIN DFD LEVEL 1 EMPLOYEE UPDATING / CREATING NEW LISTING 29 .

DFD LEVEL 1 USER SEACRHES FOR PROPERTY 30 .

3.3 Entity Relationship Diagram 31 .

Chapter IV: Testing 32 .

1 System Testing 33 .4.

This activity identifies all paths that provide different functionality of the system. This system is indeed an evolutionary system so every unit of the system is continuously under testing phase. and well managed test plan should be prepared before actual testing is being performed. 7. 6. One test activity “Basis Path Testing” that will try to cover all paths in the system. using the cases and the test data already prepared will test the programs. 4. 8. Following are the activities we planned to test the system. Along with the boundary value analysis. And will also check whether the data entered from one procedure. The system is being tested in “Unit Testing” manner where at the completion of one unit that is tested thoroughly with above mentioned testing activities. “Modules” have been developed and need to be tested in a manner that can reduce occurring of defects as low as possible. 4. The integration testing will also be performed to ensure that the integrated unit is working properly with other units or not. 1. Any system. an integrated testing will be performed to see that inter-function dependability is satisfied. 2. the system is also tested with “Range Value Tested” where editable values will be tested with ranges of values. is reflected whenever it requires or not. 5. 3. Only after all the functions are tested singularly. which will test each and every condition with positive and negative data combination. All conditions will be tested with “Boundary Value Analysis” where different input will be given to test whether the system is functioning with boundary values or not. to be successful.2 Test Levels 34 . and also other paths to reach at that functionality. must be thoroughly tested. Separate test cases and test data will be worked out for the integrated testing. Other testing activity is”Control Structure Testing”.In this stages the test group of the development team. This testing activity will also perform “Data Flow Testing” in which it will be tested how the data re following the system.

1 CONTENT TESTING: Errors in Project content can be as trivial as minor typographical error as incorrect information. or content display. Web Application functionality. Content Testing attempt to uncover this and many other problems before the user encounter them. dynamic XML.  To find errors in organization or structure of content that is presented to the end-user 4. a number of objectives must be achieved:  Interface futures are tested to ensure that design rules. Content Testing Objectives: There are three types of objectives. improper organization or validation of intellectual property laws.2.4. client-side scripting.  Individual interface mechanisms are tested in a manner that is analogous to unit testing For example. To accomplish this strategy. Testing Interface Mechanisms:- 35 . aesthetics and related visual content are available for the user without error. graphical representation and other media.2. tests are designed to exercise all forms.  To uncover semantic errors in any content object represented as navigation error.  To uncover syntactic errors in text-based documents.2 INTERFACE TESTING: Interface design model is reviewed to ensure that generic quality criteria established for all user interfaces have been achieved and that application specific interface design issue has been properly addressed. Interface testing strategy: The overall strategy for interface testing is to (1) Uncover error related to specific Interface mechanisms (2) uncover errors in the way the interface implements the semantics of navigation.

the interaction occurs through one or more interface mechanisms.  Test to determine persistence of image capture contents. The formatting of the XML file should remain unaltered.  The server receives all information content within the form and their no data are lost in the transmission between client and server. These tests are coupled with forms testing because script input is often derived from data provided as part of forms processing Dynamic XML:Here the data transfer between the systems occurs in the form of XML file. Changes in the internal attribute structure can also lead to an error.  Test to determine whether the system can be record co-ordinate content at some future date.  Scripts that perform error checking on data entered work. Hence for this XML parsing functionalities are provided on the client side. Forms: At a microscopic level. tests are performed to ensure that  Labels correctly identified fields within the form and that mandatory fields are identified visually for the user. 36 .  Boundary test minimum and maximum number of item that can be placed in to shopping chart.  Browsing functions don’t corrupt data entered in the form.  Properly and provide meaningful error message.When a user interacts with a system.  Appropriate defaults are used when the user does not select from a pull down menu or set of buttons. Application specific interface mechanisms:Test conforms to a checklist of functionality and features that are defined by the interface mechanism. Client side scripting:Black box tests are conducted to uncover any error in processing as The script is executed.

Is the system accessible to people who have Disabilities? 4.  Develop a mechanism for assessing the usability of the system. and related characteristics lead to ease of use? Display Characteristics. The Project team derives a series of compatibility. The following test categories and objective illustrate establish testing:Interactivity. display device.Are navigation mechanism.Can important features. functions and content be used in a timely manner? Accessibility. browser and network connection speed can have significant on system operation. content and function place in a manner that allows the user to find them quickly? Readability.2.  Select participants who will conduct test. derived from existing interface tests. validation tests.3 Testing Methods 37 .  Design test that will enable each goal to be evaluated.  Define a set of usability testing categories and identify goal for each.Does the system make optimal use of screen size and resolution? Time Sensitivity.Do layout color.4 COMPATIBILITY TESTING:Project must operate within environment that differs from one another. Different computer. performance tests and security tests.Are interaction mechanism easy to understand and use? Layout.4.Is the text well written and clear? Aesthetics. navigation tests. OS.2.  Instrument participant’s interaction with system while testing is conducted.3 USABLITY TESTING:Usability test may be designed by Project engineering team. 4. typeface.

Analyze and check system representation such as the requirement document. WHITE-BOX TESTING White-box testing sometimes called glass-box testing. On the basis of testing methods there are two types of testing: 1. design diagrams and the program source code. White-box testing. is a test case design method that users the control structure of the procedural design to drive the test case. 38 . Unit Testing Module Testing Sub-system Testing System Testing Acceptance Testing There are different Models of testing. They may be applied at all stages of the process. Black-box testing 1. 2.

has been used for testing of the module to see if it works as specified. These tests were performed as module level as well as system level. • Performance Testing: Performance testing is designed to test the runtime performance of the system within the context of the system. Individual modules were tested for required performance. logic and errors. • Integration Testing: After our individual’s modules were tested out we go the integrated to create a complete system. The logical flow of a program times counter intuitive. Logical errors and incorrect assumption are inversely proportional to the probability that a program will be executed. modules and class treated unit has been put into the test data. as specification. The steps are follows:  Manually code is tested like spelling checks. 39 . Syntactical errors if any have to be corrected. 2. Errors tend to creep into our work we design and implement function. BLACK-BOX TESTING: For our project periodically we have tested our software using black-box testing. • Condition Testing: Performance testing is a test case design method that exercises the logical conditions. condition or control that is out of the mainstream tends to be well understood.  We often believe that a logical path is not likely to be executed when in fact it may be executed on a regular basis. • Unit Testing: During the programming stages each and every form.  After the clean complication the program. some dummy data.  Once the manual checking is over the complication has been done. Thinking as a client we have evaluated the software for its easy going and convenience. Every module is tested independently. This integration process involves building the system and testing the resultant system for problems that arise from component interaction.

which are as follows:     The position and related labels for all controls were checked. Pull down controls was verified for proper functionality. In the system standards tests for GUIs have been performed. Validations for all inputs were done.• Interface Testing: Interface sting is integral part of integration.4 Test Cases 40 . 4. We examined the code to be tested and explicitly list each call to an external component. Whether the non-editable text controls disabling and it was also verified that it doesn’t exceed the maximum allowed length.

5.The zip code entered did not gave result If the user enter the wrong zip code then error will be generated 4.2 The city entered did not gave result 41 .

3 When a person is not an employee 42 .5.If the user enter the wrong city name then error will be generated 4.

5.3.If a user who is not an employee accesses the employee login page & enter wrong user name & password the it will prompt wrong information entered 4.1 Result of when a person is not an employee 43 .

4.4 The square feet has to be in numbers If user enters square feets as characters then there is message which promts that square feet has to be in no it is validation check 44 .5.

5 We cannot make an empty search If user has to search for a property he has to mention the zip code or city name as we cannot make an empty search 45 .4.5.

password are mandatory 46 .4.email id . user name. password are mandatory When we register a new user then certain fields like username . email id.5.6 When registering a new user.

4.7 New user need to specify the password 47 .5.

4.8 New user need to specify the email id 48 .5.

10 The zip code has to be in numbers 49 .4.5.

If user enters zip code as characters then there is message which prompts that zip code has to be in numbers it is validation check Chapter V: Samples 50 .

1 Output Samples 51 .5.

Home Page About Us Staff 52 .

View Properties Property Details 53 .

Contact Us Email Us 54 .

Map\Driving Directions Quick Search 55 .

Employee login Update Listing\Register New Employee 56 .

Update a listing Register another employee 57 .

Create a new listing Chapter VI: Conclusion 58 .

1 Conclusion 59 .6.

by refreshing the grid rather than refreshing the entire web page. • The performance of this application is evaluated by rigorously testing it against various test scenarios.0and ms access 2005 in the vb programming language. Efficiency of the application is improved by the use of web methods that help in separating Application Tier from the Presentation Tier.NET web application using ASP.NET 2. The buyer performs a search for the property listings by putting either Zip code/City/State in the search textbox.NET programming environment. It is developed in Microsoft’s Visual Studio .2 Future Scope of the system 60 . • The results obtained by the database are displayed on the data grid. Some ways in which this system could be enhanced with additional functionalities are discussed in the section. It uses a client/server architecture based on the HTTP protocol. 6.• • • This Real Estate Web Application is a typical . The business logic tier communicates with the database tier requesting the results of the query sent by it.

• Inclusion of all these features would make the application feature rich. we can get a better architecture design which will improve code efficiency and running performance. Appendix I: Overview 61 . • Besides. With the advancement of technology. The advantages of putting these functionalities in the project are described in detail in the following sections. dynamic maps can be generated which can help the buyer locate a particular area where the property is located in the Google Map.• This project is developed as a master’s project and still gives lot of scope for its extension which could be made to the project if it is going to be developed as commercial product. we can build XML web service programming model that enables other applications to consume real estate web services built by us using standard protocol such as HTTP. and web services description language(WSDL). • This project just deals with the Home page and Search page to search for property listings. XML. • The feature of providing Google Maps within this application adds up to the functionality of the website. more functionality can be added for searching the agents and offices making it a complete application. • We can use pure object-oriented domain model to deal the database access tier using Visual Studio 2005and ms access 2005. In doing this.

APPENDIX-I 62 .

A I. which internal functions are necessary. automobiles. FUNCTIONAL SPECIFICATION In software development. a functional specification does not typically define the inner workings of the proposed system. and clothes and also utility. Non-functional requirements are requirements which impose constraints on the design or implementation (such as performance engineering requirements. DESIGN SPECIFICATION Design specifications are the measurements and characteristics of a structure or object which provide for a workable. requested properties of inputs and outputs (for ex. The documentation typically describes what is needed by the system user (design-goal). as well as. It includes a set of use cases that describe all the interactions the users will have with the software. As a design document. computing. In addition to use cases. such as buildings. the SRS also contains nonfunctional (or supplementary) requirements. This can apply to a wide variety of manufactured or fabricated objects. Use cases are also known as functional requirements. sustainable. quality standards. or design constraints). functional spec or specs or functional specifications document (FSD) or Program specification) is the set of documentation that describes the requested behavior of an engineering system. or pleasing creation or construct. a functional specification (also. of the software system). it 63 . Any functional thing made by human beings has certain specific details. and distribution systems.1 SOFTWARE SPECIFICATION SOFTWARE REQUIREMENTS SPECIFICATION A Software Requirements Specification (SRS) is a complete description of the behavior of the system to be developed.

for example) might "observe" when interacting with the system PRODUCT DESIGN SPECIFICATION A product design specification (PDS) is a statement of what a not-yet-designed product is intended to do. or requirements specification. However. Synonyms include software life cycle and software process. taking account of the possibly conflicting requirements of the various stakeholders. computer peripherals. requirements capture. it focuses on what various outside agents (people using the program. for instance SOFTWARE DEVELOPMENT PROCESS A software development process is a structure imposed on the development of a software product. Instead. such as beneficiaries or users.means it does not yet include the specification how the system function will be implemented.[1] The PDS acts as an initial boundary in the development of products.[2] REQUIREMENTS ANALYSIS In systems engineering and software engineering. Systematic requirements analysis is also known as requirements engineering[1]. requirements analysis encompasses those tasks that go into determining the needs or conditions to meet for a new or altered product. The term requirements analysis can also be applied specifically to the analysis proper (as opposed to elicitation or documentation of the requirements. There 64 . it will naturally evolve as it is progressed through the different stages of the design process. It is sometimes referred to loosely by names such as requirements gathering. or other computers. Its aim is to ensure that the subsequent design and development of a product meets the needs of the user.

each describing approaches to a variety of tasks or activities that take place during the process. Validation of suitability is necessary. etc) or specify the item (building codes. products. trade unions. indicate that the item is fit for any particular use. it is vital for suppliers. CEN. specify the correct one. ISO. or services to understand and agree upon all requirements. and business. SPECIFICATION (TECHNICAL STANDARD) A specification is an explicit set of requirements to be satisfied by a material. product. A product specification does not necessarily prove the product to be correct. and use the item correctly. Just because an item is stamped with a specification number does not.are several models for such processes. 65 . purchasers. by itself. enforce compliance. government. corporations. and users of materials. standards organizations (ASTM. or service. etc) have the responsibility to consider the available specifications. The people who use the item (engineers. industry. It provides the necessary details about the specific requirements. manufacturing. etc). Specifications may be written by government agencies. and others. A specification is a type of a standard which is often referenced by a contract or procurement document. trade associations. USE OF A SPECIFICATION In engineering.

which are both equivalent representations of the same underlying semantics. These pre-requisites are known as (computer) system requirements and are often used as a guideline as opposed to an absolute rule. A system is specified as a set of interconnected abstract machines which are extensions of finite state machines (FSM). system requirements tend to increase over time. Most software defines two sets of system requirements: minimum and recommended. all computer software needs certain hardware components or other software resources to be present on a computer system. Industry analysts suggest that this trend plays a bigger part in driving upgrades to existing computer systems than technological advancements 66 .100. With increasing demand for higher processing power and resources in newer versions of software.) Originally focused on telecommunication systems. SYSTEM REQUIREMENTS To be used efficiently. SDL provides both a graphical Graphic Representation (SDL/GR) as well as a textual Phrase Representation (SDL/PR). It is defined by the ITU-T (Recommendation Z. its current areas of application include process control and real-time applications in general.SPECIFICATION AND DESCRIPTION LANGUAGE Specification and Description Language (SDL) is a specification language targeted at the unambiguous specification and description of the behaviour of reactive and distributed systems.

based on Martin and Estrin's "data flow graph" model of computation. Data flow diagrams were invented by Larry Constantine. How any system is developed can be determined through a dataflow diagram. The old system's dataflow diagrams can be drawn up and compared with the new system's dataflow diagrams to draw comparisons to implement a more efficient system. the original developer of structured design. The DFD is designed to show how a system is divided into smaller portions and to highlight the flow of data between those parts. The sponsor of a project and the end users will need to be briefed and consulted throughout all stages of a system's evolution. Developing a DFD helps in identifying the transaction data in the data model. 67 . Dataflow diagrams can be used to provide the end user with a physical idea of where the data they input ultimately has an effect upon the structure of the whole system from order to dispatch to restock. Data flow diagrams (DFDs) are one of the three essential perspectives of Structured Systems Analysis and Design Method SSADM.A I. With a dataflow diagram. and how the system will be implemented. This context-level DFD is then "exploded" to show more detail of the system being modeled. users are able to visualize how the system will operate.2 PHYSICAL SPECIFICATIONS DATA FLOW DIAGRAM It is common practice for a designer to draw a context-level DFD first which shows the interaction between the system and outside entities. what the system will accomplish.

The sponsor of a project and the end users will need to be briefed and consulted throughout all stages of a system's evolution. Data flow diagrams were invented by Larry Constantine. This context-level DFD is then "exploded" to show more detail of the system being modeled. Data flow diagrams (DFDs) are one of the three essential perspectives of Structured Systems Analysis and Design Method SSADM. The old system's dataflow diagrams can be drawn up and compared with the new system's dataflow diagrams to draw comparisons to implement a more efficient system. defining different visual representations for processes. How any system is developed can be determined through a dataflow diagram. Dataflow diagrams can be used to provide the end user with a physical idea of where the data they input ultimately has an effect upon the structure of the whole system from order to dispatch to restock. based on Martin and Estrin's "data flow graph" model of computation. 68 . and how the system will be implemented. and external entities. the original developer of structured design. datastores. It is common practice for a designer to draw a context-level DFD first which shows the interaction between the system and outside entities. what the system will accomplish. users are able to visualize how the system will operate.There are different notations to draw data flow diagrams. With a dataflow diagram. The DFD is designed to show how a system is divided into smaller portions and to highlight the flow of data between those parts. dataflow.

LEVEL 0 This level shows all processes at the first level of numbering.3 are all children of process 1.2 & 1. A Level 1 DFD showing the "Process Enquiry" process for the same system. as such there should be a level 1 diagram for each and every process shown in a level 0 diagram. these are often shown as external entities.g. and combined must perform the full capacity of this parent 69 . A process model will have one. and only one. It does not usually show data stores. e.1. the "enquiry" data flow could be spilt into "enquiry request" and "enquiry results" and still be valid LEVEL 1 This level is a decomposition of a process shown in a level 0 diagram. e. these can be broken down to more detail in the level 0.e. data stores. level 0 diagram.DFD LEVELS • • • A context level DFD created using Select SSADM. CONTEXT LEVEL This level shows the overall context of the system and it's operating environment and shows the whole system as just one process. The purpose of this level is to show the major high level processes of the system and their interrelation. 1. external entities and the data flows between them.g. are accessed by but not maintained by this system. unless they are "owned" by external systems. In this example processes 1. i. together they wholly and completely describe process 1. A level 0 diagram must be balanced with it's parent context level diagram. however. A Level 0 DFD for the same system. there must be the same external entities and the same data flows.

Note that sometimes. an overview and classifications of used terms and their relationships) for a certain universe of discourse (i.process.e. Entity-relationship modeling is a relational schema database modeling method. this in turn is mapped to a physical model during physical design. mapped to a logical data model. both of these phases are referred to as "physical design". such as the relational model. often a relational database. and its requirements in a top-down fashion. When we speak of an entity we normally speak of some aspect of the real world which can be distinguished from other aspects of the real world . Originally proposed in 1976 by Peter Chen. The first stage of information system design uses these models during the requirements analysis to describe information needs or the type of information that is to be stored in a database. used in software engineering to produce a type of conceptual data model (or semantic data model) of a system. or ER diagrams or ERDs for short. An entity is an abstraction from the complexities of some domain. at a later stage (usually called logical design). 70 . The data modeling technique can be used to describe any ontology (i. many variants of the process have subsequently been devised. the conceptual data model is. area of interest). In the case of the design of an information system that is based on a database. a level 1 diagram must be balanced with it's parent level 0 diagram ENTITY.e.RELATIONSHIP MODEL An entity-relationship model (ERM) is an abstract conceptual representation of structured data. Diagrams created using this process are called entity-relationship diagrams. As before. An entity may be defined as a thing which is recognised as being capable of an independent existence and which can be uniquely identified.

Attributes are represented as ellipses connected to their owning entity sets by a line. the proved relationship may have a date attribute. a song. strictly speaking. The set of all such child-lunch relationships in a database is a relationship set. An entity-type is a category. The eaten relationship between a child and her lunch is a single relationship. If each entity of the entity set can participate in at most one relationship in the relationship set. they show entity sets and relationship sets. A relationship captures how two or more entities are related to one another. or a concept such as a customer transaction or order. a mathematical theorem. If all entities in an entity set must participate in the relationship set. Entity-relationship diagrams don't show single entities or single instances of relations. To indicate that each entity in the entity set is involved in exactly one relationship. The collection of all songs in a database is an entity set. This is called a participation constraint. This is called a key constraint. an event such as a house sale or a car service. There are usually many instances of an entity-type. Examples: an employee entity might have a Social Security Number (SSN) attribute. Entities and relationships can both have attributes. which is called the entity's primary key. is an instance of a given entity-type. an employee. Example: a particular song is an entity. Entities can be thought of as nouns. Rather.An entity may be a physical object such as a house or a car. An entity. Although the term entity is the one most commonly used. most people tend to use the term entity as a synonym for this term. linking two or more nouns. Relationships can be thought of as verbs. following Chen we should really distinguish between an entity and an entity-type. Every entity (unless it is a weak entity) must have a minimal set of uniquely identifying attributes. a thick arrow is drawn. an arrow is drawn from the entity set to the relationship set. 71 . Examples: a computer. Lines are drawn between entity sets and the relationship sets they are involved in. a thick or double line is drawn. Because the term entity-type is somewhat cumbersome. Entities are represented as rectangles.

Appendix II: Glossary 72 .

APPENDIX-II A II.&nbsp.aspx" %> <%@ Page Language="vb" AutoEventWireup="false" Inherits="CBB.&nbsp.aspx") %> <html> <body> <form id="shadow" method="post" runat="server"> <h1>Add Listing</h1> <P><STRONG><U>Please Fill Out all Information</U></STRONG></P> <asp:label id="Label2" runat="server" Width="504px" FontSize="Large" Height="10px" ForeColor="Red"></asp:label> <P></P> <P><STRONG>Enter&nbsp.aspx") %> <html> <body> <form id="shadow" method="post" runat="server"> <h1>About Collin B.vb" %> <% Server. the Agency caters to many counties around the state of Connecticut.</p> </div> </form> <% Server.aspx") %> <% Server.aspx <%@ Reference Page="~/email. 73 .1 CODING About. Bennett Agency was founded in 1963 as a Real Estate Company.Execute("design/menu.&nbsp.Execute("design/header.vb" %> <% Server.aspx") %> </body> </html> Addlisting.addlisting" CodeFile="addlisting. Commercial.aspx <%@ Page Language="vb" AutoEventWireup="false" Inherits="CBB.Execute("design/menu.Execute("design/footer."> <p><strong>Products & Services:</strong><br> Real Estate</p> <p><strong>Specialties:</strong><br> Residential.aspx.about" CodeFile="about. Although the company still owned primarily by the Bennett family.Execute("design/header.aspx") %> <% Server. Bennett Agency</h1> <div style="margin-left: 25px. they now operate in both the Real Esatate and Insurance industries.</p> <p>For contact information. Insurance </p> <p>Collin B.Street Number:&nbsp.aspx">contact page</a>. please visit our <a href="contact.aspx. Located out of Hartford. Real Estate.

School District: <asp:textbox id="schooldist" runat="server"></asp:textbox></STRONG></P> <P><STRONG>Square Feet: <asp:textbox id="squarefeet" runat="server" Width="32px"></asp:textbox>&nbsp.only)&nbsp.Number of Baths: <asp:textbox id="bath" runat="server" Width="32px"></asp:textbox>&nbsp.& nbsp.&nbsp.</STRONG></P> <STRONG> <P><STRONG>Avalibility: <asp:radiobutton id="rdonew" runat="server" Text="Just Listed" Checked="True"></asp:radiobutton><asp:radiobutton id="rdosale" runat="server" Text="Sale Pending"></asp:radiobutton><asp:radiobutton id="rdosold" runat="server" Text="Sold"></asp:radiobutton></STRONG></P> <P> <STRONG>Property Type: <asp:radiobutton id="radiocommerical" runat="server" Text="Commercial" groupname="type"></asp:radiobutton>&nbsp.&nbsp.&nbsp.<asp:textbox id="streetnum" runat="server" Width="40px"></asp:textbox>&nbsp. <asp:textbox id="garage" runat="server" Width="32px"></asp:textbox> </STRONG></P> <P><STRONG>Enter Zipcode: <asp:textbox id="zipcode" runat="server" Width="64px"></asp:textbox>&nbsp.&nbsp. </STRONG><STRONG>Number of Garages:&nbsp. <asp:dropdownlist id="DropDownList1" runat="server" Width="176px"></asp:dropdownlist></STRONG></P> <P><STRONG>If location not listed.&nbsp.&nbsp. 74 .&nbsp. enter here: <asp:textbox id="location" runat="server"></asp:textbox> </STRONG></P> <P>&nbsp.</p><p><STRONG>Price:(numbers&nbsp.&nbsp. <asp:textbox id="acres" runat="server" Width="40px"></asp:textbox></STRONG></P> <P><STRONG>Short Description:</STRONG> <asp:textbox id="shortd" runat="server" Width="240px"></asp:textbox></P> <P><STRONG>Long Description: <asp:textbox id="longd" runat="server" Width="272px" Height="56px" TextMode="MultiLine"></asp:textbox></STRONG></P> <P><STRONG>Number&nbsp. <asp:textbox id="price" runat="server" Width="64px"></asp:textbox> </STRONG></P> <P><STRONG>Assessed Value: <asp:textbox id="assessed" runat="server" Width="56px"></asp:textbox>&nbsp.&nbsp.Number of Acres:&nbsp.of Bedrooms: <asp:textbox id="bed" runat="server" Width="32px"></asp:textbox>&nbsp.Street Name: <asp:textbox id="address" runat="server"></asp:textbox></STRONG></P> <P><STRONG>Location. Choose One:&nbsp.&nbsp.&nbsp.&nbsp.&nbsp.&nbsp.

Diagnostics.Two pictures: <INPUT id="file1" type="file" runat="server" NAME="file1">&nbsp.EventArgs) Handles MyBase.aspx.<asp:radiobutton id="radioresidential" runat="server" Text="Residential" groupname="type" Checked="True"></asp:radiobutton>&nbsp.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor. <asp:radiobutton id="radioland" runat="server" Text="Land" groupname="type"></asp:radiobutton>&nbsp.Object. CategoryName from Catergories" 75 .DebuggerStepThrough()> Private Sub InitializeComponent() End Sub Private Sub Page_Init(ByVal sender As System.EventArgs) Handles MyBase. ByVal e As System.Web. <asp:radiobutton id="radioappt" runat="server" Text="Appartment / Condo" groupname="type"></asp:radiobutton></STRONG></P> <P><STRONG>&nbsp.<INPUT id="file2" type="file" runat="server" NAME="file2"></STRONG></P> <P><asp:button id="Button1" runat="server" Text="Submit New Listing"></asp:button></P> </form> <% Server.aspx") End If If IsPostBack = False Then Dim sqlstr As String sqlstr = "select CategoryID.Execute("design/footer.Page #Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer.vb Namespace CBB Partial Class addlisting Inherits System. InitializeComponent() End Sub #End Region Public dbc As New dbConnnect Private Sub Page_Load(ByVal sender As System.Load If Session("ok") <> "ok" Then Server. <System.aspx") %> </body> </html> Addlistin. ByVal e As System.Transfer("error.UI.Object.

DropDownList1.DataTextField = "CategoryName" Me.rdosale.Checked = True Then property_type = 2 ElseIf Me.Checked = True Then saletype = "Just Listed" ElseIf Me.Text = "" Then Label2.DataValueField = "CategoryID" Me.Text = "You need to Number" phone.Dim dt As DataTable = dbc. areacode.Text = "" Then Label2.Checked = True Then saletype = "Sold" End If Dim username.DataBind() End If End Sub Private Sub Button1_Click(ByVal sender As System.radioland.Text = "You need to enter a street address" Exit Sub End If If shortd.rdonew.radioresidential.EventArgs) Handles Button1.Checked = True Then saletype = "Sale Pending" ElseIf Me.radiocommerical.rdosold.Text = "You need to fill out a short description" Exit Sub End If If longd.Text = "" Then Label2. first.Click Dim property_type As Integer Dim saletype As String If Me. username = Session("username") email = Session("email") areacode = Session("areacode") phone = Session("phone") first = Session("firstname") empid = Session("empid") If streetnum.DropDownList1. email.DropDownList1. into Street End If If address.Text) = False Then 76 .Text = "You need to Exit Sub End If If IsNumeric(streetnum.Text = "You need to fill out a long description" Exit Sub End If If IsNumeric(bath.Text) = Label2.Text = "" Then Label2. empid As String enter a street number" False Then enter a number.Checked = True Then property_type = 3 Else property_type = 4 End If If Me.DropDownList1.RunSelectQuery(sqlstr) Me.DataSource = dt Me. ByVal e As System.Checked = True Then property_type = 1 ElseIf Me.Object.

numbath. avaliability.Text & ".Text = "Only numbers in the garage field" Exit Sub End If If IsNumeric(acres.Text <> "" Then location = Me.Label2.PostedFile.DropDownList1.GetFileName(Me. price.Text = "You need to enter a number.Text & "'.PostedFile.Text) = False Then Label2.'" & z & "')" Me.RunUpdateDeleteQuery(sqlstr) Label2." & squarefeet.streetnum.Text) = False Then Label2.PostedFile.desclong.'" & longd.Text) = False Then Label2.Text & "." & empid & ".catergoryid.picture1.FileName) y = System.SelectedIndex) + 1 End If x = System.Text & "'.file1.SaveAs("C:\Inetpub\wwwroot\CBB\images\property\" & y) z = "<img src =" & y & " height =60 width =75>" sqlstr = "insert into Listing(descshort. name As String Dim location As Integer Dim i As Integer i = Me.accessed." & acres. numgarage." & _ "" & bed.DropDownList1.field" Label2.GetFileName(Me.Path. numbed.DropDownList1." & bath.Count name = Me.Items.DropDownList1.file2. schooldist. street.Text sqlstr = "insert into catergories (Categoryname) Values ( '" & name & "')" dbc.Text & "'.Text & "'.Text = "You need to enter a number. sqrfeet.RunUpdateDeleteQuery("sqlstr") Else : location = Val(Me.Text & ".Text & ". z.'" & schooldist.Text = "You have created a new listing " 77 .'" & zipcode.Text = "Only numbers in the acres field" Exit Sub End If Dim x. in the bath Exit Sub End If If IsNumeric(bed.Text = sqlstr dbc. acres.'" & y & "'. sqlstr." & _ "" & location & ".empId.Text & "'.Path.file2.IO." & price.Text & ".SaveAs("C:\Inetpub\wwwroot\CBB\images\property\" & x) Me." & property_type & ".'" & x & "'.searchpic)" & _ "Values('" & shortd.Text) = False Then Label2. y.file1.Text & "'.Text & "'.'" & assessed. zip.'" & streetnum.Text = "Only numbers in the zipcode field" Exit Sub End If If IsNumeric(garage.'" & address.picture2. in the bed field" Exit Sub End If If IsNumeric(zipcode.SelectedItem.Text & "'." & garage.IO.FileName) Me.Label2.SelectedIndex() If Me.PostedFile.propertyid.

com">Driving Directions</a></p> <p><strong>Telephone</strong></p> <p>(860) 522-4211</p> <p><strong>Email</strong></p> <P><a href="email.com">Map</a> / <a href="http://maps.aspx") %> <html> <body> <form id="shadow" method="post" runat="server"> <h1>Contact Us</h1> <p><strong>Address</strong></p> <p>Collin Bennett Real Estate<br> 1229 Albany Avenue Suite 1.aspx") %> <html> <body> <form id="shadow" method="post" runat="server"> <h1>Property Details</h1> <P> <asp:label id="Label3" runat="server" Font-Bold="True" Font-Italic="True" Font-Size="Medium"></asp:label></P> <P> <asp:label id="Label1" runat="server"></asp:label> 78 .Execute("design/header.aspx" %> <%@ Page Language="vb" AutoEventWireup="false" Inherits="CBB.Execute("design/menu.google.vb" %> <% Server.Execute("design/header. CT 06112</p> <p><a href="http://maps.google.contact" CodeFile="contact.aspx <%@ Reference Page="~/email.aspx.vb" %> <% Server.Execute("design/footer.<br> Hartford.aspx") %> </body> </html> Details.aspx") %> <% Server.Migrated_details" CodeFile="details.aspx <%@ Page Language="vb" AutoEventWireup="false" Inherits="CBB.aspx">Click here to contact us by email</a></P> </form> <% Server.aspx") %> <% Server.End Sub End Class End Namespace Contact.Execute("design/menu.aspx.

longdesc As String Dim squarefeet. streetname.Items("listingid") sqlstr = "select * from listing a. baths. avaliability. pic1. listingid.DebuggerStepThrough()> Private Sub InitializeComponent() End Sub Private Sub Page_Init(ByVal sender As System. ByVal e As System. garage.aspx") %> </body> </html> Details. streetnumber. areacode.EventArgs) Handles MyBase. schooldist.Diagnostics.empid" 79 .EventArgs) Handles MyBase. email. price.aspx. ByVal e As System.<asp:label id="Label2" style="PADDING-LEFT: 100px" runat="server" Width="128px"></asp:label></P> <P><asp:label id="Label5" runat="server"></asp:label></P> <P><asp:label id="Label4" runat="server"></asp:label></P> <P> <asp:Label id="Label9" runat="server"></asp:Label></P> <P> <asp:Label id="Label8" runat="server"></asp:Label></P> <P><asp:label id="Label6" runat="server"></asp:label></P> <P><asp:label id="Label7" runat="server"></asp:label></P> </form> <% Server. zipcode.Object.Items("town") listingid = Context.Execute("design/footer.vb Namespace CBB 'Partial Class details Partial Class Migrated_details Inherits details #Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer. <System. bedrooms. employee b where listingid = " & listingid & " and a.Object. InitializeComponent() End Sub #End Region ' Public dbc As New dbConnnect Private Sub Page_Load(ByVal sender As System.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor.Load If IsPostBack = False Then Dim sqlstr. phone. location As String location = Context.empid = b. pic2.

Text = "<h4> Number of Bedrooms: " & bedrooms & " Baths: " & baths & " Garages: " & garage & " </h4>" Me.Rows longdesc = r("desclong") pic1 = imgpropdir & r("picture1") pic2 = imgpropdir & r("picture2") streetname = r("street") streetnumber = r("streetnum") squarefeet = r("sqrfeet") price = r("price") bedrooms = r("numbed") baths = r("numbath") email = r("email") phone = r("phone") garage = r("numgarage") areacode = r("areacode") schooldist = r("schoolDist") zipcode = r("zip") avaliability = r("avaliability") Me.aspx <%@ Page Language="vb" AutoEventWireup="false" Inherits="CBB.Text = "<img src = " & pic1 & " height =150 width =225>" Me.Label3.Dim x As DataTable = dbc.Text = "<h4>City: " & location & "<br> Street Number: " & streetnumber & " " & streetname & "</h4> " Me.aspx") %> <% Server.Label9." & phone & "" Session("empid") = email Session("listingid") = r("listingid") Next End If End Sub End Class End Namespace Email.aspx.aspx'> " & email & " </a> or call " & areacode & " .RunSelectQuery(sqlstr) Dim r As DataRow For Each r In x.Text = "<h2> Price: " & FormatCurrency(price) & " Avaliability: " & avaliability & " </h2>" Me.email" CodeFile="email.Text = "<h4> Square Feet: " & squarefeet & "</h4>" Me.vb" %> <% Server.Text = "<strong> " & longdesc & " </strong><br> " Me.Label4.Text = "If you are interested in this property please email <a href='email.Execute("design/menu.Text = "<img src = " & pic2 & " height =150 width =225>" Me.aspx") %> <html> 80 .Label2.Label1.Label7.Label8.Execute("design/header.Label5.Label6.Text = "<h4>Zipcode: " & zipcode & " School District: " & schooldist & "</h4>" Me.

ByVal e As System.DebuggerStepThrough()> Private Sub InitializeComponent() End Sub Private Sub Page_Init(ByVal sender As System.aspx.Load If IsPostBack = False Then Dim sqlstr As String 81 .Object.UI.Execute("design/footer.</P> <p> <strong>Please Choose the agent you wish to Email:</strong></p> <P><asp:dropdownlist id="DropDownList1" runat="server" Width="280px"></asp:dropdownlist></P> <P><STRONG>Subject:</STRONG></P> <P><asp:textbox id="TextBox1" runat="server" Width="192px"></asp:textbox></P> <P><STRONG>Contents:</STRONG></P> <P><asp:textbox id="TextBox2" runat="server" Width="360px" TextMode="MultiLine" Height="144px"></asp:textbox></P> <P><asp:button id="Button1" runat="server" Width="112px" Text="Submit!" Font-Bold="True"></asp:button></P> </form> <% Server.vb Namespace CBB Partial Class email Inherits System.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor.EventArgs) Handles MyBase.Page #Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer. InitializeComponent() End Sub #End Region Public dbc As New dbConnnect Private Sub Page_Load(ByVal sender As System. <System.Diagnostics.aspx") %> </body> </html> Email.<body> <form id="shadow" method="post" runat="server"> <h1>Email Us</h1> <P><STRONG> <asp:Label ID="Label2" runat="server" Font-Size="Large" ForeColor="Red" Height="10px" Width="504px"></asp:Label></STRONG>&nbsp.Web.EventArgs) Handles MyBase. ByVal e As System.Object.

Dim dt2 As New DataTable sqlstr = "select empid, email from employee" Dim dt As DataTable = dbc.RunSelectQuery(sqlstr) Me.DropDownList1.DataSource = dt Me.DropDownList1.DataValueField = "empid" Me.DropDownList1.DataTextField = "email" Me.DropDownList1.DataBind() End If If Session("empid") <> "" Then Me.DropDownList1.SelectedItem.Text = Session("empid") Me.TextBox1.Text = "Question about property # " & Session("listingid") End If End Sub Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim emailid, subject, query As String emailid = Session("emailid") subject = Session("subject") query = Session("query") Dim sqlstr As String Dim i As Integer i = Me.DropDownList1.SelectedIndex() sqlstr = "insert into contact(emailid,subject,query)" & _ "Values( '" & Me.DropDownList1.SelectedItem.Text & "','" & TextBox1.Text & "','" & TextBox2.Text & "')" Me.Label2.Text = sqlstr dbc.RunUpdateDeleteQuery(sqlstr) Label2.Text = "You have successfully posted a query. " End Sub End Class End Namespace

Index.aspx
<%@ Page Language="vb" AutoEventWireup="false" Inherits="CBB.index" CodeFile="index.aspx.vb" %> <% Server.Execute("design/header.aspx") %> <% Server.Execute("design/menu.aspx") %> <html> <body> <form id="shadow" method="post" runat="server"> <p class="title">Welcome to Collin B. Bennett Real Estate</p> <div class="indexbox"> <p class="ibt">Search for Properties</p> <p>Looking to buy or rent a new home, apartment or any other property? Search our properties & real estate listings.</p> <p><a href=properties.aspx>Search Property Listings</a></p> </div> <div class="indexbox"> <p class="ibt">Who are We?</p> <p>Unfamiliar with Collin B. Bennett Agency? Get to know us.</p>

82

<p><a href=about.aspx>About CBB</a></p> <p><a href=staff.aspx>Meet our Staff</a></p> </div> <div class="indexbox"> <p class="ibt">Contacting Collin B. Bennett Agency</p> <p>Looking for our address or how to contact us?</p> <p><a href=contact.aspx>Contact Information</a></p> <p><a href=email.aspx>Email Us</a></p> </div> </form> <% Server.Execute("design/footer.aspx") %> </body> </html>

Index.aspx.vb
Namespace CBB Partial Class index Inherits System.Web.UI.Page #Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer. <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() End Sub Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox Protected WithEvents Button1 As System.Web.UI.WebControls.Button Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor. InitializeComponent() End Sub #End Region Public dbc As New dbConnnect Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here dbc.connectAndDC() End Sub End Class End Namespace

Login.aspx

83

<%@ Reference Page="~/email.aspx" %> <%@ Page Language="vb" AutoEventWireup="false" Inherits="CBB.updatelisting" CodeFile="updatelisting.aspx.vb" %> <% Server.Execute("design/header.aspx") %> <% Server.Execute("design/menu.aspx") %> <html> <body> <form id="shadow" method="post" runat="server"> <h1>Update a Listing</h1> <P><STRONG>Listing Id: <asp:label id="Label1" runat="server" Width="112px"></asp:label>Image 1:&nbsp; <asp:label id="Label2" runat="server" Width="88px"></asp:label>Image 2: <asp:label id="Label3" runat="server"></asp:label></STRONG></P> <P><STRONG>Price:&nbsp;&nbsp; <asp:textbox id="TextBox1" runat="server" Width="80px"></asp:textbox>&nbsp;(only numbers please) </STRONG></P> <P><STRONG>Street Number: <asp:textbox id="TextBox2" runat="server" Width="40px"></asp:textbox>&nbsp;StreetName: <asp:textbox id="TextBox3" runat="server"></asp:textbox></STRONG></P> <P><STRONG>Garages: <asp:textbox id="TextBox4" runat="server" Width="32px"></asp:textbox>&nbsp;Acres: <asp:textbox id="TextBox9" runat="server" Width="32px"></asp:textbox>&nbsp;Zip Code: <asp:textbox id="TextBox13" runat="server" Width="48px"></asp:textbox></STRONG></P> <P><STRONG>Avalibility: <asp:radiobutton id="rdonew" runat="server" Text="Just Listed" groupname="sale" Checked="True"></asp:radiobutton><asp:radiobutton id="rdosale" runat="server" Text="Sale Pending" groupname="sale"></asp:radiobutton><asp:radiobutton id="rdosold" runat="server" Text="Sold" groupname="sale"></asp:radiobutton> </STRONG></P> <P><STRONG>Property Type: <asp:radiobutton id="radiocommerical" runat="server" Text="Commercial" groupname="type"></asp:radiobutton>&nbsp; <asp:radiobutton id="radioresidential" runat="server" Text="Residential" groupname="type"></asp:radiobutton>&nbsp; <asp:radiobutton id="radioland" runat="server" Text="Land" groupname="type"></asp:radiobutton>&nbsp; <asp:radiobutton id="radioappt" runat="server" Text="Appartment / Condo" groupname="type" Checked="True"></asp:radiobutton></STRONG>&nbsp; </P> <P><STRONG>Assessed Value: <asp:textbox id="TextBox10" runat="server" Width="88px"></asp:textbox>&nbsp; School District:

84

Object. ByVal e As System. SquareFeet: <asp:textbox id="TextBox12" runat="server" Width="48px"></asp:textbox></STRONG></P> <P><STRONG>Long Description: <asp:textbox id="TextBox7" runat="server" Width="232px" TextMode="MultiLine" Height="72px"></asp:textbox></STRONG></P> <P><STRONG>Short Description:&nbsp.Web.&nbsp.DebuggerStepThrough()> Private Sub InitializeComponent() End Sub Private Sub Page_Init(ByVal sender As System.EventArgs) Handles MyBase.UI.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor.vb Namespace CBB Partial Class login Inherits System.Picture Two <INPUT id="File2" type="file" name="File2" runat="server"></STRONG></P> <P><STRONG><asp:button id="Button1" runat="server" Text="Update"></asp:button>&nbsp.aspx") %> </body> </html> Login. <System.aspx.Diagnostics.Bedrooms: <asp:textbox id="TextBox6" runat="server" Width="32px"></asp:textbox>&nbsp. <asp:button id="Button2" runat="server" Text="Delete Listing"></asp:button></STRONG></P> <P><STRONG><asp:label id="Label4" runat="server" Width="472px" Height="34px"></asp:label> </STRONG></P> </form> <% Server. <asp:textbox id="TextBox8" runat="server"></asp:textbox></STRONG></P> <P><STRONG>&nbsp.<asp:textbox id="TextBox11" runat="server" Width="168px"></asp:textbox> </STRONG></P> <P><STRONG>Baths: <asp:textbox id="TextBox5" runat="server" Width="40px"></asp:textbox>&nbsp.Picture One <INPUT id="File1" type="file" name="File1" runat="server">&nbsp.Execute("design/footer.Page #Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer.&nbsp. InitializeComponent() End Sub 85 .</STRONG></P> <P><STRONG>&nbsp.

Rows Session("username") = r("username") Session("email") = r("email") Session("areacode") = r("areacode") Session("phone") = r("phone") Session("firstname") = r("fname") Session("ok") = "ok" Session("empid") = r("empid") Session.#End Region Public dbc As New dbConnnect Private Sub Page_Load(ByVal sender As System.EventArgs) Handles MyBase.Execute("design/menu. ByVal e As System.TextBox1.updatelisting" CodeFile="updatelisting.Text = "You Have entered the Wrong Information. ByVal e As System.aspx.Text & """ and password = """ & Me.vb" %> <% Server.aspx") End If End Sub End Class End Namespace Mylistiing.GetLength(I) If I = 0 Then Me.aspx") %> <% Server.aspx" %> <%@ Page Language="vb" AutoEventWireup="false" Inherits="CBB.Timeout = 10 Next Server.EventArgs) Handles Button1.Object.Pass.Click Dim strsql As String Dim I As Integer strsql = "select * from employee where username = """ & Me.Value & """" Dim x As DataTable = dbc.Execute("design/header.RunSelectQuery(strsql) I = x.Transfer("mylistings.Object.aspx <%@ Reference Page="~/email.Label3. Please Try Again" Else Dim r As DataRow For Each r In x.Load 'Put user code to initialize the page here End Sub Private Sub Button1_Click(ByVal sender As System.Select.aspx") %> <html> <body> <form id="shadow" method="post" runat="server"> <h1>Update a Listing</h1> 86 .

StreetName: <asp:textbox id="TextBox3" runat="server"></asp:textbox></STRONG></P> <P><STRONG>Garages: <asp:textbox id="TextBox4" runat="server" Width="32px"></asp:textbox>&nbsp.Bedrooms: <asp:textbox id="TextBox6" runat="server" Width="32px"></asp:textbox>&nbsp. SquareFeet: 87 . <asp:label id="Label2" runat="server" Width="88px"></asp:label>Image 2: <asp:label id="Label3" runat="server"></asp:label></STRONG></P> <P><STRONG>Price:&nbsp.&nbsp.<P><STRONG>Listing Id: <asp:label id="Label1" runat="server" Width="112px"></asp:label>Image 1:&nbsp. <asp:radiobutton id="radioland" runat="server" Text="Land" groupname="type"></asp:radiobutton>&nbsp. School District: <asp:textbox id="TextBox11" runat="server" Width="168px"></asp:textbox> </STRONG></P> <P><STRONG>Baths: <asp:textbox id="TextBox5" runat="server" Width="40px"></asp:textbox>&nbsp. <asp:radiobutton id="radioappt" runat="server" Text="Appartment / Condo" groupname="type" Checked="True"></asp:radiobutton></STRONG>&nbsp.(only numbers please) </STRONG></P> <P><STRONG>Street Number: <asp:textbox id="TextBox2" runat="server" Width="40px"></asp:textbox>&nbsp.Acres: <asp:textbox id="TextBox9" runat="server" Width="32px"></asp:textbox>&nbsp. <asp:radiobutton id="radioresidential" runat="server" Text="Residential" groupname="type"></asp:radiobutton>&nbsp.Zip Code: <asp:textbox id="TextBox13" runat="server" Width="48px"></asp:textbox></STRONG></P> <P><STRONG>Avalibility: <asp:radiobutton id="rdonew" runat="server" Text="Just Listed" groupname="sale" Checked="True"></asp:radiobutton><asp:radiobutton id="rdosale" runat="server" Text="Sale Pending" groupname="sale"></asp:radiobutton><asp:radiobutton id="rdosold" runat="server" Text="Sold" groupname="sale"></asp:radiobutton> </STRONG></P> <P><STRONG>Property Type: <asp:radiobutton id="radiocommerical" runat="server" Text="Commercial" groupname="type"></asp:radiobutton>&nbsp. </P> <P><STRONG>Assessed Value: <asp:textbox id="TextBox10" runat="server" Width="88px"></asp:textbox>&nbsp. <asp:textbox id="TextBox1" runat="server" Width="80px"></asp:textbox>&nbsp.

Picture One <INPUT id="File1" type="file" name="File1" runat="server">&nbsp. ByVal e As System.vb Namespace CBB Partial Class mylistings Inherits System.Object.aspx") %> </body> </html> Mylisting.Object. InitializeComponent() End Sub #End Region Public dbc As New dbConnnect Private Sub Page_Load(ByVal sender As System.Load If Session("ok") <> "ok" Then Server.EventArgs) Handles MyBase.aspx") 88 .&nbsp.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor. ByVal e As System.EventArgs) Handles MyBase.Web. <asp:button id="Button2" runat="server" Text="Delete Listing"></asp:button></STRONG></P> <P><STRONG><asp:label id="Label4" runat="server" Width="472px" Height="34px"></asp:label> </STRONG></P> </form> <% Server.Page #Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer.Transfer("error.</STRONG></P> <P><STRONG>&nbsp.<asp:textbox id="TextBox12" runat="server" Width="48px"></asp:textbox></STRONG></P> <P><STRONG>Long Description: <asp:textbox id="TextBox7" runat="server" Width="232px" TextMode="MultiLine" Height="72px"></asp:textbox></STRONG></P> <P><STRONG>Short Description:&nbsp. <asp:textbox id="TextBox8" runat="server"></asp:textbox></STRONG></P> <P><STRONG>&nbsp.DebuggerStepThrough()> Private Sub InitializeComponent() End Sub Private Sub Page_Init(ByVal sender As System.Execute("design/footer.Picture Two <INPUT id="File2" type="file" name="File2" runat="server"></STRONG></P> <P><STRONG><asp:button id="Button1" runat="server" Text="Update"></asp:button>&nbsp.UI.Diagnostics. <System.aspx.&nbsp.

aspx") End Sub Private Sub DataGrid1_SelectedIndexChanged(ByVal sender As System.aspx") End Sub End Class End Namespace Properties.Transfer("updatelisting.Items.</STRONG><STR ONG>Region&nbsp. To: </STRONG> 89 . zip.Object.Add("listingid".DataGrid1.DataSource = x Me. ByVal e As System.Transfer("addlisting.EventArgs) Handles DataGrid1.Items(i).DataGrid1.&nbsp.End If Dim sqlstr As String Dim x As New DataTable Dim sessionid As String sessionid = Val(Session("empid")) sqlstr = "select listingid.properties" CodeFile="properties.&nbsp.EventArgs) Handles Button1.</STRONG> <asp:dropdownlist id="DropDownList1" runat="server" Width="200px"></asp:dropdownlist></P> <P><STRONG>Price:&nbsp. Me.aspx") %> <html> <body> <form id="shadow" method="post" runat="server"> <h1>View Properties</h1> <P><STRONG><asp:label id="Label2" runat="server" ForeColor="Red" Font-Bold="True" Font-Size="Large" Width="184px" Visible="False"></asp:label></STRONG></P> <P><STRONG>Property Type: <asp:dropdownlist id="DropDownList2" runat="server" Width="208px"></asp:dropdownlist>&nbsp.SelectedIndexChanged Dim i As Integer context.&nbsp.aspx <%@ Page Language="vb" AutoEventWireup="false" Inherits="CBB.DataGrid1.Execute("design/header. street from listing where empid = " & sessionid & "" x = dbc.RunSelectQuery(sqlstr) Me. From: </STRONG> <asp:textbox id="btnlow" runat="server" Width="56px"></asp:textbox><STRONG>&nbsp. streetnum.Click Server.aspx") %> <% Server.Object.Cells(1).DataBind() End Sub Private Sub Button1_Click(ByVal sender As System.aspx.vb" %> <% Server.Text) Server.&nbsp.Execute("design/menu.&nbsp. ByVal e As System.

<asp:radiobutton id="radio2" runat="server" groupname="beds" Text="Two"></asp:radiobutton>&nbsp.Page #Region " Web Form Designer Generated Code " 90 .aspx") %> </body></html> Properties.&nbsp.UI.To: <asp:textbox id="sqfeethigh" runat="server" Width="48px"></asp:textbox></STRONG></P> <P><STRONG><asp:button id="Button1" runat="server" Text="Search Listings"></asp:button></STRONG></P> <P><STRONG> <asp:Label id="Label1" runat="server" FontSize="Medium" Font-Bold="True" ForeColor="Black"></asp:Label></P> <P><asp:datagrid id="DataGrid1" runat="server" FontSize="Smaller" Width="704px" ShowHeader="False" CellSpacing="4" Height="135px" BorderColor="Silver" CellPadding="0" GridLines="None"> <SelectedItemStyle Font-Size="Large" FontNames="Arial" BackColor="Blue"></SelectedItemStyle> <ItemStyle Font-Size="Small" Font-Names="Times New Roman" BackColor="White"></ItemStyle> <HeaderStyle Font-Size="12pt"></HeaderStyle> <Columns> <asp:ButtonColumn Text="Click for More Details" CommandName="Select"> <ItemStyle FontSize="Small"></ItemStyle> </asp:ButtonColumn> </Columns> </asp:datagrid></P> </form> <% Server.<asp:textbox id="btnhigh" runat="server" Width="72px"></asp:textbox>(<EM>Please Input whole numbers only.Web. <asp:radiobutton id="radio3" runat="server" groupname="beds" Text="Three"></asp:radiobutton>&nbsp.aspx.vb Namespace CBB Partial Class properties Inherits System. ex. <asp:radiobutton id="radio4" runat="server" groupname="beds" Text="Four or more"></asp:radiobutton><asp:radiobutton id="radioany" runat="server" groupname="beds" Text="Any" Checked="True"></asp:radiobutton></STRONG><STRONG></P> <P><STRONG>SquareFeet: From: <asp:textbox id="sqfeetlow" runat="server" Width="48px"></asp:textbox>&nbsp.Execute("design/footer.&nbsp. 30000)</EM></P> <P><STRONG>Bedrooms: <asp:radiobutton id="radio1" runat="server" groupname="beds" Text="One"></asp:radiobutton>&nbsp.&nbsp.

Click If IsNumeric(Me.RunSelectQuery(sqlstr) Me.Object.DataValueField = "CategoryID" Me.Text <> "" Then Label2.EventArgs) Handles Button1.Text) = False And Me.sqfeetlow.EventArgs) Handles MyBase.Object.DropDownList2.DropDownList2.Text <> "" Then Label2.Diagnostics.EventArgs) Handles MyBase. ByVal e As System.DebuggerStepThrough()> Private Sub InitializeComponent() End Sub Private Sub Page_Init(ByVal sender As System. ByVal e As System.Visible = True Exit Sub End If If IsNumeric(Me.RunSelectQuery(sqlstr) Me. CategoryName from Dim dt As DataTable = dbc.DropDownList1.DropDownList2.sqfeethigh.DropDownList1.DataTextField = "CategoryName" Me.btnhigh.DropDownList1.DataValueField = "PropertyId" Me.DataSource = dt2 Me.DataBind() End If End Sub Private Sub Button1_Click(ByVal sender As System. ByVal e As System. <System.Load If IsPostBack = False Then Dim sqlstr As String Catergories" sqlstr = "select CategoryID.Text <> "" Then 91 .btnhigh.Text = "Only numbers in the squarefeet fields" Label2.DataTextField = "PropertyName" Me.DropDownList2.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor.'This call is required by the Web Form Designer.DataBind() sqlstr = "select PropertyId.Text) = False And Me.Text = "Only numbers in the squarefeet fields" Label2.sqfeethigh.DropDownList1.Text) = False And Me.Object.DataSource = dt Me.Visible = True Exit Sub End If If IsNumeric(Me.sqfeetlow. InitializeComponent() End Sub #End Region Public dbc As New dbConnnect Private Sub Page_Load(ByVal sender As System.PropertyName from Property" Dim dt2 As DataTable = dbc.

DataSource = dt Me.Text <> "" Then sqrfeethigh = " and sqrfeet between " & Me.sqfeethigh.Visible = True Exit Sub End If Dim sqlstr As String Dim i.sqfeetlow.radio2.Text If pricehigh <> "" Then pricehigh = " and price < " & pricehigh End If If pricelow <> "" Then pricelow = " and price > " & pricelow End If If pricehigh <> "" And pricelow <> "" Then pricehigh = " and price between " & Me.DropDownList1.DropDownList2.sqfeethigh.DataBind() Me.Text <> "" And Me.RunSelectQuery(sqlstr) Me. searchpic. decide As Integer Dim pricehigh.btnlow.Text sqrfeetlow = "" End If sqlstr = "select listingid.Then Label2.radio3.DataGrid1. sqrfeetlow.Checked = True Then bedrooms = " and numbed =" & 1 ElseIf Me.Text <> "" Then sqrfeetlow = " and sqrfeet > " & Me.sqfeetlow.btnhigh.radio1.sqfeetlow.DataGrid1.Checked = True Then bedrooms = " and numbed =" & 3 End If If Me.sqfeethigh.SelectedIndex + 1 & "" & _ " And propertyid =" & Me.sqfeetlow.Text) = False And Me. sqrfeethigh As String pricehigh = Me.Text = "Only numbers in the price fields" Label2.btnlow.sqfeethigh.Text <> "" Then sqrfeethigh = " and sqrfeet < " & Me.Text = "Only numbers in the price fields" Label2.Text End If If Me.Visible = True Exit Sub End If If IsNumeric(Me.Text & " and " & Me.Text = "" 92 . street. price from listing where catergoryid =" & Me.Text = "" Me.btnlow.Checked = True Then bedrooms = " and numbed =" & 2 ElseIf Me.sqfeetlow.btnlow.SelectedIndex + 1 & "" + pricelow + bedrooms + pricehigh + sqrfeethigh + sqrfeetlow Me.Text = sqlstr Dim dt As DataTable = dbc.sqfeethigh.Text pricelow = Me.Text & "" pricelow = "" End If If Me.Text & " and " & Me.btnhigh.Text End If If Me.Label1. descshort. pricelow. streetnum. bedrooms.Text <> "" Label2.

Rows.Rows.Text) Server.aspx. ByVal e As System." ElseIf dt. Me.EventArgs) Handles DataGrid1.Text = " There were " & dt.SelectedIndexChanged Dim i.Execute("design/header.Text) context.DropDownList1.Items.Count = "1" Then Label1.aspx <%@ Page Language="vb" AutoEventWireup="false" Inherits="CBB.Execute("design/menu.btnlow.Rows.Add("town".Items(j).Object.aspx") %> <% Server.Count = "0" Then Label1.Text = " There was " & dt.Count & " property Else Label1.Text = "" Me.aspx") %> <form id="shadow" method="post" runat="server"> <h1>Quick Search Results</h1> <P> <asp:Label id="lblSearchedFor" runat="server"></asp:Label>&nbsp. Me.DataGrid1." End If End Sub Private Sub DataGrid1_SelectedIndexChanged(ByVal sender As System.Transfer("details. j As Integer i = Me.Text = "" If dt.quicksearch" CodeFile="quicksearch.Count & " properties found. Please Try Again" found.btnhigh.Text = "Your Search Yielded No Results.</P> <P> <asp:label id="lblResultInfo" runat="server"></asp:label> <asp:datagrid id="DataGrid2" runat="server" Width="704px" ShowHeader="False" CellSpacing="4" Height="135px" BorderColor="Silver" CellPadding="0" GridLines="None" Font-Size="Smaller"> <SelectedItemStyle Font-Size="Large" FontNames="Arial" BackColor="Blue"></SelectedItemStyle> <ItemStyle Font-Size="Small" Font-Names="Times New Roman" BackColor="White"></ItemStyle> <HeaderStyle Font-Size="12pt"></HeaderStyle> <Columns> <asp:ButtonColumn Text="Click for More Details" CommandName="Select"> <ItemStyle FontSize="Small"></ItemStyle> </asp:ButtonColumn> 93 .Items(i).SelectedIndex j = Me.Me.Items.Add("listingid".aspx") End Sub End Class End Namespace Quicksearch.vb" %> <% Server.Cells(1).DropDownList1.Rows.SelectedIndex context.DataGrid1.

EventArgs) Handles MyBase.EventArgs) Handles MyBase.UI.aspx") %> Quicksearch.lblSearchedFor.Text &= " (zip)" sqlstr = "select listingid.Object.Web. descshort.DataGrid2. street.Load 'Put user code to initialize the page here searchString = searchString.DataBind() Else Me.DataGrid2.DataSource = dt2 Me.Trim() If searchString = "" Then Me. searchpic.</Columns> </asp:datagrid> </P> </form> <% Server.Execute("design/footer. ByVal e As System.vb Namespace CBB Partial Class quicksearch Inherits System.lblSearchedFor.Text &= " (city)" 94 .RunSelectQuery(sqlstr) Me.Diagnostics.lblSearchedFor. streetnum.lblSearchedFor.Text = "Please enter a City or Zip to search for. price from listing where zip ='" & searchString & "'" dt2 = dbc.Text = "You searched for: " & searchString If IsNumeric(searchString) = True Then Me.Object." Exit Sub End If Dim sqlstr As String Dim dt2 As DataTable Me.Page Public dbc As New dbConnnect #Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer. ByVal e As System. <System.aspx. InitializeComponent() End Sub #End Region Private Sub Page_Load(ByVal sender As System.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor.DebuggerStepThrough()> Private Sub InitializeComponent() End Sub Private Sub Page_Init(ByVal sender As System.

Text) Server.DataGrid2.DataGrid2. Please Try Again" ElseIf dt2.Execute("design/menu." Else lblResultInfo.categoryid = b.Rows. street.DataBind() End If If dt2.Count = "1" Then lblResultInfo.vb" %> <% Server.lblResultInfo.EventArgs) Dim i As Integer i = Me.Count & " properties found.DataGrid2.Cells(1).Execute("design/header.Items(i). Me.register" CodeFile="register.Rows. price from catergories a.aspx.aspx") %> <html> <body> <form id="shadow" method="post" runat="server"> <h1>Register Another Employee</h1> <STRONG></STRONG><STRONG></STRONG> <P><STRONG> <asp:Label id="Label1" runat="server"></asp:Label></STRONG></P> <P><STRONG> Enter First Name: <asp:TextBox id="first" runat="server"></asp:TextBox> </STRONG></P> <P><STRONG> Enter Last Name: <asp:TextBox id="last" runat="server"></asp:TextBox></STRONG></P> <P><STRONG> Enter Phone Number&nbsp.aspx") End Sub End Class End Namespace Register.Text = " There was " & dt2. descshort.Object.sqlstr = "select listingid.Rows. </STRONG> 95 .aspx") %> <% Server. searchpic.Items.catergoryid" dt2 = dbc.Rows.Add("listingid".DataSource = dt2 Me.aspx" %> <%@ Page Language="vb" AutoEventWireup="false" Inherits="CBB. listing b where categoryname ='" & searchString & "' and a.Text = " There were " & dt2.Count & " property found.SelectedIndex context.RunSelectQuery(sqlstr) Me. streetnum. ByVal e As System.Transfer("details." End If End Sub Private Sub DataGrid1_SelectedIndexChanged(ByVal sender As System.DataGrid2.Text = "Your Search Yielded No Results.Count = "0" Then Me. Areacode:&nbsp.aspx <%@ Reference Page="~/email.

Web.&nbsp.aspx") %> </body> </html> Register.Page #Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer.</STRONG></P> <P>&nbsp. <asp:RadioButton id="rdofemale" runat="server" Text="Female" groupname="gender"></asp:RadioButton></STRONG></P> <P><STRONG>Today's Date: </STRONG> <asp:TextBox id="datestarted" runat="server"></asp:TextBox><STRONG>&nbsp.vb Namespace CBB Partial Class register Inherits System.&nbsp.&nbsp.&nbsp. Phone: </STRONG> <asp:TextBox id="phone" runat="server" MaxLength="7" Width="64px"></asp:TextBox><EM>(No Spaces)</EM></P> <P><STRONG> Enter Email Address: <asp:TextBox id="email" runat="server"></asp:TextBox></STRONG></P> <P><STRONG>Gender: <asp:RadioButton id="rdomale" runat="server" Text="Male" groupname="gender"></asp:RadioButton>&nbsp.DebuggerStepThrough()> Private Sub InitializeComponent() End Sub 96 .aspx.Execute("design/footer. <asp:TextBox id="username" runat="server"></asp:TextBox> </STRONG></P> <P><STRONG>Create a Password:&nbsp.UI.</STRONG><EM>(Format MM/DD/YYY)</EM></P> <P><STRONG>Create a Username: &nbsp.Diagnostics.</P> </form> <% Server.&nbsp.<asp:TextBox id="areacode" runat="server" Width="32px" MaxLength="3"></asp:TextBox><STRONG>&nbsp.<INPUT id="pass" type="password" name="Password1" runat="server" size="22"></STRONG></P> <P><STRONG>Enter a brief personal profile:</STRONG></P> <P> <asp:TextBox id="profiles" runat="server" Width="320px" TextMode="MultiLine" Height="72px"></asp:TextBox></P> <P><INPUT id="file1" type="file" runat="server" NAME="file1"></P> <STRONG></STRONG><P><STRONG> <asp:Button id="Submit" runat="server" Text="Submit Your Information" Width="240px" BackColor="DarkGray" FontBold="True"></asp:Button>&nbsp. <System.

EventArgs) Handles MyBase.Text = "You need to input a username" Exit Sub End If If last.Text = "You need a first name" Exit Sub End If If pass.Text = "" Then Label1.Text = "" Then Label1.Text = "You need a password" Exit Sub End If If email.Object.username.Object.rdomale.Click Dim gender As String If Me.Checked = True End Sub Private Sub Submit_Click(ByVal sender As System.Transfer("error. ByVal e As System.EventArgs) Handles Submit.aspx") End If Me.Text & """" Dim x As DataTable = dbc.Value = "" Then Label1.Text = "" Then Label1.GetLength(I) If I = 1 Then 97 .Object.Text = "" Then Label1.Select.Text = "You need to enter an email address" Exit Sub End If Dim strsql As String Dim sqlstr As String Dim I As Integer strsql = "select * from Employee where username = """ & Me. ByVal e As System.Load If Session("ok") <> "ok" Then Server.EventArgs) Handles MyBase.Text = "You need a last name" Exit Sub End If If first.RunSelectQuery(strsql) I = x. InitializeComponent() End Sub #End Region Public dbc As New dbConnnect Private Sub Page_Load(ByVal sender As System.Checked = True Then gender = "male" Else gender = "female" End If If username.Private Sub Page_Init(ByVal sender As System.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor.rdomale. ByVal e As System.

username. email.again" Else Me.Execute("design/header. [password].profile.'" & phone. lname." & _ "'" & gender & "'.staff" CodeFile="staff. Bennett Staff</h1> <div style="MARGIN-LEFT: 25px"> <table width="100%" CELLSPACING="0" cellpadding="0" border="0" class="table1"> <tr> <td width="30%"> <p>Choose an employee from the list to see their profile.file1.Label1.Label1.'" & email.Text & "'.Text & "'.RunUpdateDeleteQuery(strsql) Then Server.Transfer("success.aspx <%@ Page Language="vb" AutoEventWireup="false" Inherits="CBB.aspx") %> <% Server. areacode.aspx.Text & "'.Text = "Username Already Taken.Text & "'.Text & "'.aspx") Else Server.Execute("design/menu.</p> <P><asp:dropdownlist id="dd_EmpList" runat="server" AutoPostBack="True"></asp:dropdownlist></P> </td> <td width="70%"> <div class="empDetails"> <P>(image)<asp:image id="img_emp" runat="server" Height="152px" Width="160px" Visible="False" BorderStyle="Solid"> 98 .Text & "'.aspx") %> <html> <body> <form id="shadow" method="post" runat="server"> <h1>Collin B. picture) " & _ "Values ('" & first. gender.'" & a & "')" Me.FileName) Me.file1.PostedFile.Path.'" & pass. '" & last. Please try Dim a.Text = sqlstr If dbc.vb" %> <% Server.IO. " & _ "'" & areacode.PostedFile.'" & profiles.SaveAs("C:\Inetpub\wwwroot\RealEstate\Employee\" & b) a = " employee\" + b sqlstr = "Insert Into Employee (fname. phone.'" & username.Transfer("register.'" & datestarted.aspx") End If End If End Sub End Class End Namespace Staff. b As String b = System.Value & "'.Text & "'. datestarted.Text & "'.GetFileName(Me.

dd_EmpList.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() End Sub Private Sub Page_Init(ByVal sender As System.Label1.Object.Execute("design/footer.DataTextField = "FullName" Me.Load 'Me. InitializeComponent() End Sub #End Region Public dbc As New dbConnnect Dim sqlstr As String 'Dim numberOfEmp As Integer = dbc.aspx. ByVal e As System.aspx") %> </body></html> Staff. ByVal e As System.UI.EventArgs) Handles MyBase.EmpTable Me.</asp:image></P> <P> <asp:Label id="lbl_EmpName" runat="server"></asp:Label></P> <P> <asp:Label id="lbl_EmpPhone" runat="server"></asp:Label></P> <P> <asp:Label id="lbl_EmpEmail" runat="server"></asp:Label></P> </div> </td> </tr> </table> </div> </form> <% Server.numberEmployees If Not IsPostBack Then dd_EmpList.DataValueField = "empId" 99 .numberEmployees Private Sub Page_Load(ByVal sender As System.Object.vb Namespace CBB Partial Class staff Inherits System.Text = "Number Of employees: " & dbc.Page #Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor.dd_EmpList. <System.DataSource = dbc.Web.EventArgs) Handles MyBase.

dd_EmpList.Text = x(0) Me.SelectedValue) Me.aspx <%@ Reference Page="~/email.EmpDetails(Me. <asp:label id="Label2" runat="server" Width="88px"></asp:label>Image 2: <asp:label id="Label3" runat="server"></asp:label></STRONG></P> <P><STRONG>Price:&nbsp. <asp:textbox id="TextBox1" runat="server" Width="80px"></asp:textbox>&nbsp.Zip 100 .lbl_EmpPhone.Me.StreetName: <asp:textbox id="TextBox3" runat="server"></asp:textbox></STRONG></P> <P><STRONG>Garages: <asp:textbox id="TextBox4" runat="server" Width="32px"></asp:textbox>&nbsp.aspx") %> <% Server.Text = x(1) Me.Execute("design/header.Object.(only numbers please) </STRONG></P> <P><STRONG>Street Number: <asp:textbox id="TextBox2" runat="server" Width="40px"></asp:textbox>&nbsp.aspx") %> <html> <body> <form id="shadow" method="post" runat="server"> <h1>Update a Listing</h1> <P><STRONG>Listing Id: <asp:label id="Label1" runat="server" Width="112px"></asp:label>Image 1:&nbsp. ByVal e As System.lbl_EmpEmail.Acres: <asp:textbox id="TextBox9" runat="server" Width="32px"></asp:textbox>&nbsp.&nbsp.dd_EmpList.lbl_EmpName.dd_EmpList.vb" %> <% Server.Execute("design/menu.SelectedIndexChanged setEmpDetails() End Sub End Class End Namespace Updatelisting.SelectedIndex = 0 setEmpDetails() End If End Sub Sub setEmpDetails() Dim x() As String = dbc.updatelisting" CodeFile="updatelisting.aspx" %> <%@ Page Language="vb" AutoEventWireup="false" Inherits="CBB.EventArgs) Handles dd_EmpList.DataBind() Me.Text = x(2) End Sub Private Sub dd_EmpList_SelectedIndexChanged(ByVal sender As System.aspx.

Bedrooms: <asp:textbox id="TextBox6" runat="server" Width="32px"></asp:textbox>&nbsp.Execute("design/footer.Code: <asp:textbox id="TextBox13" runat="server" Width="48px"></asp:textbox></STRONG></P> <P><STRONG>Avalibility: <asp:radiobutton id="rdonew" runat="server" Text="Just Listed" groupname="sale" Checked="True"></asp:radiobutton><asp:radiobutton id="rdosale" runat="server" Text="Sale Pending" groupname="sale"></asp:radiobutton><asp:radiobutton id="rdosold" runat="server" Text="Sold" groupname="sale"></asp:radiobutton> </STRONG></P> <P><STRONG>Property Type: <asp:radiobutton id="radiocommerical" runat="server" Text="Commercial" groupname="type"></asp:radiobutton>&nbsp. SquareFeet: <asp:textbox id="TextBox12" runat="server" Width="48px"></asp:textbox></STRONG></P> <P><STRONG>Long Description: <asp:textbox id="TextBox7" runat="server" Width="232px" TextMode="MultiLine" Height="72px"></asp:textbox></STRONG></P> <P><STRONG>Short Description:&nbsp. School District: <asp:textbox id="TextBox11" runat="server" Width="168px"></asp:textbox> </STRONG></P> <P><STRONG>Baths: <asp:textbox id="TextBox5" runat="server" Width="40px"></asp:textbox>&nbsp.aspx") %> </body> 101 .Picture One <INPUT id="File1" type="file" name="File1" runat="server">&nbsp. <asp:radiobutton id="radioland" runat="server" Text="Land" groupname="type"></asp:radiobutton>&nbsp. <asp:radiobutton id="radioresidential" runat="server" Text="Residential" groupname="type"></asp:radiobutton>&nbsp.&nbsp.Picture Two <INPUT id="File2" type="file" name="File2" runat="server"></STRONG></P> <P><STRONG><asp:button id="Button1" runat="server" Text="Update"></asp:button>&nbsp.</STRONG></P> <P><STRONG>&nbsp. <asp:button id="Button2" runat="server" Text="Delete Listing"></asp:button></STRONG></P> <P><STRONG><asp:label id="Label4" runat="server" Width="472px" Height="34px"></asp:label> </STRONG></P> </form> <% Server. </P> <P><STRONG>Assessed Value: <asp:textbox id="TextBox10" runat="server" Width="88px"></asp:textbox>&nbsp.&nbsp. <asp:radiobutton id="radioappt" runat="server" Text="Appartment / Condo" groupname="type" Checked="True"></asp:radiobutton></STRONG>&nbsp. <asp:textbox id="TextBox8" runat="server"></asp:textbox></STRONG></P> <P><STRONG>&nbsp.

empid" Dim x As DataTable = dbc. longdesc As String Dim squarefeet.</html> Updatelisting. price. <System.EventArgs) Handles MyBase. phone.aspx. listingid.Items("town") listingid = context. accessed.DebuggerStepThrough()> Private Sub InitializeComponent() End Sub Private Sub Page_Init(ByVal sender As System. zip.EventArgs) Handles MyBase. baths As Integer location = context. bedrooms.Page #Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer. ByVal e As System. location As String Dim garage.aspx") End If If IsPostBack = False Then postListinginfo() End If End Sub Sub postListinginfo() Dim sqlstr.Transfer("error. ByVal e As System. areacode.Web.Diagnostics.Rows longdesc = r("desclong") shortdesc = r("descshort") pic1 = r("picture1") pic2 = r("picture2") 102 .Object. streetnumber. employee b where listingid = " & listingid & " and a.RunSelectQuery(sqlstr) Dim r As DataRow For Each r In x.empid = b. InitializeComponent() End Sub #End Region Public dbc As New dbConnnect Private Sub Page_Load(ByVal sender As System.vb Namespace CBB Partial Class updatelisting Inherits System. email. streetname. acres. pic2.Load If Session("ok") <> "ok" Then Server. shortdesc.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor.Object.Items("listingid") sqlstr = "select * from listing a. pic1. schooldist.UI.

Checked = True Then property_type = 3 Else property_type = 4 End If If Me.TextBox6.Text = bedrooms Me.Object.TextBox7.PostedFile.GetFileName(Me.TextBox12.File2.Text = price Me.radioland.rdosale.Path.TextBox10.TextBox9.TextBox8.GetFileName(Me. z As String System.Label1.Text = streetname Me.Checked = True Then saletype = "Just Listed" ElseIf Me.Text = streetnumber Me.Text = schooldist Me. ByVal e As System.Text = accessed Next End Sub Private Sub Button1_Click(ByVal sender As System.Text = acres Me.Text = garage Me.TextBox2.Checked = True Then saletype = "Sold" End If Dim Dim Dim x = y = sqlstr As String listingid As String x.TextBox1.TextBox5.TextBox11. y.Checked = True Then property_type = 1 ElseIf Me.Text = squarefeet Me.radioresidential.FileName) System.EventArgs) Handles Button1.rdonew.Text = longdesc Me.Label3.Text = context.Text = baths Me.Checked = True Then property_type = 2 ElseIf Me.IO.Text = shortdesc Me.TextBox4.Path.TextBox3.TextBox13.Text = pic2 Me.FileName) 103 .File1.streetname = r("street") streetnumber = r("streetnum") squarefeet = r("sqrfeet") price = r("price") bedrooms = r("numbed") baths = r("numbath") email = r("email") phone = r("phone") garage = r("numgarage") areacode = r("areacode") acres = r("acres") zip = r("zip") schooldist = r("schooldist") accessed = r("accessed") Me.PostedFile.IO.Label2.Text = zip Me.radiocommerical.Click Dim property_type As Integer Dim saletype As String If Me.Items("listingid") Me.Checked = True Then saletype = "Sale Pending" ElseIf Me.rdosold.Text = pic1 Me.

If x = "" Then x = Label2.Object. numbed=" & TextBox6.Text & ". numgarage=" & TextBox4.Text & "'. ByVal e As System.Text sqlstr = "update listing set price=" & TextBox1.Text z = "<img src =" & y & " height =60 width =75>" Else Me. searchpic ='" & z & "'.Text = "You have sucessfully updated your listing" postListinginfo() End Sub Private Sub Button2_Click(ByVal sender As System.SaveAs("C:\Inetpub\wwwroot\CBB\images\property\" & x) End If If y = "" Then y = Label3.Text Else Me.Transfer("update.RunUpdateDeleteQuery(sqlstr) Label4. streetnum='" & TextBox2.Text & "'.Text & "' .SaveAs("C:\Inetpub\wwwroot\CBB\images\property\" & y) z = "<img src =" & "images/property/" & y & " height =60 width =75>" End If listingid = Label1. descLong='" & TextBox7. accessed ='" & TextBox10.aspx") End Sub End Class End Namespace 104 .File1.Text & "'. " & _ " numbath =" & TextBox5.Label4.sqrfeet = " & TextBox12.Text & "'.File2.Text & ". picture1 ='" & x & "' .Text & "'.Text = sqlstr dbc. avaliability ='" & saletype & "'.acres ='" & TextBox9.Text Server. picture2 ='" & y & "' where listingid = " & listingid Me.TextBox1.Text & ".Text & "'." & _ " street ='" & TextBox3. propertyid =" & property_type & ".EventArgs) Handles Button2.Text & ". " & _ " descShort='" & TextBox8.PostedFile.Click Dim sqlstr As String sqlstr = "delete from listing where listingid =" & Me.PostedFile.zip ='" & TextBox13.Text & ".

Essentials of .com) SOFTWARE USED: Framework: .Estate Websites like (www. MSDN Library (http://msdn.5 or 3. Book .Google (www. Various Real.net +VB. www.google.microsoft.com) 2.net Framework 2.net 3.com/en-us/library/ms123401.com.99acers.net (Microsoft Visual Studio 2005 or later) Back-end: Microsoft Access 2003 or 2007 105 .5 Front-end: ASP.makaan.aspx) 4. Search Engine .Bibliography BIBLIOGRAPHY 1.

Master your semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master your semester with Scribd & The New York Times

Cancel anytime.