标签归档:Asp.net

有关Asp.net的文章

web developer tips (82):Visual Studio 2005web应用项目迁移到Visual Studio 2008

原文地址:How to migrate Visual Studio 2005 Web Application […]


原文地址: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 ...... [阅读全文]

web developer tips (79):在web页面快速添加和取消注释

原文地址:How to quickly comment and uncomment in your web p […]


原文地址: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 注释图标如下图所示: 取消注释图标如下图所示: ...... [阅读全文]

web developer tips (77):在ASP.NET启动启动页面级跟踪

原文地址: How to enable Page Level Tracing for your ASP.NET […]


原文地址: 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 跟踪可以页面级和应用级启动。 ...... [阅读全文]

web developer tips (75):PostBack后保持滚动条的位置

原文地址:How to maintain scrollposition after post back? 默认 […]


原文地址: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节点: <pages maintainScrollPositionOn...... [阅读全文]

web developer tips (67):ASP.net MVC的快捷键列表

原文地址: Did you know the list of ASP.Net shortcuts? 1、添加 […]


原文地址: Did you know the list of ASP.Net shortcuts? 1、添加 Controller -Ctrl-M Ctrl-C 添加示例Controller的对话框,可以很迅速为Asp.net MVC 应用添加controllers 。右键单击“Controllers'”或者按快捷键Ctrl-M Ctrl-C可以打开这个对话框。 ...... [阅读全文]

web developer tips (62):在vs工具箱添加AJAX控件工具包

原文地址:How to add Ajax Control Toolkit to the toolbox 添加 […]


原文地址: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/ProjectReleas...... [阅读全文]

web developer tips (61):如何创建Asp.net Dynamic Data网站

原文地址:How to create an ASP.Net Dynamic Data Web Site 如果你 […]


原文地址: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通过数据模型,为数据表生成网页,生成的网页具有每个数据表的插入、删除和更新的功能。 以下为创建动态数据网站的步骤: ...... [阅读全文]

web developer tips (60):如何对ASP.Net网站进行性能分析

原文地址:How to Profile an ASP.Net site? 1、使用Visual Studio […]


原文地址: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方法里写如下代码 ...... [阅读全文]

web developer tips (57):通过web界面管理web站点配置

原文地址:How to manage web site configuration through a web […]


原文地址: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 developer tips (55):多项目解决方案中设置启动项

原文地址:How to change Start-Up Options and Instances of AS […]


原文地址:How to change Start-Up Options and Instances of ASP.Net Development Server in a Multi-project Solution 如果在你的解决方案里有多个项目,可以通过如下解决方案的属性来设置启动项。右键单击解决方案,选择“属性”,打开如下对话框 如果在解决方案里有一个以上的web项目(比如 web网站项目和web应用项目),只能选择一个启动项目,可以选择“单启动项目”(或者在解决方案的上下文菜单...... [阅读全文]

web developer tips (52):部署Asp.net web应用须设置debug为false

原文地址:When deploying your ASP.NET web application, debug […]


原文地址:When deploying your ASP.NET web application, debug=false should be set in web.config 为了解决程序的问题,开发人员通常在web.config 中启动调试(debug)模式,这将导致ASP.NET产生诸如调试符号、元数据等的额外信息。然而,性能上会的花费更长的时间去进行编译和运行,消耗更多的内存,缓存资源无法执行。因此,在发布产品时,应该把调试设置为"false"避免对性能的影响。有两个方法可以实现这一目标: http://www.watch-life.net/visual-studio/deploying-y...... [阅读全文]

web developer tips (45):如何改变动态数据文件夹的位置

原文地址:How to change the DynamicData folder location? ASP […]


原文地址:How to change the DynamicData folder location? ASP.NET 动态数据(Dynamic Data )是一种更容易创建数据的ASP.NET web应用。 默认情况下,动态数据放在web应用的动态数据目录里,该目录创建在根目录处。你的应用也许需要移动的不同的位置。 以下步骤是在 VS 2008 SP1中实现: http://www.watch-life.net/visual-studio/change-the-dynamicdata-folder-location.html 1、选择一你想移动的目录,在这个例子中,我们选择的是"admin"目录,创建一个名为“admin”的目录,把动态数据移动到这个目录 2、在Global.asax 里加入如下...... [阅读全文]

web developer tips (30):在vs2008中Ajax Extender 控件UI与vs2005中差异

原文地址:Ajax Extender controls UI behaves differently in V […]


原文地址:Ajax Extender controls UI behaves differently in VS 2008 than in VS 2005 在vs2005的设计视图你可以拖拽extender控件到任何位置,在vs2008里,你仅可以在asp 控件在放置一个扩展器(extender)。当你拖动一个扩展器悬停在一个控件上,如果这个控件支持扩展的话,你可以发现光标变成一个加号(+)标记。如果你悬停一个扩展器在一个空白的设计界面或者不支持扩展的控件,光标会变成一个停止标记,表明它不能放置在当前位置。 http://www.watch-life.net/visual-studio/ajax-extender-controls-ui-behaves-differently-in-vs-2008-than-in-v...... [阅读全文]

web developer tips (27):Microsoft Web Platform

原文地址:microsoft-web-platform-installer Microsoft Web Pla […]


原文地址:microsoft-web-platform-installer Microsoft Web Platform 有些很酷而简单的工具,包括微软整个的web平台,包括IIS(Internet Information Services )(5.1、6.0、7.0),Visual Web Developer 2008 Express ,SQL Server 2008 Express Edition , .NET framework。如下的用户界面让您灵活的选择是安装全部产品或安装特定产品。 ...... [阅读全文]

web developer tips (26):在 App_Code目录下同时放c#和VB.NET文件

原文地址:How to have C# and VB.NET files inside your App_Co […]


原文地址:How to have C# and VB.NET files inside your App_Code directory 如果你利用App_Code目录来开发一个Asp.net web网站,有时候需要写用不同net语言的代码文件。例如,如果你想用在同一个web网站同时使用c#和VB.net ...... [阅读全文]