두 asp:dropdown
목록에서 필터링 후 asp:grid
에 데이터를로드해야합니다. 예를 들어 다음은 드롭 다운 목록입니다.필터를 제공 한 후 asp : grid에 데이터를로드하는 방법은 무엇입니까?
<asp:DropDownList ID="ddlb" runat="server" AutoPostBack="True"
CssClass="ddlb" Width="100px" DataSourceID="SqlDataSource3"
DataTextField="MonthYearName" DataValueField="MonthYear"
onselectedindexchanged="Changed">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource3" runat="server"
ConnectionString="<%$ ConnectionStrings:ProdDB %>" SelectCommand="# some sql query">
</asp:SqlDataSource>
<asp:DropDownList ID="asd" runat="server" AutoPostBack="True"
CssClass="ddlb" Width="100px" DataSourceID="SqlDataSource4"
DataTextField="MonthYearName" DataValueField="MonthYear"
onselectedindexchanged="SelectedIndexChanged">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource4" runat="server"
ConnectionString="<%$ ConnectionStrings:ProdDB %>" SelectCommand="# some queries">
</asp:SqlDataSource>
지금, 페이지를로드 할 때. 위의 정의 된 드롭 다운 목록을 보여줍니다. 내가 알고 싶은 것은 "위의 두 개의 드롭 다운 필터를 사용하여 aspx grid
에 데이터를 어떻게로드해야합니까?"입니다.
난 다음 그것의 기준으로 결과를 필터링 첫 번째 드롭 다운 메뉴에서 A
옵션을 선택하고 데이터 등 grid
에 표시 한 것입니다 ... 내가 그리드를 연결하는 방법을
알려주세요 이 두 개의 드롭 다운 목록이 있습니까?
어떻게 필터링해야합니까?
표 코드를 추가하십시오. –
사실 그런 종류의 문제가 없습니다 ... 튜토리얼을 묻는 것 –