摘要:
第一种:SQL分页的方法 第页 :3条 显示第4页 -- 越过多少条(4-1)*3 取多少条 3 select top 3 * from UserInfo where id not in ( select top ((4-1)*3) id from UserInfo order by UserId 阅读全文
摘要:
/// <summary> /// 递归方式 : 思路简单但效率比循环方式低,递归次数越多,性能越低 /// </summary> /// <param name="n"></param> /// <returns></returns> public static int Fn(int n) { i 阅读全文
摘要:
根据窗体名称创建窗体; /// <summary> /// 手动根据窗体名称创建窗体; /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button1_Click(o 阅读全文
摘要:
对当前运行程序,可用如下程序获取当前的命名空间、类名、方法名: 1. // 0为本身的方法;1为调用方法 GetFrame(1) 2.// 方法名GetFrame(1).GetMethod().Name; 3. // 类名 GetFrame(1).GetMethod().ReflectedType. 阅读全文
摘要:
c#用户登陆方法数据库 /// <summary> /// 用户登陆 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnLogin_Click(object se 阅读全文
摘要:
C#读取数据库表字段名和值 string SqlText1 = "SELECT * FROM UserInfo"; SqlDataReader sReader = SqlHelper.ExecuteReader(SqlText1, SqlHelper.GetSqlConnection()); sRe 阅读全文
摘要:
StreamReader和StreamWrite操作文件 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threa 阅读全文
摘要:
FileStream类读取文件,写入文件 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tas 阅读全文
摘要:
Path类 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _ 阅读全文
摘要:
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _01文件相关 阅读全文