4. FrmSqlDataSource.aspx 페이지의 소스 보기를 선택한 후 등록된 두 컨트롤의 ID 속성을 다음과 같이 변경한다. 디자인 보기에서 작업한 내용 대신에 다음 두 줄을 직접 입력해도 결과는 같다.

    ▼  FrmSqlDataSource.aspx

    <%@ Page Language=“C#” AutoEventWireup=“true”
      CodeBehind=“FrmSqlDataSource.aspx.cs”
      Inherits=“DevDataControl.FrmSqlDataSource” %>
    
    <!DOCTYPE html>
    
    <html xmlns=http://www.w3.org/1999/xhtml">
    <head runat=“server”>
    <meta http-equiv=“Content-Type” content=“text/html; charset=utf-8”/>
      <title>SqlDataSource 컨트롤</title>
    </head>
    <body>
    <form id=“form1” runat=“server”>
    <div>
      <asp:DropDownList ID=“lstMemoName” runat=“server”></asp:DropDownList>
      <asp:SqlDataSource ID=“sdsMemoName” runat=“server”></asp:SqlDataSource>
    </div>
    </form>
    </body>
    </html>
    

    신간 소식 구독하기
    뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.