Binding Expression : Expressions « Data Binding « ASP.NET Tutorial






<%@Page debug="true"%>
<script language="C#" runat="server" >

DateTime theTime;
protected void Page_Load(object o, EventArgs e) {
    theTime = DateTime.Now;
    Page.DataBind();
}
</script>
The time is: <%# theTime %><br/>








19.15.Expressions
19.15.1.Put simple data binding expressions
19.15.2.Binding Expression
19.15.3.Databind the result of a method call
19.15.4.DataList with data binding expression