web developer tips (30):在vs2008中Ajax Extender 控件UI与vs2005中差异
原文地址:Ajax Extender controls UI behaves differently in VS 2008 than in VS 2005在vs2005的设计视图你可以拖拽extender控件到任何位置,在vs2008里,你仅可以在asp 控件在放置一个扩展器(extender)。当...
优美的测试代码 - 行为驱动开发(BDD)
可理解的代码非常重要,测试代码也是如此。在我看来,优秀的测试代码,必须做到一个重要的事情就是保持测试逻辑的清晰。一个完整的测试案例通常包括三个部分:1. SetUp2. Exercise3. Verifiy4. TearDown一 个测试案例如果能清晰的区分这三个部分,其实已经成功了一半。但是,如果...
web developer tips (29):在web应用项目里启用“编辑并继续”功能
原文地址:How to enable Edit and Continue feature for Web Application Projects如果你在调试一个web应用程序的时候,想进行编辑,可以有如下两种方法: http://www.watch-life.net/visual-studio/h...
web developer tips (28):CSS class 也支持“转到定义”
原文地址:That “Go to definition” is supported for CSS Class如果有个有个样式定义比如:Class = ”fooRed”,如果快速知道“fooRed”的内容呢? <div c...
web developer tips (27):Microsoft Web Platform
原文地址:microsoft-web-platform-installerMicrosoft Web Platform 有些很酷而简单的工具,包括微软整个的web平台,包括IIS(Internet Information Services )(5.1、6.0、7.0),Visual Web Deve...
web developer tips (26):在 App_Code目录下同时放c#和VB.NET文件
原文地址:How to have C# and VB.NET files inside your App_Code directory如果你利用App_Code目录来开发一个Asp.net web网站,有时候需要写用不同net语言的代码文件。例如,如果你想用在同一个web网站同时使用c#和VB.ne...
web developer tips (25):在iis7下规范URLs和重定向
原文地址:You can have canonical URLs and Redirects with IIS 7.0规范的URLs 有利于搜索引擎优化(Search Engine Optimized,SEO),人可以很容易理解 http://www.contoso.com 和http://cont...
web developer tips (24):显示html/css的警告错误或错误
原文地址:You could display CSS/HTML errors as warnings or as errors在vs2008里面可以有个很cool的功能,可以降级显示作为任何警告的错误,这个功能很有用,它可以让你区分验证的错误和查找让程序无法生成的错误。 http://www.wat...
web developer tips (23):两次单击启动编辑器的格式对话框
原文地址:How to launch Formatting options dialog for editor with 2 clicks通常的情况下,我们可以使用菜单:工具+选项+文本编辑器+html+格式,就可以打开如下图所示的格式设置对话框。你也可以通过在编辑器里的两次单击来打开这个设置对话框...
web developer tips (22):提高页面和服务器控件加载速度
原文地址:How to improve performance of Page and Server Control Processing1、避免不必要的客户端和服务器间的往返,你可以使用ASP.NET Ajax和局部页面呈现(Partial Page Rendering)。ASP.NET Ajax...
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 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-lif...
web developer tips (19):设置默认视图为设计视图
原文地址:How to set the default view to Design view在 Visual Studio 2008的编辑一个web页面的时候,“源视图”(Source View),你可以自定义设计视图(Design View)为默认视图。 http://w...
web developer tips (18):从工具箱粘贴或拖拽控件时进行绝对定位
原文地址:How to absolute position controls on copy paste or drag drop from Toolbox在设计器里为了让任何任一控件进行绝对定位,你需要选中控件,然后选择如下菜单:格式+设置位置+绝对。 有时候,你也许想从工具箱拖拽控件或在设计器里...
web developer tips (16):变更CSS编辑器的默认格式设置
原文地址:change the default format settings for CSS Editor菜单:工具+选项+文本编辑器+css+格式。 这个对话框给出了三种css书写格式,你可以根据自己的需要灵活选择:http://www.watch-life.net/visual-studio...
web developer tips (15):在ASP.NET Ajax里使用跟踪
原文地址: How to use tracing with ASP.NET Ajax如果你在使用ASP.NET Ajax的时候,遇到一个页面问题,想在调试时候跟踪语句,有个比较快速的方法:使用“Sys.Debug.trace”函数。<script language="j...
web developer tips (14):启动网站调试
原文地址:How to enable debugging of your Web Site在debug的模式配置下运行一个页面,你必须选择菜单:调试+开始启动 或按下F5.在默认的情况下,调试是没有启用的。如果你想启动调试网站项目,就需要进行配置。这个设置通过修改web.config文件来实现。 默...
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-l...
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已经被安装。h...