所有‘Visual Studio’分类中的文章


web developer tips (73): IIS搜索引擎优化工具包


原文地址:about IIS Search Engine Optimization (SEO) Toolkit Beta 注:翻译本文时IIS搜索引擎优化工具包已经发布正式版。 IIS的搜索引擎优化(SEO)工具包-是一个免费的工具包,帮助Web开发人员,托管服务提供商,和服务器管理员,通过对搜索引擎的友好性,提高在搜索结果中的网站的相关性。此seo的工具包可以通过 Microsoft Web Platform Installer进行安装。 IIS的搜索引擎优化(SEO)工具的功能: http://www.watch-life.net/visual-studio/iis-search-engine-optimization-seo-toolkit.html 1、提高网站来自搜索引擎的流量。 2、控制搜索......[阅读全文]

分类: Visual Studio | 没有评论 »

web developer tips (72): 在Windows 7中使用IIS远程管理器


原文地址:you can now manage Windows Server 2008 and Windows Server 2008 R2 from Windows 7 IIS的远程管理器(IIS Remote Manager)目前支持Windows 7。在此之前发布的版本,iis远程管理只支持XP,Vista,Windows Server 2003和Server 2008的(不包括Home Basic版本)。现在,用户可以安装在Windows 7客户端远程管理器来远程管理2008和Server 2008 R2 IIS服务。 http://www.watch-life.net/visual-studio/iis-remote-management-for-windows-7.html 远程管理器在IIS下载中心提供下载: x86版本:IIS Manager for Remote Administration x64版本: IIS Manager for Remote Administration 或者在micr......[阅读全文]

分类: Visual Studio | 没有评论 »

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


原文地址: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 进程回收。如果属性值是空的,监视功能将不可用。文件的路径是FastCGI 进程所在目录的绝对或相对路径。如果没有输入,则默认值为空。 2、StderrMode (标准错误模式)-指定如何处理 FastCGI 进程报告的错误。可设......[阅读全文]

分类: Visual Studio | 没有评论 »

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


原文地址: 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-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS......[阅读全文]

分类: Visual Studio | 2 条评论 »

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


原文地址: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

[阅读全文]

分类: Visual Studio | 2 条评论 »

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


原文地址:How simple it is to attach an existing style sheet to your web page? 在Visual Studio 2008里打开已经建好的网站,在解决方案管理器里,双击打开想附加样式表(css)的网页。 切换到设计视图,通过菜单:格式+附加样式表,打开“选择样式表”对话框。 http://www.watch-life.net/visual-studio/how-simple-it-is-to-attach-an-existing-style-sheet-to-your-web-page.html 在对话框选中需要附加的样式文件,单击“确定”,你就可以在页面来使用这个样式表文件了。在源视图会产生如下代码: <head runat="server"> <title>Untit......[阅读全文]

分类: Visual Studio | 没有评论 »

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


原文地址: 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可以打开这个对话框。 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 ......[阅读全文]

分类: Visual Studio | 没有评论 »

web developer tips (66):输入属性时自动插入引号


原文地址: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+格式,选中“键入时插入属性值引号” 现在,只要点击属性值的“=”(等号),编辑器将会插入一对引号,并显示属性值的智能能力提示。在智能提示(intellisense)里选择一个值后,光标就会跳出到引号外面......[阅读全文]

分类: Visual Studio | 没有评论 »

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


原文链接: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、完成上面一步,展开你想连接的表的节点,并找到想要挂接GridView的表。 3、最后,拖拽选中的表到webform,就这样......[阅读全文]

分类: Visual Studio | 没有评论 »

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


原文地址: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> 在Visual Studio里,在web ......[阅读全文]

分类: Visual Studio | 没有评论 »