<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>守望轩 &#187; Asp.net</title>
	<atom:link href="http://www.watch-life.net/tag/aspnet/feed" rel="self" type="application/rss+xml" />
	<link>http://www.watch-life.net</link>
	<description>关注IT,审视自我,守望生活, 宁静雅致的小轩馆.</description>
	<lastBuildDate>Tue, 20 Jul 2010 00:46:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>web developer tips (82):Visual Studio 2005web应用项目迁移到Visual Studio 2008</title>
		<link>http://www.watch-life.net/visual-studio/migrating-vs-2005-web-application-project-to-vs-2008.html</link>
		<comments>http://www.watch-life.net/visual-studio/migrating-vs-2005-web-application-project-to-vs-2008.html#comments</comments>
		<pubDate>Sun, 28 Mar 2010 16:06:45 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[Visual Studio 2005]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[web developer tips]]></category>

		<guid isPermaLink="false">http://www.watch-life.net/?p=513</guid>
		<description><![CDATA[原文地址：How to migrate Visual Studio 2005 Web Application Project to Visual Studio 2008
下面的步骤介绍如何把Visual Studio 2005的Web应用程序项目可以迁移到Visual Studio 2008：
1、备份原项目。
2、打开Visual Studio 2008。
3、单击“文件”菜单，选择“打开项目”，打开要迁移的项目。
4、你将看到如下帮你转换到当前版本的转换向导，单击“下一步”
 http://www.watch-life.net/visual-studio/migrating-vs-2005-web-application-project-to-vs-2008.html

5、如果你想向导帮你备份，请选择“是”，否则请选择“否”，点击“下一步”

6、请务必阅读屏幕里的摘要后点击“完成”。

7、一点击“完成”按钮，你将看见一个确认升级的对话框，如果要升级到最新的.net框架点击“是”，负责选择“否”。如果选择“是”进行升级，项目连同web.config文件一起升级到最新的.net框架。强烈建议选中“解决方案的所有web项都进行相同的处理”项。

8、转换向导显示状态给你，选中“关闭转换向导后显示日志”项，单击“关闭”。

如果你的项目使用了Ajax ，则需要在vs2008里安装ASP.NET Ajax Extensions 1.0，否则将无法升级。如何安装Ajax Extensions详见：web developer tips (62):在vs工具箱添加AJAX控件工具包


	你可能也会喜欢以下文章：
	
	web developer tips (39):在Visual Studio 2008中取消远程web操作 (0)
	防止刷新重复提交数据解决方法的分析 (4)
	Visual Studio 2008 每日提示(二十) (1)
	web developer tips (51):使用vs2005和IE8进行调试 (0)
	web developer tips (31):利用IIS 7.0的URL Rewrite 模块产生用户友好的URL (0)
	Visual Studio 2008 每日提示(二十八) (1)
	web developer [...]]]></description>
			<content:encoded><![CDATA[<p>原文地址：<a href="http://blogs.msdn.com/webdevelopertips/archive/2009/06/18/migrating-vs-2005-web-application-project-to-vs-2008.aspx" target="_blank">How to migrate Visual Studio 2005 Web Application Project to Visual Studio 2008</a></p>
<p>下面的步骤介绍如何把Visual Studio 2005的Web应用程序项目可以迁移到Visual Studio 2008：<br />
1、备份原项目。<br />
2、打开Visual Studio 2008。<br />
3、单击“文件”菜单，选择“打开项目”，打开要迁移的项目。<br />
4、你将看到如下帮你转换到当前版本的转换向导，单击“下一步”<br />
<a href="http://www.watch-life.net/visual-studio/migrating-vs-2005-web-application-project-to-vs-2008.html" target="_blank"> http://www.watch-life.net/visual-studio/migrating-vs-2005-web-application-project-to-vs-2008.html</a><br />
<img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/MigratingVS2005WebApplicationProjecttoVS_E8A4/image_thumb_5.png" width="511" height="403"><br />
5、如果你想向导帮你备份，请选择“是”，否则请选择“否”，点击“下一步”<br />
<img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/MigratingVS2005WebApplicationProjecttoVS_E8A4/image_thumb_1.png" width="512" height="403"><br />
6、请务必阅读屏幕里的摘要后点击“完成”。<br />
<img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/MigratingVS2005WebApplicationProjecttoVS_E8A4/image_thumb_2.png" width="511" height="401"><br />
7、一点击“完成”按钮，你将看见一个确认升级的对话框，如果要升级到最新的.net框架点击“是”，负责选择“否”。如果选择“是”进行升级，项目连同web.config文件一起升级到最新的.net框架。强烈建议选中“解决方案的所有web项都进行相同的处理”项。<br />
<img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/MigratingVS2005WebApplicationProjecttoVS_E8A4/image_thumb_3.png" width="511" height="243"><br />
8、转换向导显示状态给你，选中“关闭转换向导后显示日志”项，单击“关闭”。<br />
<img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/MigratingVS2005WebApplicationProjecttoVS_E8A4/image_thumb_4.png" width="511" height="401"><br />
如果你的项目使用了Ajax ，则需要在vs2008里安装<a href="http://www.watch-life.net/category/aspnet" target="_blank">ASP.NET</a> Ajax Extensions 1.0，否则将无法升级。如何安装Ajax Extensions详见：web developer tips (62):<a href="http://www.watch-life.net/visual-studio/add-ajax-control-toolkit-to-the-toolbox.html" target="_blank">在vs工具箱添加AJAX控件工具包</a></p>
<p class="akst_link">
</p>
	<h4>你可能也会喜欢以下文章：</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.watch-life.net/visual-studio/cancel-a-remote-web-operation-in-visual-studio-2008.html" title="web developer tips (39):在Visual Studio 2008中取消远程web操作 (2009-08-28)">web developer tips (39):在Visual Studio 2008中取消远程web操作</a> (0)</li>
	<li><a href="http://www.watch-life.net/aspnet/refresh-no-resubmit.html" title="防止刷新重复提交数据解决方法的分析 (2008-07-12)">防止刷新重复提交数据解决方法的分析</a> (4)</li>
	<li><a href="http://www.watch-life.net/visual-studio/visual-studio-2008-tip-day-20.html" title="Visual Studio 2008 每日提示(二十) (2008-12-30)">Visual Studio 2008 每日提示(二十)</a> (1)</li>
	<li><a href="http://www.watch-life.net/visual-studio/use-vs2005-to-debug-with-ie8.html" title="web developer tips (51):使用vs2005和IE8进行调试 (2009-09-25)">web developer tips (51):使用vs2005和IE8进行调试</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/have-user-friendly-url-using-iis-7-0-url-rewrite-module.html" title="web developer tips (31):利用IIS 7.0的URL Rewrite 模块产生用户友好的URL (2009-07-29)">web developer tips (31):利用IIS 7.0的URL Rewrite 模块产生用户友好的URL</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/visual-studio-2008-tip-day-28.html" title="Visual Studio 2008 每日提示(二十八) (2009-01-12)">Visual Studio 2008 每日提示(二十八)</a> (1)</li>
	<li><a href="http://www.watch-life.net/visual-studio/how-simple-it-is-to-attach-an-existing-style-sheet-to-your-web-page.html" title="web developer tips (68):附加样式表到网页 (2009-11-26)">web developer tips (68):附加样式表到网页</a> (0)</li>
	<li><a href="http://www.watch-life.net/aspnet/aspnet-textbox-readonly.html" title="比较郁闷的textbox（asp.net 2.0）控件 (2007-11-07)">比较郁闷的textbox（asp.net 2.0）控件</a> (0)</li>
</ul>

转载请注明作者，出处，以及原始超链接。<br />评论数：1 | <b><a href='http://www.watch-life.net/visual-studio/migrating-vs-2005-web-application-project-to-vs-2008.html#comment'>评论这篇文章</a></b>|关注作者最近动态,欢迎 follow me <a href='https://twitter.com/xjb' target='_blank'>xjb@twitter.com</a>|联络作者：iamxjb@gmail.com<br/>© 2010 守望轩 <a href='http://www.watch-life.net/visual-studio/migrating-vs-2005-web-application-project-to-vs-2008.html'>www.watch-life.net</a>]]></content:encoded>
			<wfw:commentRss>http://www.watch-life.net/visual-studio/migrating-vs-2005-web-application-project-to-vs-2008.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>web developer tips (79):在web页面快速添加和取消注释</title>
		<link>http://www.watch-life.net/visual-studio/quickly-comment-and-uncomment-in-your-web-pages.html</link>
		<comments>http://www.watch-life.net/visual-studio/quickly-comment-and-uncomment-in-your-web-pages.html#comments</comments>
		<pubDate>Sun, 28 Mar 2010 05:17:32 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[aspx]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[web developer tips]]></category>
		<category><![CDATA[web.cofig]]></category>
		<category><![CDATA[注释]]></category>

		<guid isPermaLink="false">http://www.watch-life.net/?p=510</guid>
		<description><![CDATA[原文地址：How to quickly comment and uncomment in your web pages
在aspx、html、web.config等文件里注释选择行，可以单击工具栏的Comment（注释）/ Uncomment（取消注释）图标来实现。
http://www.watch-life.net/visual-studio/quickly-comment-and-uncomment-in-your-web-pages.html
注释图标如下图所示：

取消注释图标如下图所示：

或者你也可以通过快捷键Ctrl+K Ctrl+C添加注释，通过快捷键Ctrl+K Ctrl+U取消注释。
在Asp.net的aspx里的注释

在html页面的注释

在script 块的注释

这些注释或取消注释快捷键也出现在菜单：编辑+高级+注释选择内容/取消注释选择内容里



	你可能也会喜欢以下文章：
	
	web developer tips (78):使用文档大纲导航 (0)
	web developer tips (22):提高页面和服务器控件加载速度 (0)
	web developer tips (69):vs中在浏览器中查看的快捷键 (2)
	web developer tips (43):通过请求处理管道注册IHttpModule (0)
	web developer tips (39):在Visual Studio 2008中取消远程web操作 (0)
	web developer tips (5):绑定ListView控件 (1)
	遍历页面上的所有控件 (0)
	web developer tips (84):在Visual Web Developer中设置web网站的起始页 (0)


转载请注明作者，出处，以及原始超链接。评论数：0 &#124; 评论这篇文章&#124;关注作者最近动态,欢迎 follow me xjb@twitter.com&#124;联络作者：iamxjb@gmail.com© 2010 守望轩 www.watch-life.net]]></description>
			<content:encoded><![CDATA[<p>原文地址：<a href="http://blogs.msdn.com/webdevelopertips/archive/2009/06/15/tip-79-did-you-know-how-to-quickly-comment-and-uncomment-in-your-web-pages.aspx" target="_blank">How to quickly comment and uncomment in your web pages</a></p>
<p>在aspx、html、web.config等文件里注释选择行，可以单击工具栏的<strong>Comment（注释）/ Uncomment（取消注释）</strong>图标来实现。<br />
<a href="http://www.watch-life.net/visual-studio/quickly-comment-and-uncomment-in-your-web-pages.html" target="_blank">http://www.watch-life.net/visual-studio/quickly-comment-and-uncomment-in-your-web-pages.html</a><br />
注释图标如下图所示：<br />
<img title="Comment Icon" height="33" alt="Comment Icon" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Did.HowtocommentcodeinVisualwebDeveloper_FFDA/Comment%20Icon_thumb_1.jpg" width="273" /><br />
取消注释图标如下图所示：<br />
<img title="Uncomment" height="28" alt="Uncomment" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Did.HowtocommentcodeinVisualwebDeveloper_FFDA/Uncomment_thumb.jpg" width="274" /></p>
<p>或者你也可以通过快捷键<strong>Ctrl+K Ctrl+C</strong>添加注释，通过快捷键<strong>Ctrl+K Ctrl+U</strong>取消注释。</p>
<p>在<a href="http://www.watch-life.net/category/aspnet" target="_blank">Asp.net</a>的aspx里的注释<br />
<img title="Comments in ASPX page" height="67" alt="Comments in ASPX page" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Did.HowtocommentcodeinVisualwebDeveloper_FFDA/Comments%20in%20ASPX%20page_thumb.jpg" width="510" /><br />
在html页面的注释<br />
<img title="Comments in HTML page" height="96" alt="Comments in HTML page" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Did.HowtocommentcodeinVisualwebDeveloper_FFDA/Comments%20in%20HTML%20page_thumb_1.jpg" width="507" /><br />
在script 块的注释<br />
<img title="Script block" height="93" alt="Script block" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Did.HowtocommentcodeinVisualwebDeveloper_FFDA/Script%20block_thumb.jpg" width="507" /></p>
<p>这些<a href="http://www.watch-life.net/visual-studio/quickly-comment-and-uncomment-in-your-web-pages.html" target="_blank">注释或取消注释快捷键</a>也出现在菜单：<strong>编辑+高级+注释选择内容/取消注释选择内容</strong>里</p>
<p><img title="Comment Uncomment Menu Option" height="258" alt="Comment Uncomment Menu Option" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Did.HowtocommentcodeinVisualwebDeveloper_FFDA/Comment%20Uncomment%20Menu%20Option_thumb.jpg" width="502" /></p>
<p class="akst_link">
</p>
	<h4>你可能也会喜欢以下文章：</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.watch-life.net/visual-studio/know-how-to-navigate-using-document-outline.html" title="web developer tips (78):使用文档大纲导航 (2010-03-28)">web developer tips (78):使用文档大纲导航</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/improve-performance-of-page-and-server-control-processing.html" title="web developer tips (22):提高页面和服务器控件加载速度 (2009-07-15)">web developer tips (22):提高页面和服务器控件加载速度</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/the-keyboard-shortcut-for-view-in-browser.html" title="web developer tips (69):vs中在浏览器中查看的快捷键 (2009-11-27)">web developer tips (69):vs中在浏览器中查看的快捷键</a> (2)</li>
	<li><a href="http://www.watch-life.net/visual-studio/register-your-ihttpmodule-depends-on-the-pipeline.html" title="web developer tips (43):通过请求处理管道注册IHttpModule (2009-09-06)">web developer tips (43):通过请求处理管道注册IHttpModule</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/cancel-a-remote-web-operation-in-visual-studio-2008.html" title="web developer tips (39):在Visual Studio 2008中取消远程web操作 (2009-08-28)">web developer tips (39):在Visual Studio 2008中取消远程web操作</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/how-to-databind-a-listview-control.html" title="web developer tips (5):绑定ListView控件 (2009-06-12)">web developer tips (5):绑定ListView控件</a> (1)</li>
	<li><a href="http://www.watch-life.net/aspnet/ergodic-children-controls.html" title="遍历页面上的所有控件 (2007-11-20)">遍历页面上的所有控件</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/set-a-start-page-for-your-web-site-in-visual-web-developer.html" title="web developer tips (84):在Visual Web Developer中设置web网站的起始页 (2010-03-29)">web developer tips (84):在Visual Web Developer中设置web网站的起始页</a> (0)</li>
</ul>

转载请注明作者，出处，以及原始超链接。<br />评论数：0 | <b><a href='http://www.watch-life.net/visual-studio/quickly-comment-and-uncomment-in-your-web-pages.html#comment'>评论这篇文章</a></b>|关注作者最近动态,欢迎 follow me <a href='https://twitter.com/xjb' target='_blank'>xjb@twitter.com</a>|联络作者：iamxjb@gmail.com<br/>© 2010 守望轩 <a href='http://www.watch-life.net/visual-studio/quickly-comment-and-uncomment-in-your-web-pages.html'>www.watch-life.net</a>]]></content:encoded>
			<wfw:commentRss>http://www.watch-life.net/visual-studio/quickly-comment-and-uncomment-in-your-web-pages.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>web developer tips (77):在ASP.NET启动启动页面级跟踪</title>
		<link>http://www.watch-life.net/visual-studio/enable-page-level-tracing-for-your-asp-net-pages.html</link>
		<comments>http://www.watch-life.net/visual-studio/enable-page-level-tracing-for-your-asp-net-pages.html#comments</comments>
		<pubDate>Tue, 23 Mar 2010 14:47:47 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[tracing]]></category>
		<category><![CDATA[web developer tips]]></category>
		<category><![CDATA[跟踪]]></category>

		<guid isPermaLink="false">http://www.watch-life.net/?p=506</guid>
		<description><![CDATA[原文地址： How to enable Page Level Tracing for your ASP.NET pages
在调试Asp.net的web应用的时候，启动页面级跟踪，将会给一大串的有用信息。这些跟踪信息可以帮助我们理解控件在各种视图状态下的运行情况，比如PreInit（事件）的开始和结束时，Init事件的开始和结束状态，Render事件的开始和结束状态 等等。这些信息会出现在页面的底部。默认情况下页面级跟踪是不开启的。
http://www.watch-life.net/visual-studio/enable-page-level-tracing-for-your-asp-net-pages.html
跟踪可以页面级和应用级启动。
开启的方法： Visual Studio 2008在属性窗口选择“ DOCUMENT ”，设置“ Trace  ”属性为“true”，如下所示：

这种设置将在指定的页面上添加Trace=&#34;true&#34;，如下所示：
&#60;%@ Page Language=&#34;VB&#34;&#160; Trace=&#34;true&#34; %&#62;
同时，如果想显示的跟踪按时间排序（SortedByTime）或 按类别排序（SortByCategory），也可以设置TraceMode 属性。
运行页面后，效果详情如下所示：

可以通过Asp.net应用根目录的web.config文件来启动应用级跟踪，这样启动后你可以获取整个应用所有页面的跟踪信息。在这种情况下，如果你不想跟踪某个特定的页面，应该设置页面级跟踪为不启用。
应用级跟踪的设置方法，在web.cofig中设置如下：

&#60;configuration&#62; &#60;system.web&#62; 
&#60;trace enabled=&#34;true&#34; requestLimit=&#34;40&#34; localOnly=&#34;false&#34;/&#62; 
&#60;/system.web&#62;&#60;/configuration&#62;

记住在应用发布的时候，要关闭跟踪。同时，页面级跟踪会覆盖应用级跟踪。


	你可能也会喜欢以下文章：
	
	关于二级域名(泛二级域名)的实现 (0)
	web developer tips (53):在vs的设计视图编辑gridview的模板 (0)
	温故知新的经典&#8211;书评《Programming C# 》中文版第4版 (1)
	web developer tips (14):启动网站调试 (1)
	web developer tips (62):在vs工具箱添加AJAX控件工具包 (2)
	web developer tips (33)：在vs2008里创建套嵌母版页 (1)
	web developer tips (45):如何改变动态数据文件夹的位置 [...]]]></description>
			<content:encoded><![CDATA[<p>原文地址： <a href="http://blogs.msdn.com/webdevelopertips/archive/2009/06/11/tip-77-did-you-know-how-to-enable-page-level-tracing-for-your-asp-net-pages.aspx" target="_blank">How to enable Page Level Tracing for your ASP.NET pages</a></p>
<p>在调试<a href="http://www.watch-life.net/category/aspnet" target="_blank">Asp.net</a>的web应用的时候，启动页面级跟踪，将会给一大串的有用信息。这些跟踪信息可以帮助我们理解控件在各种视图状态下的运行情况，比如PreInit（事件）的开始和结束时，Init事件的开始和结束状态，Render事件的开始和结束状态 等等。这些信息会出现在页面的底部。默认情况下页面级跟踪是不开启的。</p>
<p><a href="http://www.watch-life.net/visual-studio/enable-page-level-tracing-for-your-asp-net-pages.html" target="_blank">http://www.watch-life.net/visual-studio/enable-page-level-tracing-for-your-asp-net-pages.html</a></p>
<p>跟踪可以页面级和应用级启动。</p>
<p>开启的方法： Visual Studio 2008在属性窗口选择“ <strong>DOCUMENT</strong> ”，设置“ <strong>Trace</strong>  ”属性为“<font color="red">true</font>”，如下所示：</p>
<p><img title="Enable trace for a page." height="436" alt="Enable trace for a page." src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip77DidyouknowHowtoenablePageLe.NETpage_C29D/Enable%20trace%20for%20a%20page._thumb.jpg" width="229" mce_src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip77DidyouknowHowtoenablePageLe.NETpage_C29D/Enable%20trace%20for%20a%20page._thumb.jpg" /></p>
<p>这种设置将在指定的页面上添加<strong>Trace=&quot;true&quot;</strong>，如下所示：</p>
<div class=code>&lt;%@ Page Language=&quot;VB&quot;&#160; Trace=&quot;true&quot; %&gt;</div>
<p>同时，如果想显示的跟踪按时间排序（SortedByTime）或 按类别排序（SortByCategory），也可以设置<strong>TraceMode </strong>属性。</p>
<p>运行页面后，效果详情如下所示：<br />
<img title="Tracing Enabled" height="328" alt="Tracing Enabled" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip77DidyouknowHowtoenablePageLe.NETpage_C29D/Tracing%20Enabled_thumb.jpg" width="507" mce_src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip77DidyouknowHowtoenablePageLe.NETpage_C29D/Tracing%20Enabled_thumb.jpg" /></p>
<p>可以通过Asp.net应用根目录的web.config文件来启动应用级跟踪，这样启动后你可以获取整个应用所有页面的跟踪信息。在这种情况下，如果你不想跟踪某个特定的页面，应该设置<a href="http://www.watch-life.net/visual-studio/enable-page-level-tracing-for-your-asp-net-pages.html" target="_blank">页面级跟踪</a>为不启用。</p>
<p>应用级跟踪的设置方法，在web.cofig中设置如下：</p>
<div class=code>
<p>&lt;configuration&gt; &lt;system.web&gt; </p>
<p>&lt;<strong>trace enabled=&quot;true&quot;</strong> requestLimit=&quot;40&quot; localOnly=&quot;false&quot;/&gt; </p>
<p>&lt;/system.web&gt;&lt;/configuration&gt;</p>
</div>
<p>记住在应用发布的时候，要关闭跟踪。同时，页面级跟踪会覆盖应用级跟踪。</p>
<p class="akst_link">
</p>
	<h4>你可能也会喜欢以下文章：</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.watch-life.net/programming-notes/2-domainname-realization.html" title="关于二级域名(泛二级域名)的实现 (2007-06-28)">关于二级域名(泛二级域名)的实现</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/edit-the-templates-for-gridview-in-vs-designer.html" title="web developer tips (53):在vs的设计视图编辑gridview的模板 (2009-10-12)">web developer tips (53):在vs的设计视图编辑gridview的模板</a> (0)</li>
	<li><a href="http://www.watch-life.net/technology-book-review/programming-csharp-bookreview.html" title="温故知新的经典&#8211;书评《Programming C# 》中文版第4版 (2007-10-30)">温故知新的经典&#8211;书评《Programming C# 》中文版第4版</a> (1)</li>
	<li><a href="http://www.watch-life.net/visual-studio/enable-debugging-of-your-web-site.html" title="web developer tips (14):启动网站调试 (2009-07-02)">web developer tips (14):启动网站调试</a> (1)</li>
	<li><a href="http://www.watch-life.net/visual-studio/add-ajax-control-toolkit-to-the-toolbox.html" title="web developer tips (62):在vs工具箱添加AJAX控件工具包 (2009-11-13)">web developer tips (62):在vs工具箱添加AJAX控件工具包</a> (2)</li>
	<li><a href="http://www.watch-life.net/visual-studio/create-nested-master-pages-using-vs-2008.html" title="web developer tips (33)：在vs2008里创建套嵌母版页 (2009-08-11)">web developer tips (33)：在vs2008里创建套嵌母版页</a> (1)</li>
	<li><a href="http://www.watch-life.net/visual-studio/change-the-dynamicdata-folder-location.html" title="web developer tips (45):如何改变动态数据文件夹的位置 (2009-09-09)">web developer tips (45):如何改变动态数据文件夹的位置</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/iis7-application-pool-s-ping-settings-may-affect-debugging.html" title="web developer tips (48):IIS7应用程序池的“Ping”设置可能影响调试 (2009-09-16)">web developer tips (48):IIS7应用程序池的“Ping”设置可能影响调试</a> (0)</li>
</ul>

转载请注明作者，出处，以及原始超链接。<br />评论数：0 | <b><a href='http://www.watch-life.net/visual-studio/enable-page-level-tracing-for-your-asp-net-pages.html#comment'>评论这篇文章</a></b>|关注作者最近动态,欢迎 follow me <a href='https://twitter.com/xjb' target='_blank'>xjb@twitter.com</a>|联络作者：iamxjb@gmail.com<br/>© 2010 守望轩 <a href='http://www.watch-life.net/visual-studio/enable-page-level-tracing-for-your-asp-net-pages.html'>www.watch-life.net</a>]]></content:encoded>
			<wfw:commentRss>http://www.watch-life.net/visual-studio/enable-page-level-tracing-for-your-asp-net-pages.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>web developer tips (75):PostBack后保持滚动条的位置</title>
		<link>http://www.watch-life.net/visual-studio/maintain-scrollposition-after-post-back.html</link>
		<comments>http://www.watch-life.net/visual-studio/maintain-scrollposition-after-post-back.html#comments</comments>
		<pubDate>Wed, 17 Mar 2010 05:09:30 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[MaintainScrollPositionOnPostback]]></category>
		<category><![CDATA[web developer tips]]></category>
		<category><![CDATA[滚动条]]></category>

		<guid isPermaLink="false">http://www.watch-life.net/?p=504</guid>
		<description><![CDATA[原文地址：How to maintain scrollposition after post back?
默认情况下，web页面提交返回（post  back）后会返回页面的底部。对于一内容很多的页面，你可能需要在页面在提交返回后，滚动条自动滚到用户最后定位的位置。
在Asp.net里，可以通过使用页面的MaintainScrollPositionOnPostBack 属性可以实现上述需求。可以用下面的方法之一:
 http://www.watch-life.net/life-thinking/maintain-scrollposition-after-post-back.html
1、应用级（Application level:）：设置这个属性默认对整个网站都起作用，打开web.config添加一个pages节点：
&#60;pages maintainScrollPositionOnPostBack=&#8221;true&#8221;&#62;
2、页面级（Page Level）：针对某个特定页面，打开aspx，设置属性：
&#60;%@ Page MaintainScrollPositionOnPostback=&#8221;true&#8221; &#8230;
3、代码级（Code level）：编程来设置属性
Page.MaintainScrollPositionOnPostBack = true;


	你可能也会喜欢以下文章：
	
	web developer tips (29):在web应用项目里启用“编辑并继续”功能 (0)
	web developer tips (55):多项目解决方案中设置启动项 (0)
	web developer tips (7):在ListView控件里对数据排序 (1)
	web developer tips (40):定义母版页的作用范围 (0)
	web developer tips (50):在 Visual Studio 的设计视图绝对定位控件 (0)
	遍历页面上的所有控件 (0)
	web developer tips (12):在Visual Web Developer里创建IIS虚拟目录 (0)
	web developer tips (14):启动网站调试 (1)


转载请注明作者，出处，以及原始超链接。评论数：1 &#124; [...]]]></description>
			<content:encoded><![CDATA[<p>原文地址：<a href="http://blogs.msdn.com/webdevelopertips/archive/2009/06/08/tip-75-did-you-know-how-to-maintain-scrollposition-after-post-back.aspx" target="_blank">How to maintain scrollposition after post back?</a></p>
<p>默认情况下，web页面提交返回（post  back）后会返回页面的底部。对于一内容很多的页面，你可能需要在页面在提交返回后，滚动条自动滚到用户最后定位的位置。</p>
<p>在Asp.net里，可以通过使用页面的<strong>MaintainScrollPositionOnPostBack</strong> 属性可以实现上述需求。可以用下面的方法之一:</p>
<p><a href="http://www.watch-life.net/life-thinking/maintain-scrollposition-after-post-back.html" target="_blank"> http://www.watch-life.net/life-thinking/maintain-scrollposition-after-post-back.html</a></p>
<p>1、应用级（Application level:）：设置这个属性默认对整个网站都起作用，打开web.config添加一个pages节点：</p>
<div class=code>&lt;pages maintainScrollPositionOnPostBack=&#8221;true&#8221;&gt;</div>
<p>2、页面级（Page Level）：针对某个特定页面，打开aspx，设置属性：</p>
<div class=code>&lt;%@ Page MaintainScrollPositionOnPostback=&#8221;true&#8221; &#8230;</div>
<p>3、代码级（Code level）：编程来设置属性</p>
<div class=code>Page.MaintainScrollPositionOnPostBack = true;</div>
<p class="akst_link">
</p>
	<h4>你可能也会喜欢以下文章：</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.watch-life.net/visual-studio/how-to-enable-edit-and-continue-feature-for-web-application-projects.html" title="web developer tips (29):在web应用项目里启用“编辑并继续”功能 (2009-07-23)">web developer tips (29):在web应用项目里启用“编辑并继续”功能</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/change-start-up-options-and-instances-of-asp-net-development-server-in-a-multi-project-solution.html" title="web developer tips (55):多项目解决方案中设置启动项 (2009-10-28)">web developer tips (55):多项目解决方案中设置启动项</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/how-to-sort-data-using-a-listview-control.html" title="web developer tips (7):在ListView控件里对数据排序 (2009-06-17)">web developer tips (7):在ListView控件里对数据排序</a> (1)</li>
	<li><a href="http://www.watch-life.net/visual-studio/know-how-to-scope-master-pages.html" title="web developer tips (40):定义母版页的作用范围 (2009-08-31)">web developer tips (40):定义母版页的作用范围</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/absolute-position-the-controls-in-visual-studio-designer.html" title="web developer tips (50):在 Visual Studio 的设计视图绝对定位控件 (2009-09-23)">web developer tips (50):在 Visual Studio 的设计视图绝对定位控件</a> (0)</li>
	<li><a href="http://www.watch-life.net/aspnet/ergodic-children-controls.html" title="遍历页面上的所有控件 (2007-11-20)">遍历页面上的所有控件</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/create-an-iis-virtual-directory-from-within-visual-web-developer.html" title="web developer tips (12):在Visual Web Developer里创建IIS虚拟目录 (2009-06-26)">web developer tips (12):在Visual Web Developer里创建IIS虚拟目录</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/enable-debugging-of-your-web-site.html" title="web developer tips (14):启动网站调试 (2009-07-02)">web developer tips (14):启动网站调试</a> (1)</li>
</ul>

转载请注明作者，出处，以及原始超链接。<br />评论数：1 | <b><a href='http://www.watch-life.net/visual-studio/maintain-scrollposition-after-post-back.html#comment'>评论这篇文章</a></b>|关注作者最近动态,欢迎 follow me <a href='https://twitter.com/xjb' target='_blank'>xjb@twitter.com</a>|联络作者：iamxjb@gmail.com<br/>© 2010 守望轩 <a href='http://www.watch-life.net/visual-studio/maintain-scrollposition-after-post-back.html'>www.watch-life.net</a>]]></content:encoded>
			<wfw:commentRss>http://www.watch-life.net/visual-studio/maintain-scrollposition-after-post-back.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>web developer tips (67):ASP.net MVC的快捷键列表</title>
		<link>http://www.watch-life.net/visual-studio/the-list-of-asp-net-mvc-shortcuts.html</link>
		<comments>http://www.watch-life.net/visual-studio/the-list-of-asp-net-mvc-shortcuts.html#comments</comments>
		<pubDate>Tue, 24 Nov 2009 14:13:09 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[web developer tips]]></category>
		<category><![CDATA[快捷键]]></category>

		<guid isPermaLink="false">http://www.watch-life.net/?p=475</guid>
		<description><![CDATA[原文地址： Did you know the list of ASP.Net shortcuts?
 1、添加 Controller -Ctrl-M Ctrl-C
添加示例Controller的对话框，可以很迅速为Asp.net  MVC 应用添加controllers 。右键单击“Controllers&#8217;”或者按快捷键Ctrl-M Ctrl-C可以打开这个对话框。

http://www.watch-life.net/visual-studio/the-list-of-asp-net-mvc-shortcuts.html
2、添加View -Ctrl-M Ctrl-V
在一个Action 方法里或者解决方案管理器单击右键，或者按快捷键 Ctrl-M Ctrl-V,可以打开添加View的对话框， 在Action 方法里用快捷键的方法是最有效的方法。

3、转到View 或转到Controller-Ctrl-M Ctrl-G
添加view和Controller后，你可以通过上下文菜单来转到view或者Controller，也可以按快捷键Ctrl-M Ctrl-G转到view或者Controller。对于Asp.net MVC 的编程是不是很方便。



	你可能也会喜欢以下文章：
	
	web developer tips (12):在Visual Web Developer里创建IIS虚拟目录 (0)
	web developer tips (15):在ASP.NET Ajax里使用跟踪 (0)
	防止刷新重复提交数据解决方法的分析 (4)
	web developer tips (19):设置默认视图为设计视图 (0)
	如何不使用让menu控件不回发（postback） (0)
	web developer tips (50):在 Visual Studio 的设计视图绝对定位控件 (0)
	&#8220;Visual Studio [...]]]></description>
			<content:encoded><![CDATA[<p>原文地址： <a href="http://blogs.msdn.com/webdevelopertips/archive/2009/05/31/tip-67-did-you-know-the-list-of-asp-net-mvc-shortcuts.aspx" target="_blank">Did you know the list of ASP.Net shortcuts?</a></p>
<p> <strong>1、添加 Controller</strong> -<strong>Ctrl-M Ctrl-C</strong></p>
<p>添加示例Controller的对话框，可以很迅速为<a href="http://www.watch-life.net/category/aspnet" target="_blank">Asp.net</a>  <a href="http://www.watch-life.net/tag/mvc" rel="tag" target="_blank">MVC</a> 应用添加controllers 。右键单击“Controllers&#8217;”或者按快捷键Ctrl-M Ctrl-C可以打开这个对话框。<br />
<IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=AddControllerDialog border=0 alt=AddControllerDialog src="http://blogs.msdn.com/blogfiles/webdevtools/WindowsLiveWriter/OverviewofMVCToolsFeatures_C409/AddControllerDialog_thumb.jpg" width=404 height=177 mce_src="http://blogs.msdn.com/blogfiles/webdevtools/WindowsLiveWriter/OverviewofMVCToolsFeatures_C409/AddControllerDialog_thumb.jpg"></p>
<p><a href="http://www.watch-life.net/visual-studio/the-list-of-asp-net-mvc-shortcuts.html" target="_blank">http://www.watch-life.net/visual-studio/the-list-of-asp-net-mvc-shortcuts.html</a></p>
<p><strong>2、添加View</strong> -<strong>Ctrl-M Ctrl-V</strong><br />
在一个Action 方法里或者解决方案管理器单击右键，或者按快捷键 <strong>Ctrl-M Ctrl-V</strong>,可以打开添加View的对话框， 在Action 方法里用快捷键的方法是最有效的方法。</p>
<p><IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=AddViewDialog border=0 alt=AddViewDialog src="http://blogs.msdn.com/blogfiles/webdevtools/WindowsLiveWriter/OverviewofMVCToolsFeatures_C409/AddViewDialog_thumb.jpg" width=360 height=388 mce_src="http://blogs.msdn.com/blogfiles/webdevtools/WindowsLiveWriter/OverviewofMVCToolsFeatures_C409/AddViewDialog_thumb.jpg"></p>
<p><strong>3、转到View 或转到Controller-Ctrl-M Ctrl-G</strong><br />
添加view和Controller后，你可以通过上下文菜单来转到view或者Controller，也可以按快捷键<strong>Ctrl-M Ctrl-G</strong>转到view或者Controller。对于<a href="http://www.asp.net/(S(l0ewhlne33mwdh55fxjcfm45))/mvc/" target="_blank">Asp.net MVC</a> 的编程是不是很方便。</p>
<p><IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=GoToViewMenu border=0 alt=GoToViewMenu src="http://blogs.msdn.com/blogfiles/webdevtools/WindowsLiveWriter/OverviewofMVCToolsFeatures_C409/GoToViewMenu_thumb.jpg" width=459 height=115 mce_src="http://blogs.msdn.com/blogfiles/webdevtools/WindowsLiveWriter/OverviewofMVCToolsFeatures_C409/GoToViewMenu_thumb.jpg"></p>
<p class="akst_link">
</p>
	<h4>你可能也会喜欢以下文章：</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.watch-life.net/visual-studio/create-an-iis-virtual-directory-from-within-visual-web-developer.html" title="web developer tips (12):在Visual Web Developer里创建IIS虚拟目录 (2009-06-26)">web developer tips (12):在Visual Web Developer里创建IIS虚拟目录</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/use-tracing-with-asp-net-ajax.html" title="web developer tips (15):在ASP.NET Ajax里使用跟踪 (2009-07-02)">web developer tips (15):在ASP.NET Ajax里使用跟踪</a> (0)</li>
	<li><a href="http://www.watch-life.net/aspnet/refresh-no-resubmit.html" title="防止刷新重复提交数据解决方法的分析 (2008-07-12)">防止刷新重复提交数据解决方法的分析</a> (4)</li>
	<li><a href="http://www.watch-life.net/visual-studio/set-the-default-view-to-design-view.html" title="web developer tips (19):设置默认视图为设计视图 (2009-07-08)">web developer tips (19):设置默认视图为设计视图</a> (0)</li>
	<li><a href="http://www.watch-life.net/aspnet/control-menu-no-postback.html" title="如何不使用让menu控件不回发（postback） (2007-11-08)">如何不使用让menu控件不回发（postback）</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/absolute-position-the-controls-in-visual-studio-designer.html" title="web developer tips (50):在 Visual Studio 的设计视图绝对定位控件 (2009-09-23)">web developer tips (50):在 Visual Studio 的设计视图绝对定位控件</a> (0)</li>
	<li><a href="http://www.watch-life.net/it-review/visual-studio-2008-ambition.html" title="&#8220;Visual Studio 2008&#8243;背后的勃勃野心 (2008-02-10)">&#8220;Visual Studio 2008&#8243;背后的勃勃野心</a> (0)</li>
	<li><a href="http://www.watch-life.net/aspnet/gridview-merger-cell.html" title="在GRIDVIEW中合并单元格 (2007-12-18)">在GRIDVIEW中合并单元格</a> (0)</li>
</ul>

转载请注明作者，出处，以及原始超链接。<br />评论数：0 | <b><a href='http://www.watch-life.net/visual-studio/the-list-of-asp-net-mvc-shortcuts.html#comment'>评论这篇文章</a></b>|关注作者最近动态,欢迎 follow me <a href='https://twitter.com/xjb' target='_blank'>xjb@twitter.com</a>|联络作者：iamxjb@gmail.com<br/>© 2010 守望轩 <a href='http://www.watch-life.net/visual-studio/the-list-of-asp-net-mvc-shortcuts.html'>www.watch-life.net</a>]]></content:encoded>
			<wfw:commentRss>http://www.watch-life.net/visual-studio/the-list-of-asp-net-mvc-shortcuts.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>web developer tips (62):在vs工具箱添加AJAX控件工具包</title>
		<link>http://www.watch-life.net/visual-studio/add-ajax-control-toolkit-to-the-toolbox.html</link>
		<comments>http://www.watch-life.net/visual-studio/add-ajax-control-toolkit-to-the-toolbox.html#comments</comments>
		<pubDate>Fri, 13 Nov 2009 10:43:58 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[Ajax Control Toolkit]]></category>
		<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[Visual Studio 2008 SP1]]></category>
		<category><![CDATA[web developer tips]]></category>

		<guid isPermaLink="false">http://www.watch-life.net/?p=469</guid>
		<description><![CDATA[ 原文地址：How to add Ajax Control Toolkit to the toolbox
添加 Framework 3.5 SP1 版本 AJAX控件工具包（Ajax Control Toolkit）
下面的步骤在ASP.NET 3.5 中，为Visual Studio 2008 SP1的工具箱添加AJAX控件工具包。
http://www.watch-life.net/visual-studio/add-ajax-control-toolkit-to-the-toolbox.html
1、 下载AJAX控件工具包，下载地址：http://ajaxcontroltoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=27326
2、解压缩下载的zip文件。
3、启动Visual Studio 2008
4、打开或创建一个Asp.net 2.0 的web应用程序或网站。
5、右键单击工具箱，选择“添加选项卡”，命名（本例命名为ACT3）
6、右键单击ACT3选项卡，单击“选择项”

7、单击“浏览”，选择在第二步解压后，在AjaxControlToolkitBinary目录中的AjaxControlToolkit.dll 文件

8、单击“确定”。
9、在ACT3选项卡下会新增AJAX控件。有关在AJAX控件工具包里新近添加了那些新的控件，详见ajaxcontroltoolkit codeplex site

添加 Framework 2.0  版本AJAX控件工具包（Ajax Control Toolkit）
下面的步骤在ASP.NET 2.0 中，为Visual Studio 2008 SP1的工具箱添加AJAX控件工具包。
1、下载ASP.NET Ajax Extensions 1.0，地址：http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&#038;displaylang=en
ASP.NET AJAX 1.0支持向ASP.NET 2.0添加AJAX。安装这个文件。
2、 下载 Ajax Control toolkit version 1.0.20229（AjaxControlToolkit-nosource.zip），地址：http://ajaxcontroltoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=11121#DownloadId=28808
3、解压缩下载的zip文件。
4、启动Visual Studio 2008
5、打开或创建一个Asp.net [...]]]></description>
			<content:encoded><![CDATA[<p> 原文地址：<a href="http://blogs.msdn.com/webdevelopertips/archive/2009/05/16/tip-62-did-you-know-how-to-add-ajax-control-toolkit-to-the-toolbox.aspx" target="_blank">How to add Ajax Control Toolkit to the toolbox</a></p>
<p><strong>添加 Framework 3.5 SP1 版本 AJAX控件工具包（Ajax Control Toolkit）</strong><br />
下面的步骤在<a href="http://www.watch-life.net/category/aspnet" target="_blank">ASP.NET</a> 3.5 中，为<a href="http://www.watch-life.net/tag/visual-studio-2008" target="_blank">Visual Studio 2008</a> SP1的工具箱添加AJAX控件工具包。</p>
<p><a href="http://www.watch-life.net/visual-studio/add-ajax-control-toolkit-to-the-toolbox.html" target="_blank">http://www.watch-life.net/visual-studio/add-ajax-control-toolkit-to-the-toolbox.html</a></p>
<p>1、 下载AJAX控件工具包，下载地址：<a href="http://ajaxcontroltoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=27326" target="_blank">http://ajaxcontroltoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=27326</a><br />
2、解压缩下载的zip文件。<br />
3、启动<a href="http://www.watch-life.net/visual-studio/visual-studio-2008-tip-day-index.html" target="_blank">Visual Studio 2008</a><br />
4、打开或创建一个Asp.net 2.0 的web应用程序或网站。<br />
5、右键单击工具箱，选择“添加选项卡”，命名（本例命名为ACT3）<br />
6、右键单击ACT3选项卡，单击“选择项”<br />
<img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip58DidyouknowHowtoAjaxenableawebservic_D961/image_thumb_5.png" width="240" height="244"><br />
7、单击“浏览”，选择在第二步解压后，在AjaxControlToolkitBinary目录中的AjaxControlToolkit.dll 文件<br />
<img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip58DidyouknowHowtoAjaxenableawebservic_D961/image_thumb_2.png" width="489" height="336"><br />
8、单击“确定”。<br />
9、在ACT3选项卡下会新增AJAX控件。有关在AJAX控件工具包里新近添加了那些新的控件，详见<a href="http://ajaxcontroltoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=27326" target="_blank">ajaxcontroltoolkit codeplex site</a><br />
<img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip58DidyouknowHowtoAjaxenableawebservic_D961/image_thumb_6.png" width="202" height="347"></p>
<p><strong>添加 Framework 2.0  版本AJAX控件工具包（Ajax Control Toolkit）</strong><br />
下面的步骤在<a href="http://www.watch-life.net/category/aspnet" target="_blank">ASP.NET</a> 2.0 中，为<a href="http://www.watch-life.net/tag/visual-studio-2008" target="_blank">Visual Studio 2008</a> SP1的工具箱添加AJAX控件工具包。</p>
<p>1、下载ASP.NET Ajax Extensions 1.0，地址：<a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&#038;displaylang=en" target="_blank">http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&#038;displaylang=en</a><br />
ASP.NET AJAX 1.0支持向ASP.NET 2.0添加AJAX。安装这个文件。</p>
<p>2、 下载 Ajax Control toolkit version 1.0.20229（AjaxControlToolkit-nosource.zip），地址：<a href="http://ajaxcontroltoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=11121#DownloadId=28808" target="_blank">http://ajaxcontroltoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=11121#DownloadId=28808</a><br />
3、解压缩下载的zip文件。<br />
4、启动Visual Studio 2008<br />
5、打开或创建一个Asp.net 2.0 的web应用程序或网站。<br />
6、在工具箱你可以看见Ajax extensions 选项卡。<br />
<img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip58DidyouknowHowtoAjaxenableawebservic_D961/image_thumb_1.png" width="204" height="147"><br />
7、右键单击工具箱，选择“添加选项卡”，命名（本例命名为ACT1）<br />
8、右键单击ACT1选项卡，单击“选择项”<br />
<img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip58DidyouknowHowtoAjaxenableawebservic_D961/image_thumb_4.png" width="225" height="244"><br />
9、单击“浏览”，选择在第三步解压后的AjaxControlToolkit.dll 文件<br />
<img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip58DidyouknowHowtoAjaxenableawebservic_D961/image_thumb_2.png" width="489" height="336"><br />
10 、单击“确定”。<br />
11、在ACT1选项卡下会新增AJAX控件。<br />
<img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip58DidyouknowHowtoAjaxenableawebservic_D961/image_thumb_3.png" width="164" height="506"></p>
<p class="akst_link">
</p>
	<h4>你可能也会喜欢以下文章：</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.watch-life.net/visual-studio/use-tracing-with-asp-net-ajax.html" title="web developer tips (15):在ASP.NET Ajax里使用跟踪 (2009-07-02)">web developer tips (15):在ASP.NET Ajax里使用跟踪</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/about-the-tag-navigator-feature.html" title="web developer tips (6):关于标记导航功能 (2009-06-14)">web developer tips (6):关于标记导航功能</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/register-your-ihttpmodule-depends-on-the-pipeline.html" title="web developer tips (43):通过请求处理管道注册IHttpModule (2009-09-06)">web developer tips (43):通过请求处理管道注册IHttpModule</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/update-jscript-intellisense-manually.html" title="web developer tips (56):手动更新JScript的智能感知 (2009-10-29)">web developer tips (56):手动更新JScript的智能感知</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/add-intellisense-from-script-libraries-for-js-files.html" title="web developer tips (35):为js文件中的脚本库添加智能提示 (2009-08-14)">web developer tips (35):为js文件中的脚本库添加智能提示</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/launch-formatting-options-dialog-for-editor-with-2-clicks.html" title="web developer tips (23):两次单击启动编辑器的格式对话框 (2009-07-17)">web developer tips (23):两次单击启动编辑器的格式对话框</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/visual-web-developer-2008-has-a-new-style-builder-dialog.html" title="web developer tips (10):Visual Web Developer 2008中新的样式生成器 (2009-06-23)">web developer tips (10):Visual Web Developer 2008中新的样式生成器</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/the-style-application-toolbar-works-in-both-auto-and-manual-modes.html" title="web developer tips (2):样式应用工具栏的工作模式 (2009-05-24)">web developer tips (2):样式应用工具栏的工作模式</a> (0)</li>
</ul>

转载请注明作者，出处，以及原始超链接。<br />评论数：2 | <b><a href='http://www.watch-life.net/visual-studio/add-ajax-control-toolkit-to-the-toolbox.html#comment'>评论这篇文章</a></b>|关注作者最近动态,欢迎 follow me <a href='https://twitter.com/xjb' target='_blank'>xjb@twitter.com</a>|联络作者：iamxjb@gmail.com<br/>© 2010 守望轩 <a href='http://www.watch-life.net/visual-studio/add-ajax-control-toolkit-to-the-toolbox.html'>www.watch-life.net</a>]]></content:encoded>
			<wfw:commentRss>http://www.watch-life.net/visual-studio/add-ajax-control-toolkit-to-the-toolbox.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>web developer tips (61):如何创建Asp.net Dynamic Data网站</title>
		<link>http://www.watch-life.net/visual-studio/create-an-asp-net-dynamic-data-web-site.html</link>
		<comments>http://www.watch-life.net/visual-studio/create-an-asp-net-dynamic-data-web-site.html#comments</comments>
		<pubDate>Mon, 09 Nov 2009 11:12:42 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[Dynamic Data]]></category>
		<category><![CDATA[LINQ to SQL]]></category>
		<category><![CDATA[O/R 设计器]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[web developer tips]]></category>
		<category><![CDATA[动态数据]]></category>

		<guid isPermaLink="false">http://www.watch-life.net/?p=468</guid>
		<description><![CDATA[原文地址:How to create an ASP.Net Dynamic Data Web Site
如果你的网站是大量数据来驱动的，那么，这里有个很简单而快速的方法来构建一个网站。条件是需要安装Visual Studio 2008 SP1 或者  Visual Web Developer 2008 Express SP1
Dynamic Data（动态数据） 网站利用的是被称为“脚手架（Scaffolding)”机制，利用这种机制可以让Asp.net通过数据模型，为数据表生成网页，生成的网页具有每个数据表的插入、删除和更新的功能。
以下为创建动态数据网站的步骤：
http://www.watch-life.net/visual-studio/create-an-asp-net-dynamic-data-web-site.html
1、创建一个Dynamic Data 网站
菜单：文件+新建+网站 ，选择“Dynamic Data 网站”模板，指定路径和命名后，单击“确定”。

2、给站点添加数据
复制pubs.mdf 到 App_Data目录下
3、使用 LINQ to SQL创建数据模板
右键单击App_Data添加 LINQ to SQL Classes，命名为DataClasses.dbml，选择这个文件可以用 O/R 设计器打开。

4、拖拽表到  O/R 设计器（Object Relational Designer.）
从服务器浏览器，拖拽Authors 表到O/R 设计器，保存你DataClassses.dbml

5、Visual Studio会在.dbml 节点下创建两个文件：DataClasses.dbml.layout and DataCalsses.designer.vb （这里选择的语言是vb）
在DataCalsses.designer.vb里创建了一个名为DataClassesDataContext 的 Partial Public Class，同时包含了Author的表的实体类。
6、在Global.asax里注册数据内容
打开 global.asax [...]]]></description>
			<content:encoded><![CDATA[<p>原文地址:<a href="http://blogs.msdn.com/webdevelopertips/archive/2009/05/14/tip-61-did-you-know-how-to-create-an-asp-net-dynamic-data-web-site.aspx" target="_blank">How to create an ASP.Net Dynamic Data Web Site</a></p>
<p>如果你的网站是大量数据来驱动的，那么，这里有个很简单而快速的方法来构建一个网站。条件是需要安装<a href="http://www.watch-life.net/visual-studio/visual-studio-2008-tip-day-index.html" target="_blank">Visual Studio 2008 </a>SP1 或者  Visual Web Developer 2008 Express SP1</p>
<p>Dynamic Data（动态数据） 网站利用的是被称为“脚手架（Scaffolding)”机制，利用这种机制可以让<a href="http://www.watch-life.net/category/aspnet" target="_blank">Asp.net</a>通过数据模型，为数据表生成网页，生成的网页具有每个数据表的插入、删除和更新的功能。</p>
<p>以下为创建动态数据网站的步骤：</p>
<p><a href="http://www.watch-life.net/visual-studio/create-an-asp-net-dynamic-data-web-site.html" target="_blank">http://www.watch-life.net/visual-studio/create-an-asp-net-dynamic-data-web-site.html</a></p>
<p>1、创建一个Dynamic Data 网站<br />
菜单：<strong>文件+新建+网站</strong> ，选择“Dynamic Data 网站”模板，指定路径和命名后，单击“确定”。<br />
<img title="New Web Site" height="412" alt="New Web Site" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip61DidyouknowHow.NetDynamicDataWebSite_BD09/New%20Web%20Site_thumb.jpg" width="527" /></p>
<p>2、给站点添加数据<br />
复制<strong>pubs.mdf</strong> 到 App_Data目录下</p>
<p>3、使用 LINQ to SQL创建数据模板<br />
右键单击App_Data添加 <strong>LINQ to SQL Classes</strong>，命名为DataClasses.dbml，选择这个文件可以用 O/R 设计器打开。</p>
<p><img title="LINQ to SQL CLasses" height="420" alt="LINQ to SQL CLasses" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip61DidyouknowHow.NetDynamicDataWebSite_BD09/LINQ%20to%20SQL%20CLasses_thumb.jpg" width="530" /></p>
<p>4、拖拽表到  O/R 设计器（Object Relational Designer.）<br />
从服务器浏览器，拖拽Authors 表到O/R 设计器，保存你DataClassses.dbml<br />
<img title="DataClasses.dbml" height="425" alt="DataClasses.dbml" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip61DidyouknowHow.NetDynamicDataWebSite_BD09/DataClasses.dbml_thumb.jpg" width="523" /></p>
<p>5、<a href="http://www.watch-life.net/category/visual-studio" target="_blank">Visual Studio</a>会在.dbml 节点下创建两个文件：DataClasses.dbml.layout and DataCalsses.designer.vb （这里选择的语言是vb）<br />
在DataCalsses.designer.vb里创建了一个名为DataClassesDataContext 的 Partial Public Class，同时包含了Author的表的实体类。</p>
<p>6、在Global.asax里注册数据内容<br />
打开 global.asax 文件，在RegisterRoutes方法里添加如下代码：<br />
VB的代码：</p>
<div class=code>
model.RegisterContext(GetType(AdventureWorksDataContext), _ New ContextConfiguration() With {.ScaffoldAllTables = True})
</div>
<p><a href="http://www.watch-life.net/category/csharp" target="_blank">C# </a>代码：</p>
<div class=code>model.RegisterContext(typeof(AdventureWorksDataContext), new ContextConfiguration() { ScaffoldAllTables = true });</div>
<p>7、在浏览器里运行网页<br />
在浏览器里打开 default.aspx页面，页面里一个Authors表的链接，单击链接将打开显示Authors表的数据页面，在这个页面里你提供了编辑，删除和插入数据的选项。<br />
<img title="AuthorTable" height="480" alt="AuthorTable" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip61DidyouknowHow.NetDynamicDataWebSite_BD09/AuthorTable_thumb_1.jpg" width="347" /></p>
<p class="akst_link">
</p>
	<h4>你可能也会喜欢以下文章：</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.watch-life.net/visual-studio/visual-studio-2008-tip-day-24.html" title="Visual Studio 2008 每日提示(二十四) (2009-01-07)">Visual Studio 2008 每日提示(二十四)</a> (1)</li>
	<li><a href="http://www.watch-life.net/visual-studio/enable-page-level-tracing-for-your-asp-net-pages.html" title="web developer tips (77):在ASP.NET启动启动页面级跟踪 (2010-03-23)">web developer tips (77):在ASP.NET启动启动页面级跟踪</a> (0)</li>
	<li><a href="http://www.watch-life.net/aspnet/gridview-merger-cell.html" title="在GRIDVIEW中合并单元格 (2007-12-18)">在GRIDVIEW中合并单元格</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/stop-hot-linking-from-your-site-using-url-rewrite-in-iis-7-0.html" title="web developer tips (34)：在IIS7.0使用网址重写防止盗链 (2009-08-13)">web developer tips (34)：在IIS7.0使用网址重写防止盗链</a> (1)</li>
	<li><a href="http://www.watch-life.net/visual-studio/visual-studio-2008-tip-day-18.html" title="Visual Studio 2008 每日提示(十八) (2008-12-27)">Visual Studio 2008 每日提示(十八)</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/visual-studio-2008-tip-day-8.html" title="Visual Studio 2008 每日提示(八) (2008-12-11)">Visual Studio 2008 每日提示(八)</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/profiling-an-asp-net-site.html" title="web developer tips (60):如何对ASP.Net网站进行性能分析 (2009-11-05)">web developer tips (60):如何对ASP.Net网站进行性能分析</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/visual-studio-2008-tip-day-20.html" title="Visual Studio 2008 每日提示(二十) (2008-12-30)">Visual Studio 2008 每日提示(二十)</a> (1)</li>
</ul>

转载请注明作者，出处，以及原始超链接。<br />评论数：0 | <b><a href='http://www.watch-life.net/visual-studio/create-an-asp-net-dynamic-data-web-site.html#comment'>评论这篇文章</a></b>|关注作者最近动态,欢迎 follow me <a href='https://twitter.com/xjb' target='_blank'>xjb@twitter.com</a>|联络作者：iamxjb@gmail.com<br/>© 2010 守望轩 <a href='http://www.watch-life.net/visual-studio/create-an-asp-net-dynamic-data-web-site.html'>www.watch-life.net</a>]]></content:encoded>
			<wfw:commentRss>http://www.watch-life.net/visual-studio/create-an-asp-net-dynamic-data-web-site.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>web developer tips (60):如何对ASP.Net网站进行性能分析</title>
		<link>http://www.watch-life.net/visual-studio/profiling-an-asp-net-site.html</link>
		<comments>http://www.watch-life.net/visual-studio/profiling-an-asp-net-site.html#comments</comments>
		<pubDate>Thu, 05 Nov 2009 09:13:24 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[profile]]></category>
		<category><![CDATA[web developer tips]]></category>
		<category><![CDATA[性能分析]]></category>

		<guid isPermaLink="false">http://www.watch-life.net/?p=466</guid>
		<description><![CDATA[原文地址：How to Profile an ASP.Net site?
1、使用Visual Studio Team Edition For Developers 创建一个Asp.netweb应用程序。
http://www.watch-life.net/visual-studio/profiling-an-asp-net-site.html 
2、在Page_Load方法里写如下代码




protected void&#160;Page_Load(objectsender,&#160;EventArgs&#160;e)&#160;
{&#160;
&#160;&#160;&#160;&#160;int&#160;sum
= 0;&#160;
&#160;&#160;&#160;&#160;for(int&#160;i
= 0; i &#60; 2000000; i++)&#160;
&#160;&#160;&#160; {&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160; sum += i;&#160;
&#160;&#160;&#160; }&#160;
&#160;&#160;&#160; Response.Write(sum);&#160;
}

3、启动性能向导

4、选择当前应用，点击“下一步”

5、选择“采样”，点击“下一步”

6、单击“完成”.
7、在“性能资源管理器”中，选中“启动并启用分析功能”

8、将会启动IE，执行完后关闭IE。
9、vs将会性能分析报告摘要。

有关性能分析工具参见MSDN：
英文版：Getting Started with Profiling Tools
中文版：分析工具入门


	你可能也会喜欢以下文章：
	
	web developer tips (69):vs中在浏览器中查看的快捷键 (2)
	web developer tips (33)：在vs2008里创建套嵌母版页 (1)
	web developer tips (35):为js文件中的脚本库添加智能提示 (0)
	web developer tips (5):绑定ListView控件 (1)
	web developer tips (1):创建、管理、应用样式表的强大工具 (2)
	web developer tips (25):在iis7下规范URLs和重定向 (1)
	web developer [...]]]></description>
			<content:encoded><![CDATA[<p>原文地址：<a href="http://blogs.msdn.com/webdevelopertips/archive/2009/04/30/tip-60-did-you-know-how-to-profiling-an-asp-net-site.aspx" target="_blank">How to Profile an ASP.Net site?</a></p>
<p>1、使用Visual Studio Team Edition For Developers 创建一个<a href="http://www.watch-life.net/category/aspnet" target="_blank">Asp.net</a>web应用程序。</p>
<p><a href="http://www.watch-life.net/visual-studio/profiling-an-asp-net-site.html" target="_blank">http://www.watch-life.net/visual-studio/profiling-an-asp-net-site.html </a></p>
<p>2、在Page_Load方法里写如下代码</p>
<div class=code>
<p>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Simsun; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><br />
<span class="Apple-style-span" style="font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 13px; "><br />
<span style="color: blue; ">protected void<span class="Apple-converted-space">&nbsp;</span></span>Page_Load(<span style="color: blue; ">object</span>sender,<span class="Apple-converted-space">&nbsp;</span><span style="color: rgb(43, 145, 175); ">EventArgs<span class="Apple-converted-space">&nbsp;</span></span>e)<span class="Apple-converted-space">&nbsp;</span><br />
{<span class="Apple-converted-space">&nbsp;</span><br />
&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span><span style="color: blue; ">int<span class="Apple-converted-space">&nbsp;</span></span>sum<br />
= 0;<span class="Apple-converted-space">&nbsp;</span><br />
&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span><span style="color: blue; ">for</span>(<span style="color: blue; ">int<span class="Apple-converted-space">&nbsp;</span></span>i<br />
= 0; i &lt; 2000000; i++)<span class="Apple-converted-space">&nbsp;</span><br />
&nbsp;&nbsp;&nbsp; {<span class="Apple-converted-space">&nbsp;</span><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sum += i;<span class="Apple-converted-space">&nbsp;</span><br />
&nbsp;&nbsp;&nbsp; }<span class="Apple-converted-space">&nbsp;</span><br />
&nbsp;&nbsp;&nbsp; Response.Write(sum);<span class="Apple-converted-space">&nbsp;</span><br />
}</span></span></p>
</div>
<p>3、启动性能向导<br />
<img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip60DidyouknowHowtoprofilingana.netsite_945F/image_thumb.png" width="506" height="238" /></p>
<p>4、选择当前应用，点击“下一步”<br />
<img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip60DidyouknowHowtoprofilingana.netsite_945F/image4_thumb.png" width="525" height="392" /></p>
<p>5、选择“采样”，点击“下一步”<br />
<img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip60DidyouknowHowtoprofilingana.netsite_945F/image14_thumb.png" width="529" height="395" /></p>
<p>6、单击“完成”.</p>
<p>7、在“性能资源管理器”中，选中“启动并启用分析功能”<br />
<img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip60DidyouknowHowtoprofilingana.netsite_945F/image_thumb_3.png" width="341" height="219" /></p>
<p>8、将会启动IE，执行完后关闭IE。</p>
<p>9、vs将会<a href="http://www.watch-life.net/visual-studio/profiling-an-asp-net-site.html" target="_blank">性能分析</a>报告摘要。<br />
<img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip60DidyouknowHowtoprofilingana.netsite_945F/image22_thumb.png" width="526" height="218" /></p>
<p>有关性能分析工具参见MSDN：<br />
英文版：<a href="http://msdn.microsoft.com/en-us/library/bb385749.aspx" target="_blank">Getting Started with Profiling Tools</a><br />
中文版：<a href="http://msdn.microsoft.com/zh-cn/library/bb385749.aspx" target="_blank">分析工具入门</a></p>
<p class="akst_link">
</p>
	<h4>你可能也会喜欢以下文章：</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.watch-life.net/visual-studio/the-keyboard-shortcut-for-view-in-browser.html" title="web developer tips (69):vs中在浏览器中查看的快捷键 (2009-11-27)">web developer tips (69):vs中在浏览器中查看的快捷键</a> (2)</li>
	<li><a href="http://www.watch-life.net/visual-studio/create-nested-master-pages-using-vs-2008.html" title="web developer tips (33)：在vs2008里创建套嵌母版页 (2009-08-11)">web developer tips (33)：在vs2008里创建套嵌母版页</a> (1)</li>
	<li><a href="http://www.watch-life.net/visual-studio/add-intellisense-from-script-libraries-for-js-files.html" title="web developer tips (35):为js文件中的脚本库添加智能提示 (2009-08-14)">web developer tips (35):为js文件中的脚本库添加智能提示</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/how-to-databind-a-listview-control.html" title="web developer tips (5):绑定ListView控件 (2009-06-12)">web developer tips (5):绑定ListView控件</a> (1)</li>
	<li><a href="http://www.watch-life.net/visual-studio/powerful-css-tools-to-create-manage-and-apply-styles.html" title="web developer tips (1):创建、管理、应用样式表的强大工具 (2009-05-19)">web developer tips (1):创建、管理、应用样式表的强大工具</a> (2)</li>
	<li><a href="http://www.watch-life.net/visual-studio/you-can-have-canonical-urls-and-redirects-with-iis-7-0.html" title="web developer tips (25):在iis7下规范URLs和重定向 (2009-07-19)">web developer tips (25):在iis7下规范URLs和重定向</a> (1)</li>
	<li><a href="http://www.watch-life.net/visual-studio/enable-page-level-tracing-for-your-asp-net-pages.html" title="web developer tips (77):在ASP.NET启动启动页面级跟踪 (2010-03-23)">web developer tips (77):在ASP.NET启动启动页面级跟踪</a> (0)</li>
	<li><a href="http://www.watch-life.net/programming-notes/read-how-to-be-a-better-developer.html" title="英文阅读：如何成为更好的程序员 (2008-02-17)">英文阅读：如何成为更好的程序员</a> (1)</li>
</ul>

转载请注明作者，出处，以及原始超链接。<br />评论数：0 | <b><a href='http://www.watch-life.net/visual-studio/profiling-an-asp-net-site.html#comment'>评论这篇文章</a></b>|关注作者最近动态,欢迎 follow me <a href='https://twitter.com/xjb' target='_blank'>xjb@twitter.com</a>|联络作者：iamxjb@gmail.com<br/>© 2010 守望轩 <a href='http://www.watch-life.net/visual-studio/profiling-an-asp-net-site.html'>www.watch-life.net</a>]]></content:encoded>
			<wfw:commentRss>http://www.watch-life.net/visual-studio/profiling-an-asp-net-site.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>web developer tips (57):通过web界面管理web站点配置</title>
		<link>http://www.watch-life.net/visual-studio/manage-web-site-configuration-through-a-web-interface.html</link>
		<comments>http://www.watch-life.net/visual-studio/manage-web-site-configuration-through-a-web-interface.html#comments</comments>
		<pubDate>Fri, 30 Oct 2009 03:19:26 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[web developer tips]]></category>
		<category><![CDATA[Web Site Administration Tool]]></category>
		<category><![CDATA[网站管理工具]]></category>

		<guid isPermaLink="false">http://www.watch-life.net/?p=462</guid>
		<description><![CDATA[原文地址：How to manage web site configuration through a web interface
网站管理工具（Web Site Administration Tool）为你提供一个web界面来管理不同的Web站点的配置.
http://www.watch-life.net/visual-studio/manage-web-site-configuration-through-a-web-interface.html
1、对于web网站项目，通过菜单：网站+Asp.net配置打开。

2、对于web应用下古墓，通过菜单：项目+Asp.net配置打开。

Visual Studio 会在一个浏览器启动这个工具。你可以通过上方标签来导航或更改各种设置。

有关网站管理工具（Web Site Administration Tool）各种详细的配置，可以参考阅读：Web Site Administration Tool Overview，中文版见：网站管理工具概述


	你可能也会喜欢以下文章：
	
	WebResponse 跨域访问 (1)
	web developer tips (58):在vs里导入导出每一个HTML的标记 (0)
	web developer tips (71): 关于FastCGI 1.5beta几个新配置设置 (0)
	web developer tips (73): IIS搜索引擎优化工具包 (0)
	web developer tips (52):部署Asp.net web应用须设置debug为false (0)
	web developer tips (37):如何组织Using指令 (0)
	web developer tips (40):定义母版页的作用范围 (0)
	web developer tips (62):在vs工具箱添加AJAX控件工具包 [...]]]></description>
			<content:encoded><![CDATA[<p>原文地址：<a href="http://blogs.msdn.com/webdevelopertips/archive/2009/04/28/tip-56-did-you-know-how-to-manage-web-site-configuration-through-a-web-interface.aspx" target="_blank">How to manage web site configuration through a web interface</a></p>
<p>网站管理工具（Web Site Administration Tool）为你提供一个web界面来管理不同的Web站点的配置.</p>
<p><a href="http://www.watch-life.net/visual-studio/manage-web-site-configuration-through-a-web-interface.html" target="_blank">http://www.watch-life.net/visual-studio/manage-web-site-configuration-through-a-web-interface.html</a></p>
<p>1、对于web网站项目，通过菜单：<strong>网站+Asp.net配置</strong>打开。</p>
<p><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip56DidyouknowHowtomanagewebsiteconfigu_896/image_thumb.png" width="206" height="279"></p>
<p>2、对于web应用下古墓，通过菜单：<strong>项目+<a href="http://www.watch-life.net/category/aspnet" target="_blank">Asp.net</a>配置</strong>打开。</p>
<p><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip56DidyouknowHowtomanagewebsiteconfigu_896/image_thumb_1.png" width="191" height="279"></p>
<p>Visual Studio 会在一个浏览器启动这个工具。你可以通过上方标签来导航或更改各种设置。<br />
<img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip56DidyouknowHowtomanagewebsiteconfigu_896/image_thumb_2.png" width="644" height="284"></p>
<p>有关网站管理工具（Web Site Administration Tool）各种详细的配置，可以参考阅读：<a href="http://msdn.microsoft.com/en-us/library/yy40ytx0.aspx" target="_blank">Web Site Administration Tool Overview</a>，中文版见：<a href="http://msdn.microsoft.com/zh-cn/library/yy40ytx0.aspx" target="_blank">网站管理工具概述</a></p>
<p class="akst_link">
</p>
	<h4>你可能也会喜欢以下文章：</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.watch-life.net/aspnet/webresponse-cross-site-visit.html" title="WebResponse 跨域访问 (2008-07-07)">WebResponse 跨域访问</a> (1)</li>
	<li><a href="http://www.watch-life.net/visual-studio/import-export-html-per-tag-options-in-vs.html" title="web developer tips (58):在vs里导入导出每一个HTML的标记 (2009-11-03)">web developer tips (58):在vs里导入导出每一个HTML的标记</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/there-are-several-new-configuration-settings-available-in-fastcgi-extension-1-5-beta.html" title="web developer tips (71): 关于FastCGI 1.5beta几个新配置设置 (2010-01-07)">web developer tips (71): 关于FastCGI 1.5beta几个新配置设置</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/iis-search-engine-optimization-seo-toolkit.html" title="web developer tips (73): IIS搜索引擎优化工具包 (2010-01-13)">web developer tips (73): IIS搜索引擎优化工具包</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/deploying-your-asp-net-web-application-debug-false-should-be-set-in-web-config.html" title="web developer tips (52):部署Asp.net web应用须设置debug为false (2009-09-27)">web developer tips (52):部署Asp.net web应用须设置debug为false</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/how-to-organize-usings.html" title="web developer tips (37):如何组织Using指令 (2009-08-24)">web developer tips (37):如何组织Using指令</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/know-how-to-scope-master-pages.html" title="web developer tips (40):定义母版页的作用范围 (2009-08-31)">web developer tips (40):定义母版页的作用范围</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/add-ajax-control-toolkit-to-the-toolbox.html" title="web developer tips (62):在vs工具箱添加AJAX控件工具包 (2009-11-13)">web developer tips (62):在vs工具箱添加AJAX控件工具包</a> (2)</li>
</ul>

转载请注明作者，出处，以及原始超链接。<br />评论数：1 | <b><a href='http://www.watch-life.net/visual-studio/manage-web-site-configuration-through-a-web-interface.html#comment'>评论这篇文章</a></b>|关注作者最近动态,欢迎 follow me <a href='https://twitter.com/xjb' target='_blank'>xjb@twitter.com</a>|联络作者：iamxjb@gmail.com<br/>© 2010 守望轩 <a href='http://www.watch-life.net/visual-studio/manage-web-site-configuration-through-a-web-interface.html'>www.watch-life.net</a>]]></content:encoded>
			<wfw:commentRss>http://www.watch-life.net/visual-studio/manage-web-site-configuration-through-a-web-interface.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>web developer tips (55):多项目解决方案中设置启动项</title>
		<link>http://www.watch-life.net/visual-studio/change-start-up-options-and-instances-of-asp-net-development-server-in-a-multi-project-solution.html</link>
		<comments>http://www.watch-life.net/visual-studio/change-start-up-options-and-instances-of-asp-net-development-server-in-a-multi-project-solution.html#comments</comments>
		<pubDate>Wed, 28 Oct 2009 04:31:34 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[web developer tips]]></category>
		<category><![CDATA[启动项]]></category>

		<guid isPermaLink="false">http://www.watch-life.net/?p=458</guid>
		<description><![CDATA[原文地址：How to change Start-Up Options and Instances of ASP.Net Development Server in a Multi-project Solution
如果在你的解决方案里有多个项目，可以通过如下解决方案的属性来设置启动项。右键单击解决方案，选择“属性”，打开如下对话框

如果在解决方案里有一个以上的web项目（比如 web网站项目和web应用项目），只能选择一个启动项目，可以选择“单启动项目”（或者在解决方案的上下文菜单选择某个项目，选择“设置为启动项目”）。尽管如此设置后，当你通过ASP.Net Development Server （开发服务器）启动调试应用程序时，在系统托盘会出现多个ASP.Net Development Servers 的实例，如下图所示

http://www.watch-life.net/visual-studio/change-start-up-options-and-instances-of-asp-net-development-server-in-a-multi-project-solution.html
这里很重要的一点需要注意，ASP.NET Development Server不能处理超过一个的web应用/网站，如果你想实现这个功能，就需要使用IIS来替换ASP.NET Development server。
在一个相同的解决方案里有多个web应用或者web网站，实际上你只需要调试其中之一，在这种情况下，不宜使用ASP.NET Development server运行多个实例。


	你可能也会喜欢以下文章：
	
	web developer tips (1):创建、管理、应用样式表的强大工具 (2)
	web developer tips (81):为css的智能提示和属性选择css的模式 (0)
	web developer tips (59):粘贴时在VS中自动格式化HTML (0)
	web developer tips (77):在ASP.NET启动启动页面级跟踪 (0)
	web developer tips (9):在Web.config文件中注册web用户控件 (1)
	web developer tips (74):在 Visual Studio 2008设计器里添加或移除AJAX Extenders [...]]]></description>
			<content:encoded><![CDATA[<p>原文地址：<a href="http://blogs.msdn.com/webdevelopertips/archive/2009/04/24/tip-55-did-you-know-how-to-change-start-up-options-and-instances-of-asp-net-development-server-in-a-multi-project-solution.aspx" target="_blank">How to change Start-Up Options and Instances of ASP.Net Development Server in a Multi-project Solution</a></p>
<p>如果在你的解决方案里有多个项目，可以通过如下解决方案的属性来设置启动项。右键单击解决方案，选择“属性”，打开如下对话框<br />
<IMG border=0 alt=image src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/fb9b501490ff_B55/image%5B11%5D_4.png" width=537 height=337 mce_src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/fb9b501490ff_B55/image%5B11%5D_4.png"></p>
<p>如果在解决方案里有一个以上的web项目（比如 web网站项目和web应用项目），只能选择一个启动项目，可以选择“单启动项目”（或者在解决方案的上下文菜单选择某个项目，选择“设置为启动项目”）。尽管如此设置后，当你通过<a href="http://www.watch-life.net/category/aspnet" target="_blank">ASP.Net</a> Development Server （开发服务器）启动调试应用程序时，在系统托盘会出现多个ASP.Net Development Servers 的实例，如下图所示<br />
<IMG border=0 alt=image src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/fb9b501490ff_B55/image_thumb_2.png" width=244 height=103 mce_src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/fb9b501490ff_B55/image_thumb_2.png"></p>
<p><a href="http://www.watch-life.net/visual-studio/change-start-up-options-and-instances-of-asp-net-development-server-in-a-multi-project-solution.html" target="_blank">http://www.watch-life.net/visual-studio/change-start-up-options-and-instances-of-asp-net-development-server-in-a-multi-project-solution.html</a></p>
<p>这里很重要的一点需要注意，ASP.NET Development Server不能处理超过一个的web应用/网站，如果你想实现这个功能，就需要使用<a href="http://www.watch-life.net/tag/iis" rel="tag" target="_blank">IIS</a>来替换ASP.NET Development server。</p>
<p>在一个相同的解决方案里有多个web应用或者web网站，实际上你只需要调试其中之一，在这种情况下，不宜使用ASP.NET Development server运行多个实例。</p>
<p class="akst_link">
</p>
	<h4>你可能也会喜欢以下文章：</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.watch-life.net/visual-studio/powerful-css-tools-to-create-manage-and-apply-styles.html" title="web developer tips (1):创建、管理、应用样式表的强大工具 (2009-05-19)">web developer tips (1):创建、管理、应用样式表的强大工具</a> (2)</li>
	<li><a href="http://www.watch-life.net/visual-studio/how-to-select-the-css-schema-for-intellisense-and-css-properties.html" title="web developer tips (81):为css的智能提示和属性选择css的模式 (2010-03-28)">web developer tips (81):为css的智能提示和属性选择css的模式</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/how-you-can-automatically-format-unformatted-html-on-paste-in-vs.html" title="web developer tips (59):粘贴时在VS中自动格式化HTML (2009-11-05)">web developer tips (59):粘贴时在VS中自动格式化HTML</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/enable-page-level-tracing-for-your-asp-net-pages.html" title="web developer tips (77):在ASP.NET启动启动页面级跟踪 (2010-03-23)">web developer tips (77):在ASP.NET启动启动页面级跟踪</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/register-your-asp-net-web-user-controls-in-web-config.html" title="web developer tips (9):在Web.config文件中注册web用户控件 (2009-06-18)">web developer tips (9):在Web.config文件中注册web用户控件</a> (1)</li>
	<li><a href="http://www.watch-life.net/visual-studio/add-and-remove-ajax-extenders-in-visual-studio-2008-designer.html" title="web developer tips (74):在 Visual Studio 2008设计器里添加或移除AJAX Extenders (2010-03-17)">web developer tips (74):在 Visual Studio 2008设计器里添加或移除AJAX Extenders</a> (0)</li>
	<li><a href="http://www.watch-life.net/vs2005/vss2005-internet-suport.html" title="设置VSS2005使支持通过Internet访问（转） (2007-07-09)">设置VSS2005使支持通过Internet访问（转）</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/the-style-application-toolbar-works-in-both-auto-and-manual-modes.html" title="web developer tips (2):样式应用工具栏的工作模式 (2009-05-24)">web developer tips (2):样式应用工具栏的工作模式</a> (0)</li>
</ul>

转载请注明作者，出处，以及原始超链接。<br />评论数：0 | <b><a href='http://www.watch-life.net/visual-studio/change-start-up-options-and-instances-of-asp-net-development-server-in-a-multi-project-solution.html#comment'>评论这篇文章</a></b>|关注作者最近动态,欢迎 follow me <a href='https://twitter.com/xjb' target='_blank'>xjb@twitter.com</a>|联络作者：iamxjb@gmail.com<br/>© 2010 守望轩 <a href='http://www.watch-life.net/visual-studio/change-start-up-options-and-instances-of-asp-net-development-server-in-a-multi-project-solution.html'>www.watch-life.net</a>]]></content:encoded>
			<wfw:commentRss>http://www.watch-life.net/visual-studio/change-start-up-options-and-instances-of-asp-net-development-server-in-a-multi-project-solution.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
