随笔分类 -  .net

摘要:有些时间 不用 c#了 ,想 写 委托 和 事件 又会 卡下 ,之前也没认真总结过。干脆 做个小结 。 什么是委托:狭义,不安全函数的指针。不安全在哪里: 任何地方都可以调用委托对象。(实际上委托对象才是函数的指针,而delegate只是一个语法) 什么是事件:狭义,安全的函数指针,安全在哪里:只允 阅读全文
posted @ 2017-11-27 18:01 琴鸟 阅读(978) 评论(0) 推荐(0)
摘要:突然领悟用google搜索图标,看桌满屏的图标。突然想到 开源狂热者,想到他们大骂ms的情况。当时是可以认可,但不理解为什么。又突然想到自己对思想古板,守旧的人的痛恨。突然之间全明白了。在软件业自己也不只用微软不。自己其实在某个领域也是古板,守旧的人。突然开始理解狂热者和守旧者。狂热者的激进,守旧者的淡定。想到之前对狂热者的行为的毫不关心的心态。自己该是被他们多么鄙夷的对象阿。人啊,永远都不可能是... 阅读全文
posted @ 2010-08-26 14:36 琴鸟 阅读(235) 评论(1) 推荐(0)
摘要:服务器部署水晶报表的一些资料:http://www.cnblogs.com/babyt/archive/2008/02/19/1073688.htmlhttp://www.cnblogs.com/babyt/archive/2008/11/20/1337181.htmlhttp://www.cnblogs.com/babyt/category/120552.htmlCrystal Reports ... 阅读全文
posted @ 2010-02-26 12:09 琴鸟 阅读(300) 评论(0) 推荐(0)
摘要:很简单的实现.纪录下吧.编辑和编辑的时候对数据的检测.aspx:function showerror(errordiv,errorstr){document.getElementById(errordiv).innerText=errorstr; }function checkerror2(tb1,tb2,tb3){var o1=document.getElementById(tb1);var o... 阅读全文
posted @ 2010-02-26 11:58 琴鸟 阅读(2371) 评论(0) 推荐(0)
摘要:一直以为session和cokice是没有任何联系的。原来......怪不的asp.net的配置卡中有个session的选项,是使用cokice传递还是useruri.一直没注意呢.客户端禁止cokice后,session的直可以配置使用url来传递会形如/(S(omaofhzin53x2hffjoocwe55))/worker/cata.aspx(S(omaofhzin53x2hffjoocwe... 阅读全文
posted @ 2009-11-05 13:09 琴鸟 阅读(349) 评论(0) 推荐(0)
摘要:游戏结束判断没做。变形时碰到已存障碍没完善.先保存下,以后完善地址:http://download.csdn.net/source/1767176 阅读全文
posted @ 2009-10-25 09:58 琴鸟 阅读(204) 评论(0) 推荐(0)
摘要:问题:形如:abbcddadaa,这样的字符串,每个字符(a,b,c,d)用0和1组合(如0,01,10,111,001),怎么让字符串整体编码后最短.并且没有歧异. 假如a:0 b:1 c:01 d:10,这样是有歧异的.01可以看作c ,也可以看作ab. 用空格来隔开每个字符,是个伪操作。空格也 阅读全文
posted @ 2009-10-22 10:26 琴鸟 阅读(396) 评论(0) 推荐(0)
摘要:对以前写的一个 游戏,改动了一下.路径查询由原来的广度算法。改为a星算法.//a*算法,比广度多一个参数,来评估队列中每个点到目的地的估计消耗,来提高性能。 public Queue<point3> path3(point3 start, point3 end, int[,] migonga) { int[,] migong = (int[,])migonga.Clone(); Que... 阅读全文
posted @ 2009-10-20 14:49 琴鸟 阅读(2865) 评论(7) 推荐(2)
摘要:上下文:一般系统都会有不同的用户角色,比如系统管理员admin,超级用户manager,一般用户worker早先直接使用session保留一个值,如session["userType"].来判断用户的权限。特点:方便,但是毕竟不同角色,属性数量和类型是不相同的,比如一个中介管理系统中:admin:channelID;所属中介机构loginID;登陆idrealName;真实姓名manager和wo... 阅读全文
posted @ 2009-09-10 06:39 琴鸟 阅读(1707) 评论(2) 推荐(1)
摘要:http://social.microsoft.com/Forums/zh-CN/2212/thread/a38dd6bf-1ab3-4a39-8066-c96432b0580chttp://www.xinyuonline.net/blog/?action=show&id=64http://www.cnblogs.com/rudy/archive/2009/05/21/1486672.ht... 阅读全文
posted @ 2009-06-06 11:26 琴鸟 阅读(234) 评论(0) 推荐(0)
摘要:using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;usi... 阅读全文
posted @ 2009-06-04 22:46 琴鸟 阅读(1260) 评论(5) 推荐(0)
摘要:XMLHttpRequest对象XMLHttpRequest提供客户端同http服务器通讯的协议Example下面的代码是在JScript中创建一个XMLHTTP对象并从服务器请求一个XML文档。服务器返回XML文档并显示。var xmlHttpReq = new ActiveXObject("MSXML2.XMLHTTP.3.0");xmlHttpReq.open("GET", "http://... 阅读全文
posted @ 2009-05-20 21:45 琴鸟 阅读(1015) 评论(5) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace alltest{ class Program { static void Main(string[] args) { object ob = 5; int obint = Convert.ToInt32(ob); i... 阅读全文
posted @ 2009-05-13 09:40 琴鸟
摘要:using System;using System.Collections.Generic;using System.Text;using System.Web;using System.Web.UI;using System.Web.UI.WebControls.Adapters;namespace LBControl{ public class LBPager : Control, IPost... 阅读全文
posted @ 2009-04-29 17:11 琴鸟 阅读(242) 评论(1) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Text;using System.Web;using System.Web.UI;using System.Web.UI.WebControls.Adapters;namespace LBControl{ public class LBTextBox:System.Web.UI.... 阅读全文
posted @ 2009-04-29 17:03 琴鸟 阅读(841) 评论(2) 推荐(0)