DavidJGu's Blog

       尼采说,宁可追求虚无也不能无所追求!  Keeping is harder than winning
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  tech

摘要:40种网页常用小技巧(JavaScript) 选择自 AppleBBS 的 Blog 关键字 ... 阅读全文

posted @ 2005-01-27 15:14 Let's DotNet 阅读(384) 评论(0) 推荐(0)

摘要:By Uwe Keim from http://www.codeproject.com/useritems/QueryString.asp Example 1 - Manipulate an attribute value Create a QueryString and simply let itself fill with the parameters of the current pa... 阅读全文

posted @ 2004-12-26 17:16 Let's DotNet 阅读(430) 评论(0) 推荐(0)

摘要:关于C#中的const和readonly想必使用C# .NET开发的朋友都很了解吧?总结一下const和readonly也就这么几条吧: const和readonly的值一旦初始化则都不再可以改写; const只能在声明时初始化;readonly既可以在声明时初始化也可以在构造器中初始化; con... 阅读全文

posted @ 2004-12-14 17:56 Let's DotNet 阅读(402) 评论(0) 推荐(0)

摘要:ORACLE 常用的SQL语法和数据对象 一.数据控制语句 (DML) 部分1.INSERT (往数据表里插入记录的语句)INSERT INTO 表名(字段名1, 字段名2, ……)VALUES ( 值1, 值2, ……); INSERT INTO 表名(字段名1, 字段名2, ……) SELECT (字段名1, 字段名2, ……) FROM 另外的表名;字符串类型的字段值必须用单引号括起来,例如... 阅读全文

posted @ 2004-11-30 15:20 Let's DotNet 阅读(1406) 评论(0) 推荐(0)

摘要:最近写了些动态编译的东西。基本上有两种方法: 1.只利用using Microsoft.CSharp; CompilerError[] ce= Compiler.Compile(strArrSourceCode,strArrFileName,strOutputFile,import, configs); strArrSourceCode:源程序; strArrFileNa... 阅读全文

posted @ 2004-11-19 19:47 Let's DotNet 阅读(1499) 评论(1) 推荐(0)

摘要:在窗口A中打开另一个窗口B,同时关闭窗口A。往往此时会弹出确认对话框。 而有时我们的目的确实以窗口A为桥梁,真正要显示的是窗口B,因为在js的open或showModalDialog或showModelessDialog方法可以方便的设置打开窗口的页面属性。此时可以这样实现, window.open("...","","..."); window.opener = null; window.clo... 阅读全文

posted @ 2004-11-11 12:35 Let's DotNet 阅读(417) 评论(0) 推荐(0)

摘要:我们在调试aspx文件时,经常有时想转到自己想要的一个页面看看,此时若Session过期重新登陆时要重输url或者要在菜单里寻找。往往我们只关系某几个模块。文件浏览或许可以发挥一些作用。 Steve Sharrock在http://aspalliance.com/发表了[TreeView - Programming an Explorer-style Site View]一文(http://asp... 阅读全文

posted @ 2004-09-17 19:54 Let's DotNet 阅读(1498) 评论(2) 推荐(0)

摘要:publicstaticstringGetCheckedNodesofTree(Infragistics.WebUI.UltraWebNavigator.UltraWebTreeobjUltraTree) { stringstrTagsSet=""; intiCount=objUlt... 阅读全文

posted @ 2004-09-08 16:03 Let's DotNet 阅读(463) 评论(0) 推荐(0)

摘要:publicstaticvoidSetsubNodesChecked(refInfragistics.WebUI.UltraWebNavigator.NodeobjNode,boolchkState) { intiCount=objNode.Nodes.Count; if(iCoun... 阅读全文

posted @ 2004-09-08 16:02 Let's DotNet 阅读(399) 评论(0) 推荐(0)

摘要:Tree View的生成基本上有三种方式: 1. 界面设计时在Tree View设计器或者代码中直接填充Tree View控件。 这种方式通过拖放控件的方式生成树,应用范围窄,是一种非编程方式; 2. 从XML文件中建立树形结构。 这种方式通过XML文件(串)生成树,从形式上来说,这种方式是比较直观的。因为XML本身就是一棵“树”,在.NET 平台下Tre... 阅读全文

posted @ 2004-08-31 10:43 Let's DotNet

摘要://================Example:=====================// //give-------"2.12,2.12,3.12-3.5,4.12,4.22-6.33,4.12,12-3.5"; // //return-----"2.12,3.12-3.5,4.12,4.22-6.33,12-3.5";// private ... 阅读全文

posted @ 2004-08-30 09:48 Let's DotNet 阅读(493) 评论(0) 推荐(0)

摘要:RegisterClientScriptBlock is for returning blocks of client-side script containing functions. RegisterStartupScript is for returning blocks of client-script not packaged in functions-in other words, ... 阅读全文

posted @ 2004-08-27 15:07 Let's DotNet 阅读(427) 评论(0) 推荐(0)

摘要:增加了CheckBoxList,CheckBoxList与ListBox之间的数据传递 usingSystem; usingSystem.Web.UI.WebControls; namespacePowerSelect { /**//// ///PowerSelect的摘要说明:用于两个控件间的数据选择传递;目前只做到ListBox,CheckBoxList... 阅读全文

posted @ 2004-08-24 13:31 Let's DotNet 阅读(738) 评论(0) 推荐(0)

摘要:using System; using System.Web.UI.WebControls; namespace PowerSelect { /// /// PowerSelect 的摘要说明:用于两个控件间的数据选择传递;目前只做到ListBox;以后根据需要会扩展。2004.8.23 /// public class PowerSelect { //源控件 object... 阅读全文

posted @ 2004-08-23 20:48 Let's DotNet 阅读(893) 评论(1) 推荐(0)

摘要:while use union sql, it should be noted that “order by” can't be used in the last sub query sentence. 阅读全文

posted @ 2004-08-19 19:52 Let's DotNet 阅读(597) 评论(1) 推荐(0)