Tag Archives: ASP.NET Controls

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 »

RegularExpressionValidator in ASP.NET

RegularExpressionValidator validation control in ASP.NET validates a control according to the regular expression (RegEx) set to its ValidationExpression property. Using this validation control we can specify a format of data that a control should accept using a RegEx. For example, we can validate a Phone number, Email, Zip Code etc using a RegularExpressionValidator control. Properties… Read More »

How to add Pushpins to a Bing Map from database using ASP.NET

Introduction In this article I will explain how to add Pushpins to a Bing map from locations (Latitude/Longitude) stored in a SQL Server database table Description We will use “Bing Maps AJAX Control 7.0 ISDK” to create Bing map. You have to create a key to use Bing map in your applications. You can refer… Read More »

Custom Paging in ASP.NET GridView control with AJAX using ObjectDataSource control

Download source code In this article I will explain how to do custom paging in ASP.NET GridView control with AJAX using ObjectDataSource control Introduction In this article we will see how to enable custom paging in ASP.NET GridView control using ObjectDataSource control. We will also enable AJAX to avoid post back after navigation through paging.… Read More »

How to edit Master-Detail form using GridView and DetailsView control in ASP.NET

In this article I will explain how to edit master-detail form using GridView and DetailsView control in ASP.NET Download source code Introduction In one of my previous article I explained how to Master-Detail form using GridView and DetailsView in ASP.NET. In this ariticle I will explain how to edit a master/detail form in ASP.NET from… Read More »

How to highlight sorted column of a GridView control in ASP.NET

In this article I will explain how to highlight sorted column of a GridView control in ASP.NET Introduction In this article I will explain how to highlight or select the column of an ASP.NET GridView control whose header has been clicked for sorting Step 1: Create a new ASP.NET Web Application and drag a GridView… Read More »

GridView Paging and Sorting in ASP.NET without using a DataSource

In this article I will explain how to enable paging and sorting in a GridView control manually without using a DataSource Download Source Code Introduction: In this article I will explain how to enable paging and sorting in a GridView control manually without using a DataSource like SqlDataSource Step 1: Create a new ASP.NET Web… Read More »

GridView Paging and Sorting in ASP.NET using SqlDataSource

Introduction: In this article I will explain how to enable paging and sorting in a GridView control using SqlDataSource in design view Step 1: Create a new ASP.NET Web Application and drag a GridView control in Default.aspx design view and select New Data Source from the Chose Data Source dropdown in the GridView Tasks pane… Read More »

How to localize ASP.NET controls based on browser’s language and culture settings

In this article we will learn how to display localized data in ASP.NET controls based on language and culture settings of the browser. Introduction: Objective of this article is to localize ASP.NET controls to display data according to browser’s language setting. Browser’s language setting is determined by its current Culture. Localization of ASP.NET controls will… Read More »

How to change the background color of rows in a GridView based on the value of a column in ASP.NET 3.5

Introduction: This article will explain you how to change the background color of the GridView rows to red if the value of “List Price” field is greater than 1000. Steps 1: Create a new ASP.NET Web Application Step 2: Insert a ConnectionString in the Web.config file [sourcecode language=”xml”] <connectionStrings> <add name="conString" connectionString="Data Source=.\SQL2005Express; User Id=sa;… Read More »