Tag Archives: ASP.NET 3.5

Creating Master-Detail form using GridView and DetailsView in ASP.NET

In this article we will see how to create a simple Master-Detail form using GridView and DetailsView in ASP.NET. Refer to this article to see how to edit Master-Detail form in ASP.NET Introduction In this article we will create a Master-Detail from using a GridView and a DetailsView. A Master-Detail form displays a master list… Read More »

How to bind multiple SQL Server tables with a TreeView in a hierarchical order

In this article we will bind three SQL Server tables with a TreeView in a hierarchical order Objective In this article we will populate a TreeView with three tables – Country, State, and City in a hierarchical order. Country is at the top level which contains its states which further contains cities. Final output will… Read More »

Using Cookie-less Session in ASP.NET

In this article we will learn to use Session even if the Cookie of the user’s browser is disabled Introduction: We use Session in ASP.NET application to maintain state of the user. These Sessions too use Cookies in background to associate Sessions with the correct user. But if a user has turned off his browser’s… 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 »