摘要:
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DataToBind(); } } private void D... 阅读全文
posted @ 2008-10-14 21:28
宋永波
阅读(191)
评论(0)
推荐(0)
摘要:
新建一个 Handler 类: using System;using System.Web;using System.IO;using System.Drawing;public class Handler : IHttpHandler{ public void ProcessRequest(HttpContext context) { Image image; ... 阅读全文
posted @ 2008-10-14 17:40
宋永波
阅读(241)
评论(0)
推荐(0)
摘要:
DataGrid 属性解释: AutoGenerateColumns="False" :是否为数据源的每一个字段自动创建对象。 AllowPaging="True" :是否允许分页。 PageSize="5" :分页的页数。 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.Cod... 阅读全文
posted @ 2008-10-14 14:31
宋永波
阅读(258)
评论(0)
推荐(0)
摘要:
1、Form1_Deactivate() 事件:当窗体停用时发生,也就是当前窗体被最小化时发生,可以利用此事件在当前窗体被最小化时依然执行某些任务。 2、在类关系图中选择Form窗体在属性中有个自定义属性里面加上:[DesktopCompatible(true)] 阅读全文
posted @ 2008-10-14 11:49
宋永波
阅读(167)
评论(0)
推荐(0)
摘要:
在 Pocket PC 中 DataGrid 省去了很多功能! 列如不能在 DataGrid 中添加控件 下面方法用 DataTable 作为 DataGrid 的数据源: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->private voi... 阅读全文
posted @ 2008-10-14 10:48
宋永波
阅读(288)
评论(0)
推荐(0)
摘要:
实体类: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->public class LogEntity{ private int id; public int Id { get { ret... 阅读全文
posted @ 2008-10-14 10:09
宋永波
阅读(276)
评论(0)
推荐(0)

浙公网安备 33010602011771号