FlyTreeView for ASP.NET - V3.3研究

控件介绍[转载]
较为流行的Asp.Net TreeView 控件的性能。如RadTreeView,FlyTreeView,IEWebControlTreeView等。总体感觉,作为一个独立产品,FlyTreeView的外观更为俏丽,性能也最为丰富,可谓精雕细琢。用它遍历服务器硬盘,仿真资源管理器目录的速度是非常快的;它所具有的独一无二的异步加载功能,对那些梦想把全部数据都绑定到一个Web树上,又不想影响客户端加载速度的程序开发者来讲,FlyTreeView切实能使我们鱼肉和熊掌兼得。用过一段时间的IEWebControlTreeView,深感其性能的平平,反应的迟缓,因而一见到FlyTreeView for ASP.NET 3.1 便爱不释手。
功能限制
- 时间限制当前时间必须<new DateTime(0x7d5, 4, 2);
ildasm打开FlyTreeView的.ctor()方法可以看到
IL_006d:  call       instance void NineRays.Web.UI.WebControls.FlyTreeView.FlyControlBase::.ctor()
IL_0072:  call       valuetype [mscorlib]System.DateTime [mscorlib]System.DateTime::get_Now()
IL_0077:  ldsfld     valuetype [mscorlib]System.DateTime NineRays.Web.UI.WebControls.FlyTreeView.Global::TRIAL_EXPIRE_DATE
IL_007c:  call       bool [mscorlib]System.DateTime::op_GreaterThan(valuetype [mscorlib]System.DateTime,
          valuetype [mscorlib]System.DateTime)
IL_0081:  brfalse.s  IL_008e

IL_0083:  ldstr      "9Rays.Net FlyTreeView for ASP.NET TRIAL license ha"
+ "s expired."
IL_0088:  newobj     instance void [mscorlib]System.Exception::.ctor(string)
IL_008d:  throw
上面脚本判断时间,如果超出就throw一个异常,就是页面中看到的。
注释如下:
//IL_0083:  ldstr      "9Rays.Net FlyTreeView for ASP.NET TRIAL license ha"
//+ "s expired."
//IL_0088:  newobj     instance void [mscorlib]System.Exception::.ctor(string)
//IL_008d:  throw
去掉public token,然后用ilasm编译覆盖完成。
附下载:
https://files.cnblogs.com/midea0978/NineRays.Web.UI.WebControls.FlyTreeView.rar

posted @ 2005-05-25 11:04  在路上...  阅读(3559)  评论(9编辑  收藏  举报