<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<style>
body
{ font-family:verdana;font-size:10pt; }
span 
{ font-weight:bold; }
</
style>

<script runat="server">
    
Protected Sub DropDownList2_SelectedIndexChanged(ByVal sender As ObjectByVal As System.EventArgs)
        labelSelection.Text 
DropDownList1.SelectedItem.Text & " " & DropDownList2.SelectedItem.Text
    
End Sub
</
script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    
<title>Untitled Page</title>
</head>
<body>
    
<form id="form1" runat="server">
    
<div>

        
<span Style="z-index: 105; left: 64px; position: absolute;top: 120px">
            Make
        
</span>

        
<asp:DropDownList ID="DropDownList1" 
            runat
="server" 
            AppendDataBoundItems
="True" 
            AutoPostBack
="True"
            DataSourceID
="AccessDataSource1" 
            DataTextField
="Manufacurer" 
            DataValueField
="Manufacurer"
            Style
="z-index: 100; left: 64px; position: absolute; top: 144px">
            
            
<asp:ListItem>
              (Select)
            
</asp:ListItem>
        
</asp:DropDownList>

        
<asp:AccessDataSource ID="AccessDataSource1" 
            runat
="server" 
            DataFile
="~/App_Data/Cars.mdb"
            SelectCommand
="SELECT [Manufacurer] FROM [Manufacturer] ORDER BY [Manufacurer]">
        
</asp:AccessDataSource>

        
<span Style="z-index: 103; left: 192px; position: absolute;top: 120px">
           Model
        
</span>

        
<asp:DropDownList ID="DropDownList2" 
            runat
="server" 
            AutoPostBack
="True" 
            DataSourceID
="AccessDataSource2"
            DataTextField
="Model" 
            DataValueField
="ModelID" 
            Style
="z-index: 101; left: 192px;position: absolute; top: 144px"
            onselectedIndexChanged
="DropDownList2_SelectedIndexChanged" Width="136px" >
        
</asp:DropDownList>
         
        
<asp:Label ID="labelSelection" 
            runat
="server" style="z-index: 102; left: 368px; position: absolute; top: 144px">
        
</asp:Label>
        
        
<asp:AccessDataSource ID="AccessDataSource2" 
          runat
="server" 
          DataFile
="~/App_Data/Cars.mdb"
          SelectCommand
="SELECT Model, ModelID FROM Models WHERE (Manufacturer = ?) ORDER BY Model">
          
<SelectParameters>
            
<asp:ControlParameter 
               ControlID
="DropDownList1" 
               Name
="Manufacturer" 
               PropertyName
="SelectedValue"
               Type
="String" />
          </
SelectParameters>
        
</asp:AccessDataSource>
    
    
</div>
    
</form>
</body>
</html>

Colorized by: CarlosAg.CodeColorizer