导航

上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页

2006年9月15日

摘要: 基于角色的代码权限 演示了.NET中基于角色的安全控制,并且演示了安全控制中,对应用程序域的初始化步骤。 using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Windows.Forms;public class WindowsForm : System... 阅读全文

posted @ 2006-09-15 09:25 hcfalan 阅读(409) 评论(0) 推荐(0) 编辑

摘要: 实现ISynchronizeInvoke 当运行于线程T1的客户端调用一个对象的方法的时候,该对象的方法是在客户端线程上执行的。然而,如果该对象的方法要求始终在一个指定线程T2上执行,该怎么实现呢?这是要求多个线程配合使用的常见情形。例如,.NET Windows窗体和控件要求必须在创建它们的那个线程里处理消息。为了处理这样的情况,.NET提供了ISynchronizeInvoke... 阅读全文

posted @ 2006-09-15 08:55 hcfalan 阅读(2418) 评论(6) 推荐(1) 编辑

2006年9月13日

摘要: 对于需要加载很多组件的应用程序来说,在启动的时候会非常的缓慢,可能会让用户误以为程序已经死掉,这显然不是我们希望看到的。如果能够在启动的时候动态的给用户一些反馈信息(比如当前正在加载的项),那么就可以有效的避免这一问题,并且可以给我们的应用程序增色不少。下边的图片是此代码的效果图。 下面是部分代码:AppStart 类,包含Main方法 public class AppStart{ publ... 阅读全文

posted @ 2006-09-13 09:04 hcfalan 阅读(1780) 评论(0) 推荐(0) 编辑

2006年9月12日

摘要: 源代码下载:LicenseDemo.rar首先,需要实现一个LicenseProvider using System;using System.Collections.Generic;using System.Text;using System.IO;using System.ComponentModel;using System.ComponentModel.Design;using Syste... 阅读全文

posted @ 2006-09-12 10:01 hcfalan 阅读(2028) 评论(0) 推荐(1) 编辑

2006年9月11日

摘要: using System;using System.Web.UI;public class ApplicationConfiguration : IConfigurationSectionHandler{ public Object Create(Object parent, object configContext, XmlNode section) { // ... 阅读全文

posted @ 2006-09-11 11:03 hcfalan 阅读(503) 评论(0) 推荐(0) 编辑

2006年9月9日

摘要: 最近需要做一个对特定请求进行响应的接口,只是在内部处理,不存在UI,机于这种情况,当然是使用实现IHttpHandler来进行处理,可以减掉加载HTML 控件的时间。本来都是这样想的,对于IHttpHandler 中定义了两个方法,ProcessRequest(HttpContext ctx) 和 IsRunable() 这两个,看到在ProcessRequest(HttpContext ctx)... 阅读全文

posted @ 2006-09-09 00:42 hcfalan 阅读(301) 评论(1) 推荐(0) 编辑

2006年9月8日

摘要: TCE条件表达式 Table 16-3. Conditional Expression Values Type Description ... 阅读全文

posted @ 2006-09-08 14:22 hcfalan 阅读(389) 评论(0) 推荐(0) 编辑

2006年8月23日

摘要: 一、基类定义 public abstract class Root { public string OBID {get; set;} public DateTime LastUpdate {get; set;} } 二、一对一处理(User & Account): class define: public class User : Root { public string Na... 阅读全文

posted @ 2006-08-23 17:32 hcfalan 阅读(1463) 评论(1) 推荐(0) 编辑

2006年8月20日

摘要: 方法:将NHibernate源代码目录下的nhibernate-mapping-2.0.xsd文件拷贝到C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas目录下即可。 使用:打开VS2005,创建一个XML文件,输入<hibernate-mapping xmlns=, 然后在xmlns的选项中选择urn:nhibernat... 阅读全文

posted @ 2006-08-20 16:41 hcfalan 阅读(548) 评论(0) 推荐(0) 编辑

摘要: 在ASP.NET中使用脚本代码保护功能keywords: asp.net Scripting.Encoder IHttpModule 一、Microsoft Script Engine Version 5.0 C:\winnt\system32\scrobj.dll 一个简单示例: Public Function EncodeScript() as string Dim st... 阅读全文

posted @ 2006-08-20 16:28 hcfalan 阅读(4409) 评论(4) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页