摘要: ASP.NET MVC View Model Patterns Since MVC has been released I have observed much confusion about how best to construct view models. Sometimes this confusion is not without good reason since there d... 阅读全文
posted @ 2015-01-08 11:29 cxp9876 阅读(437) 评论(0) 推荐(0) 编辑
摘要: Technorati 标签: Page Scroll Menu,页面锚点菜单,Menu,Too Long,页面太长 当页面太长时,会导致浏览不便,这时就需要一个页面锚点菜单(Page Scroll Menu),方便用户快速了解页面的概要及目录并快速定位到相应的目录。 实现方式: 1. 将页面按照内容分成不同的Section, 页面加载时读取各个Sect... 阅读全文
posted @ 2014-10-22 14:58 cxp9876 阅读(877) 评论(0) 推荐(0) 编辑
摘要: 一、左连接查询 var query = people.GroupJoin(pets, person => person, pet => pet.Owner, (person, petCollection) => ... 阅读全文
posted @ 2014-09-30 16:49 cxp9876 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Sending is time spent uploading the data/request to the server. It occurs between blocking and waiting. For example, if I post back an ASPX page this would indicate the amount of time it took to uploa... 阅读全文
posted @ 2014-08-27 09:47 cxp9876 阅读(831) 评论(0) 推荐(0) 编辑
摘要: 1. 条件注释语句 除IE外都可识别 所有的IE可识别 仅IE6可识别 IE6以及IE6以下版本可识别 IE6以及IE6以上版本可识别 仅IE7可识别 IE7以及IE7以下版本可识别 IE7以及IE7以上版本可识别 仅IE8可识别 仅IE9可识别 2. CSS hack 写法 /* 所有浏览器 通用*/ height: 100px;... 阅读全文
posted @ 2014-08-25 19:05 cxp9876 阅读(539) 评论(0) 推荐(0) 编辑
摘要: 一、Asp.net 自带Bundle的使用: 1. 在Globale中注册与配置 BundleConfig.RegisterBundles(BundleTable.Bundles);public class BundleConfig { // For more information on Bundling, visit http://go.microsoft.co... 阅读全文
posted @ 2014-07-04 16:28 cxp9876 阅读(687) 评论(0) 推荐(1) 编辑
摘要: 随着项目中各项功能的增加,系统性能越来越糟糕,于是决定对系统做性能优化。现性能优化的相关工作记录下来。 一、如何监测性能问题: 1. dotTrace: 一款性能测试工具,能够记录程序执行过程中各个方法的调用情况及所花时间等,好像不能记录网站加载情况。 2. miniProfiler: StackOverflow的一款开源产品,需要在项目中引用做相应的配置,不光能够记录... 阅读全文
posted @ 2014-06-23 11:43 cxp9876 阅读(798) 评论(0) 推荐(0) 编辑
摘要: 大家在项目中是不是经常遇到DLL引用错误的情况,或者是DLL引用的版本,路径不对的情况。遇到这种情况一般处理起来比较困难,往往会觉得DLL版本正确了,引用路径正确了,为什么程序还是引用的老版本,程序是从什么地方引的老版本呢?为什么会引用到老版本呢?今天我在项目中就遇到此种情况,多次google终于找到了一个利器,他可以详尽的分析程序所引用的DLL,包括DLL的路径,版本等。Fusion Log viewer:此利器可查看windows服务,Asp.net及winform程序的Accemblly引用情况。用法如下:1. 打开 Fusion Log Viewer. 在开始菜单中的vs菜单下找如下所 阅读全文
posted @ 2013-08-29 16:34 cxp9876 阅读(585) 评论(0) 推荐(0) 编辑
摘要: 转自:http://hi.baidu.com/yufeng0103/blog/item/b5dc3225f8c43c6d35a80f41.html asp.net2.0新添加了对web.config直接操作的功能。开发的时候有可能用到在web.config里设置配置文件,其实是可以通过程序来设置这些配置节的。 asp.net2.0需要添加引用: using System.Web.C... 阅读全文
posted @ 2013-06-03 18:39 cxp9876 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 以下是项目中的一个类,用于加载模块DLL及,此类演示了如何在运行文件夹下搜索DLL并通过Assembly类进行加载。 using Core.Dependency;using Core.Logging;using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Ref... 阅读全文
posted @ 2013-05-22 18:27 cxp9876 阅读(330) 评论(0) 推荐(0) 编辑