【发布时间】:2010-09-28 00:58:12
【问题描述】:
如何最好地捕获由 aspx 页面呈现的 HTML(在我的实例中,用于日志记录)?
我不想使用 Response.Write 写回页面,因为它会打乱我的网站布局。
使用 Response.OutputStream 或 Response.Output 的流会导致 ArgumentException({System.ArgumentException: Stream was not readable.)
【问题讨论】:
-
简而言之,覆盖页面的 Render 方法。类似问答here
标签: asp.net html logging asp.net-2.0 render