How to avoid space occupied by an inactive validation control in ASP.NET

A validation control occupies space even if it is not showing any error. This is because by default Display property of the validation control is set to Static. For example, if we take two validation controls, one RequiredFieldValidator and one RangeValidator and if any of the validation fails, both the validation controls will consume their… Read More »

RangeValidator control in ASP.NET

RangeValidator validation control in ASP.NET is used to validate whether the value of a control is in a given range. It can validate Currency, Date, Double, Integer and String value. Properties of RangeValidator control Property Uses ControlToValidate It takes ID of the control you want to validate Type It specifies the type of data you… Read More »

CompareValidator control in ASP.NET

CompareValidator validation control in ASP.NET is used to validate an input control’s value by comparing it with another control’s value or a constant value. For example, we can use CompareValidator to validate controls if we want user to enter same value in two different controls, to compare value of a control with another control, to… Read More »

Validation controls in ASP.NET

Data validation is very important while accepting input from user. There may be different business logic for validating data. Some basic validation would be to validate a field to accept only numbers or a valid email address or phone number of a country in a specific pattern etc. ASP.NET provides some built-in controls for this… Read More »

How to convert a location (lat/lng) to address using Reverse Geocoding in Google Geocoding API

Introduction Here, I will explain how to convert a location (latitude/longitude) to its corresponding address using Reverse Geocoding in Google Geocoding API Description Reverse Geocoding is the process of converting a geographic location to a human readable address. We can use Google Geocoding API or Google Geocode Service to convert a location to its corresponding… Read More »

How to find latitude/longitude of an address using Google Geocoding API

Introduction Here, I will explain how to find latitude and longitude of a given address using Google Geocoding API and Google Geocoding Service Description Geocoding is the process of converting an address into latitude and longitude. We can use Google Geocoding API to convert an address to its latitude/longitude by making HTTP request. Google Geocode Service… Read More »

How to show InfoWindow on Marker’s click in Google Maps

Introduction Here, I will explain how to display an InfoWindow after clicking on a Marker in Google Maps Description Using InfoWindow we can display some content on the map pointing to a place. Content of InfoWindow can be simple text, HTML or DOM element. google.maps.InfoWindow class is used to create an InfoWindow. An InfoWindow can… Read More »

Adding markers to Google Maps from database using ASP.NET

Introduction Here, I will explain how to add markers to Google Maps from SQL Server database using ASP.NET Description Here first we will create a table “Locations” in the SQL Server database to store latitude and longitude of the places to which we want to add markers Step 1: Create table as following [code language=”sql”]… Read More »

How to add markers in Google Maps

Introduction Here, I will explain how to add Markers to a Google Maps using Google Maps JavaScript API v3 Description Marker is a type of object that is used to mark a location on the Google map. A marker displays an icon on the given latitude/longitude. google.maps.Marker class is used to create a marker. It’s… Read More »

Adding Google Maps to your website

Introduction In this article I will explain how to integrate Google Maps to your website Description In this article we will use Google Maps JavaScript API v3 to show Google Maps in our website. First we will see how to get an API key required for Google Maps. Then we will create a simple map… Read More »