会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
wzsst
博客园
首页
新随笔
联系
订阅
管理
2007年5月24日
用户控件的按钮事件传递到页面的方法
摘要: 用户控件.ascx 1 2 用户控件.ascx.cs 1 public event EventHandler BtnEvent;//添加事件句柄 2 3 protected void BtnQuery_Click(object sender, EventArgs e) 4 { 5 6 slLabel.Text = "共查询到" + sl1 + "条...
阅读全文
posted @ 2007-05-24 14:33 StarLight
阅读(315)
评论(0)
推荐(0)
编辑
2007年5月13日
用nullable类型对数据库中datetime字段进行操作。
摘要: 1string xddate1 = TextBox1.Text; 2 3DateTime? xddate2; 4if (xddate1.Length == 0) 5 { 6 xddate2 = null; 7 } 8 else 9 {10 xddate2 = Convert.ToDateTime(xddate1);11 }12 table1里xddate字...
阅读全文
posted @ 2007-05-13 19:59 StarLight
阅读(300)
评论(0)
推荐(0)
编辑