随笔分类 -  Visual studio

有关Visual Studio2005、Visual Studio2008、Visual Studio2010的文章
web developer tips (23):两次单击启动编辑器的格式对话框
摘要:原文地址:How to launch Formatting options dialog for editor with 2 clicks通常的情况下,我们可以使用菜单:工具+选项+文本编辑器+html+格式,就可以打开如下图所示的格式设置对话框。你也可以通过在编辑器里的两次单击来打开这个设置对话框:在编辑器里右键单击,在上下文菜单中选择“格式设置与验证”项.更多文章见:守... 阅读全文

posted @ 2009-07-20 09:25 xjb 阅读(265) 评论(0) 推荐(0)

web developer tips (22):提高页面和服务器控件加载速度
摘要:原文地址:How to improve performance of Page and Server Control Processing1、避免不必要的客户端和服务器间的往返,你可以使用ASP.NET Ajax和局部页面呈现(Partial Page Rendering)。ASP.NET Ajax:ASP.NET Ajax 允许开发者在创建一个asp.netweb应用的时候,更新数据不要重新加载... 阅读全文

posted @ 2009-07-16 09:04 xjb 阅读(359) 评论(0) 推荐(0)

web developer tips (21):为Developer Web Server设定固定端口
摘要:原文地址:How to set a fixed port for the Developer Web Server当创建一个网站项目的时候,Visual Studio 的开发web服务器(Developer Web Server)会激活本地端口用来运行web网站,默认的情况下,这个端口值是一个可用的随机动态端口,在某些情况下,你也许想web服务器使用固定的端口,可以进行如下配置: http://w... 阅读全文

posted @ 2009-07-15 14:03 xjb 阅读(425) 评论(0) 推荐(0)

web developer tips (20):使用IIS作为web服务器
摘要:原文地址:How to change WAP to use an IIS Web server有时候,在开发web应用,想使用IIS来代替Visual Studio 开发服务器(Development Server) 作为web应用服务器,可以按如下操作进行:http://www.watch-life.net/visual-studio/change-wap-to-use-an-iis-web-s... 阅读全文

posted @ 2009-07-13 09:38 xjb 阅读(421) 评论(0) 推荐(0)

web developer tips (19):设置默认视图为设计视图
摘要:原文地址: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-vi... 阅读全文

posted @ 2009-07-10 09:40 xjb 阅读(401) 评论(0) 推荐(0)

web developer tips (18):从工具箱粘贴或拖拽控件时进行绝对定位
摘要:原文地址:How to absolute position controls on copy paste or drag drop from Toolbox在设计器里为了让任何任一控件进行绝对定位,你需要选中控件,然后选择如下菜单:格式+设置位置+绝对。 有时候,你也许想从工具箱拖拽控件或在设计器里剪贴控件后就让控件被绝对定位。你可以这样做: http://www.watch-life.net/l... 阅读全文

posted @ 2009-07-09 09:20 xjb 阅读(345) 评论(0) 推荐(0)

web developer tips (17):远程调试使用IIS的web应用
摘要:原文地址:How to remote debug WAPs that are using IIS如果你有个使用iisweb应用发布在另一台服务器,你可以使用 Visual Studio 2008 SP1来远程调试这个web应用。http://www.watch-life.net/visual-studio/remote-debugging-waps-using-iis.html首先通过菜单:文件+... 阅读全文

posted @ 2009-07-08 09:22 xjb 阅读(531) 评论(0) 推荐(0)

web developer tips (16):变更CSS编辑器的默认格式设置
摘要:原文地址:change the default format settings for CSS Editor菜单:工具+选项+文本编辑器+css+格式。 这个对话框给出了三种css书写格式,你可以根据自己的需要灵活选择:http://www.watch-life.net/visual-studio/change-the-default-format-settings-for-css-editor... 阅读全文

posted @ 2009-07-07 10:02 xjb 阅读(355) 评论(0) 推荐(0)

web developer tips (15):在ASP.NET Ajax里使用跟踪
摘要:原文地址: How to use tracing with ASP.NET Ajax如果你在使用ASP.NET Ajax的时候,遇到一个页面问题,想在调试时候跟踪语句,有个比较快速的方法:使用“Sys.Debug.trace”函数。<script language="javascript" type="text/javascript">function Posi... 阅读全文

posted @ 2009-07-03 09:20 xjb 阅读(344) 评论(0) 推荐(0)

web developer tips (14):启动网站调试
摘要:原文地址:How to enable debugging of your Web Site在debug的模式配置下运行一个页面,你必须选择菜单:调试+开始启动 或按下F5.在默认的情况下,调试是没有启用的。如果你想启动调试网站项目,就需要进行配置。这个设置通过修改web.config文件来实现。 默认情况下,在web.config 的compilation节点 的debug 选项设置值是false... 阅读全文

posted @ 2009-07-02 10:04 xjb 阅读(370) 评论(0) 推荐(0)

web developer tips (13):用ASP.NET Ajax获取浏览器的agent
摘要:原文地址:How to get the browser agent using ASP.NET Ajax 当编写一个web应用的时候,很多时候,针对不同的浏览器做不同的页面请求,ASP.NET Ajax 有个简单的办法通过 Sys.Browser来获取浏览器对象。http://www.watch-life.net/visual-studio/get-the-browser-agent-using-... 阅读全文

posted @ 2009-07-01 09:28 xjb 阅读(320) 评论(0) 推荐(0)

web developer tips (12):在Visual Web Developer里创建IIS虚拟目录
摘要:原文地址:How to create an IIS Virtual Directory from within Visual Web Developer以下的步骤介绍如何在Visual Web Developer里创建IIS的虚拟目录(Virtual Directory)。当然,IIS已经被安装。http://www.watch-life.net/visual-studio/create-an-i... 阅读全文

posted @ 2009-06-30 09:21 xjb 阅读(325) 评论(0) 推荐(0)

web developer tips (11):在Visual Web Developer中用不同的工具窗口打开样式生成器
摘要:原文地址:New Style builder can be invoked from various other tool windows in Visual Web Developer在上一篇文章中介绍了“Visual Web Developer 2008中新的样式生成器”。其实有三个入口点可以打开样式生成器的窗体,你可以从IDE的下面三个位置打开它:http://www... 阅读全文

posted @ 2009-06-29 09:14 xjb 阅读(326) 评论(0) 推荐(0)

web developer tips (10):Visual Web Developer 2008中新的样式生成器
摘要:原文地址:Visual Web Developer 2008 has a New Style Builder DialogVisual Studio 2008里有个新的样式生成器对话框(窗体)。使用此对话框生成样式,也可以在同一时间预览。可以为一个创建样式定位给当前页面或现有的外部样样式表或新的外部样式表。可以创建基于ID的、基于元素的、内嵌的、基于类的的样式。样式有综合选择器。http://ww... 阅读全文

posted @ 2009-06-24 09:19 xjb 阅读(287) 评论(0) 推荐(0)

web developer tips (9):在Web.config文件中注册web用户控件
摘要:原文地址:How to create an ASP.NET Web User Control and include it in your web page在上一篇创建web用户控件并包含在web页面里中介绍了如何创建一个web用户控件和在页面使用它。注意:在页面拖拽一个web用户控件后,VS 会在页面上方添加 @Register指令。http://www.watch-life.net/visua... 阅读全文

posted @ 2009-06-19 09:19 xjb 阅读(357) 评论(0) 推荐(0)

web developer tips (8):创建web用户控件并包含在web页面里
摘要:原文地址: 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-... 阅读全文

posted @ 2009-06-18 09:15 xjb 阅读(377) 评论(0) 推荐(0)

web developer tips (7):在ListView控件里对数据排序
摘要:原文地址:How to Sort data using a ListView controlListView 内置数据排序的功能,有关listView绑定数据的功能参见:web developer tips (5):绑定ListView控件.绑定数据后,就可以在Listview进行数据排序,步骤如下:http://www.watch-life.net/visual-studio/how-to-so... 阅读全文

posted @ 2009-06-17 09:35 xjb 阅读(363) 评论(0) 推荐(0)

web developer tips (6):关于标记导航功能
摘要:原文链接:Did you know…About the “Tag Navigator” feature在Visual studio 2008 里面有个很酷的功能:在“设计视图”或“源视图”状态,html编辑器的底部会出现“标记导航”(tag navigator)。http://www.wat... 阅读全文

posted @ 2009-06-16 09:19 xjb 阅读(322) 评论(0) 推荐(0)

web developer tips (5):绑定ListView控件
摘要:原文地址:How to Databind a ListView controlListView 是Visual Studio 2008中一个新的控件,使用此控件可以很轻松的进行数据的插入、编辑、删除和排序,也可以在使用这个控件时通过用户定义模板来灵活地显示各种格式的数据。下面的如何将ListView 绑定到一个SQLDataSource(sql数据源) 步骤: http://www.watch-l... 阅读全文

posted @ 2009-06-12 09:17 xjb 阅读(559) 评论(1) 推荐(0)

web developer tips (4):在Visual Web Developer中增加浏览器
摘要:原文链接:You can add browsers to Visual Web Developer using the “Browse With…” option作为一个web程序开发人员最有趣的一件事是:可以在不同的浏览器去查看页面。也可以在Visual Studio中来实现使用不同的浏览器来查看页面。设置步骤如下: http://www.watch-life... 阅读全文

posted @ 2009-06-10 08:51 xjb 阅读(413) 评论(0) 推荐(0)

导航