ADO Database ASP.Net

<%@ Page Language=VB Debug=true %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OLEDB" %>

Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
    If Not IsPostBack Then
        Dim DBConn as OleDbConnection
        Dim DBCommand As OleDbDataAdapter
        Dim DSPageData as New DataSet
        DBConn = New OleDbConnection( _
            "PROVIDER=Microsoft.Jet.OLEDB.4.0;" _
            & "DATA SOURCE=" _
            & Server.MapPath("EmployeeDatabase.mdb;"))
        DBCommand = New OleDbDataAdapter _
            ("Select ID, FirstName " _
            & "From Employee " _
            & "Order By FirstName", DBConn)
        DBCommand.Fill(DSPageData, "Employee")
        rbl1.DataSource = DSPageData.Tables("Employee").DefaultView
        rbl1.DataBind()
    End If
End Sub



Binding a RadioButton Control to a Data Source





    id="rbl1" 
    datatextfield="FirstName" 
    datavaluefield="ID"
    runat="server"
/>






           
       
EmployeeDatabase.zip( 10 k)