フォーム用のラベル入力ブロックを作成するカスタムコントロールを作成しています。内部コンテンツを保存しながらスパンタグを動的に削除する
次のコード独自に動作します:
<label id="custom_calendar_label" class="required" for="custom_calendar">Calendar thing: </label>
<input id="custom_calendar" type="date" required="required" aria-labelledby="custom_calendar_label">
が、私は何らかの理由で、それを構築するために、カスタムサーバーコントロールを使用して、カスタムコントロールの周りのspanタグが自動的に(ないで任意のコードから生成されます私のカスタムコントロール)、
はので、私のコードは、私が動的にspanタグを削除しますが、ラベルの入力CONを維持するにはどうすればよい
<span id ="custom_calendar">
<label id="custom_calendar_label" class="required" for="custom_calendar">Calendar thing: </label>
<input id="custom_calendar" type="date" required="required" aria-labelledby="custom_calendar_label">
</span>
ように見える巻き上げますスパンタグ内のテント?
CompositeControlですか? – Mantorok
"asp.net c#"のようなものはあなたのタイトルから守ってください。それはタグの中にあり、それはそれが属する場所です。 –