Frage

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" />
War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top