ADO Net Database ASP.Net Tutorial

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" 
    Inherits="Default" %>



    Listing Factory Objects


    
        
            
                
            
        
    



File: Default.aspx.cs
using System;
using System.Data;
using System.Data.Common;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        DataTable providers = DbProviderFactories.GetFactoryClasses();
        provList.DataSource = providers;
        provList.DataBind();
    }
}