posts - 158, comments - 158, trackbacks - 12, articles - 2
   :: 首页 :: 新随笔 ::  :: 订阅 订阅 :: 管理

c#

摘要: 利用mspaint打开图像并保存阅读全文

posted @ 2010-11-30 12:56 礼拜一 阅读(216) | 评论 (4) 编辑 |

摘要: HttpWebRequest默认的只有2个并发连接限制!!!!!阅读全文

posted @ 2010-06-18 20:01 礼拜一 阅读(299) | 评论 (0) 编辑 |

摘要: 获取远程XML文档阅读全文

posted @ 2010-03-30 16:51 礼拜一 阅读(163) | 评论 (0) 编辑 |

摘要: vs2008命令窗口使用阅读全文

posted @ 2010-01-06 17:06 礼拜一 阅读(1388) | 评论 (1) 编辑 |

摘要: Visual Studio 2005 中的命令窗口阅读全文

posted @ 2010-01-06 16:42 礼拜一 阅读(265) | 评论 (0) 编辑 |

摘要: Error: No such interface supported阅读全文

posted @ 2009-12-18 10:30 礼拜一 阅读(355) | 评论 (1) 编辑 |

摘要: 动态加载UserControl~阅读全文

posted @ 2009-12-15 10:13 礼拜一 阅读(147) | 评论 (0) 编辑 |

摘要: C#中控件的缩写大全阅读全文

posted @ 2009-09-30 10:28 礼拜一 阅读(1160) | 评论 (0) 编辑 |

摘要: 检测远程URL是否存在的三种方法阅读全文

posted @ 2009-03-23 14:52 礼拜一 阅读(172) | 评论 (0) 编辑 |

摘要: [翻译][转载]简单谈谈事件与委托~阅读全文

posted @ 2009-01-25 19:16 礼拜一 阅读(215) | 评论 (1) 编辑 |

摘要: C#中两个类之间有继承关系时的执行顺序~阅读全文

posted @ 2009-01-22 16:52 礼拜一 阅读(407) | 评论 (1) 编辑 |

摘要: 对于AdSense的mobile版没有支持c#的解决方法~阅读全文

posted @ 2009-01-12 13:43 礼拜一 阅读(189) | 评论 (0) 编辑 |

摘要: C#线程调用带参数的方法 阅读全文

posted @ 2009-01-07 17:16 礼拜一 阅读(11896) | 评论 (4) 编辑 |

摘要: 使用SqlDataAdapter对象获取数据阅读全文

posted @ 2009-01-07 16:02 礼拜一 阅读(4571) | 评论 (0) 编辑 |

摘要: 由.Net类库提供的农历计算(C#农历)阅读全文

posted @ 2008-12-25 23:34 礼拜一 阅读(353) | 评论 (0) 编辑 |

摘要: 有关XmlWriter中XML的encoding问题~阅读全文

posted @ 2008-12-22 16:20 礼拜一 阅读(894) | 评论 (1) 编辑 |

摘要: 提取网页中的超链接的link和text部分~阅读全文

posted @ 2008-12-17 15:31 礼拜一 阅读(278) | 评论 (1) 编辑 |

摘要: Ajaxpro 使用~阅读全文

posted @ 2008-12-12 14:29 礼拜一 阅读(680) | 评论 (1) 编辑 |

摘要: 找出字符串中第一个字母并大写~阅读全文

posted @ 2008-12-04 10:15 礼拜一 阅读(285) | 评论 (2) 编辑 |

摘要: 值类型 VS 引用类型~阅读全文

posted @ 2008-11-03 09:24 礼拜一 阅读(149) | 评论 (0) 编辑 |

摘要: 一道笔试题和UML思想 阅读全文

posted @ 2008-10-14 15:39 礼拜一 阅读(725) | 评论 (1) 编辑 |

摘要: 何时使用委托而不使用接口(C# 编程指南) 阅读全文

posted @ 2008-10-09 15:34 礼拜一 阅读(233) | 评论 (0) 编辑 |

摘要: .NET实用设计模式:观察者模式(Observer) 阅读全文

posted @ 2008-10-07 15:01 礼拜一 阅读(153) | 评论 (0) 编辑 |

摘要: 数据绑定以及Container.DataItem几种方式与用法分析~阅读全文

posted @ 2008-09-25 12:07 礼拜一 阅读(205) | 评论 (0) 编辑 |

摘要: 猫叫,老鼠们跑,主人醒~阅读全文

posted @ 2008-08-29 16:19 礼拜一 阅读(193) | 评论 (0) 编辑 |

摘要: 用户控件与自定义控件的异同阅读全文

posted @ 2008-08-26 18:34 礼拜一 阅读(152) | 评论 (0) 编辑 |

摘要: C#中抽象类和接口的区别 阅读全文

posted @ 2008-08-15 16:00 礼拜一 阅读(6690) | 评论 (7) 编辑 |

摘要: 远程获取图片文件流阅读全文

posted @ 2008-08-14 14:57 礼拜一 阅读(570) | 评论 (0) 编辑 |

摘要: 有关Split的一些方法~阅读全文

posted @ 2008-08-13 16:29 礼拜一 阅读(202) | 评论 (1) 编辑 |

摘要: 手机号码搞成中间4位用*隐藏起来的那种形式~阅读全文

posted @ 2008-03-10 14:17 礼拜一 阅读(525) | 评论 (0) 编辑 |

摘要: asp.net定制简单的错误处理页面~~阅读全文

posted @ 2008-03-03 12:32 礼拜一 阅读(124) | 评论 (0) 编辑 |

摘要: c#编程好习惯~阅读全文

posted @ 2008-02-16 11:52 礼拜一 阅读(225) | 评论 (1) 编辑 |

摘要: 提高C#编程的50个要点阅读全文

posted @ 2008-02-05 21:14 礼拜一 阅读(497) | 评论 (0) 编辑 |

摘要: AJAX的简单例子~(zt)阅读全文

posted @ 2008-01-29 16:59 礼拜一 阅读(342) | 评论 (0) 编辑 |

摘要: 线程间操作无效: 从不是创建控件“”的线程访问它~~~的解决方法~阅读全文

posted @ 2008-01-28 14:36 礼拜一 阅读(12407) | 评论 (5) 编辑 |

摘要: ComboBox怎么不绑定而设置Text和Value阅读全文

posted @ 2008-01-14 10:43 礼拜一 阅读(581) | 评论 (0) 编辑 |

摘要: VS2005里,做个DLL让ASP调用貌似没有2003里那么复杂了~ 当然了,你按照2003的思路做也能实现的~阅读全文

posted @ 2008-01-11 11:06 礼拜一 阅读(287) | 评论 (1) 编辑 |

摘要: delegate.BeginInvoke跟control.invoke ┅ 阅读全文

posted @ 2007-12-26 10:48 礼拜一 阅读(1305) | 评论 (6) 编辑 |

摘要: Control.InvokeRequired 属性~阅读全文

posted @ 2007-12-25 22:39 礼拜一 阅读(4492) | 评论 (2) 编辑 |

摘要: winform 安装部署(转)阅读全文

posted @ 2007-12-24 16:27 礼拜一 阅读(346) | 评论 (0) 编辑 |

摘要: Loading a DataGridView with a BackgroundWorker with the 2.0 Framework.阅读全文

posted @ 2007-12-18 20:03 礼拜一 阅读(141) | 评论 (2) 编辑 |

摘要: (C#)利用反射动态调用类成员[转载] 阅读全文

posted @ 2007-11-23 14:57 礼拜一 阅读(812) | 评论 (0) 编辑 |

摘要: Net中的反射使用入门 阅读全文

posted @ 2007-11-23 11:50 礼拜一 阅读(142) | 评论 (0) 编辑 |

摘要: 线程池在web上的简单应用 阅读全文

posted @ 2007-11-19 11:00 礼拜一 阅读(105) | 评论 (4) 编辑 |

摘要: 去除数组中的重复项~阅读全文

posted @ 2007-11-14 11:35 礼拜一 阅读(323) | 评论 (1) 编辑 |

摘要: 在页面提交时,显示提交中loading阅读全文

posted @ 2007-11-08 14:18 礼拜一 阅读(147) | 评论 (0) 编辑 |

摘要: 利用游标循环进行更新插入的SQL事务语句 ~阅读全文

posted @ 2007-11-08 13:52 礼拜一 阅读(511) | 评论 (0) 编辑 |

摘要: DataSetHelper——操作DataSet的工具类~阅读全文

posted @ 2007-11-08 11:39 礼拜一 阅读(1520) | 评论 (2) 编辑 |

摘要: 单个页面Request编码方式的改变,无需改动Web.config~阅读全文

posted @ 2007-11-07 14:38 礼拜一 阅读(1013) | 评论 (2) 编辑 |

摘要: Bitmap.save(): A generic error occurred in GDI+阅读全文

posted @ 2007-11-05 15:51 礼拜一 阅读(2012) | 评论 (0) 编辑 |

摘要: ASP.NET的错误处理机制 阅读全文

posted @ 2007-11-01 13:31 礼拜一 阅读(415) | 评论 (1) 编辑 |

摘要: 请慎用ASP.Net的validateRequest="false"阅读全文

posted @ 2007-11-01 13:08 礼拜一 阅读(537) | 评论 (1) 编辑 |

摘要: 各种各式各样的图片缩略水印静态,注释写的不多~~~阅读全文

posted @ 2007-10-31 11:59 礼拜一 阅读(69) | 评论 (0) 编辑 |

摘要: 别处看的一个C#的分页控件代码,等有空了研究一下的~~阅读全文

posted @ 2007-10-27 09:55 礼拜一 阅读(223) | 评论 (1) 编辑 |

摘要: 在MasterPage中检验session是否存在~阅读全文

posted @ 2007-10-26 17:48 礼拜一 阅读(545) | 评论 (0) 编辑 |

摘要: C#编程规范~阅读全文

posted @ 2007-10-11 16:41 礼拜一 阅读(1737) | 评论 (1) 编辑 |

摘要: 使用C#格式化字符串 阅读全文

posted @ 2007-10-11 16:38 礼拜一 阅读(3948) | 评论 (2) 编辑 |

摘要: GridView的一些技巧~阅读全文

posted @ 2007-09-14 11:51 礼拜一 阅读(170) | 评论 (0) 编辑 |

摘要: 编写代码创建DataTable对象 阅读全文

posted @ 2007-09-14 11:04 礼拜一 阅读(956) | 评论 (0) 编辑 |

摘要: DataBinder.Eval用法范例阅读全文

posted @ 2007-09-10 15:36 礼拜一 阅读(68) | 评论 (0) 编辑 |

摘要: Request获取url信息的各种方法比较阅读全文

posted @ 2007-08-28 15:25 礼拜一 阅读(133) | 评论 (0) 编辑 |

摘要: 关于SqlDataReader关闭后的connection关闭的做法~阅读全文

posted @ 2007-08-06 15:35 礼拜一 阅读(549) | 评论 (0) 编辑 |

摘要: C#中自定义邮件发送类(支持多人多附件)阅读全文

posted @ 2007-07-17 14:20 礼拜一 阅读(1435) | 评论 (3) 编辑 |

摘要: 属性结合了字段和方法的多个方面。对于对象的用户,属性显示为字段,访问该属性需要完全相同的语法。对于类的实现者,属性是一个或两个代码块,表示一个 get 访问器和/或一个 set 访问器。当读取属性时,执行 get 访问器的代码块;当向属性分配一个新值时,执行 set 访问器的代码块。不具有 set 访问器的属性被视为只读属性。不具有 get 访问器的属性被视为只写属性。同时具有这两个访问器的属性是读写属性。阅读全文

posted @ 2007-06-20 15:25 礼拜一 阅读(138) | 评论 (0) 编辑 |

摘要: GridView控件修改含有DropDownList控件阅读全文

posted @ 2007-06-16 14:42 礼拜一 阅读(176) | 评论 (0) 编辑 |

摘要: 从数据库导出数据到word、excel、.txt阅读全文

posted @ 2007-06-08 14:29 礼拜一 阅读(219) | 评论 (1) 编辑 |

摘要: 经常需要在开发中使用Excel COM,为简化使用写了这个类,感觉还是不太方便。
阅读全文

posted @ 2007-06-07 11:29 礼拜一 阅读(165) | 评论 (0) 编辑 |

摘要: 导出导入Excel(DataSet,DataGrid) 阅读全文

posted @ 2007-06-06 14:51 礼拜一 阅读(340) | 评论 (1) 编辑 |

摘要: SByte.TryParse 方法 (String, SByte)的C#例子阅读全文

posted @ 2007-06-06 10:59 礼拜一 阅读(1240) | 评论 (0) 编辑 |

摘要: C#加水印~阅读全文

posted @ 2007-06-04 11:41 礼拜一 阅读(890) | 评论 (0) 编辑 |

摘要: C# GridView 排序及分页 阅读全文

posted @ 2007-06-04 10:00 礼拜一 阅读(1990) | 评论 (0) 编辑 |

摘要: 在asp.net 2.0中,可以强制对viewstate进行分段传输了,使用的是Page.MaxPageStateFieldLength 属性,可以设置viewstate中,每个页面状态字段的最大字节数。格式如下,要在WEB.CONFIG文件里设置的:阅读全文

posted @ 2007-05-21 14:23 礼拜一 阅读(60) | 评论 (0) 编辑 |

摘要: C#上传类,可自主添加文件允许类型,可强制命名~阅读全文

posted @ 2007-05-16 18:42 礼拜一 阅读(348) | 评论 (1) 编辑 |

摘要: 针对Repeater里的Button控件进行点击后置为disabled的代码片断,防止用户重复点击阅读全文

posted @ 2007-05-16 14:26 礼拜一 阅读(364) | 评论 (0) 编辑 |

摘要: string script = ClientScript.GetPostBackEventReference(this.Button_OK, null);阅读全文

posted @ 2007-05-16 14:22 礼拜一 阅读(157) | 评论 (0) 编辑 |

摘要: const 和 readonly 的区别,总是不太清楚,于是查了查资料...阅读全文

posted @ 2007-04-30 15:54 礼拜一 阅读(158) | 评论 (0) 编辑 |

摘要: 在看2.0里的基于角色的安全技术,用了用提供的一些控件,如LOGIN控件,注册控件等。没有用它的那个自带的ASPNETDB.MDF的库,直接连接的我本地的SQL。连接代码在web.config中,在CS里直接读取。在web.config中重新定义了membership和roleManager,指向了我自己的类,覆写了基类的一些东东。在web.config中规定了页面需要的权限,实现了分权限的浏览。阅读全文

posted @ 2007-04-19 16:28 礼拜一 阅读(3916) | 评论 (7) 编辑 |

摘要: Table控件拖一个到窗体作为动态表格的容器,设置一下相关属性,比如BorderStyle什么的。拖两个TextBox,一个按钮过去,然后在按钮的Click事件里编写下边的代码。。。阅读全文

posted @ 2007-04-19 10:29 礼拜一 阅读(3306) | 评论 (3) 编辑 |

摘要: 在C#中的数组对象,可以用Reverse()方法颠倒数组中的元素顺序。Reverse()方法是一个静态方法,所以作为参数将需要颠倒顺序的数组元素传递给Reverse()方法。阅读全文

posted @ 2007-04-18 16:57 礼拜一 阅读(1485) | 评论 (0) 编辑 |