随笔分类 -  Visual studio

有关Visual Studio2005、Visual Studio2008、Visual Studio2010的文章
web developer tips (43):通过请求处理管道注册IHttpModule
摘要:原文地址:The way you register your IHttpModule depends on the request processing pipeline in which your module will run建立和运行自定义IHttpModule需要做三件简单的事: 1、把源码编译成dll。 2、在net里注册。 3、在IIS配置系统里注册。http://www.watch-... 阅读全文

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

web developer tips (42):用IIS配置编辑器生成脚本来更新配置
摘要:原文地址:ConfigurationEditor allows you to generate C#, JavaScript or AppCmd script to update configuration如果你想写段脚本来添加或更新已经存在的配置,无论配置文件属于那种类型的,比如 administration.config, applicationHost.config 或 网站 或 应用程序的... 阅读全文

posted @ 2009-09-03 01:37 xjb 阅读(1100) 评论(0) 推荐(0)

web developer tips (41):用自颁发的证书连接到远程IIS服务器
摘要:原文地址:establishing a remote connection to a IIS server with self-issued certificate will require a certificate validation delegate要么通过WMSvc 要么通过自己的脚本,当你尝试与远程服务器建立一个连接,没有提供受信任的证书,你需要提供证书验证的委托,用来检查不受信任的证... 阅读全文

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

web developer tips (40):定义母版页的作用范围
摘要:原文地址:How to scope master pages母版页是一个模板页,可以用于创建一致布局的的应用程序。首先,创建一个母版页来定义应用程序的外观,然后创建一个包含当前内容的内容页。你可以用以下三个级别,把这些内容页附加到母版页里:http://www.watch-life.net/life-thinking/know-how-to-scope-master-pages.html1、页面级... 阅读全文

posted @ 2009-09-01 01:03 xjb 阅读(603) 评论(0) 推荐(0)

web developer tips (39):在Visual Studio 2008中取消远程web操作
摘要:原文地址:How to cancel a remote web operation in Visual Studio 2008在vs2005里,连接FTP或FrontPage server后,IDE无法让你取消这个操作。在vs2008里,通过FTP 或 FrontPage Server 连接远程源,整个这个操作过程中,你可以按“ESC”键,IDE会取消,或给你选项取消将要运... 阅读全文

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

web developer tips (38):如何用请求失败记录追踪重写规则
摘要:原文地址:How to use Failed Request Tracing to trace Rewrite Rules。IIS 7.0 请求失败跟踪(Failed Request Tracing (FRT)) 是功能强大的请求失败故障诊断工具。有感 FRT更多详细的内容,你可以查看:Troubleshooting Failed Requests Using Tracing in IIS 7.0... 阅读全文

posted @ 2009-08-28 09:16 xjb 阅读(497) 评论(0) 推荐(0)

web developer tips (37):如何组织Using指令
摘要:原文地址:How to organize usings有时候在c#的源文件里有些不需要或杂乱无序的using指令。Visual Studio IDE 组织Using选项可以帮助你整理源代码。组织c#代码,在代码编辑器任意位置单击右键,选择“组织using”。http://www.watch-life.net/visual-studio/how-to-organize-usi... 阅读全文

posted @ 2009-08-27 09:24 xjb 阅读(349) 评论(0) 推荐(0)

web developer tips (36):使用IIS7.0 应用请求路由模块管理网站的beta版程序
摘要:原文地址:How to manage pilot or beta program for your site using Application Request Routing in IIS7.0如果给你网站适合的用户设置目标和路由,用来使用试用/bate/新程序来查找用户资料,是不是件很酷的事?这对于管理曾经在试用版注册过的用户是有帮助,把这些用户重新跳转到一个新的网站,继续收集反馈,当你的网站... 阅读全文

posted @ 2009-08-26 09:20 xjb 阅读(382) 评论(0) 推荐(0)

web developer tips (35):为js文件中的脚本库添加智能提示
摘要:原文地址:How to add Intellisense from script libraries for JS files这是个示例,在vs2008里为js文件添加智能提示。有两个js文件:Jscript1.js 包含如下代码: function validateForm() { } Jscript1.js(在里面你想当前jscript文件显示在Jscript1.js里定义对象和函数的智能提示... 阅读全文

posted @ 2009-08-17 09:14 xjb 阅读(294) 评论(0) 推荐(0)

web developer tips (34):在IIS7.0使用网址重写防止盗链
摘要:原文地址:How to stop hot-linking from your site using URL Rewrite in IIS 7.0一个热链直接链接到网站文件(图片,视频等),例如使用一个<img>标签显示一个任何人都可以在你网站发现的jpge图片,这也可以称之为盗链,当有人浏览这个网站的时候,将使用使用你的网站的带宽来显示JPEG图片。如果在你的网站用下面这个具有版权的图... 阅读全文

posted @ 2009-08-14 09:21 xjb 阅读(438) 评论(0) 推荐(0)

web developer tips (33):在vs2008里创建套嵌母版页
摘要:原文地址: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.ht... 阅读全文

posted @ 2009-08-11 09:28 xjb 阅读(628) 评论(0) 推荐(0)

web developer tips (32):轻松地创建自己的项目模板
摘要:原文地址:How to easily create your own project templates通过导出向导,Visual Studio可以很容易创建项模板(Iiem template)或项目模板(Project template)。从菜单选择“导出模板”项打开导出向导。http://www.watch-life.net/visual-studio/how-to-e... 阅读全文

posted @ 2009-08-03 09:29 xjb 阅读(342) 评论(0) 推荐(0)

web developer tips (31):利用IIS 7.0的URL Rewrite 模块产生用户友好的URL
摘要:原文地址:How to have user friendly URL using IIS 7.0 URL Rewrite module很友好的URL地址,使访问的人很容易记住。要求你的用户记住“ http://www.contoso.com/article.aspx?id=342&title=URL-Rewrite-Walkthrough” 这样的网址并不是件很美妙... 阅读全文

posted @ 2009-07-30 09:19 xjb 阅读(410) 评论(0) 推荐(0)

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)。当你拖动一个扩展器悬停在一个控件上,如果这个控件支持扩展的话,你可以发现光标变成一个加号(+)标记。如... 阅读全文

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

web developer tips (29):在web应用项目里启用“编辑并继续”功能
摘要:原文地址:How to enable Edit and Continue feature for Web Application Projects如果你在调试一个web应用程序的时候,想进行编辑,可以有如下两种方法: http://www.watch-life.net/visual-studio/how-to-enable-edit-and-continue-feature-for-web-app... 阅读全文

posted @ 2009-07-24 09:11 xjb 阅读(365) 评论(0) 推荐(0)

web developer tips (28):CSS class 也支持“转到定义”
摘要:原文地址:That “Go to definition” is supported for CSS Class如果有个有个样式定义比如:Class = ”fooRed”,如果快速知道“fooRed”的内容呢? <div class ="fooRed">In RED</div> http://www.wa... 阅读全文

posted @ 2009-07-23 09:12 xjb 阅读(324) 评论(0) 推荐(0)

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 Developer 2008 Express ,SQL Server 2008 Express Editio... 阅读全文

posted @ 2009-07-22 10:03 xjb 阅读(360) 评论(0) 推荐(0)

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.net http://www.watch-life.net/visual-studio/have-c-a... 阅读全文

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

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://contoso.com 是一样的。但是,许多的搜索引擎不会做这样的假设,会把它们作为两个分开的条目来对待。这... 阅读全文

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

web developer tips (24):显示html/css的警告错误或错误
摘要:原文地址:You could display CSS/HTML errors as warnings or as errors在vs2008里面可以有个很cool的功能,可以降级显示作为任何警告的错误,这个功能很有用,它可以让你区分验证的错误和查找让程序无法生成的错误。 http://www.watch-life.net/life-thinking/display-css-html-errors-... 阅读全文

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

导航