ive msdn에서 검색 한 적이 있지만 정확히 무엇을 검색해야하는지 알지 못합니다. 어떻게 사용자 정의 컨트롤의 자식 요소에 액세스합니까? 자체 HTML을 렌더링하는 새 사용자 지정 컨트롤을 만들지 않으려 고합니다. HTML 출력이 ASCX 파일의 간단한 리피터, 그것은 다음과 같습니다 .net에서 프로그래밍 방식으로 사용자 정의 컨트롤 요소를 검색하는 방법?
<asp:repeater id="rpContent" runat="server" onitemdatabound="rpContent_itemdatabound">
<headertemplate><ul class="displaypanel"></headertemplate>
<itemtemplate>
<li class="on">
<a href="javascript://">tab header</a>
<div>
what goes here is tab content
</div>
</li>
</itemtemplate>
<footertemplate>
</ul></footertemplate>
</asp:repeater>
내가 구현은 다음과 같이 할 :
<bni:tabs id="tabs" runat="server">
<tab srcId="id1" />
<tab srcId="id2" />
</bni:tabs>
을 그래서 기본적으로 뒤에 코드에서, 나는 원하는 배열 또는리스트에서 자식 콜렉션을 검색하고, 일부 작업을 수행한다. ID를 사용하여 결과 세트를 제 리피터에 바인딩하십시오.
아니요, 나는 탭 목록을 검색 한 다음 외부 중계 장치에 바인딩하려고합니다. – Ayyash