调试Atlas:使用单独的Trace viewer跟踪调试ASP.NET页面
2006-03-22 22:13
666 查看
ASP.NET下,普通的调试方式是:
在<% Page ... %> 指令中添加 Trace="true" 命令。这将在页面下方显示跟踪信息。
If you are using tracing on the server to debug Web pages with partial rendering enabled (the page contains a
然而,如果是在Altals下,使用PartialRendering功能时,页面只是部分更新,不更新整个页面,因此跟踪信息不会更新。为此,需要使用Tracer viewer来单独查看调试跟踪信息。
1. 在web.config中,添加:
<configuration>
<system.web>
<trace enabled="true"/>
</system.web>
</configuration>
2.打开应用程序根目录下的Trace.axd
刷新页面就可以看到更新的调试信息。
在<% Page ... %> 指令中添加 Trace="true" 命令。这将在页面下方显示跟踪信息。
If you are using tracing on the server to debug Web pages with partial rendering enabled (the page contains a
ScriptManagercontrol with
EnablePartialRendering="true"and an
UpdatePanelcontrol with
Mode="Conditional"), you should use the trace viewer (Trace.axd) to display trace output. When you append trace trace output to the end of the page, it is initially rendered, but it is not updated as a result of asynchronous postbacks, because only the contents of
UpdatePanelcontrols that need to be refreshed will change.
然而,如果是在Altals下,使用PartialRendering功能时,页面只是部分更新,不更新整个页面,因此跟踪信息不会更新。为此,需要使用Tracer viewer来单独查看调试跟踪信息。
1. 在web.config中,添加:
<configuration>
<system.web>
<trace enabled="true"/>
</system.web>
</configuration>
2.打开应用程序根目录下的Trace.axd
刷新页面就可以看到更新的调试信息。
相关文章推荐
- ASP.NET笔记之页面跳转、调试、form表单、viewstate、cookie的使用说明
- 使用Filter跟踪Asp.net MVC页面加载(转)
- 使用Filter跟踪ASP.NET MVC页面加载时间
- 使用Filter跟踪Asp.net MVC页面加载时间
- asp.net页面跟踪调试 trace
- ASP.NET笔记之页面跳转、调试、form表单、viewstate、cookie的使用说明
- 使用Filter跟踪Asp.net MVC页面加载时间
- VS项目模板(项模板)制作--针对ASP.NET站点页面使用
- [翻译] 在 ASP.Net 4.0 中使用 QueryExtender 控件创建高效的搜索页面
- 使用ASP.NET Atlas XSLTView控件用XSLT修饰并显示XML数据
- 新瓶旧酒ASP.NET AJAX(3) - 客户端脚本编程(调试和跟踪)
- 【ASP.NET】如何使用类创建公共函数,在不同ASP.NET页面间重复调用
- 如何在ASP.NET页面中使用异步任务(PageAsyncTask)
- asp.net 使用页适配器和重写Render对全站输出的页面的HTML内容进行修改,不会错乱
- 使用HTML页面和一般处理程序模拟ASP.NET WebForms中的事件
- 如何在ASP.NET页面中使用异步任务(PageAsyncTask)
- asp.net 使用驻留在页面中的Cache缓存常用可定时更新的数据
- 【ASP.NET】怎样使用类创建公共函数,在不同ASP.NET页面间反复调用
- 在 ASP.NET 页面中使用 TreeView 控件
- 使用JScript.NET创建asp.net页面(三)