Can you please tell me how to refer to .net classes at design time. For e.g I want to print the current datetime in a label or text box. I tried following code but my page is coming blank.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<label runat="server"><%# DateTime.Now.ToString() %></label>
<asp:TextBox runat="server" ID="litDateNow" Text='<%# DateTime.Now.ToString() %>'></asp:TextBox>
</div>
</form>
</body>
</html>