摘要: 一个参数的执行:string sqlstr = "select count(*) from Users where UserName = @Username"; //打开数据库连接conn.Open(); //创建命令对象SqlCommand cmd = new SqlCommand(sqlstr,... 阅读全文
posted @ 2011-08-23 15:52 王永华 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 动态绑定TreeVewusing System;using System.Collections.Generic;using System.Data;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.... 阅读全文
posted @ 2011-08-23 10:50 王永华 阅读(102) 评论(0) 推荐(0) 编辑