Question

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" />
Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top