i have a newbie question!
For data that is not part of a list, which is preferred, to use asp:Label and set the values for the labels in the Page_Load or to create a property on the page for the object with the data and bind to that object?
Code:Ex1:
(in .aspx)
<asp:Label ID="myField" runat="server" />
(in Page_Load)
myField.Text = myObject.someValue;
or
Code:Ex2:
(in .aspx)
<%# MyObject.someValue %>
(in .aspx.cs)
public Object MyObject { get; set; }
(in Page_Load)
MyObject = someObject;
Page.DataBind();