08 2012 档案
摘要:/// /// 获取一个8到15位的随机密码 /// /// private string GetRandomPwd() { StringBuilder Vchar = new StringBuilder(); Vchar.Append("0,1,2,3,4,5,6,7,8,9,");//数...
阅读全文
摘要:Global.asax 1 protected void Application_BeginRequest(object sender, EventArgs e) 2 { 3 //遍历Post参数,隐藏域除外 4 foreach (string i in this.Request.F...
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using Syste...
阅读全文
摘要:近来我发现我一些同事。在用ajax时,用数据源,都喜欢重新新建一个页面.其实我是很不喜欢这种模式,主要原因,一是后期维护麻烦,还要去找哪些页面,二是不能调用一些本页原有的数据方法.因此我在这里做了一个测试的案例。如下 CS代码 1 using System; 2 using System.D...
阅读全文
摘要:不知道大家对DataGrid赋数据源清楚不,我做的时候老是不出来效果 最后终于查到原因了 通过 PagedCollectionView 实现了 下边是代码 界面xml 代码 PagedCollectionView view = new PagedColl...
阅读全文
摘要:/// /// 保存app.config设定 /// /// /// public static void SaveAppConfig(string key, string value) { Configuration config = ConfigurationManager.Open...
阅读全文
摘要:DispatcherTimer timer = new DispatcherTimer(); timer.Interval = TimeSpan.FromMilliseconds(interval); timer.Tick += (s, e) => { LayoutRoot.Background ...
阅读全文
摘要:关于IE6.7.8.FF兼容的问题时间:2010-09-07 05:25来源: 作者: 点击:8次以前看的一个帖子,感觉很有用,o(∩_∩)o...适合菜鸟,高手路过!~~时间长的原因,源地址找不到了,知道的朋友贴出来!~~ 作为一个前端开发工程师,在对界面布局的时候,应该注意遇到最常见的问题是cs...
阅读全文
摘要:List list = new List(); list.AddRange(new string[] { "gh", "gfh", "张三", "李四", "李1", "李2" }); Predicate pre = new Predicate(IsString); int a = list.Fi...
阅读全文
摘要:HttpHelper 帮助类 1 using System; 2 using System.Collections.Generic; 3 using System.Text; 4 using System.Net; 5 using System.Drawing; 6 using Sys...
阅读全文
摘要:1 //最终方法 2 3 4 5 public static bool GetAdminLoginIP(string LoginIp) 6 { 7 List list = null; 8 list = (List)Utility.MakeCacheAll[Common.Const...
阅读全文
摘要:1 /// 2 /// 分页获取数据列表 3 /// 4 public DataSet GetList(int PageSize, int PageIndex, string strWhere) 5 { 6 StringBuilder strSql = new StringBui...
阅读全文