上一页 1 ··· 3 4 5 6 7
摘要: public static void BindDropFatherItem( DropDownList DropDownList ) { DropDownList.Items.Clear(); string strSql = "select * from Department"; DataTable dt = DB.GetTable( str... 阅读全文
posted @ 2008-06-07 15:28 Magicam 阅读(603) 评论(0) 推荐(0) 编辑
摘要: Response.Write("<script>window.open('abc.aspx?Id="+Id+"','_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=100,left=400,top=400');&... 阅读全文
posted @ 2008-05-18 18:32 Magicam 阅读(464) 评论(0) 推荐(0) 编辑
摘要: 方法一: static bool IsNumeric(string str) { if (str==null || str.Length==0) return false; foreach(char c in str) { if (!Char.IsNumber(c)) { return false; ... 阅读全文
posted @ 2008-05-18 18:27 Magicam 阅读(299) 评论(0) 推荐(0) 编辑
摘要: function checkForm(){ chs = document.getElementById("gvNewsList").getElementsByTagName("INPUT"); n = 0; for( i = 0; i<chs.length; i++ ) { if( chs[i].checked) ... 阅读全文
posted @ 2008-05-15 21:12 Magicam 阅读(913) 评论(0) 推荐(0) 编辑
摘要: 客户要求用Excel记录联系人资料,并导入数据库,找了个第3方Wizard控件做了个小功能。 Excel每一个sheet为一个企业名,为了避免麻烦,一次性导入所有联系人。 同一企业下的相同姓名,相同手机号的为同一个联系人,就不导入。 Excel表中,有些字段不在同一张表:“部门”、“职务”。判断部门和职务是否存在,若不存在添加到部门和职务表,返回ID。 几次测试,取手机号等字段出错,原来要把Ex... 阅读全文
posted @ 2007-08-01 00:20 Magicam 阅读(2129) 评论(4) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7