标签归档:Visual Studio 2008

web developer tips (84):在Visual Web Developer中设置web网站的起始页

原文地址:How to set a Start page for your Web Site in Visua […]


原文地址:How to set a Start page for your Web Site in Visual Web Developer? 如果你正在开发网站,为了测试网站你想启动某个特定的网页。默认的情况下,当你启动调试的时候,Visual Studio 2008运行的页面是设计器中当前激活的页面。 http://www.watch-life.net/visual-studio/set-a-start-page-for-your-web-site-in-visual-web-developer.html 如果这个设置的网页,是Visual web Developer将启动网站设置的网页,同时不是当前设计器的页面。右键单击这个网页,从上下文菜单中选择...... [阅读全文]

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 (81):为css的智能提示和属性选择css的模式

原文地址:How to Select the CSS Schema for Intellisense and […]


原文地址:How to Select the CSS Schema for Intellisense and CSS Properties 在Visual Studio 2008里,有个样式工具栏(Style Sheet Toolbar ),通过它允许选择使用的css模式(CSS Schema),如下图所示 但是这个设置只支持css的编辑器,不支持在aspx和html页面的智能提示。也不支持css属性窗体里属性/值的设置。如下图所示: ...... [阅读全文]

web developer tips (80):将javascript的错误显示为警告

原文地址:How to show JScript validation errors as warnings? […]


原文地址:How to show JScript validation errors as warnings? 在Visual Studio 2008 RTM版本里,javascript的验证设置在html验证设置的选项里,从Visual Studio 2008 SP1 或更新的版本开始,增加了新的javascript选项对话框,有关这个设置详见:Introducing JScript Formatting in VS 2008 SP1(介绍在vs 2008 sp1中javascript的格式)。随着这个变化,javascript验证选择位于“杂项”标签下,如下图所示: ...... [阅读全文]

web developer tips (74):在 Visual Studio 2008设计器里添加或移除AJAX Extenders

原文地址:How to Add and Remove AJAX Extenders in Visual Stu […]


原文地址:How to Add and Remove AJAX Extenders in Visual Studio 2008 Designer 在web developer tips (62)中讲述了在vs工具箱添加AJAX控件工具包 下面是在vs的工具箱如何添加和删除AJAX Extenders: 1、在设计视图中的工具箱的AJAX Extensions 标签拖拽ScriptManager 控件到设计器。 2、拖拽一个asp button到设计器里,这个button用来添加AJAX Extenders。 3、选择button,单击智能标签(Smart Tag),选择“ Add Extender”选项。 ...... [阅读全文]

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 (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 (49):将JS函数的左大括号置于新行

原文地址: how to set the editor to always place open braces […]


原文地址: how to set the editor to always place open braces on new line for functions in JScript? 在 Visual Studio 2008 ,菜单:工具+选项+文本编辑器+Jscript+格式设置,在“新行”选择中,选中“将函数的左大括号置于新行”。 http://www.watch-life.net/visual-studio/set-the-editor-to-always-place-open-braces-on-new-line-for-functions-in-jscript.html ...... [阅读全文]

web developer tips (33):在vs2008里创建套嵌母版页

原文地址:How to create Nested Master Pages using VS 2008 VS […]


原文地址:How to create Nested Master Pages using VS 2008 VS 2008 支持套嵌母版页,这意味着一个基础的母版页可以满足整个网站,同时你可以基于模板页进一步自定义。 创建的方法如下: http://www.watch-life.net/visual-studio/create-nested-master-pages-using-vs-2008.html 1、创建BaseMasterPage.master 作为基础母版页 首选创建一个支持整个网站的模板页。在web网站里“添加新项”,然后选择“母版页”,命名为:BaseMasterPage.Master ...... [阅读全文]

web developer tips (19):设置默认视图为设计视图

原文地址:How to set the default view to Design view 在 Visua […]


原文地址:How to set the default view to Design view 在 Visual Studio 2008的编辑一个web页面的时候,“源视图”(Source View),你可以自定义设计视图(Design View)为默认视图。 http://www.watch-life.net/visual-studio/set-the-default-view-to-design-view.html 菜单:工具+选项+html设计器+常规,在“起始位置”选项中,选中“设计视图”,如下图所示: 快捷键Shift+...... [阅读全文]

web developer tips (8):创建web用户控件并包含在web页面里

原文地址: How to create an ASP.NET Web User Control and inc […]


原文地址: How to create an ASP.NET Web User Control and include it in your web page 使用Visual Web Developer,创建一个web用户控件(Web User Control)和创建一个asp.net的页面一样简单。 步骤如下: http://www.watch-life.net/visual-studio/how-to-create-an-asp-net-web-user-control-and-include-it-in-your-web-page.html 1、打开一个已经创建的用来添加一个用户控件的网站项目。...... [阅读全文]

web developer tips (7):在ListView控件里对数据排序

原文地址:How to Sort data using a ListView control ListView […]


原文地址:How to Sort data using a ListView control ListView 内置数据排序的功能,有关listView绑定数据的功能参见:web developer tips (5):绑定ListView控件.绑定数据后,就可以在Listview进行数据排序,步骤如下: http://www.watch-life.net/visual-studio/how-to-sort-data-using-a-listview-control.html 1、在ListView的LayoutTemplate里增加增...... [阅读全文]

web developer tips (6):关于标记导航功能

原文链接:Did you know…About the “Tag Navigator” feature 在Vi […]


原文链接:Did you know…About the “Tag Navigator” feature 在Visual studio 2008 里面有个很酷的功能:在“设计视图”或“源视图”状态,html编辑器的底部会出现“标记导航”(tag navigator)。 http://www.watch-life.net/visual-studio/about-the-tag-navigator-feature.html 在下面的图片里,你可以看见光标在<DIV>标记里,因此在编辑器底部的标记导航里出现<DIV>的所有父标记元素,一直到根元素。 ...... [阅读全文]

获得“微软DEV-WOW2009博客达人”优胜奖

收到CSDN的邮件,通知我获得“微软DEV-WOW2009博客达人”的优胜奖,呵呵,真是意外的小惊喜,奖品是微 […]


收到CSDN的邮件,通知我获得“微软DEV-WOW2009博客达人”的优胜奖,呵呵,真是意外的小惊喜,奖品是微软Arc酷炫鼠标。 当初我在csdn的技术博客上发表的“Visual Studio 2008 每日提示”系列,包括“web developer tips” 系列,算不上很高技术含量的文章,难登大雅之堂,高手们也许不屑...... [阅读全文]

web developer tips (3):设置垂直拆分视图

原文链接:Split View could be set vertically in VS 2008 拆分视图 […]


原文链接:Split View could be set vertically in VS 2008 拆分视图是Visual Studio 2008 中除现有的“设计视图”和“源试图”外新的视图选项。在拆分割视图的情况下,可以打开源视图和设计视图并排排列,这将更容易使你了解源视图的改变对设计视图的影响,反之亦然。 此功能在Visual Studio 2008 和Web Developer 2008 中都支持,默认情况下,拆分视图是水平模式的,做如下的设置可以让分割在垂直模式下工作: http://www.watch-life.net/visual-studio/split-view-could-be-set-vertically.html 菜单:工具+选项+html设计器+常规,勾选“垂直拆分视图” ...... [阅读全文]