Tag Archives: Technology

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 »

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 »

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 »

Using single event handler for multiple control’s event in Windows Forms and ASP.NET using C#, VB.NET

Introduction: In this post I will explain how to use single event handler for click event of multiple Button controls in Windows Forms and ASP.NET using C# and VB.NET Description: Event handling in Windows Forms Create a new Windows Forms application and four buttons on the form, “btnAdd”, “btnSubtract”, “btnMultiply” and “btnDivide”. Write following event… Read More »

Changing UICulture of master and content pages on button click in ASP.NET using C#, VB.NET

Download Source Code Introduction In this article I will explain how to change UICulture of master and content pages on button click in ASP.NET. This will enable users to select a language to view contents of a page/site. When user selects a language, UICulture of the page is set to that specific language and page… Read More »