摘要:
父窗体调用子窗体: window.frames["c1"].window.childMehtod();子窗体调用父窗体: 使用window.parent或者window.opener var flag = window.parent.checkLeftShow();
阅读全文
posted @ 2012-12-19 13:23
莫等闲也
阅读(3595)
推荐(0)
摘要:
在div+css布局中,如果一行(或一个DIV)内容中有图片和文字的话,图片和文字往往会一个在上一个在下,这是一个新手都会遇到问题,我的解决方法有三: 1.添加CSS属性:vertical-align:middle; 代码: <style> a img{border:none} .testdiv *
阅读全文
posted @ 2012-12-18 12:57
莫等闲也
阅读(54820)
推荐(1)
摘要:
TreeView.ExpandDepth 属性属性值类型:System.Int32 最初显示 TreeView 时要显示的深度。默认值为 -1,表示显示所有节点。<asp:TreeView ExpandDepth="Int32" />设置0为全部收缩
阅读全文
posted @ 2012-12-14 11:24
莫等闲也
阅读(1835)
推荐(0)
摘要:
前台代码<body style="background-color: #B1E7FF;"> <form id="form1" runat="server"> <div style="width: 180px; height: 100%"> <asp:TreeView ID="TV_FuncList" runat="server" Width="186px" ShowLines="True">
阅读全文
posted @ 2012-12-11 22:30
莫等闲也
阅读(897)
推荐(0)
摘要:
JS代码 var value = "http://" + window.location.host + "/CAD/OneTwoPicure.png"; if ($("#DWhost").val() == value) { document.getElementById("DWGViewX").style.visibility = "hidden";//设定隐藏 document.getElementById("DWGViewX").style.height = 0;//实在
阅读全文
posted @ 2012-12-11 13:57
莫等闲也
阅读(6699)
推荐(0)
摘要:
两个以上or 的实现方法 利用Disjunction方法可以实现 crit.Add(Expression.Disjunction() .Add(Expression.Eq("order_state", 1)) .Add(Expression.Eq("order_state", 2)) .Add(Expression.Eq("order_state", 0)) );
阅读全文
posted @ 2012-12-08 10:04
莫等闲也
阅读(439)
推荐(0)
摘要:
NHibernate.Criterion方法解释HQL运算符QBC运算符含义=Restrictions.eq()等于equal<>Restrictions.ne()不等于not equal>Restrictions.gt()大于greater than>=Restrictions.ge()大于等于greater than or equal<Restrictions.lt()小于less than<=Restrictions.le()小于等于less than or equalis nullRestrictions.isnull()等于空值is not nul
阅读全文
posted @ 2012-12-08 09:49
莫等闲也
阅读(244)
推荐(0)
摘要:
// 获取程序的基目录。 System.AppDomain.CurrentDomain.BaseDirectory // 获取模块的完整路径。 System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName // 获取和设置当前目录(该进程从中启动的目录)的完全限定目录。 System.Environment.Cur...
阅读全文
posted @ 2012-12-06 11:28
莫等闲也
阅读(21140)
推荐(0)
摘要:
js:window.location.host=asp.net:Request.Url.Authority 获取服务器的域名系统 (DNS) 主机名或 IP 地址和端口号。JS:window.location.host =ASP.NET:Request.Url.Authority
阅读全文
posted @ 2012-12-04 16:16
莫等闲也
阅读(907)
推荐(0)
摘要:
ORA_01747:User.table.column 或列说明无效 此问题的原因是因为表的列名称使用了Oracle声明的关键字,解决方案: 1、首先我们要确认哪些字符串是Oracle的关键字,具体可通过Oracle提供的V$RESERVED_WORDS 2、对历史遗留系统的处理考虑修改表的列名,风险较大修改特定查询语句 3、验证 通过验证得出结论:在查询列中使用双引号要注意列的大小写oracle的保留字 ACCESS ADD ALL ALTER AND ANY AS ASC AUDIT BETWEEN BY CHAR CHECK CLUSTER COLUMN COMMENT COMPR...
阅读全文
posted @ 2012-11-19 09:14
莫等闲也
阅读(1442)
推荐(0)