12
摘要: using System; using System.Collections.Generic; using System.Text; namespace @enum { class Program { static void Main(string[] args) { int i = 1; switch (i) { case(int) enumWeek.Sunday: Console.W... 阅读全文
posted @ 2009-01-19 13:19 ygang 阅读(161) 评论(0) 推荐(0) 编辑
摘要: //struct 结构 //包含多个节本类型或符合类型的复合体 //优点操作效率比较高 using System; using System.Collections.Generic; using System.Text; namespace @struct { class Program { static void Main(string[] args) { People p1 = n... 阅读全文
posted @ 2009-01-19 13:03 ygang 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Vs2005里面的,查询12000条记录,设置RemotingFormat = SerializationFormat.Binary; 再序列化,通过WebService传输,客户端接收,再反序列化,确实效果大大的优于直接传送DataSet,不仅网络传输中如此,即使本机,性能改善也非常明显. 下面分别是WebService里面的方法和客户端反序列化取DataSet的方法. 1. 服务器上面取数据,... 阅读全文
posted @ 2009-01-14 13:35 ygang 阅读(352) 评论(1) 推荐(0) 编辑
摘要: // JScript File //Add Html Control function add(sender,q) { var tr = sender.offsetParent.parentNode.parentNode; var table =document.getElementById ("tableselect"); if(sender.src.indexOf("delete... 阅读全文
posted @ 2009-01-05 15:15 ygang 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 无标题页 设置1 12 设置2 ... 阅读全文
posted @ 2008-10-16 03:32 ygang 阅读(255) 评论(0) 推荐(0) 编辑
摘要: public string SystemCheck() { string Agent = HttpContext.Current.Request.ServerVariables["HTTP_USER_AGENT"]; if (Agent.IndexOf("NT 4.0") > 0) { return "Window... 阅读全文
posted @ 2008-10-16 01:40 ygang 阅读(190) 评论(0) 推荐(0) 编辑
摘要: private string UserInfo() { string info = "当前用户IP:" + Page.Request.UserHostAddress + ""; info += "当前电脑名称:" + System.Net.Dns.GetHostName() + ""; //info += "当前操作系统:" + Reque... 阅读全文
posted @ 2008-10-16 01:38 ygang 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 今天处理公司账号和密码,呵呵发现一个问题就是md5和数据库有不兼容性了。先贴出md5加密代码: string PassWord = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(passWord, "MD5"); 阅读全文
posted @ 2008-10-10 14:50 ygang 阅读(465) 评论(0) 推荐(0) 编辑
摘要: gridview经典大放松 using System; using System.Data; using System.Configuration; using System.Collections; ... 阅读全文
posted @ 2008-10-09 18:00 ygang 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 想做点东西就准备哈基础知识,仔细分析了哈这2个控件发现功能强大,希望微软有一天将这2个控件结合开发出一个控件就好了,嘿嘿.但是各有千秋.要想实现分页首选就是gridview,但是无法实现模板编辑后进行行和列的控制,那就用datelist但是没有分页,datelist可以轻松得到效果,但是没有分页,怎么半,不用怕,嘿嘿有我,花了2天写了个代码比网上的简单多了哈哈,终于写完了可以吃饭烙好开心哦.希望大... 阅读全文
posted @ 2008-10-09 17:55 ygang 阅读(1313) 评论(1) 推荐(0) 编辑
12