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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
   <title>Using QueryString Parameters with Data Source Controls</title>
   <link href="chapterStyles.css" type="text/css" rel="stylesheet" />
</head>
<body>
   <form id="form1" runat="server">
      <div id="container">
         <h1>Using QueryString Parameters with Data Source Controls</h1>
         <p>
         This example illustrates how to use querystring parameters with a data source control
         </p>
         <h2>Select Publisher</h2>
         <asp:DropDownList ID="drpPublisher" runat="server"
           DataSourceID="dsPublisher" DataValueField="PublisherId"
           DataTextField="PublisherName" AutoPostBack="True" OnSelectedIndexChanged="drpPublisher_SelectedIndexChanged"/>
         
         <asp:SqlDataSource ID="dsPublisher" runat="server"
             ProviderName="System.Data.OleDb" 
             ConnectionString="<%$ ConnectionStrings:Books %>"
              SelectCommand="Select PublisherId,PublisherName From Publishers" />                       
      </div>
   </form>
</body>
</html>

