上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->select t5.intid, t5.strelementname, TT2.intobjectid, t6.dblweight, sum(TT2... 阅读全文
posted @ 2008-11-04 13:25 落叶潇潇雨 阅读(734) 评论(7) 推荐(0) 编辑
摘要: 摘要:总所周知Repeater,本身是不能分页的。不过Repeater有这样一个方法 protected virtual IEnumerable GetData(),因此我们可以override这个方法,并添加一些分页的想关属性 代码如下: Code Code highlighting produced by Actipro CodeHighlighter (freeware)htt... 阅读全文
posted @ 2008-10-30 17:04 落叶潇潇雨 阅读(602) 评论(4) 推荐(0) 编辑
摘要: 摘要:最近根据业务需要开发了一个多功能的下拉服务器控件,该控件绑定到一个DataTable后,可以根据设定是否编辑,打开 和关闭是否有简单的动画,可以根据输入的汉字和英文字符自动检测绑定到该控件的DataTable中的数据。如果设为不可编辑, 则像我们平常的DropDownList,更多功能待以后完善. 效果图: 以上两张图分别反应了输入字符弹出下拉框,和客户端取得该控件的文本和值得效果... 阅读全文
posted @ 2008-10-30 16:50 落叶潇潇雨 阅读(570) 评论(3) 推荐(0) 编辑
摘要: 摘要:关于Asp.net Ajax框架来实现拖放有多种方式,http://www.cncms.com.cn/ajax/10093_2.htm。 比较简单的一种是用AjaxControlToolkit中的服务器控件如DragPanelExtender等 但是在效率和拖放之间数据的交换细节等方面与实际应用有些偏差。估完全采用客户实现IDragSource和IDropTarget接口。 可以先参... 阅读全文
posted @ 2008-10-29 13:34 落叶潇潇雨 阅读(780) 评论(3) 推荐(0) 编辑
摘要: js移除数组中指导位置元素,包括一个对象 //在数组中移除指定位置的元素,返回删除指定元素后的数组 function RemoveAt(arr, position) { var items = new Array(); if (position >= arr.length) alert("out off the array'... 阅读全文
posted @ 2008-10-11 17:59 落叶潇潇雨 阅读(667) 评论(0) 推荐(0) 编辑
摘要: 尝试用面向对象的思路写js Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> //定义一个js对象 function EvaTemplate_IndexLinkInfo(Id, TemplateId, ElementId, IsMust, I... 阅读全文
posted @ 2008-10-11 17:58 落叶潇潇雨 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 1.正则表达式工具 RegexTester.exe和RegexTest.exe,网上别人写的,功能还比较强大,使用比较方便 2.文档生成器 Sandcastle.msi,这个比较有名,大家可以搜一下 3.反编译工具 Reflector.exe,太有名了,学习高手写的代码的绝佳工具 下载地址: 1.http://files.cnblogs.com/jackhuclan/1.rar 2.文件太大,... 阅读全文
posted @ 2008-09-24 11:15 落叶潇潇雨 阅读(478) 评论(0) 推荐(1) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/// /// 检查首字符是否是英文字符 /// /// 要验证的控件 /// 弹出信息 /// true|false function IsEnChar(control,message) { ... 阅读全文
posted @ 2008-09-24 11:02 落叶潇潇雨 阅读(859) 评论(3) 推荐(0) 编辑
摘要: 以下几个函数主要是利用正则表达式格式化用户输入的不当数据 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->public static int ParseInt32(string value) { if (string.IsNullOrE... 阅读全文
posted @ 2008-09-24 10:57 落叶潇潇雨 阅读(1386) 评论(1) 推荐(0) 编辑
摘要: 1. 正则表达式规则 1.1 普通字符 字母、数字、汉字、下划线、以及后边章节中没有特殊定义的标点符号,都是"普通字符"。表达式中的普通字符,在匹配一个 字符串的时候,匹配与之相同的一个字符。 举例1:表达式 "c",在匹配字符串 "abcde" 时,匹配结果是:成功;匹配到的内容是:"c";匹配到的位置是:开始于2, 结束于3。(注:下标从0开始还是从1开始,因当前编程语言的不... 阅读全文
posted @ 2008-09-24 10:51 落叶潇潇雨 阅读(329) 评论(0) 推荐(1) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页