- 博客(4)
- 收藏
- 关注
转载 c#.net常用函数列表
1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=curre
2007-05-26 16:32:00
451
转载 转: c#中与数据库打交道
c#中与数据库打交道,免不了要用到各种sql语句,而给sql语句传参数也是不可避免的。以下是我在此方面上的一点总结(高手勿见笑): 1> 直接写入法: 例如: int Id =1; string Name="lui"; cmd.CommandText="insert into TUserLogin values("+
2007-05-26 16:27:00
488
原创 转:如何实现网站在线人数以及历史访问人数的统计
1、新建一个TongJi 的数据库,添加一个 tongji 的表,在表中有一个 Number 的字段,为 int 类型,Number初值为1000;2、新建一个网站;3、新建数据库连接字符串(具体方法)并将其保存到Web.config 文件中, 节的代码如下: connectionStrings> add name="TongJiConnectionString" connec
2007-05-25 21:18:00
926
转载 C#生成安装文件后自动附加数据库的思路跟算法
using System; using System.Collections.Generic; using System.Windows.Forms; using System.Data.SqlClient; using System.Data; using System.ServiceProcess; namespace AdminZJC.DataBaseControl { /// ///
2007-05-21 14:04:00
777
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人