in aspx
<% Response.WriteSubstitution(new HttpResponseSubstitutionCallback(CallbackFunction)); %>
或者直接拉一個 Substitution control,並設定其 MethodName 為 CallbackFunction
in code behind
protected static string CallbackFunction(HttpContext context){ return DateTime.Now.ToString("HH:mm:ss");}
沒有留言:
張貼留言