문제

Is it possible to associate more than one ID to an "AssociatedControlID" field on an asp.net label?

Example:

<asp:Label ID="lblColour" runat="server" AssociatedControlID="txtColourFront, txtColourBack, txtColour" Text="ColourFront" />
<asp:TextBox ID="txtColourFront" runat="server" />
<asp:TextBox ID="txtColourBack" runat="server" />
<asp:TextBox ID="txtColour" runat="server" />
도움이 되었습니까?

해결책

No its not possible.

This will be rendered as the for attribute for a label element in HTML.

This element doesn't accept multiple for attributes.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top