Вы находитесь на странице: 1из 127

Final Report (Housing module)

INDEX
INTRODUCTION

SRS SDS CODE

INTRODUCTION
The housing module is to render the block management with the proper specifications of every housing aspect in the block. It covers: (a) a description of the environment in which the application is expected to operate, (b) a definition of the applications capabilities, and (c) a specification of the applications functional and nonfunctional requirements.

Databases have been setup for each aspects introduced for future references. Three level of approach has been brought forward in regards to handling of data- The BDO, the Higher Authority and the citizen. Their level of availability of data has been discussed in details in the SRS portion. The maintenance division is responsible for development of the Google map attachment of all the system as to point out their exact location on the block and specify their details as well. Other aspects have also been introduced which will be seen in the SRS and SDS division.

SRS
1. Introduction:
This is the Software Requirements Specification (SRS) for the Housing facilities under the construct of the Block Management System. The documents purpose is to convey information about the applications requirements to the reader providing : (a) a description of the environment in which the application is expected to operate,

(b) a definition of the applications capabilities, and (c) a specification of the applications functional and nonfunctional requirements. This document is intended to serve several types of readers: First, it is anticipated that the SRS will be used by the citizens residing or willing to reside in the block. They will use the information recorded here as the basis for meeting their demands to buy, rent or sell accommodations for both residential and commercial purposes. Second, the District Magistrate or some higher officials will review the document to clarify their understanding of what the application does and how it is being handled. Also, they will have an understanding of how their needs of land and house overview as well as population distribution over various housing categories. Third, the Block Development Officers Assistants will use this document to establish a basis for agreement between the client and development team about the functionality to be provided by the application. It will give him/her a clear idea regarding how to insert and update the records. They can also check that whether all the necessary fields against a record have been properly dealt with or not. Fourth, the test planners will use this document to derive test plans and test cases. Finally, the project manager will use this document during project planning and monitoring.

Scope of Product:
The purpose of this software development project is to create a new application called: Block Management System and handle the Housing constructs. The client for this project wishes to enter the specifications and get the desired results. The application will provide the following capabilities: This application will be accessed via a computer system with internet facility. The citizens will use this application to get the required information about accommodation or land, that they wish to sell, buy or rent for either residential and commercial purposes. Insertion, updation and deletion of the records is the responsibility of the BDO assistants. This application will be used by the BDO assistants to keep track of the houses and plots along with their types as well as their transaction details. This application will generate reports for administrative purposes for the BDO, DM and other higher level officials. This application will provide search results based on certain specifications.

The project's client has determined that this application will provide the following benefits: Provide additional flexibility and convenience to the citizen regarding their search and business. Provide better reliability and security of the housing information under the block. Provide a more productive environment for the BDO staff members along with the citizens. Reduce the cost of operations for the housing business.

Reduce the complexities of the transactions involved. Provide a categorized and well defined search facility. People can advertise their property through this application.

2. Enhancement Request: Use Case Diagrams: 2.1 B.D.O. Office:


The requests by the user that are to be introduced into the system entirely. To visualize the details geographically using GOOGLE EARTH incorporating factors like : Housing Location for Residential purpose. Housing Location for Commercial purpose.

In case of requirement of update details regarding properties following details should be monitored : 1. Ownership Update 2. Property-type Update

2.2 Citizen:
To visualize the details geographically using GOOGLE EARTH incorporating factors like : 1. Housing Location for Residential purpose. 2. Housing Location for Commercial purpose. Use Case Diagrams:

A citizen can perform the following operations: i. For a given address, he/she can search & locate the exact position of any property(residential or commercial).

2.3 Higher Authorities:

Use Case Diagrams:


To visualize the details geographically using GOOGLE EARTH incorporating factors like : 1. Housing Location for Residential purpose. 2. Housing Location for Commercial purpose.

He/she can view accurate statistics filed in by the B.D.O. & listen the area or for some enquired information.

3. Problem Report:
Some of the problems faced were: 1. Problems in Computers: Frequent problems in computer were also one of the hindrances in our path such as Insufficient RAM (which made the computer slow)

External Interface Requirement:

Hardware Interfaces:
The required hardware is: Intel(R) Pentium CPU 2.80 GHz 128 MB of RAM or more.

Software Interfaces:
ASP-.Net and Oracle 9i.

Communications Interfaces:
Following protocol is needed for communication purpose: Hyper Text Transfer Protocol (HTTP).

Operating Environment: This project is developed on the following platform:


Windows XP professional.

SDS

SOFTWARE DESIGN SPECIFICATION For HOUSING Under THE BLOCK MANAGEMENT SYSTEM

1. Introduction:
This is the Software Design Specification (SDS) for the Housing facilities under the construct of the Block Management System. The documents purpose is to convey information about the applications requirements to the reader providing : (a) a description of the environment in which the application is expected to operate, (b) a definition of the applications capabilities, and (c) a specification of the applications functional and nonfunctional requirements. This document is intended to serve several types of readers: First, it is anticipated that the SDS will be used by the citizens residing or willing to reside in the block. They will use the information recorded here as the basis for meeting their demands to buy, rent or sell accommodations for both residential and commercial purposes.

Second, the District Magistrate or some higher officials will review the document to clarify their understanding of what the application does and how it is being handled. Also, they will have an understanding of how their needs of land and house overview as well as population distribution over various housing categories.

Third, the Block Development Officers Assistants will use this document to establish a basis for agreement between the client and development team about the functionality to be provided by the application. It will give him/her a clear idea regarding how to insert and update the records. They can also check that whether all the necessary fields against a record have been properly dealt with or

not.

Fourth, the test planners will use this document to derive test plans and

test cases. Finally, the project manager will use this document during project planning and monitoring.

Scope of Product:
The purpose of this software development project is to create a new application called: Block Management System and handle the Housing constructs. The client for this project wishes to enter the specifications and get the desired results. The application will provide the following capabilities: This application will be accessed via a computer system with internet facility. The citizens will use this application to get the required information about accommodation or land, that they wish to sell, buy or rent for either residential and commercial purposes. Insertion, updation and deletion of the records is the responsibility of the BDO assistants. This application will be used by the BDO assistants to keep track of the houses and plots along with their types as well as their transaction details. This application will generate reports for administrative purposes for the BDO, DM and other higher level officials. This application will provide search results based on certain specifications. The project's client has determined that this application will provide the following benefits: Provide additional flexibility and convenience to the citizen regarding their search and business. Provide better reliability and security of the housing information under the block. Provide a more productive environment for the BDO staff members along with the citizens. Reduce the cost of operations for the housing business.

Reduce the complexities of the transactions involved. Provide a categorized and well defined search facility. People can advertise their property through this application.

SITEMAPS :
SITE MAP for BMS HOUSING

BDO Maintenance

Residential

D
Commercial

frmMaintainResiInfo.aspx

frmMaintainCommInfo.aspx Industrial frmMaintainIndustrialInfo.aspx Institutional frmMaintainInstInfo.aspx Land info frmMaintainLandInfo.aspx


Advertisement frmMaintainAddInfo.aspx Buy/Sell Rent/Lease Transactions Transactions frmHOTransactionBuySell.aspx frmHOTransactionRentLease .aspx

FIELDS Residential Commercial Industrial Institutional Land info


Advertisement

FORM NAME frmMaintainResiInfo.aspx frmMaintainCommInfo.aspx frmMaintainIndustrialInfo.aspx frmMaintainInstInfo.aspx frmMaintainLandInfo.aspx


frmMaintainAddInfo.aspx

DETAILS BDO maintains (insert, update, delete) Residential Property information BDO maintains Commercial Property information BDO maintains Industrial Property information BDO maintains Institutional Property information BDO maintains Land information BDO maintains Advertisement information BDO maintains Buy/Sell Transaction information BDO maintains Rent/Lease Transaction information BDO selects from the pop-up menu and performs the desired actions on any point in the map drawn which are as follows: i. Selects an area and makes necessary changes based on requirement. ii. Marks any area in the map

Buy/Sell Transactions

frmHOTransactionBuySell.aspx

Rent/Lease Transactions

frmHOTransactionRentLease.aspx

BDO main page

frmHOGoogleBDO.aspx

& declares it as a property of a certain type

CITIZEN View

Residential

E
Commercial

frmResiCitz.aspx

frmViewCitz1.aspx

frmCommCitz.aspx

frmViewCitz2.aspx

Industrial

frmIndustryCitz.aspx

frmViewCitz3.aspx

Institutional frmInstituteCitz.aspx frmViewCitz4.aspx

Land Information

frmViewLandInfo.aspx

Advertisement Search

frmAdvertisementCitz.aspx

frmViewCitz5.aspx

FIELDS Residential Commercial Industrial Institutional


Land Information

FORM NAME frmResiCitz.aspx frmCommCitz.aspx frmIndustryCitz.aspx frmInstituteCitz.aspx frmViewLandInfo.aspx frmAdvertisementCitz.aspx

DETAILS CITIZEN views Residential Property information CITIZEN views Commercial Property information CITIZEN views Industrial Property information. CITIZEN views Institutional Property information CITIZEN views Land information CITIZEN views Properties Advertisements

Advertisement Search

DM View

Residential, Commercial, Industrial, Institutional

higher_official_overview.aspx

FIELDS Residential, Commercial, Industrial, Institutional

FORM NAME higher_official_overview.aspx

DETAILS DM can view Residential, Commercial, Industrial, Institutional Property Information for a Block.

2. Forms:
1.B.D.O offices visualization:

2.Citizens Visualization:

3. DMs Visualization:

4. View Advertisement Information:

5. View Land Information:

6. Citizen Main Page:

7. Citizen Main Search Page:

8. Citizen Welcome Page:

9. View Commercial Property Information:

10. Commercial Property Search Page:

11. Delete Advertisement Information:

12. Delete Commercial Property Information:

13. Delete Industrial Property Information:

14. Delete Institutional Property Information:

15. Delete Land Information:

16. Delete Residential Property Information:

17. Commercial Occupancy Information:

18. Industrial Occupancy Information:

19. Residential Occupancy Information:

20. Transaction Buy/Sell Details:

21. Transaction Rent/Lease Details:

22. Industrial Property Search Page:

23. View Industrial Property Information:

24. Insert Advertisement Information:

25. Insert Commercial Property Information:

26. Insert Industrial Property Information:

27. Insert Institutional Property Information:

28. Insert Land Information:

29. Insert Residential Property Information:

30. View Institutional Property Information:

31. Institutional Property Search Page:

32. Maintain Advertisement Information:

33. Maintain Commercial Property Information:

34. Maintain Industrial Property Information:

35. Maintain Institutional Property Information:

36. Maintain Land Information:

37. Maintain Residential Property Information:

38. View Residential Property Information:

39. Residential Property Search Page:

40. Update Advertisement Information:

41. Update Industrial Property Information:

42. Update Institutional Property Information:

43. Update Land Information:

44. Update Residential Property Information:

45. View Advertisement Details:

46. View Commercial Property Information (Citizen):

47. View Industrial Property Information (Citizen):

48. View Institutional Property Information (Citizen):

49. View Land Information (Citizen):

50. View Commercial Property Information:

51. View Industrial Property Information:

52. View Institutional Property Information:

53. View Land Information:

54. View Residential Property Information:

55. View Residential Property Information (Citizen):

3. Database Design:

Tables:

1. HO_ad_table COLUMN NAME house_prop_id ad_date prop_type Cost Address Area ad_for Rent acc_type lease_duration trans_through Property_desc contact_details 2. HO_residential_main COLUMN NAME house_id house_type house_desc Address Yoc no_storey Area 3. HO_residential_occupants COLUMN NAME house_id date_of_occupancy occupants_details no_occupants occupancy_type owner_details 4. HO_commercial_main COLUMN NAME prop_id

DESCRIPTION Property identification number Date of Advertisement Type of property Cost Address Area Advertisement For sale,rent,pg or lease Rent cost Accomodation Type Time for lease duration Transaction through Property description Contacting details DESCRIPTION House identification number House type House description Address Year of construction No of storeys Area

DESCRIPTION House identification number Date from which Occupied Details of occupants Number of occupants Type of occupant Owner details DESCRIPTION Property identification number

prop_type Address Yoc no_storey Area 5. HO_commercial_occupants COLUMN NAME prop_id date_of_occupancy owner_details owner_type current_holder lease_period lease_amt 6. HO_landinfo_table COLUMN NAME id_no region_code_ block_code plot_number Address Area const_type owner_details

Type of property Address Year of construction Number of storeys Area DESCRIPTION Property identification number Date from which occupied Owner details Type of owner Current holder of the property Time for lease Money for the lease DESCRIPTION Identification number Code for a region Code for a block Unique identification number for a plot Address Area Owner details

7. HO_instituteinfo_table COLUMN NAME DESCRIPTION

Id_no inst_type inst_desc Address Yoc Area owner_details no_storey 8. HO_industrialinfo_main COLUMN NAME Id_no Property_type Property_desc Address Area Yoc 9. HO_industrial_occupancy COLUMN NAME Id_no date_of_occupancy curr_occu_details occu_type owner_details no_of_occupants 10. HO_transaction_buy_sell COLUMN NAME trans_id prop_id trans_date prev_owner New_owner 11. HO_transaction_rent_lease COLUMN NAME trans_id

Identification numer Institute type Institute description Address Year of construction Area Owner details Number of storeys

DESCRIPTION Identification numer Type of property Property description Address Area Year of construction DESCRIPTION Identification number Date from which occupied Current occupants details Type of occupant Owner details No. of occupants DESCRIPTION Unique transaction id Unique property id Date of Transaction Details of Previous Owner Details of new owner DESCRIPTION Unique transaction id

prop_id start_date_rent owner_details tenant_details

Unique property id Date from which rented Details of Owner Details of Tenant

12. HO_Object_Position COLUMN NAME lati lngi mode

DESCRIPTION Unique latitude of marked property Unique longitude of marked property Types of Property

4.Development Matrix:

Sl. No.
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26.

Form Name
frmLogin.aspx frmAdmin.aspx frmUserReg.aspx frmCitizen.aspx frmDM.aspx frmBMSmenuBDO.aspx frmHOGoogleBDO.aspx frmBMSLogout.aspx frmDistblckSelection.aspx frmBMSmenuCitizen.aspx frmBMSmenuDM.aspx frmMaintainResiInfo.aspx frmMaintainCommInfo.aspx frmMaintainIndustrialInfo.aspx frmMaintainInstInfo.aspx frmMaintainLandInfo.aspx frmMaintainAddInfo.aspx frmHOTransactionBuySell.aspx frmHOTransactionRentLease.aspx frmResiCitz.aspx frmCommCitz.aspx frmIndustryCitz.aspx frmInstituteCitz.aspx frmViewLandInfo.aspx frmAdvertisementCitz.aspx higher_official_overview.aspx

Coding Responsibility
R.K. S.S. S.A.C. S.B. S.P. R.K. R.K. S.A.C. S.B. S.P. R.K. S.S. S.A.C. S.B. S.P. R.K. S.S. S.A.C. S.B. S.P. R.K. S.S. S.A.C. S.B. S.P. R.K.

Testing Responsibilit y
S.P. R.K. S.S. S.A.C. S.B. S.P. R.K. S.S. S.A.C. S.B. S.P. R.K. S.S. S.A.C. S.B. S.P. R.K. S.S. S.A.C. S.B. S.P. R.K. S.S. S.A.C. S.B. S.P.

Coding Form Name: frmHOGoogleBDO

Coding

<!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>BLOCK MANAGEMENT SYSTEM</title> <script src="http://maps.google.com/maps? file=api&amp;v=2&amp;key=ABQIAAAALVKlmfHn9WhqR2fqIXtEaBQc6T7TOijte68-6O2IVSgIcxo5RQfWxU117XP4WY33AK31dbevtRz8w" type="text/javascript"> </script> <script type="text/javascript"> var center = new GLatLng(22.183, 88.233); var map; var type; function initialize() { if (GBrowserIsCompatible()) { map = new GMap2(document.getElementById("map_canvas")); map.addControl(new GOverviewMapControl()); map.enableDoubleClickZoom(); map.enableScrollWheelZoom(); map.addControl(new GMapTypeControl()); map.addControl(new GLargeMapControl()); map.setCenter(center, 10); } } function marker() { var marker = new GMarker(center, {draggable: true}); GEvent.addListener(marker, "dragstart", function() { marker.openInfoWindowHtml("Drag the marker wherever you want and click on it to plot to the map"); } ); GEvent.addListener(marker, "dragend", function() { lati = marker.getPoint().lat(); lngi = marker.getPoint().lng(); marker.openInfoWindowHtml("Latitute: "+lati+"<br>Longitude: "+lngi); } ); GEvent.addListener(marker, "click",

function() { lati = marker.getPoint().lat(); lngi = marker.getPoint().lng(); type = "Residential Property"; map.removeOverlay(marker); var point=new GPoint(lngi, lati) var i = new GIcon(G_DEFAULT_ICON, "resi.png"); i.iconSize = new GSize(12,20); i.iconAnchor = new GPoint(6, 20); i.shadowSize = new GSize(12,20); var m = new GMarker(point,{icon: i}); map.addOverlay(m); GEvent.addListener(m, "mouseover", function() { lati = m.getPoint().lat(); lngi = m.getPoint().lng(); m.openInfoWindowHtml(); m.openInfoWindowTabsHtml( [new GInfoWindowTab("Position",'Residential Property Position Details: <br>'+"Latitute: "+lati+"<br>Longitude: "+lngi), new GInfoWindowTab("Maintain Data",'Select task for Residential Property: <br>'+'<a href=\"frmInsertResiInfo.aspx" target=\"_blank\">Insert</a> <br>'+'<a href=\"frmUpdateResiInfo.aspx" target=\"_blank\">Update</a> <br>'+'<a href=\"frmDeleteResiInfo.aspx" target=\"_blank\">Delete</a> <br>')], {maxUrl:"http://abhishek.sur.googlepages.com"}); } ); } ); map.addOverlay(marker); } function marker1() { var marker = new GMarker(center, {draggable: true}); GEvent.addListener(marker, "dragstart", function() { marker.openInfoWindowHtml("Drag the marker wherever you want and click on it to plot to the map"); } ); GEvent.addListener(marker, "dragend", function() { lati = marker.getPoint().lat(); lngi = marker.getPoint().lng(); marker.openInfoWindowHtml("Latitute: "+lati+"<br>Longitude: "+lngi); } ); GEvent.addListener(marker, "click",

function() { lati = marker.getPoint().lat(); lngi = marker.getPoint().lng(); map.removeOverlay(marker); type = "Commercial Property"; var point=new GPoint(lngi, lati) var i = new GIcon(G_DEFAULT_ICON, "comm.png"); i.iconSize = new GSize(12,20); i.iconAnchor = new GPoint(6, 20); i.shadowSize = new GSize(12,20); var m = new GMarker(point,{icon: i}); map.addOverlay(m); GEvent.addListener(m, "mouseover", function() { lati = m.getPoint().lat(); lngi = m.getPoint().lng(); m.openInfoWindowHtml(); m.openInfoWindowTabsHtml( [new GInfoWindowTab("Position",'Commercial Property Position Details: <br>'+"Latitute: "+lati+"<br>Longitude: "+lngi), new GInfoWindowTab("Maintain Data",'Select task for Commercial Property: <br>'+'<a href=\"frmInsertCommInfo.aspx" target=\"_blank\">Insert</a> <br>'+'<a href=\"frmUpdateCommInfo.aspx" target=\"_blank\">Update</a> <br>'+'<a href=\"frmDeleteCommInfo.aspx" target=\"_blank\">Delete</a> <br>')], {maxUrl:"http://abhishek.sur.googlepages.com"}); } ); } ); map.addOverlay(marker); } { function marker2()

var marker = new GMarker(center, {draggable: true}); GEvent.addListener(marker, "dragstart", function() { marker.openInfoWindowHtml("Drag the marker wherever you want and click on it to plot to the map"); } ); GEvent.addListener(marker, "dragend", function() { lati = marker.getPoint().lat(); lngi = marker.getPoint().lng(); marker.openInfoWindowHtml("Latitute: "+lati+"<br>Longitude: "+lngi); } ); GEvent.addListener(marker, "click",

function() { lati = marker.getPoint().lat(); lngi = marker.getPoint().lng(); map.removeOverlay(marker); type = "Industrial Property"; var point=new GPoint(lngi, lati) var i = new GIcon(G_DEFAULT_ICON, "ind.png"); i.iconSize = new GSize(12,20); i.iconAnchor = new GPoint(6, 20); i.shadowSize = new GSize(12,20); var m = new GMarker(point,{icon: i}); map.addOverlay(m); GEvent.addListener(m, "mouseover", function() { lati = m.getPoint().lat(); lngi = m.getPoint().lng(); m.openInfoWindowHtml(); m.openInfoWindowTabsHtml( [new GInfoWindowTab("Position",'Industrial Property Position Details: <br>'+"Latitute: "+lati+"<br>Longitude: "+lngi), new GInfoWindowTab("Maintain Data",'Select task for Industrial Property: <br>'+'<a href=\"frmInsertIndustrialInfo.aspx" target=\"_blank\">Insert</a> <br>'+'<a href=\"frmUpdateIndustrialInfo.aspx" target=\"_blank\">Update</a> <br>'+'<a href=\"frmDeleteIndustrialInfo.aspx" target=\"_blank\">Delete</a> <br>')], {maxUrl:"http://abhishek.sur.googlepages.com"}); } ); } ); map.addOverlay(marker); } { function marker3()

var marker = new GMarker(center, {draggable: true}); GEvent.addListener(marker, "dragstart", function() { marker.openInfoWindowHtml("Drag the marker wherever you want and click on it to plot to the map"); } ); GEvent.addListener(marker, "dragend", function() { lati = marker.getPoint().lat(); lngi = marker.getPoint().lng(); marker.openInfoWindowHtml("Latitute: "+lati+"<br>Longitude: "+lngi); } ); GEvent.addListener(marker, "click",

function() { lati = marker.getPoint().lat(); lngi = marker.getPoint().lng(); map.removeOverlay(marker); type = "Institutional Property"; var point=new GPoint(lngi, lati) var i = new GIcon(G_DEFAULT_ICON, "ins.png"); i.iconSize = new GSize(12,20); i.iconAnchor = new GPoint(6, 20); i.shadowSize = new GSize(12,20); var m = new GMarker(point,{icon: i}); map.addOverlay(m); GEvent.addListener(m, "mouseover", function() { lati = m.getPoint().lat(); lngi = m.getPoint().lng(); m.openInfoWindowHtml(); m.openInfoWindowTabsHtml( [new GInfoWindowTab("Position",'Institutional Property Position Details: <br>'+"Latitute: "+lati+"<br>Longitude: "+lngi), new GInfoWindowTab("Maintain Data",'Select task for Institutional Property: <br>'+'<a href=\"frmInsertInstInfo.aspx" target=\"_blank\">Insert</a> <br>'+'<a href=\"frmUpdateInstInfo.aspx" target=\"_blank\">Update</a> <br>'+'<a href=\"frmDeleteInstInfo.aspx" target=\"_blank\">Delete</a> <br>')], {maxUrl:"http://abhishek.sur.googlepages.com"}); } ); } ); map.addOverlay(marker); } function marker4() { var lat=22.25; var lon=88.20; var poly = new GPolygon([ new GLatLng(lat, lon - 0.05), new GLatLng(lat + 0.02, lon - 0.02), new GLatLng(lat + 0.06, lon), new GLatLng(lat + 0.08, lon + 0.06), new GLatLng(lat + 0.03, lon + 0.05), new GLatLng(lat, lon + 0.10), new GLatLng(lat - 0.07, lon + 0.05), new GLatLng(lat - 0.05, lon + 0.02), new GLatLng(lat - 0.10, lon - 0.01), new GLatLng(lat - 0.09, lon - 0.07), new GLatLng(lat, lon - 0.05)], "#f33f00", 5, 1, "#ff0000", 0.2); map.addOverlay(poly); // Creating a new marker

var marker = new GMarker(center, {draggable: false}); // Adding a click-event to the marker GEvent.addListener(marker, 'click', function() { map.removeOverlay(marker); // Create an array that will hold the tabs var tabs = []; // Create tabs and add them to the array tabs.push(new GInfoWindowTab('Maintain Data','Select task for Maintaining Land Information : <br>'+'<a href=\"frmInsertLandInfo.aspx" target=\"_blank\">Insert</a> <br>'+'<a href=\"frmUpdateLandInfo.aspx" target=\"_blank\">Update</a> <br>'+'<a href=\"frmDeleteLandInfo.aspx" target=\"_blank\">Delete</a> <br>')); //tabs.push(new GInfoWindowTab('Tab 2', 'Content of tab 2')); // Add tabs to the InfowWindow marker.openInfoWindowTabsHtml(tabs); }); // Add marker to map map.addOverlay(marker); } { function marker5() // Creating a new marker var marker = new GMarker(center, {draggable: false}); // Adding a click-event to the marker GEvent.addListener(marker, 'click', function() { lati = marker.getPoint().lat(); lngi = marker.getPoint().lng(); map.removeOverlay(marker); var point=new GPoint(lngi, lati) var i = new GIcon(G_DEFAULT_ICON, "advt.png"); i.iconSize = new GSize(12,20); i.iconAnchor = new GPoint(6, 20); i.shadowSize = new GSize(12,20); var m = new GMarker(point,{icon: i}); map.addOverlay(m); // Create an array that will hold the tabs var tabs = []; // Create tabs and add them to the array tabs.push(new GInfoWindowTab('Maintain Data','Select task for Advertisements: <br>'+'<a href=\"frmInsertAddInfo.aspx" target=\"_blank\">Insert</a> <br>'+'<a href=\"frmUpdateAddInfo.aspx" target=\"_blank\">Update</a> <br>'+'<a href=\"frmDeleteAddInfo.aspx" target=\"_blank\">Delete</a> <br>')); //tabs.push(new GInfoWindowTab('Tab 2', 'Content of tab 2')); // Add tabs to the InfowWindow marker.openInfoWindowTabsHtml(tabs); }); // Add marker to map map.addOverlay(marker); } { function marker6() // Creating a new marker

var marker = new GMarker(center, {draggable: false}); // Adding a click-event to the marker GEvent.addListener(marker, 'click', function() { lati = marker.getPoint().lat(); lngi = marker.getPoint().lng(); map.removeOverlay(marker); var point=new GPoint(lngi, lati) var i = new GIcon(G_DEFAULT_ICON, "trans.png"); i.iconSize = new GSize(12,20); i.iconAnchor = new GPoint(6, 20); i.shadowSize = new GSize(12,20); var m = new GMarker(point,{icon: i}); map.addOverlay(m); // Create an array that will hold the tabs var tabs = []; // Create tabs and add them to the array tabs.push(new GInfoWindowTab('Buy/Sell','<a href=\"frmHOTransactionBuySell.aspx" target=\"_blank\">Buy/Sell Transaction Details</a> <br>')); tabs.push(new GInfoWindowTab('Rent/Lease','<a href=\"frmHOTransactionRentLease.aspx" target=\"_blank\">Rent/Lease Transaction Details</a> <br>')); // Add tabs to the InfowWindow marker.openInfoWindowTabsHtml(tabs); }); // Add marker to map map.addOverlay(marker); } function btnsave1_onclick() { document.getElementById('Text1').value = lati; document.getElementById('Text2').value = lngi; } function btnSave_onclick() { var xmlHttpObject = null; try { // Firefox, Opera 8.0+, Safari... xmlHttpObject = new XMLHttpRequest(); } catch(ex) { // Internet Explorer... try { xmlHttpObject = new ActiveXObject('Msxml2.XMLHTTP'); } catch(ex) { xmlHttpObject = new ActiveXObject('Microsoft.XMLHTTP'); } } if (xmlHttpObject == null)

{ }

window.alert('AJAX is not available in this browser');

xmlHttpObject.open("GET", "SaveToDb.aspx?Lati=" + lati + "&Lngi=" + lngi+"&type="+type, false); window.alert("DATA SAVED!?Lati=" + lati + "&Lngi=" + lngi); xmlHttpObject.send(); } </script> </head> <body onload="initialize()" onunload="GUnload()" style="background-image: url(1821.jpg)"> <form id="form1" runat="server"> <div id="map_canvas" style="z-index: 103; left: 40px; width: 931px; position: absolute; top: 88px; height: 416px"> &nbsp;<asp:Label ID="Label14" runat="server" Font-Bold="True" ForeColor="Black" Style="left: -334px; position: relative; top: -96px" Text="Welcome,"></asp:Label> </div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <asp:Panel ID="Panel1" runat="server" BackColor="Transparent" BorderStyle="Solid" Font-Size="Smaller" Height="71px" Style="z-index: 100; left: 35px; background-image: url(1821.jpg); position: absolute; top: 9px; background-color: #00ffff" Width="933px"> <asp:Label ID="Label5" runat="server" Font-Bold="True" Font-Italic="False" Font-Names="Times New Roman" Font-Size="Large" Style="z-index: 100; left: 564px; position: absolute; top: 1px" Text="BLOCK MANAGEMENT SYSTEM-HOUSING MODULE" Width="344px"></asp:Label> <asp:Label ID="Label6" runat="server" Font-Bold="True" Font-Italic="True" Font-Size="Larger" Style="z-index: 101; left: 807px; position: absolute; top: 27px" Text="BDO Officer" Width="99px"></asp:Label> <asp:Label ID="Label10" runat="server" Font-Bold="True" Font-Size="Larger" Height="26px" Style="z-index: 102; left: 12px; position: relative; top: 36px" Text="District Name" Width="101px"></asp:Label> <asp:Label ID="Label11" runat="server" Font-Bold="True" Font-Size="Larger" Height="25px" Style="z-index: 103; left: -89px; position: relative; top: 6px" Text="Block Name" Width="90px"></asp:Label> <asp:Label ID="Label12" runat="server" Font-Bold="True" Font-Size="Larger" Height="21px"

Style="z-index: 104; left: 367px; position: relative; top: 39px" Text="Username :" Width="68px"></asp:Label>&nbsp; <asp:TextBox ID="TextBox1" runat="server" Style="z-index: 105; left: -161px; position: relative; top: 2px"></asp:TextBox> <asp:TextBox ID="TextBox2" runat="server" Style="z-index: 106; left: -319px; position: relative; top: 33px"></asp:TextBox> <asp:TextBox ID="TextBox3" runat="server" Style="z-index: 107; left: 52px; position: relative; top: 39px"></asp:TextBox> &nbsp; <asp:LinkButton ID="LinkButton1" runat="server" Font-Bold="True" FontItalic="True" ForeColor="Red" Style="z-index: 108; left: 634px; position: relative; top: -13px">LOGOUT </asp:LinkButton> <input id="Text1" readonly="readonly" style="left: 311px; width: 127px; position: relative; top: -20px" type="text" /> <input id="Text2" readonly="readonly" style="left: 175px; width: 127px; position: relative; top: 7px" type="text" /> <input id="btnshow" language="javascript" onclick="return btnsave1_onclick()" style="left: 184px; width: 45px; position: relative; top: -20px; height: 23px" type="button" value="Show" /> <asp:Label ID="Label18" runat="server" Style="left: -40px; position: relative; top: 4px" Text="Lngi :"></asp:Label> <asp:Label ID="Label17" runat="server" Style="left: -73px; position: relative; top: -21px" Text="Lati :"></asp:Label> <input id="btnSave" language="javascript" onclick="return btnSave_onclick()" style="left: 74px; width: 45px; position: relative; top: 8px; height: 23px" type="button" value="Save" /> <asp:HyperLink ID="Retrieve" runat="server" BorderStyle="Double" FontBold="True" Font-Size="Medium" ForeColor="Red" Height="3px" NavigateUrl="~/frmHODataRetrieve.aspx" Style="left: 76px; position: relative; top: -5px" Target="_blank" Width="40px">Check</asp:HyperLink></asp:Panel> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

/> &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <asp:Panel ID="Panel2" runat="server" BackColor="Transparent" BorderStyle="Solid" Height="68px" Style="z-index: 101; left: 35px; background-image: url(1821.jpg); position: absolute; top: 505px; background-color: #00ffff" Width="933px"> <input id="Button1" language="javascript" onclick="marker()" style="zindex: 104; left: 14px; width: 35px; color: red; position: absolute; top: 17px; background-color: red" type="button" value="0" /> <asp:Label ID="Label1" runat="server" Font-Size="Larger" Height="18px" Style="z-index: 100; left: 59px; position: absolute; top: 12px" Text="Residential Property" Width="50px"></asp:Label> <input id="button2" language="javascript" onclick="marker1()" style="zindex: 105; left: 153px; width: 35px; color: orange; position: absolute; top: 19px; background-color: orange" type="button" value="0" /> <input id="Button3" language="javascript" onclick="marker2()" style="zindex: 106; left: 307px; width: 35px; color: yellow; position: absolute; top: 19px; background-color: yellow" type="button" value="0" /> <input id="Button4" language="javascript" onclick="marker3()" style="zindex: 107; left: 436px; width: 35px; color: chartreuse; position: absolute; top: 18px; background-color: chartreuse" type="button" value="0" /> &nbsp;&nbsp; <input id="Button5" language="javascript" onclick="marker4()" style="zindex: 107; left: 581px; width: 35px; position: absolute; top: 18px; backgroundcolor: #3333cc" type="button" /> &nbsp; &nbsp;&nbsp; <input id="Button6" language="javascript" onclick="marker5()" style="zindex: 107; left: 731px; width: 35px; position: absolute; top: 7px; backgroundcolor: #ff00ff" type="button" /> &nbsp; &nbsp;&nbsp; <input id="Button7" language="javascript" onclick="marker6()" style="zindex: 107; left: 731px; width: 35px; position: absolute; top: 38px; backgroundcolor: #66ffff" type="button" /> &nbsp; &nbsp;&nbsp; <asp:Label ID="Label2" runat="server" Font-Size="Larger" Style="z-index: 101; left: 199px; position: absolute; top: 11px" Text="Commercial Property" Width="93px"></asp:Label>

<asp:Label ID="Label3" runat="server" Font-Size="Larger" Height="17px" Style="z-index: 102; left: 352px; position: absolute; top: 11px" Text="Industrial Property" Width="70px"></asp:Label> <asp:Label ID="Label4" runat="server" Font-Size="Larger" Style="z-index: 108; left: 482px; position: absolute; top: 11px" Text="Institutional Property" Width="88px"></asp:Label> <asp:Label ID="Label7" runat="server" Font-Size="Larger" Style="left: 773px; position: absolute; top: 8px" Text="Advertisements" Width="85px"></asp:Label> <asp:Label ID="Label8" runat="server" Font-Size="Larger" Style="left: 626px; position: absolute; top: 12px" Text="Land Information" Width="49px"></asp:Label> <asp:Label ID="Label9" runat="server" Font-Size="Larger" Style="left: 774px; position: absolute; top: 40px" Text="Transactions" Width="84px"></asp:Label> </asp:Panel> <asp:Panel ID="Panel3" runat="server" BackColor="Transparent" BorderStyle="Solid" Font-Size="Smaller" Height="417px" Style="z-index: 99; left: 35px; background-image: url(1821.jpg); position: absolute; top: 84px; background-color: #00ffff" Width="933px"> &nbsp; &nbsp; &nbsp;&nbsp; <asp:TextBox ID="TextBox5" runat="server" Style="z-index: 106; left: -319px; position: relative; top: 33px"></asp:TextBox> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </asp:Panel> </form> </body> </html>

Form Name: frmHODataRetrieve.aspx

Coding
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frmHODataRetrieve.aspx.cs" Inherits="user1" debug="true"%> <!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>BLOCK MANAGEMENT SYSTEM</title> <script src="gmap_config.js" type="text/javascript"></script> <script src="http://maps.google.com/maps? file=api&amp;v=2&amp;key=ABQIAAAALVKlmfHn9WhqR2fqIXtEaBQc6T7TOijte68-6O2IVSgIcxo5RQfWxU117XP4WY33AK31dbevtRz8w" type="text/javascript"></script> </head> <body onload="load()" onunload="GUnload()"> <form id="form1" runat="server"> <asp:Panel ID="Panel1" runat="server" BackColor="Transparent" BorderStyle="Solid" Font-Size="Smaller" Height="71px" Style="z-index: 100; left: 10px; background-image: url(1821.jpg); position: absolute; top: 1px; background-color: #00ffff" Width="928px"> <asp:Label ID="Label5" runat="server" Font-Bold="True" FontItalic="False" Font-Names="Times New Roman" Font-Size="Large" Style="z-index: 100; left: 563px; position: absolute; top: 2px" Text="BLOCK MANAGEMENT SYSTEM-HOUSING MODULE" Width="344px"></asp:Label> <asp:Label ID="Label6" runat="server" Font-Bold="True" Font-Italic="True" Font-Size="Larger" Style="z-index: 101; left: 807px; position: absolute; top: 27px" Text="BDO Officer" Width="99px"></asp:Label> <asp:Label ID="Label10" runat="server" Font-Bold="True" FontSize="Larger" Height="26px" Style="z-index: 102; left: 12px; position: relative; top: 36px" Text="District Name" Width="101px"></asp:Label> <asp:Label ID="Label11" runat="server" Font-Bold="True" FontSize="Larger" Height="25px" Style="z-index: 103; left: -89px; position: relative; top: 6px" Text="Block Name" Width="90px"></asp:Label> <asp:Label ID="Label12" runat="server" Font-Bold="True" FontSize="Larger" Height="21px" Style="z-index: 104; left: 367px; position: relative; top: 39px" Text="Username :" Width="68px"></asp:Label>&nbsp;

<asp:TextBox ID="TextBox1" runat="server" Style="z-index: 105; left: -161px; position: relative; top: 2px"></asp:TextBox> <asp:TextBox ID="TextBox2" runat="server" Style="z-index: 106; left: -295px; position: relative; top: 34px"></asp:TextBox> <asp:TextBox ID="TextBox3" runat="server" Style="z-index: 107; left: 52px; position: relative; top: 39px"></asp:TextBox> &nbsp; <asp:LinkButton ID="LinkButton1" runat="server" Font-Bold="True" FontItalic="True" ForeColor="Red" Style="z-index: 108; left: 634px; position: relative; top: -13px">LOGOUT </asp:LinkButton> &nbsp; &nbsp; &nbsp; </asp:Panel> <div id="map" style="width: 927px; height: 416px; z-index: 103; left: 14px; position: absolute; top: 85px;"> </div> <asp:Image ID="Image1" runat="server" style="z-index: 101; left: 6px; position: absolute; top: 500px" ImageUrl="~/bdo.bmp" Width="940px" /> <br /> <br /> <br /> <asp:Panel ID="Panel3" runat="server" BackColor="Transparent" BorderStyle="Solid" Font-Size="Smaller" Height="417px" Style="z-index: 102; left: 10px; background-image: url(1821.jpg); position: absolute; top: 79px; background-color: #00ffff" Width="928px"> &nbsp; &nbsp; &nbsp;&nbsp; <asp:TextBox ID="TextBox5" runat="server" Style="z-index: 106; left: -319px; position: relative; top: 33px"></asp:TextBox> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </asp:Panel> &nbsp; </form> </body> </html>

Form Name: frmHODataRetrieve.aspx.cs

using using using using using using using using using using using using using

System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls; System.Collections.Generic; System.Text; System.Data.SqlClient;

public partial class user1 : System.Web.UI.Page { string[] strArray; string[] strArray1; double[] intArray; double[] intArray1; StringBuilder sb = new StringBuilder(); StringBuilder sb1 = new StringBuilder(); protected void Page_Load(object sender, EventArgs e) { intArray = new double[50]; intArray1 = new double[50]; strArray = new string[50]; strArray1 = new string[50]; try { SqlConnection conn1 = new SqlConnection(@"Server=mcom14;Database=BMS;UID=sa;Password=lab3";); conn1.Open(); string sql1 = "SELECT lati,lngi,mode FROM HO_Object_Position"; SqlCommand cmd1 = new SqlCommand(sql1, conn1); SqlDataReader dr1 = cmd1.ExecuteReader(); int k = 0; int j = 0; int n = 0; while (dr1.Read()) { if (dr1[0] != System.DBNull.Value) { intArray[j] = Convert.ToDouble(dr1[0].ToString()); } else { intArray[j] = 0.00;

} if (dr1[1] != System.DBNull.Value) { intArray1[j] = Convert.ToDouble(dr1[1].ToString()); } else { intArray1[j] = 0.00; } if (dr1[2] != System.DBNull.Value) strArray[j] = dr1[2].ToString(); else strArray[j] = ""; j++; k++; n++; } dr1.Close(); conn1.Close(); sb1.Append("\n"); string str, str1, str2; for (int i = 1; i <=n; i++) { sb1.Append("\n"); sb1.Append(" var "); str = "p"+ i.ToString(); sb1.Append(str); sb1.Append(" = new GLatLng ("); sb1.Append(""); sb1.Append(intArray[i-1]); sb1.Append(","); sb1.Append(intArray1[i-1]); sb1.Append(")"); sb1.Append(";"); sb1.Append("\n"); sb1.Append("var "); str1 = "q"+ i.ToString(); sb1.Append(str1); if (String.Compare(strArray[i - 1], "Residential Property") == 0) { sb1.Append(" = new GIcon(G_DEFAULT_ICON, \"resi.png\");\n"); } else if (String.Compare(strArray[i - 1], "Commercial Property") == 0) { sb1.Append(" = new GIcon(G_DEFAULT_ICON, \"comm.png\");\n"); } else

0)

if (String.Compare(strArray[i - 1], "Industrial Property") == {

sb1.Append(" = new GIcon(G_DEFAULT_ICON, \"ind.png\");\n"); } else if (String.Compare(strArray[i - 1], "Institutional Property") == 0) { sb1.Append(" = new GIcon(G_DEFAULT_ICON, \"ins.png\");\n"); } sb1.Append(str1+".iconSize = new GSize(12,20);\n"); sb1.Append(str1+".iconAnchor = new GPoint(6, 20);\n"); sb1.Append(str1+".shadowSize = new GSize(12,20);\n"); sb1.Append("var "); str2 = "m" + i.ToString(); sb1.Append(str2); sb1.Append(" = new GMarker("); sb1.Append(str + ",{icon: " + str1); sb1.Append("});\n"); sb1 .Append("map.addOverlay("); sb1.Append(str2); sb1.Append(");\n");

sb.Append("<script type=\"text/javascript\" language=\"javascript\">\n"); // sb.AppendFormat("var myVar = {0};\n", sb1.ToString()); sb.AppendFormat("var myVar1 = {0};\n", intArray[0]); sb.AppendFormat("var myVar2 = {0};\n", intArray1[0]); // sb.Append("var center; \n"); // sb.Append("var map; \n"); sb.Append("function load()\n"); sb.Append("{ \n"); sb.Append(" if (GBrowserIsCompatible())"); sb.Append("{ \n"); sb.Append("var map = new GMap2(document.getElementById(\"map\")); \n"); sb.Append("map.addControl(new GOverviewMapControl()); \n"); sb.Append("map.enableDoubleClickZoom(); \n"); sb.Append("map.enableScrollWheelZoom(); \n"); sb.Append("map.addControl(new GMapTypeControl()); \n"); sb.Append("map.addControl(new GLargeMapControl()); \n"); sb.Append("map.addControl(new GOverviewMapControl()); \n"); sb.Append("map.setCenter(new GLatLng(myVar1, myVar2), 10); \n"); // sb.Append("var poly = myVar; \n"); // sb.Append("map.addOverlay(poly); \n"); sb.AppendFormat("{0} \n", sb1.ToString()); sb.Append("} \n");

sb.Append("} \n"); sb.Append("</script>\n"); ClientScript.RegisterClientScriptBlock(GetType(), "load", sb.ToString()); } catch (SqlException ex) { Response.Write("error" + ex); }

} }

Form Name: frmHOGoogleCitizen.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frmHOGoogleCitizen.aspx.cs" Inherits="user1" debug="true"%> <!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>BLOCK MANAGEMENT SYSTEM</title> <script src="gmap_config.js" type="text/javascript"></script> <script src="http://maps.google.com/maps? file=api&amp;v=2&amp;key=ABQIAAAALVKlmfHn9WhqR2fqIXtEaBQc6T7TOijte68-6O2IVSgIcxo5RQfWxU117XP4WY33AK31dbevtRz8w" type="text/javascript"></script> <script type="text/javascript"> var center = new GLatLng(22.183, 88.233); var map; function initialize() { if (GBrowserIsCompatible()) { map = new GMap2(document.getElementById("map_canvas")); map.addControl(new GOverviewMapControl()); map.enableDoubleClickZoom(); map.enableScrollWheelZoom(); map.addControl(new GMapTypeControl()); map.addControl(new GLargeMapControl()); map.setCenter(center, 10); marker(); } } function marker() { lat =22.183; lon = 88.233; var poly = new GPolygon([

new GLatLng(lat, lon - 0.05), new GLatLng(lat + 0.02, lon - 0.02), new GLatLng(lat + 0.06, lon), new GLatLng(lat + 0.08, lon + 0.06), new GLatLng(lat + 0.03, lon + 0.05), new GLatLng(lat, lon + 0.10), new GLatLng(lat - 0.07, lon + 0.05), new GLatLng(lat - 0.05, lon + 0.02), new GLatLng(lat - 0.10, lon - 0.01), new GLatLng(lat - 0.09, lon - 0.07), new GLatLng(lat, lon - 0.05)], "#f33f00", 5, 1, "#ff0000", 0.2);

GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(); marker.openInfoWindowTabsHtml( [new GInfoWindowTab("POSITION","latitute "+lati+" longitude"+lngi), new GInfoWindowTab("VIEW",'<a href=\"http://frmEDMaintainSecondarySchool.aspx\" target=\"_blank\">Detailed Information</a> <br>')],

{maxUrl:"http://abhishek.sur.googlepages.com"}); }); map.addOverlay(poly); } </script> </head> <body onload="load()" onunload="GUnload()" style="text-align: left"> <form id="form1" runat="server"> &nbsp; &nbsp; <asp:Panel ID="Panel1" runat="server" BackColor="Transparent" BorderStyle="Solid" Font-Size="Smaller" Height="71px" Style="z-index: 100; left: 14px; background-image: url(1821.jpg); position: absolute; top: 13px; background-color: #00ffff" Width="928px"> <asp:Label ID="Label1" runat="server" Font-Bold="True" FontItalic="False" Font-Names="Times New Roman" Font-Size="Large" Style="z-index: 100; left: 563px; position: absolute; top: 2px" Text="BLOCK MANAGEMENT SYSTEM-HOUSING MODULE" Width="344px"></asp:Label> <asp:Label ID="Label6" runat="server" Font-Bold="True" Font-Italic="True" Font-Size="Larger" Style="z-index: 101; left: 564px; position: absolute; top: 46px" Text="CITIZEN" Width="99px"></asp:Label> &nbsp; &nbsp; &nbsp; <asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Size="Small" Style="left: 40px; top: 11px; z-index: 108; position: absolute;" Text="DISTRICT NAME" Height="18px" Width="100px"></asp:Label> <asp:TextBox ID="TextBox2" runat="server" Style="z-index: 103; left: -295px; position: relative; top: 34px"></asp:TextBox> <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" style="z-index: 104; left: 161px; position: absolute; top: 9px"> </asp:DropDownList> <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" style="z-index: 105; left: 161px; position: absolute; top: 37px"> </asp:DropDownList> &nbsp; &nbsp; <asp:LinkButton ID="LinkButton1" runat="server" Font-Bold="True" FontItalic="True" ForeColor="Red" Style="z-index: 106; left: 689px; position: relative; top: 47px">LOGOUT </asp:LinkButton> &nbsp; &nbsp; &nbsp; <asp:Label ID="Label5" runat="server" Font-Bold="True" Font-Size="Small" Style="left: 41px; top: 40px; z-index: 107; position: absolute;" Text="BLOCK NAME" Width="97px"></asp:Label> </asp:Panel> <br /> &nbsp; &nbsp;&nbsp; <div id="map" style="width: 926px; height: 414px; z-index: 102; left: 19px; position: absolute; top: 95px;">

&nbsp;</div> <br /> <br /> <br /> <br /> <asp:Panel ID="Panel3" runat="server" BackColor="Transparent" BorderStyle="Solid" Font-Size="Smaller" Height="417px" Style="z-index: 99; left: 14px; background-image: url(1821.jpg); position: absolute; top: 92px; background-color: #00ffff" Width="928px"> </asp:Panel> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <asp:Image ID="Image1" runat="server" ImageUrl="~/citizen.bmp" Style="zindex: 103; left: 14px; position: absolute; top: 510px" Width="937px" /> <br /> </form> </body> </html>

Form Name: frmHOGoogleCitizen.aspx.cs


using System; using System.Data;

using using using using using using using using using using using

System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls; System.Collections.Generic; System.Text; System.Data.SqlClient;

public partial class user1 : System.Web.UI.Page { string[] strArray; string[] strArray1; double[] intArray; double[] intArray1; StringBuilder sb = new StringBuilder(); StringBuilder sb1 = new StringBuilder(); SqlConnection con = new SqlConnection("Server=mcom14;Database=BMS;UID=sa;Password=lab3;"); protected void Page_Load(object sender, EventArgs e) { intArray = new double[50]; intArray1 = new double[50]; strArray = new string[50]; strArray1 = new string[50]; try {

SqlConnection conn1 = new SqlConnection(@"Server=mcom14;Database=BMS;UID=sa;Password=lab3;"); conn1.Open(); string sql1 = "SELECT lati,lngi,mode FROM HO_Object_Position"; SqlCommand cmd1 = new SqlCommand(sql1, conn1); SqlDataReader dr1 = cmd1.ExecuteReader(); int k = 0; int j = 0; int n = 0; while (dr1.Read()) { if (dr1[0] != System.DBNull.Value) { intArray[j] = Convert.ToDouble(dr1[0].ToString()); } else { }

intArray[j] = 0.00;

if (dr1[1] != System.DBNull.Value) { intArray1[j] = Convert.ToDouble(dr1[1].ToString()); } else { intArray1[j] = 0.00; } if (dr1[2] != System.DBNull.Value) strArray[j] = dr1[2].ToString(); else strArray[j] = ""; j++; k++; n++; } dr1.Close(); conn1.Close(); sb1.Append("\n"); string str, str1, str2; for (int i = 1; i <=n; i++) { sb1.Append("\n"); sb1.Append(" var "); str = "p"+ i.ToString(); sb1.Append(str); sb1.Append(" = new GLatLng ("); sb1.Append(""); sb1.Append(intArray[i-1]); sb1.Append(","); sb1.Append(intArray1[i-1]); sb1.Append(")"); sb1.Append(";"); sb1.Append("\n"); sb1.Append("var "); str1 = "q"+ i.ToString(); sb1.Append(str1); if (String.Compare(strArray[i - 1], "Residential Property") == 0) { sb1.Append(" = new GIcon(G_DEFAULT_ICON, \"resi.png\");\n"); } else if (String.Compare(strArray[i - 1], "Commercial Property") == 0) { sb1.Append(" = new GIcon(G_DEFAULT_ICON, \"comm.png\");\n"); } else

0)

if (String.Compare(strArray[i - 1], "Industrial Property") == {

sb1.Append(" = new GIcon(G_DEFAULT_ICON, \"ind.png\");\n"); } else if (String.Compare(strArray[i - 1], "Institutional Property") == 0) { sb1.Append(" = new GIcon(G_DEFAULT_ICON, \"ins.png\");\n"); } sb1.Append(str1+".iconSize = new GSize(12,20);\n"); sb1.Append(str1+".iconAnchor = new GPoint(6, 20);\n"); sb1.Append(str1+".shadowSize = new GSize(12,20);\n"); sb1.Append("var "); str2 = "m" + i.ToString(); sb1.Append(str2); sb1.Append(" = new GMarker("); sb1.Append(str + ",{icon: " + str1); sb1.Append("});\n"); sb1 .Append("map.addOverlay("); sb1.Append(str2); sb1.Append(");\n");

sb.Append("<script type=\"text/javascript\" language=\"javascript\">\n"); // sb.AppendFormat("var myVar = {0};\n", sb1.ToString()); sb.AppendFormat("var myVar1 = {0};\n", intArray[0]); sb.AppendFormat("var myVar2 = {0};\n", intArray1[0]); // sb.Append("var center; \n"); // sb.Append("var map; \n"); sb.Append("function load()\n"); sb.Append("{ \n"); sb.Append(" if (GBrowserIsCompatible())"); sb.Append("{ \n"); sb.Append("var map = new GMap2(document.getElementById(\"map\")); \n"); sb.Append("map.addControl(new GOverviewMapControl()); \n"); sb.Append("map.enableDoubleClickZoom(); \n"); sb.Append("map.enableScrollWheelZoom(); \n"); sb.Append("map.addControl(new GMapTypeControl()); \n"); sb.Append("map.addControl(new GLargeMapControl()); \n"); sb.Append("map.addControl(new GOverviewMapControl()); \n"); sb.Append("map.setCenter(new GLatLng(myVar1, myVar2), 10); \n"); // sb.Append("var poly = myVar; \n"); // sb.Append("map.addOverlay(poly); \n"); sb.AppendFormat("{0} \n", sb1.ToString()); sb.Append("} \n");

sb.Append("} \n"); sb.Append("</script>\n"); ClientScript.RegisterClientScriptBlock(GetType(), "load", sb.ToString()); if (this.IsPostBack != true) { SqlCommand cmd = new SqlCommand("select distinct District_name from AD_District", con); SqlDataAdapter adpt = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); con.Open(); adpt.Fill(ds); con.Close(); DropDownList1.DataSource = ds.Tables[0]; DropDownList1.DataTextField = "District_name"; DropDownList1.DataValueField = "District_name"; DropDownList1.DataBind(); } } catch (SqlException ex) { Response.Write("error" + ex); } } protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("select distinct Block_name from AD_Block where District_cd in (select District_cd from AD_District where District_name like '" + DropDownList1.SelectedValue + "')", con); SqlDataAdapter adpt = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); con.Open(); adpt.Fill(ds); con.Close(); DropDownList2.DataSource = ds.Tables[0]; DropDownList2.DataTextField = "Block_name"; DropDownList2.DataValueField = "Block_name"; DropDownList2.DataBind(); } }

Form Name: frmHOGoogleDM.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frmHOGoogleDM.aspx.cs" Inherits="user1" debug="true"%> <!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>BLOCK MANAGEMENT SYSTEM</title> <script src="gmap_config.js" type="text/javascript"></script> <script src="http://maps.google.com/maps? file=api&amp;v=2&amp;key=ABQIAAAALVKlmfHn9WhqR2fqIXtEaBQc6T7TOijte68-6O2IVSgIcxo5RQfWxU117XP4WY33AK31dbevtRz8w" type="text/javascript"></script> <script type="text/javascript"> var center = new GLatLng(22.183, 88.233); var map; function initialize() { if (GBrowserIsCompatible()) { map = new GMap2(document.getElementById("map_canvas")); map.addControl(new GOverviewMapControl()); map.enableDoubleClickZoom(); map.enableScrollWheelZoom(); map.addControl(new GMapTypeControl()); map.addControl(new GLargeMapControl()); map.setCenter(center, 10); marker(); } } function marker() { lat =22.183; lon = 88.233; var poly = new GPolygon([

new GLatLng(lat, lon - 0.05), new GLatLng(lat + 0.02, lon - 0.02), new GLatLng(lat + 0.06, lon), new GLatLng(lat + 0.08, lon + 0.06), new GLatLng(lat + 0.03, lon + 0.05), new GLatLng(lat, lon + 0.10), new GLatLng(lat - 0.07, lon + 0.05), new GLatLng(lat - 0.05, lon + 0.02), new GLatLng(lat - 0.10, lon - 0.01), new GLatLng(lat - 0.09, lon - 0.07), new GLatLng(lat, lon - 0.05)], "#f33f00", 5, 1, "#ff0000", 0.2);

GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(); marker.openInfoWindowTabsHtml( [new GInfoWindowTab("POSITION","latitute "+lati+" longitude"+lngi), new GInfoWindowTab("VIEW",'<a href=\ \" target=\"_blank\">Detailed Information</a> <br>')], {maxUrl:"http://abhishek.sur.googlepages.com"});

}); map.addOverlay(poly); } </script> </head> <body onload="load()" onunload="GUnload()" style="text-align: left"> <form id="form1" runat="server"> &nbsp; &nbsp; <asp:Panel ID="Panel1" runat="server" BackColor="Transparent" BorderStyle="Solid" Font-Size="Smaller" Height="71px" Style="z-index: 100; left: 14px; background-image: url(1821.jpg); position: absolute; top: 13px; background-color: #00ffff" Width="928px"> <asp:Label ID="Label1" runat="server" Font-Bold="True" FontItalic="False" Font-Names="Times New Roman" Font-Size="Large" Style="z-index: 100; left: 563px; position: absolute; top: 2px" Text="BLOCK MANAGEMENT SYSTEM-HOUSING MODULE" Width="344px"></asp:Label> <asp:Label ID="Label6" runat="server" Font-Bold="True" Font-Italic="True" Font-Size="Larger" Style="z-index: 101; left: 564px; position: absolute; top: 46px" Text="DM" Width="99px"></asp:Label> &nbsp; &nbsp; &nbsp; <asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Size="Small" Style="left: 40px; top: 11px; z-index: 102; position: absolute;" Text="DISTRICT NAME" Height="18px" Width="100px"></asp:Label> <asp:TextBox ID="TextBox2" runat="server" Style="z-index: 103; left: -295px; position: relative; top: 34px"></asp:TextBox> <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" style="z-index: 104; left: 161px; position: absolute; top: 9px"> </asp:DropDownList> <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" style="z-index: 105; left: 161px; position: absolute; top: 37px"> </asp:DropDownList> &nbsp; &nbsp; <asp:LinkButton ID="LinkButton1" runat="server" Font-Bold="True" FontItalic="True" ForeColor="Red" Style="z-index: 106; left: 689px; position: relative; top: 47px">LOGOUT </asp:LinkButton> &nbsp; &nbsp; &nbsp; <asp:Label ID="Label5" runat="server" Font-Bold="True" Font-Size="Small" Style="left: 41px; top: 40px; z-index: 107; position: absolute;" Text="BLOCK NAME" Width="97px"></asp:Label> &nbsp; <asp:HyperLink ID="HyperLink1" runat="server" BorderStyle="Double" BorderWidth="2px" Font-Bold="True" Font-Size="Medium" ForeColor="Red" Height="20px" NavigateUrl="~/higher_official_overview.aspx"

Style="z-index: 109; left: 253px; position: absolute; top: 22px; text-align: center" Width="65px" Target="_blank">Statistics</asp:HyperLink> </asp:Panel> <br /> &nbsp; &nbsp;&nbsp; <div id="map" style="width: 926px; height: 414px; z-index: 102; left: 19px; position: absolute; top: 95px;"> &nbsp;</div> <br /> <br /> <br /> <br /> <asp:Panel ID="Panel3" runat="server" BackColor="Transparent" BorderStyle="Solid" Font-Size="Smaller" Height="417px" Style="z-index: 99; left: 14px; background-image: url(1821.jpg); position: absolute; top: 92px; background-color: #00ffff" Width="928px"> </asp:Panel> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <asp:Image ID="Image1" runat="server" ImageUrl="~/dm.bmp" Style="z-index: 103; left: 14px; position: absolute; top: 510px" Width="936px" /> <br /> </form> </body> </html>

Form Name: frmHOGoogleDM.aspx.cs

using using using using using using using using using using using using using

System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls; System.Collections.Generic; System.Text; System.Data.SqlClient;

public partial class user1 : System.Web.UI.Page { string[] strArray; string[] strArray1; double[] intArray; double[] intArray1; StringBuilder sb = new StringBuilder(); StringBuilder sb1 = new StringBuilder(); SqlConnection con = new SqlConnection("Server=mcom14;Database=BMS;UID=sa;Password=lab3;"); protected void Page_Load(object sender, EventArgs e) { intArray = new double[50]; intArray1 = new double[50]; strArray = new string[50]; strArray1 = new string[50]; try { SqlConnection conn1 = new SqlConnection(@"Server=mcom14;Database=BMS;UID=sa;Password=lab3;"); conn1.Open(); string sql1 = "SELECT lati,lngi,mode FROM HO_Object_Position"; SqlCommand cmd1 = new SqlCommand(sql1, conn1); SqlDataReader dr1 = cmd1.ExecuteReader(); int k = 0; int j = 0; int n = 0; while (dr1.Read()) { if (dr1[0] != System.DBNull.Value) { intArray[j] = Convert.ToDouble(dr1[0].ToString()); } else

{ }

intArray[j] = 0.00;

if (dr1[1] != System.DBNull.Value) { intArray1[j] = Convert.ToDouble(dr1[1].ToString()); } else { intArray1[j] = 0.00; } if (dr1[2] != System.DBNull.Value) strArray[j] = dr1[2].ToString(); else strArray[j] = ""; j++; k++; n++; } dr1.Close(); conn1.Close(); sb1.Append("\n"); string str, str1, str2; for (int i = 1; i <=n; i++) { sb1.Append("\n"); sb1.Append(" var "); str = "p"+ i.ToString(); sb1.Append(str); sb1.Append(" = new GLatLng ("); sb1.Append(""); sb1.Append(intArray[i-1]); sb1.Append(","); sb1.Append(intArray1[i-1]); sb1.Append(")"); sb1.Append(";"); sb1.Append("\n"); sb1.Append("var "); str1 = "q"+ i.ToString(); sb1.Append(str1); if (String.Compare(strArray[i - 1], "Residential Property") == 0) { sb1.Append(" = new GIcon(G_DEFAULT_ICON, \"resi.png\");\n"); } else if (String.Compare(strArray[i - 1], "Commercial Property") == 0) { sb1.Append(" = new GIcon(G_DEFAULT_ICON, \"comm.png\");\n");

} else 0) if (String.Compare(strArray[i - 1], "Industrial Property") == {

sb1.Append(" = new GIcon(G_DEFAULT_ICON, \"ind.png\");\n"); } else if (String.Compare(strArray[i - 1], "Institutional Property") == 0) { sb1.Append(" = new GIcon(G_DEFAULT_ICON, \"ins.png\");\n"); } sb1.Append(str1+".iconSize = new GSize(12,20);\n"); sb1.Append(str1+".iconAnchor = new GPoint(6, 20);\n"); sb1.Append(str1+".shadowSize = new GSize(12,20);\n"); sb1.Append("var "); str2 = "m" + i.ToString(); sb1.Append(str2); sb1.Append(" = new GMarker("); sb1.Append(str + ",{icon: " + str1); sb1.Append("});\n"); sb1 .Append("map.addOverlay("); sb1.Append(str2); sb1.Append(");\n");

sb.Append("<script type=\"text/javascript\" language=\"javascript\">\n"); // sb.AppendFormat("var myVar = {0};\n", sb1.ToString()); sb.AppendFormat("var myVar1 = {0};\n", intArray[0]); sb.AppendFormat("var myVar2 = {0};\n", intArray1[0]); // sb.Append("var center; \n"); // sb.Append("var map; \n"); sb.Append("function load()\n"); sb.Append("{ \n"); sb.Append(" if (GBrowserIsCompatible())"); sb.Append("{ \n"); sb.Append("var map = new GMap2(document.getElementById(\"map\")); \n"); sb.Append("map.addControl(new GOverviewMapControl()); \n"); sb.Append("map.enableDoubleClickZoom(); \n"); sb.Append("map.enableScrollWheelZoom(); \n"); sb.Append("map.addControl(new GMapTypeControl()); \n"); sb.Append("map.addControl(new GLargeMapControl()); \n"); sb.Append("map.addControl(new GOverviewMapControl()); \n"); sb.Append("map.setCenter(new GLatLng(myVar1, myVar2), 10); \n"); // sb.Append("var poly = myVar; \n"); // sb.Append("map.addOverlay(poly); \n");

sb.AppendFormat("{0} \n", sb1.ToString()); sb.Append("} \n"); sb.Append("} \n"); sb.Append("</script>\n"); ClientScript.RegisterClientScriptBlock(GetType(), "load", sb.ToString()); if (this.IsPostBack != true) { SqlCommand cmd = new SqlCommand("select distinct District_name from AD_District", con); SqlDataAdapter adpt = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); con.Open(); adpt.Fill(ds); con.Close(); DropDownList1.DataSource = ds.Tables[0]; DropDownList1.DataTextField = "District_name"; DropDownList1.DataValueField = "District_name"; DropDownList1.DataBind(); } } catch (SqlException ex) { Response.Write("error" + ex); } } protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("select distinct Block_name from AD_Block where District_cd in (select District_cd from AD_District where District_name like '" + DropDownList1.SelectedValue + "')", con); SqlDataAdapter adpt = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); con.Open(); adpt.Fill(ds); con.Close(); DropDownList2.DataSource = ds.Tables[0]; DropDownList2.DataTextField = "Block_name"; DropDownList2.DataValueField = "Block_name"; DropDownList2.DataBind(); } }

Form Name: frmHOInsertResiInfo.aspx

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="frmInsertResiInfo.aspx.vb" Inherits="resi_info_insert" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body background="../images/1821.jpg"> <form id="form1" runat="server"> <div> <div> <div style="background-image: url(image/1821.jpg)"> <asp:Label ID="lblinsresiinfo" runat="server" BackColor="DarkGray" Font-Bold="True" Font-Names="Times New Roman" Font-Size="X-Large" ForeColor="Transparent" Height="30px" Style="z-index: 100; left: 77px; position: absolute; top: 11px" Width="363px">Insert New Residential Information</asp:Label> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /> &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<asp:TextBox ID="txtpropid" runat="server" style="z-index: 110; left: 213px; position: absolute; top: 53px"></asp:TextBox> <asp:Label ID="lblpropid" runat="server" Font-Bold="True" FontSize="Medium" Text="Prop Id" style="z-index: 111; left: 129px; position: absolute; top: 55px"></asp:Label> <br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<asp:Label ID="lblhousetype" runat="server" Font-Bold="True" FontSize="Medium" Text="House Type"></asp:Label> &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;<asp:DropDownList ID="cbohousetype" runat="server" Width="150px"> <asp:ListItem>Kuchha</asp:ListItem> <asp:ListItem>Pukka</asp:ListItem> </asp:DropDownList><br /> &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <asp:Label ID="lblhousedesc" runat="server" Font-Bold="True" FontSize="Medium" Text="House Description"></asp:Label> &nbsp; &nbsp; &nbsp;

<asp:DropDownList ID="cbohousedesc" runat="server" Width="152px"> <asp:ListItem>Apartment</asp:ListItem> <asp:ListItem>Independent House</asp:ListItem> <asp:ListItem>Farm House</asp:ListItem> <asp:ListItem>Bunglow</asp:ListItem> </asp:DropDownList><br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:Label ID="lbladd" runat="server" Font-Bold="True" FontSize="Medium" Text="Address"></asp:Label> &nbsp; &nbsp; &nbsp; <asp:TextBox ID="txtadd" runat="server" TextMode="MultiLine" Width="145px"></asp:TextBox><br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<asp:Label ID="lblyoc" runat="server" Font-Bold="True" Font-Size="Medium" Text="Year of Construction"></asp:Label> &nbsp; &nbsp; &nbsp; <asp:TextBox ID="txtyoc" runat="server"></asp:TextBox> &nbsp;<br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:Label ID="lblnostorey" runat="server" Font-Bold="True" FontSize="Medium" Text="No. of Storey"></asp:Label> &nbsp; &nbsp; &nbsp; <asp:TextBox ID="txtnostorey" runat="server"></asp:TextBox><br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <asp:Label ID="lblarea" runat="server" Font-Bold="True" FontSize="Medium" Text="Area"></asp:Label> &nbsp; &nbsp; &nbsp;&nbsp; <asp:TextBox ID="txtarea" runat="server" style="z-index: 112; left: 210px; position: absolute; top: 315px"></asp:TextBox><br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br /> <asp:Button ID="btnsubmit" runat="server" OnClick="Button1_Click" Text="Ok" Width="96px" style="z-index: 113; left: 197px; position: absolute; top: 405px" /> &nbsp; <asp:Button ID="btncancel" runat="server" Text="Cancel" Width="105px" style="z-index: 115; left: 344px; position: absolute; top: 404px" /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br />

<br /> &nbsp; <br /> <br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div> </div> </div> </form> </body> </html>

Form Name: frmHOInsertResiInfo.vb

Imports System.Data Imports System.Data.SqlClient Partial Class resi_info_insert Inherits System.Web.UI.Page 'Dim con As New SqlConnection("data source=mcom14;uid=sa;password=lab3;initial catalog=BMS") Dim Con As New SqlConnection(System.Configuration.ConfigurationSettings.AppSettings.Get("AspTest"))

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnsubmit.Click Try Dim cmd As New SqlCommand("insert into HO_residential_main values('" & txtpropid.Text & "','" & cbohousetype.SelectedValue & "','" & cbohousedesc.SelectedValue & "','" & txtadd.Text & "','" & txtyoc.Text & "','" & txtnostorey.Text & "','" & txtarea.Text & "')") Dim adpt As New SqlDataAdapter(cmd) Dim ds As New DataSet cmd.Connection = con con.Open() adpt.Fill(ds) con.Close() Catch ex As Exception 'Label1.Text = ex.Message End Try Response.Redirect("frmMaintainResiInfo.aspx") End Sub 'Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnrefresh.Click ' Response.Redirect("frmResiInfoInsert.aspx") 'End Sub Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btncancel.Click Response.Redirect("frmMaintainResiInfo.aspx") End Sub Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'txtrole.Text = Request.Cookies("login")("Role_name") 'txtuid.Text = Request.Cookies("login")("User_id") 'txtuname.Text = Request.Cookies("login")("User_name") End Sub End Class

Form Name: frmUpdateResiInfo.aspx

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="frmUpdateResiInfo.aspx.vb" Inherits="frmResiInfoUpdate" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head id="Head1" runat="server"> <title>Untitled Page</title> </head> <body background="../images/1821.jpg"> <form id="form1" runat="server"> <div> <div> <div style="background-image: url(image/1821.jpg)"> <asp:Label ID="lblupdtresiinfo" runat="server" BackColor="DarkGray" Font-Bold="True" Font-Names="Times New Roman" Font-Size="X-Large" ForeColor="Transparent" Height="30px" Style="z-index: 100; left: 265px; position: absolute; top: 15px" Width="328px">Update Residential Information</asp:Label> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <asp:Label ID="lblpropid" runat="server" Font-Bold="True" FontSize="Medium" Text="Prop Id" style="z-index: 110; left: 120px; position: absolute; top: 70px"></asp:Label> <asp:TextBox ID="txtpropid" runat="server" Style="z-index: 111; left: 239px; position: absolute; top: 65px" Width="258px"></asp:TextBox> <br /> <asp:Label ID="lblhousetype" runat="server" Font-Bold="True" FontSize="Medium" Text="House Type" style="z-index: 112; left: 91px; position: absolute; top: 112px"></asp:Label> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp;&nbsp; <asp:DropDownList ID="ddlhousetype" runat="server" Style="z-index: 113; left: 241px; position: absolute; top: 109px" Width="263px"> <asp:ListItem>Kuchha</asp:ListItem> <asp:ListItem>Pukka</asp:ListItem> </asp:DropDownList> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br /> <asp:Label ID="lblhousedesc" runat="server" Font-Bold="True" FontSize="Medium" Text="House Description" style="z-index: 114; left: 47px; position: absolute; top: 151px"></asp:Label> <asp:DropDownList ID="ddlhousedesc" runat="server" Style="z-index: 127; left: 241px; position: absolute; top: 149px" Width="264px"> <asp:ListItem>Apartment</asp:ListItem> <asp:ListItem>Independent House</asp:ListItem> <asp:ListItem>Farm House</asp:ListItem> <asp:ListItem>Bunglow</asp:ListItem> </asp:DropDownList> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <asp:TextBox ID="txtadd" runat="server" TextMode="MultiLine" style="z-index: 116; left: 240px; position: absolute; top: 186px" Width="261px"></asp:TextBox><br /> <br /> <asp:Label ID="lbladd" runat="server" Font-Bold="True" FontSize="Medium" Text="Address" style="z-index: 117; left: 117px; position: absolute; top: 199px"></asp:Label> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:TextBox ID="txtyoc" runat="server" style="z-index: 118; left: 241px; position: absolute; top: 243px" Width="260px"></asp:TextBox><br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:TextBox ID="txtnostorey" runat="server" style="z-index: 119; left: 242px; position: absolute; top: 281px" Width="260px"></asp:TextBox> &nbsp; &nbsp;<asp:Label ID="lblyoc" runat="server" Font-Bold="True" Font-Size="Medium" Text="Year of Construction" style="z-index: 121; left: 39px; position: absolute; top: 246px"></asp:Label> <br /> <asp:Label ID="lblnostorey" runat="server" Font-Bold="True" FontSize="Medium" Text="No. of Storey" style="z-index: 122; left: 89px; position: absolute; top: 285px"></asp:Label> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <asp:TextBox ID="txtarea" runat="server" style="z-index: 123; left: 241px; position: absolute; top: 318px" Width="260px"></asp:TextBox><br /> <asp:Label ID="lblarea" runat="server" Font-Bold="True" FontSize="Medium" Text="Area" style="z-index: 124; left: 145px; position: absolute; top: 319px"></asp:Label> <br /> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;<br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br /> &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br /> <br /> &nbsp;&nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <asp:Button ID="btnupdate" runat="server" OnClick="Button1_Click" Text="Ok" Width="65px" style="z-index: 125; left: 247px; position: absolute; top: 422px" Height="25px" />&nbsp; &nbsp;

<asp:Button ID="btncancel" runat="server" Text="Cancel" Width="65px" style="z-index: 126; left: 373px; position: absolute; top: 421px" /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div> </div> </div> </form> </body> </html>

Form Name: frmUpdateResiInfo.aspx.vb


Imports System.Data Imports System.Data.SqlClient Partial Class frmResiInfoUpdate

Inherits System.Web.UI.Page 'Dim con As New SqlConnection("data source=mcom14;uid=sa;password=lab3;initial catalog=BMS") Dim Con As New SqlConnection(System.Configuration.ConfigurationSettings.AppSettings.Get("AspTest"))

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'txtrole.Text = Request.Cookies("login")("Role_name") 'txtuid.Text = Request.Cookies("login")("User_id") 'txtuname.Text = Request.Cookies("login")("User_name") If Not Me.IsPostBack = True Then txtpropid.Text = Request.Cookies("resi")("prop_id") ddlhousetype.Text = Request.Cookies("resi")("house_type") ddlhousedesc.Text = Request.Cookies("resi")("house_desc") txtadd.Text = Request.Cookies("resi")("address") txtyoc.Text = Request.Cookies("resi")("yoc") txtnostorey.Text = Request.Cookies("resi")("no_storey") txtarea.Text = Request.Cookies("resi")("area") End If End Sub Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnupdate.Click Try Dim cmd As New SqlCommand("update HO_residential_main set house_type='" & ddlhousetype.Text & "',house_desc='" & ddlhousedesc.Text & "',address='" & txtadd.Text & "',yoc='" & txtyoc.Text & "',no_storey='" & txtnostorey.Text & "',area='" & txtarea.Text & "' where prop_id='" & txtpropid.Text & "'", con) Dim adpt As New SqlDataAdapter(cmd) Dim ds As New DataSet con.Open() adpt.Fill(ds) con.Close() Response.Redirect("frmMaintainResiInfo.aspx") Catch ex As Exception End Try End Sub Protected Sub btncancel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btncancel.Click Response.Redirect("frmMaintainResiInfo.aspx") End Sub End Class

Form Name: frmDeleteResiInfo.aspx


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="frmDeleteResiInfo.aspx.vb" Inherits="resi_info_delete" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body background="../images/1821.jpg"> <form id="form1" runat="server"> <div> <div> <div style="background-image: url(image/1821.jpg)"> <asp:Label ID="lbldelresiinfo" runat="server" BackColor="Gray" FontBold="True" Font-Names="Times New Roman" Font-Size="X-Large" ForeColor="Transparent" Height="30px" Style="z-index: 100; left: 202px; position: absolute; top: 14px" Width="317px">Delete Residential Information</asp:Label> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br /> <br /> &nbsp; &nbsp; &nbsp;&nbsp;<br /> &nbsp; &nbsp; &nbsp;&nbsp;<asp:TextBox ID="txtpropid" runat="server" style="zindex: 110; left: 215px; position: absolute; top: 121px" Width="292px"></asp:TextBox> <asp:Label ID="lblpropid" runat="server" Font-Bold="True" FontSize="Medium" Text="Prop Id" style="z-index: 111; left: 112px; position: absolute; top: 129px"></asp:Label> &nbsp;<br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br /> &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; <asp:TextBox ID="txthousedesc" runat="server" style="z-index: 112; left: 212px; position: absolute; top: 200px" Width="295px"></asp:TextBox>&nbsp;&nbsp;<asp:Label ID="lblhousetype" runat="server" Font-Bold="True" FontSize="Medium" Text="House Type" style="z-index: 113; left: 87px; position: absolute; top: 168px"></asp:Label> <asp:TextBox ID="txthousetype" runat="server" Width="297px" style="zindex: 126; left: 214px; position: absolute; top: 161px"></asp:TextBox><br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /> <asp:TextBox ID="txtadd" runat="server" TextMode="MultiLine" Width="300px" style="z-index: 115; left: 210px; position: absolute; top: 235px"></asp:TextBox>

<asp:Label ID="lblhousedesc" runat="server" Font-Bold="True" FontSize="Medium" Text="House Description" style="z-index: 116; left: 46px; position: absolute; top: 206px"></asp:Label> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:Label ID="lbladd" runat="server" Font-Bold="True" FontSize="Medium" Text="Address" style="z-index: 117; left: 116px; position: absolute; top: 249px"></asp:Label> <br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <asp:TextBox ID="txtyoc" runat="server" Width="299px" style="z-index: 118; left: 210px; position: absolute; top: 291px"></asp:TextBox><asp:Label ID="lblyoc" runat="server" Font-Bold="True" Font-Size="Medium" Text="Year of Construction" style="z-index: 119; left: 37px; position: absolute; top: 287px"></asp:Label> <br /> <asp:Label ID="lblnostorey" runat="server" Font-Bold="True" FontSize="Medium" Text="No. of Storey" style="z-index: 120; left: 85px; position: absolute; top: 325px"></asp:Label> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<asp:TextBox ID="txtnostorey" runat="server" Width="297px" style="z-index: 121; left: 209px; position: absolute; top: 331px"></asp:TextBox><br /> <asp:TextBox ID="txtarea" runat="server" Width="298px" style="zindex: 122; left: 208px; position: absolute; top: 375px"></asp:TextBox> <br /> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <asp:Label ID="lblarea" runat="server" Font-Bold="True" FontSize="Medium" Text="Area" style="z-index: 123; left: 133px; position: absolute; top: 380px"></asp:Label> <br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:Button ID="btncancel" runat="server" Text="Cancel" Width="65px" style="z-index: 124; left: 435px; position: absolute; top: 430px" /><br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /> <asp:Button ID="btndelete" runat="server" OnClick="Button1_Click" Text="Ok" Width="65px" style="z-index: 125; left: 301px; position: absolute; top: 430px" /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br /> <br />

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp;&nbsp;<br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div> </div> </div> </form> </body> </html>

Form Name: frmDeleteResiInfo.aspx.vb


Imports System.Data Imports System.Data.SqlClient Partial Class resi_info_delete Inherits System.Web.UI.Page

'Dim con As New SqlConnection("data source=mcom14;uid=sa;password=lab3;initial catalog=BMS") Dim Con As New SqlConnection(System.Configuration.ConfigurationSettings.AppSettings.Get("AspTest")) Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btndelete.Click Try Dim cmd As New SqlCommand("delete from HO_residential_occupants where HO_residential_occupants.prop_id='" & txtpropid.Text & "'") Dim cmd1 As New SqlCommand("delete from HO_residential_main where HO_residential_main.prop_id='" & txtpropid.Text & "'") cmd.Connection = con con.Open() cmd.ExecuteNonQuery() con.Close() cmd1.Connection = con con.Open() cmd1.ExecuteNonQuery() con.Close() Catch ex As Exception End Try Response.Redirect("frmMaintainResiInfo.aspx") End Sub Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btncancel.Click Response.Redirect("frmMaintainResiInfo.aspx") End Sub Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'txtrole.Text = Request.Cookies("login")("Role_name") 'txtuid.Text = Request.Cookies("login")("User_id") 'txtuname.Text = Request.Cookies("login")("User_name") If Not Me.IsPostBack = True Then txtpropid.Text = Request.Cookies("resi")("prop_id") txthousetype.Text = Request.Cookies("resi")("house_type") txthousedesc.Text = Request.Cookies("resi")("house_desc") txtadd.Text = Request.Cookies("resi")("address") txtyoc.Text = Request.Cookies("resi")("yoc") txtnostorey.Text = Request.Cookies("resi")("no_storey") txtarea.Text = Request.Cookies("resi")("area") 'txtcurocudetails.Text = Request.Cookies("resi")("curocudetails") 'txtnoocu.Text = Request.Cookies("resi")("noocu") 'txtocutype.Text = Request.Cookies("resi")("ocutype") 'txtownerdetails.Text = Request.Cookies("resi")("ownerdetails") 'txtstartdateocu.Text = Request.Cookies("resi")("startdateocu") End If End Sub End Class

Form Name: frmViewResiInfo.aspx


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="frmViewResiInfo.aspx.vb" Inherits="resi_info_view" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body background="../images/1821.jpg"> <form id="form1" runat="server"> <div> <div> <div style="background-image: url(image/1821.jpg)"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:Label ID="lblresiinfo" runat="server" BackColor="DarkGray" FontBold="True" Font-Names="Times New Roman" Font-Size="X-Large" ForeColor="Transparent" Height="30px" Style="text-align:center; z-index: 100; left: 142px; position: absolute; top: 18px;" Width="253px">Residential Information</asp:Label> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /> <br /> &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<asp:TextBox ID="txthouseid" runat="server" style="z-index: 101; left: 250px; position: absolute; top: 90px" Width="237px"></asp:TextBox><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <asp:Label ID="lblhouseid" runat="server" Font-Bold="True" FontSize="Medium" Text="House Identification No " style="z-index: 111; left: 18px; position: absolute; top: 94px"></asp:Label> &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<asp:TextBox ID="txthousetype" runat="server" style="z-index: 112; left: 250px; position: absolute; top: 128px" Width="239px"></asp:TextBox><br /> &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <asp:Label ID="lblhousetype" runat="server" Font-Bold="True" FontSize="Medium" Text="House Type" style="z-index: 113; left: 92px; position: absolute; top: 133px"></asp:Label>

<br /> <asp:TextBox ID="txthousedesc" runat="server" style="z-index: 114; left: 249px; position: absolute; top: 167px" Width="240px"></asp:TextBox> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <asp:Label ID="lblhousedesc" runat="server" Font-Bold="True" FontSize="Medium" Text="House Description" style="z-index: 115; left: 51px; position: absolute; top: 177px"></asp:Label> <br /> <asp:TextBox ID="txtadd" runat="server" TextMode="MultiLine" style="z-index: 116; left: 246px; position: absolute; top: 205px" Width="246px"></asp:TextBox> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:Label ID="lbladd" runat="server" Font-Bold="True" FontSize="Medium" Text="Address" style="z-index: 117; left: 120px; position: absolute; top: 220px"></asp:Label> <br /> <asp:TextBox ID="txtyoc" runat="server" style="z-index: 118; left: 246px; position: absolute; top: 257px" Width="246px"></asp:TextBox><asp:Label ID="lblyoc" runat="server" Font-Bold="True" Font-Size="Medium" Text="Year of Construction" style="z-index: 119; left: 43px; position: absolute; top: 261px"></asp:Label> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:Label ID="lblnostorey" runat="server" Font-Bold="True" FontSize="Medium" Text="No. of Storey" style="z-index: 120; left: 95px; position: absolute; top: 297px"></asp:Label> &nbsp; &nbsp; &nbsp; <asp:TextBox ID="txtnostorey" runat="server" style="z-index: 121; left: 246px; position: absolute; top: 292px" Width="247px"></asp:TextBox><br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br /> <asp:TextBox ID="txtarea" runat="server" style="z-index: 122; left: 245px; position: absolute; top: 331px" Width="255px"></asp:TextBox> <asp:Label ID="lblarea" runat="server" Font-Bold="True" FontSize="Medium" Text="Area" style="z-index: 123; left: 143px; position: absolute; top: 333px"></asp:Label> <br /> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />

<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br /> <br /> <br /> &nbsp; &nbsp;<br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:Button ID="btnok" runat="server" OnClick="Button1_Click" Text="Ok" Width="78px" style="z-index: 124; left: 331px; position: absolute; top: 420px" Height="30px" />&nbsp; &nbsp; &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div> </div> </div> </form> </body> </html>

Form Name: frmViewResiInfo.aspx.vb


Imports System.Data Imports System.Data.SqlClient Partial Class resi_info_view

Inherits System.Web.UI.Page Dim con As New SqlConnection("data source=mcom14;uid=sa;password=lab3;initial catalog=BMS") Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnok.Click Response.Redirect("frmMaintainResiInfo.aspx") End Sub Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnok.Click Response.Redirect("frmMaintainResiInfo.aspx") End Sub Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'txtrole.Text = Request.Cookies("login")("Role_name") 'txtuid.Text = Request.Cookies("login")("User_id") 'txtuname.Text = Request.Cookies("login")("User_name") If Not Me.IsPostBack = True Then txthouseid.Text = Request.Cookies("resi")("prop_id") txthousetype.Text = Request.Cookies("resi")("house_type") txthousedesc.Text = Request.Cookies("resi")("house_desc") txtadd.Text = Request.Cookies("resi")("address") txtyoc.Text = Request.Cookies("resi")("yoc") txtnostorey.Text = Request.Cookies("resi")("no_storey") txtarea.Text = Request.Cookies("resi")("area") End If End Sub Protected Sub txthousedesc_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txthousedesc.TextChanged End Sub End Class

Form Name: SaveToDb.aspx.vb

Coding

Imports System.Data Imports System.Data.SqlClient Partial Class SaveToDb Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim Lati As String = Me.Request("Lati") Dim Lngi As String = Me.Request("Lngi") Dim Name As String = Me.Request("type") If Not (Lati = String.Empty) And Not (Lngi = String.Empty) Then Dim conn1 As New SqlConnection("Server=mcom14;Database=BMS;UID=sa;Password=lab3;") Dim sql1 As String = "insert into HO_Object_Position values ('" + Lati + "', '" + Lngi + "', '" + Name + "')" Dim cmd1 As SqlCommand = New SqlCommand(sql1, conn1) ) Try conn1.Open() cmd1.ExecuteNonQuery() conn1.Close() Catch ex As Exception End Try Me.Response.ClearHeaders() Me.Response.Clear() Me.Response.Write("") Me.Response.End() End If End Sub End Class

Conclusion:
The project had its plan laid out properly and was successfully completed. The data was retrieved and was properly utilized.

Вам также может понравиться