- 博客(11)
- 收藏
- 关注
原创 生成随机码
首先建立一个getnum.aspx的网页,再复制下面代码 using System; using System.Collections; using System.Configuration; using System.Data; using System.Web;
2011-09-21 09:42:01
737
原创 水晶报表dataset与参数传值的设置
string str_select = "select * from xt_depart_kkb where months='" + m_mmonths + "'and xxly like'%" + m_ddepartment + "%'or xxly='各单位' or xxly
2011-09-07 08:55:59
805
原创 给combox设置初始值
当combox的DropDownList设为dropdownlist时,给combox设置初始值 cbbkpi.Items.Clear(); cbbkpi.Items.Add("--请选择--"); cbbkpi.SelectedIndex = 0; cbbxxly.It
2011-08-30 17:49:11
2768
原创 C#中调用SQL存储过程(带输入参数的例子)
SqlConnection conn = pbvar.getconn();//调味用公共类 conn.Open(); SqlCommand sqlcmd =new SqlCommand("xt_Company_i
2011-08-28 15:20:27
846
原创 选择listview数据,传给另外一个窗口
private void toolStripButton2_Click(object sender, EventArgs e)//修改用户信息 { try { if (lvwu
2011-08-24 17:07:42
1176
原创 判断输入的字符是否为数字
#region 判断输入的字符是否为数字 public bool IsNum(string txt) { try { int N = Convert.ToIn
2011-08-24 10:12:42
430
原创 按照listview 的列数来导入数据
#region listview 所有listview导入数据 public void lvwkpi(ListView listview1, string sqlstrlvw) { SqlCommand sqlcmd
2011-08-24 10:12:09
423
原创 公用sqlcommand 函数
#region 执行sqlcommand 命令 public SqlCommand getcom(string m_str_sqlstr) { SqlConnection sqlconn=this.getcon()
2011-08-24 10:11:24
352
原创 数据库连接函数并读取TXT文本中的数据
#region 数据库连接函数 public SqlConnection getcon() { StreamReader sr = new StreamReader("config.txt");
2011-08-24 10:08:55
550
原创 回车时下一个控件获得焦点
private void txtpwd_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)13) this.bt
2011-08-24 10:07:10
342
原创 C# 数据库连接设置并把设置写入到txt文本中
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq
2011-08-24 10:05:23
724
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人