ASP.NET Tutorials

Understanding ASP.NET ObjectDataSource Control

24 June 2009
33289 Views

The ObjectDataSource control allows you to bind your data bound controls to custom .NET business objects Using ObjectDataSource control, accessing and displaying data from a Business Login Layer can be accomplished without writing a single line of code. In this tutorial I will show you how you can use ObjectDataSource control to call methods from custom business objects and how you can bind ObjectDataSource control with ASP.NET data bound controls such as GridView.
Understanding ASP.NET ObjectDataSource Control

Selecting Data in ASP.NET 3.5 ListView Control

15 June 2009
44021 Views

The new ListView control introduced in ASP.NET 3.5 allows you to display, select, edit, update, delete, sort and paginate your data in extremely flexible way. In one of my other tutorial I have shown you how you can use ListView control to display data. This tutorial covers how to provide selection feature in ListView control. I will introduce you SelectedItemTemplate of ListView control which you can use to render the contents of the selected item.
Selecting Data in ASP.NET 3.5 ListView Control


Display Data using new ListView Control in ASP.NET 3.5

13 June 2009
42057 Views

In ASP.NET 3.5, Microsoft introduced two new databound controls: the ListView and DataPager control which you can use to display and paginate your data in extremely flexible way. In this tutorial I will show you how you can use ListView control to display data from the database. I will introduce you how different templates in ListView control work and how you can use ListView control to render any type of HTML markup you want.
Display Data using new ListView Control in ASP.NET 3.5

Transform XML Document Programmatically using XmlCompiledTransform

12 June 2009
6991 Views

In one of my previous tutorials I have shown you how you can transform XML documents using XSLT files with the help of ASP.NET XML server control. I have received many queries asking me how we can achieve similar functionality programmatically. In this tutorial I will show you how to transform an XML document using .NET Framework built in XmlCompiledTransform class available in System.Xml.Xsl.
Transform XML Document Programmatically using XmlCompiledTransform

Display Master/Details output with Nested GridView Controls

11 June 2009
15928 Views

GridView control provides very flexible way to display, select, sort or edit data on ASP.NET page with ease but it does not provide an easy way to create nested grid to display master details views of your database tables. By nesting I mean you are trying to put one GridView inside another GridView to display better details view for the users. In this tutorial I will show you how easy it is to implement nested GridView scenario with minimum code.
Display Master/Details output with Nested GridView Controls

Display XML Document in ASP.NET using XML Control

04 June 2009
12619 Views

XML is now one of the most common buzzword in software development. Its use is widely spread in almost all the modern technologies including .NET Framework that provides many useful classes to work with XML Documents in System.Xml namespace. XML Documents contain raw data without any formatting or presentation logic and developers use XSLT to transform XML documents into other formats such as HTML. ASP.NET added a new control in version 2.0 called XML control which can be used to transform and display XML documents in ASP.NET pages with ease. In this tutorial I will show you how you use ASP.NET XML Server Control to present XML data.
Display XML Document in ASP.NET using XML Control

Displaying Total in Footer of GridView

04 June 2009
114716 Views

During my training career, I have been asked one common question several times that how we can calculate summary totals inside GridView control and how we can show it at the footer of GridView control. So I have decided to write a tutorial on this topic. In this tutorial I will show you how you can calculate and display totals not only in GridView footer but also on any control outside GridView control.
Displaying Total in Footer of GridView

Formatting GridView output based on Data

04 June 2009
28259 Views

ASP.NET GridView control is the most commonly used control for displaying data on the web page. If you want to display database records as HTML table “as is”, it is very easy to accomplish using GridView. Sometimes you want to customize the HTML output of the GridView and want to display data differently based on its value. In this tutorial I will show you how you can call custom formatting functions inside GridView to customize GridView control.
Formatting GridView output based on Data

Deleting multiple Rows in GridView using Checkbox

03 June 2009
61160 Views

In one of my other article “Using Checkbox in ASP.NET GridView Control”, I have shown you how you can update the row status in database using checkboxes in GridView. There are situations when you want to provide checkboxes in GridView for deleting multiple database records similar to Hotmail or Yahoo inboxes. GridView control allows you to delete only a single record at a time but in this tutorial I will show you how you can implement multiple records deletion scenario in GridView control.
Deleting multiple Rows in GridView using Checkbox

Export ASP.NET GridView to Excel

01 June 2009
14355 Views

Many developers use GridView control to display web reports in their ASP.NET websites. GridView control render data in a tabular form just like HTML tables but it lack the functionality of exporting its contents to any other format such as Excel of PDF file. It is very common requirements of many clients to export web report data to Excel file so that they can perform some analysis using Excel built in features. In this Tutorial I will show you how to export GridView control as Excel File.
Export ASP.NET GridView to Excel