摘要: Found a pretty nice online PDF convert tool, hope you will like it. 阅读全文
posted @ 2011-09-08 17:59 C.Jun 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Please try to save these text below as a *.bat file, then excute it, you will be able to set the IP address on your local PC in a simply way:==================== IP Address Configruation Batch Process Source ==========================@echo offtitle IP自动设置MODE con: COLS=80 lines=30color 0a:mainclsech 阅读全文
posted @ 2011-08-23 14:51 C.Jun 阅读(609) 评论(0) 推荐(0) 编辑
摘要: I met some troubles when tring to create directory with access rights, fortunately, I found some useful imformation, just mark them as below,View Code Imports System.Security.AccessControlImports System.IO Public Class Form1 ' Add access control for Windows Account to directory or file Private S 阅读全文
posted @ 2011-03-11 15:42 C.Jun 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 这里是一些如何得到Office缩略图的步骤:创建一个新的文档,文档可以为任意类型(docx, xlsx, pptx等类型都可以)。保存文档,这里必须注意将"Save Thumbnail"勾上,否则不能产生缩略图效果。接下来将API封装成一个类,方便使用。using System;using System.Diagnostics;using System.Drawing;using System.IO;using System.Runtime.InteropServices;using System.Text;public class ShellThumbnail : IDi 阅读全文
posted @ 2011-03-07 15:34 C.Jun 阅读(568) 评论(0) 推荐(0) 编辑
摘要: 近来项目里用到很多小技巧,在这里做个总结。1. Asp.Net的Forms验证以及Remember Me的自动登录功能。使用Asp.Net的Login控件后,发现勾选Remember Me的选项后并没有自动实现自动登录功能。我们需要做的,是再添加一些自己的代码,一般的做法是结合Cookie来实现这种功能。这里有一篇写得很详细的文章作为参考。PS:Request.IsAuthenticated属性很重要,用来判断是否经过合法登录验证。2. Asp.Net支持的多语言功能。Asp.Net有强大的多语言支持,不同的语言可以写在不同的资源文件里面。比如,在App_GlobalResources文件夹下 阅读全文
posted @ 2010-11-04 11:23 C.Jun 阅读(392) 评论(0) 推荐(0) 编辑
摘要: Very nice article, there are some introductions about Validation feature both on Client-side and Server-side in MCV 2.0, very worth to learn, for more information please refers to http://weblogs.asp.n... 阅读全文
posted @ 2010-10-14 16:58 C.Jun 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 虽然网上实现Ctrl + C的JS代码已经有很多了,但我还是向大家推荐一个比较好的插件zeroclipboard,兼容所有浏览器下面说实现步骤:1- 引用文件。下载后会得到两个核心文件ZeroClipboard.js和ZeroClipboard.swf,在项目中引用其中一个。2- 加载ZeroClipboard对象,并实现复制功能。3- 如果是本地调试,基于flash的安全机制,需要做一些设置ht... 阅读全文
posted @ 2010-08-02 10:52 C.Jun 阅读(542) 评论(0) 推荐(0) 编辑
摘要: Report server report viewer 404 - File or directory not foundWith SQL Server 2008 and IIS7, you may run into this error like I did. The fix for me was to do the following:Under IIS area, double-click ... 阅读全文
posted @ 2010-07-19 09:23 C.Jun 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 一款不错的基于JQuery的auto-complete插件,这款插件最大的好处就是我们能够得到{value, text}结构的数据,这与传统的下拉框很相似,非常适合用于项目开发。生成后的Html页面代码代码以下是基于MVC的一个例子前台调用代码后台代码代码XmlResult类代码 阅读全文
posted @ 2010-07-12 13:22 C.Jun 阅读(535) 评论(0) 推荐(0) 编辑
摘要: 接触NHibernate不久,今天在级联更新上浪费了很多时间,怎么都没达到主-从表自动更新的效果。网上文章找了一大把,说得都迷迷糊糊,一知半解... 所幸在鄙人再三努力之下,找到一篇好文,特此随笔~!inverse属性原文:该属性通常存在于双向管理关系中的<set>等列表标签中,其含义是“是否是镜像”的含义。比如在many-to-one双向关联关系中One方的&... 阅读全文
posted @ 2010-05-24 14:42 C.Jun 阅读(1387) 评论(1) 推荐(1) 编辑