- 博客(4)
- 收藏
- 关注
原创 如何让TreeView的节点不要生成超级链接
TreeView:System.Web.UI.WebControls 很简单,可是我却没在文档里找到相关的说明,只能自己试验。 1: TreeNode tnode=new TreeNode(); 2: //SelectAction设为None和Expand,则TreeNode不会生成超级链接 3: tnode.SelectAction = TreeNodeS
2007-08-15 15:35:00 1623
原创 funny:a way to measure maintainability
Ayende was asked a question "How to measure maintainability".Here is the answer,very funny. Go into the room and say: "Guys, the client want to change something" Measure the strength of
2007-08-11 20:42:00 714
原创 winform程序中如何跨线程修改控件的值
winform程序是单线程的。 /// /// 应用程序入口 /// [STAThread] static void Main()而且对某一个控件来说,只有创建该控件的线程才能修改它的值。比如我们在设计器中拖到窗体上的控件,它们由程序的主线程创建,那么如果我们在执行中又创建了另外一个线程,那么我们在这个新创建的线程中
2007-08-09 20:51:00 3121 1
原创 Strongly typed page references in ASP.NET
题目来自与CodeProject上的一篇文章。在asp.net的程序中,页面跳转的处理是很平常事情,通常的做法是定义一个url,然后执行跳转:string url = "~/Print/Printitem.aspx?id=" + item.Id + "&format=" + itemFormat;Response.Redirect(url);文章的作者对这中做法提出了异议,他认为这
2007-08-08 21:09:00 957
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人