摘要: 在写代码时经常遇到字符串截取问题,下面是在C#编程中一种不错的截取方式。string str="A,B,C,D";string strTemp1=str.Split(new char[] { ',' })[0];string strTemp2=str.Split(new char[] { ',' })[2];则结果为 strTemp1 为 AstrTemp2 为 C 阅读全文
posted @ 2010-07-28 14:15 海乐学习 阅读(441) 评论(2) 推荐(0) 编辑
摘要: 1.用脚本判断点击的是否为回车键<script type="text/javascript" > function EnterKeyClick() { if (event.keyCode == 13) { event.keyCode = 9; } } </script>2.前台<ext:FormLayout ID="FormLayout3" runat="server... 阅读全文
posted @ 2010-07-28 10:35 海乐学习 阅读(1489) 评论(0) 推荐(0) 编辑
摘要: 1.修正了第二次加载模块时出错。问题原因:问题不在加载模块中,而是在创建模块时。 复制manifest.php文件时,将模板(modules\SimpleMod\manifest.php)更改了。 在模板中'SimpleMod'这种变量是要在创建新模块时改新的。如'SimpleMod'变量应更新为新模块的名称。解决方案:在modules\Builder\BuildModule.php 文件中 1.在$xFileType = ".php"; 语句后写:$xPath = "cache/ModuleBuilder/"; 改变更新目标文件路径 2.将此语名 copy ("modules/SimpleM 阅读全文
posted @ 2010-07-28 10:23 海乐学习 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 1.logo图片 \themes\ClassicSugar\images\company_logo.png 在此文件中 \themes\ClassicSugar\header.html 2.登陆图片 \images\middle-bg.gif 3.默认主题 \config.php 'default_theme' = 'ClassicSugar' 4.不显示选择主题 \login.php 位置:td align=right主题:/tdtdselect style='width: 120px' name='login_theme' 注释掉。 注意:如果不是OA主题,应选择要用的 阅读全文
posted @ 2010-07-28 10:22 海乐学习 阅读(518) 评论(0) 推荐(0) 编辑
摘要: (一)后台写JavaScript方式Response.Write("<script>widow.alert(\" " + this.Test1.text + "\")</script>" );(二)Button的OnClientClick 属性方式注:点取消则不执行服务器端的OnClick事件例:<asp: button OnClientClick="return c... 阅读全文
posted @ 2010-07-25 13:47 海乐学习 阅读(445) 评论(0) 推荐(0) 编辑
摘要: Microsoft SQL serverwindows安全登陆 "Data Source=(local); Initial Catalog=Northwind; Integrated Security=True;"SQL Server登陆"Data Source=(local); Initial Catalog=Northwind; UserID=sa; PassWord=111111;"Acce... 阅读全文
posted @ 2010-07-25 13:39 海乐学习 阅读(370) 评论(0) 推荐(0) 编辑
摘要: C#中委托与事件的基本使用方法://定义委托模板Public delegate void ReceiveMsgEventHandled(object sender,clsTcpMsgEventArgs e);//定义事件private event ReceiveMsgEventHandler ReceiveMsgEvent;//公有事件,注册事件Public event ReceiveMsgEve... 阅读全文
posted @ 2010-07-25 12:26 海乐学习 阅读(980) 评论(2) 推荐(0) 编辑
摘要: 在web开发经常会遇到如: &nbsp; 这样的字符。它其实是Html将一些特殊字符(Html语法字符)的一种表达方式。下面列举几个常用字符:&nbsp; 空格&amp; &&lt; <&gt; >&quot; "&qpos; ' 阅读全文
posted @ 2010-07-25 11:58 海乐学习 阅读(277218) 评论(6) 推荐(1) 编辑
摘要: 在网页中经常遇到要设置默认按钮,是在Html的form标签中设置。<form id="form1"defaultbutton="buttion1" //默认按钮 defaultfocut="test1" //默认焦点runat="server"> 阅读全文
posted @ 2010-07-25 11:46 海乐学习 阅读(875) 评论(0) 推荐(0) 编辑
摘要: Coolite中GridPanel自带的分页与GridView的分页一样,都是把所有数据全部读出放至内存中。本文使用数据库中储存过程的方式与GridPanel配合完成,每次访问仅读出分页的数据。前台: <ext:Store ID="Store1" OnRefreshData="Store1_RefershData" runat="server" AutoLoad="true"> <... 阅读全文
posted @ 2010-07-25 00:19 海乐学习 阅读(2159) 评论(2) 推荐(1) 编辑