ASPX:
<%# if(this.CurDateTime - DataBinder.Eval(Container.DataItem, "completedatetime") <=1 )
{
Response.Write("");
}
%>
C#:
protected System.DateTime CurDateTime;
private void Page_Load(object sender, System.EventArgs e)
{
this.CurDateTime = System.DateTime.Now;
}
|