<% @ Page language = "c #" ContentType = "text / html" responseEncoding = "GB2312"%>
Void Page_Load (Object Sender, Eventargs E) {
Datetime nowtime = datetime.now;
DateTime Expires = NOWTIME.ADDSeconds (10);
/ *
Compare. Tostring () is different from .tostring ("r").
CreatedStamp.innerHtml = nowTime.toString ();
ExpiresStamp.INNNERHTML = Expires.toString ();
* /
CreatedStamp.innerhtml = NOWTIME.TOSTOSTRING ("R");
ExpiresStamp.innerHtml = Expires.Tostring ("R");
}
Script>
Output Caching for Ten Seconds ...
Output Cache Created: b> font>
Output Cache Expires: b> font>
font>