asp.net DataBind() example: single value data binding

asp.net DataBind() example: single value data binding
SingleValueDataBindingExample.aspx

<%@ Page Language="C#" %>

<!DOCTYPE html>

<script runat="server">
    protected void Page_Load(object sender, System.EventArgs e) {
        this.DataBind();
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>asp.net DataBind() example: single value data binding</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2 style="color:Red">Example: Single Value Data Binding</h2>
        <asp:Label ID="Label1" runat="server" ForeColor="CornflowerBlue" Font-Size="Large" Font-Italic="true">
            Simple Calculation: 10 + (5*99) = <%# 10 + (5*99) %>
            <br />
            Maximum Value(89,99) = <%# Math.Max(89,99) %>
            <br />
            Minimum Value(89,99) = <%# Math.Min(89,99) %>
            <br />
            Sqrt(89) = <%# Math.Sqrt(89) %>
        </asp:Label>
    </div>
    </form>
</body>
</html>
More asp.net examples