Tag Archives: Programming

How to change type of chart of a Chart control in ASP.NET 4.0 programmatically

Introduction In this article I will explain how to change CharType of a Chart control in ASP.NET 4.0 dynamically at runtime Description Type of a Chart control can be changed by changing the ChartType property of the Series component inside the Series collection. ChartType property is set to SeriesChartType enum. Example: [sourcecode language=”csharp”] chartProducts.Series[“ProductSeries”].ChartType =… Read More »

ValidationSummary control in ASP.NET

ValidationSummary sever control in ASP.NET displays all the validation errors on the page at one place. ValidationSummary displays ErrorMessages of all the validation controls which fail to validate as summary Properties of ValidationSummary control Property Uses DisplayMode Gets or sets display mode of the ValidationSummary control. It can be set to BulletList, List or SingleParagraph.… Read More »

Using server-side validation in ASP.NET CustomValidator control

In this post I will explain how to use CustomValidator server control for server-side validation. Using server-side validation, CustomValidator can take advantage of power of the server-side languages C#, VB etc. For example, we can validate an input control’s value using data from the database. In the following example we will see how to validate… 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 »

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 »