問題タブ [webforms-view-engine]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
asp.net - asp.netのアコーディオン内にUserControlを挿入するには?
次のようなユーザー コントロールがあります。
そうは言っても、中にアコーディオンのあるページがあります
Panes タグ内に UserControl を挿入しようとしていますが、ページはそれをレンダリングせず、代わりにエラーが発生しています:
パーサー エラー メッセージ: AjaxControlToolkit.AccordionPaneCollection には、「AjaxControlToolkit.AccordionPane」タイプの項目が必要です。「uc1:ProfileGroupComponent」のタイプは「ASP.controls_profilegroupcomponent_ascx」です。
背後にあるアイデアは、複数のペインを動的に追加することですが、一貫した UI を使用して、コントロールを編集し、ルック アンド フィールを変更できます。安全に行う方法はありますか?