On an .aspx page, what is the best way to associate a server management property with a page class property (its code)? The only way I read is to use data binding:
<asp:TextBox ID="txt" runat="server" Text='<%# Me.SomePropOfMine %>' />
and then call Me.txt.DataBind()or Me.Databind()from code. Is there a way to set this relationship only on the .aspx page or to simplify the process if you have many controls to bind (without bind the whole page)?
source
share