Hi i just open new page in VS and added one simple line, question why date time isn’t showing? There is just blak page.
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<%# DateTime.Now.ToString() %>
</div>
</form>
</body>
</html>
<%# ... %>is data-binding syntax, which basically means that the expression will not be evaluated untilDataBind()is called. Since you do not callDataBind(), nothing gets printed.The syntax for evaluating the expression immediately would be: