分类目录归档:Visual Studio

有关Visual Studio2005、Visual Studio2008、Visual Studio2010的文章

web developer tips (71): 关于FastCGI 1.5beta几个新配置设置

原文地址:there are several new configuration settings avail […]


原文地址:there are several new configuration settings available in FastCGI Extension 1.5 Beta 以下是FastCGI 1.5beta的新配置: http://www.watch-life.net/visual-studio/there-are-several-new-configuration-settings-available-in-fastcgi-extension-1-5-beta.html 1、MonitorChangesTo(监视对文件所做的更改) -指定文件路径,如果更改此文件,将触发 FastCGI 进程回收。如果属性值是空的,监视功能将不可...... [阅读全文]

web developer tips (70):使用命令脚本安装IIS7

原文地址: how to install win7 RC IIS through command script […]


原文地址: how to install win7 RC IIS through command script 注:原文是在windows 7rc 版本下用命令脚本来安装,不过2009年10月22日windows 7 已经正式发布了。因此本文没有用原文中的安装脚本命令。而是在查询有关资料后,使用下面通用的脚本命令。 http://www.watch-life.net/visual-studio/install-iis-7-from-the-command-line.html Windows Vista Professional, Windows Vista Ultimate, or Windows Server 2008 Editions,window7安装iis7命令脚本如下: start /w pkgmgr /iu:IIS-WebServerRol...... [阅读全文]

web developer tips (69):vs中在浏览器中查看的快捷键

原文地址:The keyboard shortcut for View in Browser 按快捷键(key […]


原文地址:The keyboard shortcut for View in Browser 按快捷键(keyboard shortcut)Ctrl +Shift+W可以在Visual Studio 2008 中启动“在浏览器中查看”。这个快捷键可以在菜单:文件+在浏览器中查看可以看见。 http://www.watch-life.net/visual-studio/the-keyboard-shortcut-for-view-in-browser.html 当然,你可以在选择需要浏览的页面,单击右键选择“在浏览器中查看”菜单,或者按快捷键Ctrl +Shift+W ...... [阅读全文]

web developer tips (68):附加样式表到网页

原文地址:How simple it is to attach an existing style sheet […]


原文地址:How simple it is to attach an existing style sheet to your web page? 在Visual Studio 2008里打开已经建好的网站,在解决方案管理器里,双击打开想附加样式表(css)的网页。 切换到设计视图,通过菜单:格式+附加样式表,打开“选择样式表”对话框。 http://www.watch-life.net/visual...... [阅读全文]

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 (66):输入属性时自动插入引号

原文地址:how to insert quotes values automatically while ty […]


原文地址:how to insert quotes values automatically while typing the attrib values? 如果你想在添加属性(attribute )值时自动添加引号,这是很一个很好的节省时间的方法。设置方法如下: http://www.watch-life.net/visual-studio/insert-quotes-values-automatically-while-typing-the-attrib-values.html Visual Studio 2008 菜单:工具+选项+文本编辑器+HTML+格式,选中“键入时插入属性值引号” ...... [阅读全文]

web developer tips (65): 快速创建一个挂接SQL表的GridView

原文链接:How to quickly create a GridView that is hooked up […]


原文链接:How to quickly create a GridView that is hooked up to a SQL table? 通常,在一个页面的GridView绑定数据,是添加一个数据源,再通过一个向导挂接到数据源。这里介绍一个更快捷的方法来创建和挂接到数据源的GridView。 http://www.watch-life.net/visual-studio/quickly-create-a-gridview-that-is-hooked-up-to-a-sql-table.html 1、首先,如果没有数据源(datasource),你需要在服务器资源管理器(Server Explorer)添加一个。 2、完成上面一步,展开你想连接的表的节点,并找到想要挂接Gri...... [阅读全文]

web developer tips (64): 在GridView中转换BoundField为TemplateField

原文地址:How to convert a GridView column from asp:BoundFie […]


原文地址:How to convert a GridView column from asp:BoundField to asp:TemplateField in Design View 假定你有个数据源SqlDataSource1 ,绑定了一个简单的查询语句,返回Customers表的详细信息。 http://www.watch-life.net/visual-studio/convert-a-gridview-column-from-boundfield-to-templatefield.html <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyConnectionString %>" SelectCommand="SELECT [FirstName], [LastName], [Email] FROM [Customers] ORDER BY [FirstName]"> </asp:SqlDataSource> ...... [阅读全文]

web developer tips (63): 在web应用项目指定vs开发服务器端口

原文地址:How to specify a fixed port for Visual Studio Deve […]


原文地址:How to specify a fixed port for Visual Studio Development Server while using WAPs? 在web developer tips (21)讲述在网站项目中为 Visual Studio 开发服务器 (Development Server) 设置固定的端口。本tips将讲述如何为web应用项目配置固定的发布端口(port )。 http://www.watch-life.net/visual-studio/specify-a-fixed-port-for-visual-studio-development-server.html 1、打开web应用项目的属性页。右键单击web应用项目,在上下文菜单选择“属性”,打开属性页...... [阅读全文]

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 (59):粘贴时在VS中自动格式化HTML

原文地址:How you can automatically format unformatted HTML […]


原文地址:How you can automatically format unformatted HTML on paste in VS 你需要复制/粘贴大量未格式化的HTML内容到网页表单,在粘贴后总是需要格式化这些HTML,有个简单的方法可以在vs里在粘贴的时候自动格式化HTML。如何做到这一点呢? http://www.watch-life.net/visual-studio/how-you-can-automatically-format-unformatted-html-on-paste-in-vs.html 在Visual Studio 2008菜单:工具+选项+文本编辑器+HTML+杂项,选中“粘贴时设置HTML格式”项即可...... [阅读全文]

web developer tips (58):在vs里导入导出每一个HTML的标记

原文地址:How you can import/ export HTML Per Tag options in […]


原文地址:How you can import/ export HTML Per Tag options in VS 如果你自定义了很多单个标签(tag),同时想导入/导出这些设置,你可以通过菜单:工具+导入导出设置 ,打开导入/导出对话框,很容易实现这一功能。 http://www.watch-life.net/visual-studio/import-export-html-per-tag-options-in-vs.html 想导出自定义的vssettings文件,“导入和导出设置向导”对话框选择“导出选定环境的设置”,然后单击“下一步” ...... [阅读全文]

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、...... [阅读全文]