Using Code Nuggets to Set Control Properties
Why can't I use code sets to set a control property? For example, a button validation group or a label text property.
<asp:Button ID="btn" runat="server" Text="test" ValidationGroup='<% =TestValidate %>'
<asp:Label ID="lbl" runat="server" Text='<% =Test %>' />
Is there a way to set control properties without using codebehind?
+2
source to share