自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

对信仰的忠诚丶

爱,是用心行走的旅程···

  • 博客(57)
  • 资源 (13)
  • 收藏
  • 关注

原创 ADO.NET

ADO.NET是每一个初级程序员必会的内容,这里我来介绍一下ADO.NET常用的一些操作。一,首先我们准备好连接字符串。什么是连接字符串?就是指定你的程序连接哪一台计算机的什么数据库,用户名是多少,密码是多少。示例:string ConnStr="server=.;database=myDatabase;uid=sa;pwd=123";这里,我们指定了连接的地址为“.”,代表连

2013-06-28 16:27:17 512

原创 初学者使用的SQLHELPER类

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Data.SqlClient;using System.Configuration;namespace ADO.NET{    c

2013-06-28 15:24:17 600

原创 一个高效率的分页存储过程

create proc [dbo].[up_pager]--*********过程要完成的功能         @table varchar(200)='student', --表名@pageSize int=10,  --页码大小@pageNum int=2,  --当前第几页@primaryKey varchar(100)='stuid', --主键@field

2013-06-28 15:21:04 587 1

原创 ADO.NET五大对象

一. ADO.NET五大对象,及其作用(cmd里面的几个方法整理)Connection 连接对象 用于对数据库的连接操作。传入的参数为连接字符串。Commamd 命令对象 用于执行对数据库的操作 ,传入的参数可以为连接字符串或存储过程,也必须传入连接对象的实例。SqlDataReader 数据读取对象 用于对数据的读取操作,实例.Read()方法可以返回一个True或者False来判断

2013-06-28 15:18:41 1634

原创 C#实现远程控制及桌面监控功能(服务端)

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy

2013-06-27 10:34:37 11855 2

原创 C#实现简单远程控制及桌面监控功能(客户端)

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy

2013-06-27 10:32:37 11980 23

原创 事务与视图及通用分页存储过程

use N1204go---创建一个账户表if exists(select *from sysobjects where name='bank')drop table bankgocreate table bank( userName varchar(20), account money check(account>=0))go

2013-06-27 10:22:46 600

原创 T-SQL编程高级查询

select *from studentselect * from grade--多表查询select grade.*,student.stuNamefrom student,gradewhere student.stuId=grade.stuId--连接查询select * from student ainner join grade bon b.stuId=

2013-06-27 10:16:49 743

原创 存储过程

系统存储过程 说明sp_databases 列出服务器上的所有数据库。sp_helpdb 报告有关指定数据库或所有数据库的信息sp_renamedb 更改数据库的名称sp_tables 返回当前环境下可查询的对象的列表sp_columns 回某个表列的信息sp_help 查看某个表的所有信息sp_helpconstraint 查看某个表的约束sp_helpindex

2013-06-27 10:12:18 544

原创 SQL Server 全局变量

SQL Server 全局变量@@SERVERNAME    : 返回运行本地服务器的名称。 @@REMSERVER       : 返回登录记录中记载的远程SQL Server服务器的名称。 @@CONNECTIONS : 返回自上次启动SQL Server以来连接或试图连接的次数,用其可让管理人员方便地了解今天所有试图连接服务器的次数。 @@CURSOR_ROWS : 返回最后

2013-06-27 10:09:07 610

原创 建表及简单增删改查语法

--注释/*多行注释*/--使用master数据库--master代表这个数据库服务器的相关信息use mastergo--提交一个批处理--数据库的多个操作是到go这个地方就提交的服务器的--在建库建表,删除库删除表时加上go--数据库中的所有数据库的信息--select * from sysdatabases--select * from s

2013-06-27 10:08:20 798

原创 C#GDI+视屏广播接收端

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy

2013-06-27 10:02:38 658

原创 C#GDI+实现简单视屏广播功能

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy

2013-06-27 09:56:10 942

原创 C#常见异常

一、基类Exception二、常见的异常类    1、SystemException类:该类是System命名空间中所有其他异常类的基类。(建议:公共语言运行时引发的异常通常用此类)    2、ApplicationException类:该类表示应用程序发生非致命错误时所引发的异常(建议:应用程序自身引发的异常通常用此类)三、与参数有关的异常类此类异常类均派生于SystemEx

2013-06-27 09:49:58 781

原创 C#域控操作大全_节点删除_修改密码_添加用户

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;using System.Data;using System.DirectoryServices;using NJZF.SCDM.DAL.Database;

2013-06-21 15:14:07 3977

原创 C#如何进行LDAP用户校验

private bool Authenticate(string userName, string password, string domain){bool authentic = false;try{DirectoryEntry entry = new DirectoryEntry(“LDAP://”+domain, userName, password);object

2013-06-21 14:36:39 1026

原创 用C#读取LDAP记录

从LDAP读取记录,把edmworkstation和displayname这2项内容取出,放在一个dictionary中以备用.edmworkstation是用户的登记计算机名,可能含有多条记录.如果读取失败,则在dictionary中放一个"NotValid=yes"项目.private void GetLDAPInfo()           {

2013-06-21 14:18:27 1802 6

原创 C# 验证码画法

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy

2013-06-21 11:35:53 439

原创 C# 简单截屏软件

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy

2013-06-21 11:34:38 628

原创 C# GDI+各种图形画法

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy

2013-06-21 11:22:25 3876

原创 C# GDI+

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;//GDI+using System.Linq;using System.Text;using System.Windows.Forms;na

2013-06-21 11:15:12 602

原创 C# Socket编程之UDP

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy

2013-06-21 11:05:36 691

原创 C# Socket编程之TCP

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy

2013-06-21 11:02:17 608

原创 C#仿飞秋简单聊天工具

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy

2013-06-21 10:56:07 2438

原创 线程死锁与多线程访问

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy

2013-06-21 10:52:32 460

转载 如何成为一名优秀的IT威客?

在IT业,上班族程序员们都羡慕自由自在的IT威客,但事实上,做威客也不容易。360行,行行有本难念的经。孙悟空的火眼金睛厉害吧?可那是在太上老君的八卦炉中,经过七七四十九天炼出来的。要想成为一名优秀的IT威客,也要经过千百次打击,才能铸就你的金刚不坏之身!打击一:驿外断桥边,寂寞开无主初来乍到的威客新手,首先遭到的打击就是无人赏识。现在的威客很热,可以说是高手云集;而且,因为软件外包不

2013-06-21 09:49:53 929

原创 ASP.NET前台代码绑定后台变量方法总结

一般来说,在前台代码的三种位置可能会用到(绑定)后台变量:服务器端控件属性或HTML标签属性JavaScript代码中Html显示内容的位置(也就是开始标签与结束标签之间的内容,如这里(Html标签)或者这里(服务器端控件),它作为占位符把变量显示于符号出现的位置)    对于第一种位置,有一些约束条件:    (1)一般的属性要求是字符串型或数值型(下面会提到有些服务器端

2013-06-21 09:34:19 713

原创 C#向ldap导入证书

1.将证书文件使用流读入,存放在byte[]中                FileStream fs = new FileStream("c://cert//client.der", FileMode.Open, FileAccess.Read);                BinaryReader br = new BinaryReader(fs);

2013-06-21 08:51:38 1122

原创 C#获取本地计算机证书信息

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy

2013-06-18 12:24:58 3084

原创 C#线程用法及跨线程访问

我们在做窗体应用程序的时候,有时候穾获取当前窗体的信息,或者调用其他窗体的控件。这里我介绍两种方法来实现。当我们需要在窗体中调用其他窗体的控件时,我们可以用控件.CheckForIllegaCrossThreadCalls=false;例如:Button.CheckForIllegalCrossThreadCalls=false;当然我们也可以让整个窗体可以跨线程访问F

2013-06-14 10:59:09 1035

原创 C#进程与线程

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy

2013-06-14 10:12:29 552

原创 C#控件_fileSystemWatcher文件监控控件

winform里面的这个控件可以监控文件夹中的文件的删除、创建、修改等行为。首先我们需要托一个button用来开启我们的监控动作,一个textbox用来显示我们监控的文件夹的路径,另外我们还需要一个button用来打开一个文件浏览对话框来选择我们需要监控的文件夹。最后我们需要一个richtextbox来显示我们监控到的内容。using System;using Syst

2013-06-14 10:07:27 1546

原创 C#二进制流

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy

2013-06-06 16:21:32 1040

原创 C#文件的读取和写入

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy

2013-06-06 16:12:52 585

原创 C#文件流实现文件复制

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy

2013-06-06 16:09:46 1506

原创 C#文件流操作

Stream类     字节流FileStream类   文件流FileMode 操系统操作这个文件的方式FileAccess 操作系统在打开这个文件后,程序要做的事FileShare 共享方式,程序在用这个文件时,别人能早的操作1.创建流FileStream fs = new FileStream(fileName, FileMode.Open);

2013-06-06 16:07:34 646

原创 C#模拟电脑资源管理器查看文件功能

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy

2013-06-06 15:59:58 2031

原创 C#File类和FileInfo类

//File.Create("F:\\2013.01.11\\abc.txt");            //File.Copy("F:\\2013.01.11\\abc.txt", "F:\\2013.01.11\\aabc.txt");            //File.Delete("F:\\2013.01.11\\abc.txt");            //bool b=

2013-06-06 15:56:45 699

原创 C#窗体应用程序(窗体传值)MDI

第三方控件Control是Textbox的基类跨窗体传值方式属性传值:将字段写成属性进行传值静态成员传值:将变量定义成静态变量(static)\父窗体传值:  MainForm f2 = new MainForm();     f2.Show(this);MDi窗体容器:可以在父窗体中添加子窗体 Form2 f2 = new Form2();

2013-06-06 15:40:45 1402

原创 C#窗体控件之treeview

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;name

2013-06-06 15:33:59 702

C#RabbitMQ示例

C#实现连接RabbitMQ服务器简单示例!

2018-11-08

rabbitmq配置资源

rabbitmq完整资源,可以配置实现发布消息和订阅消息 !

2018-11-08

Soecket实现远程桌面监控

使用Socket实现桌面实时监控,代码中使用Hook,查看时请关闭杀毒软件

2018-06-25

轻量级ORMDapper

Dapper是一款轻量级ORM工具。如果你在小的项目中,使用Entity Framework、NHibernate来处理大数据访问及关系映射,未免有点杀鸡用牛刀。你又觉得ORM省时省力,这时Dapper将是你的不二选择。这里提供了Dapper源码。

2018-05-14

Cowboy.Sockets

TCP高性能服务器和客户端开发源码!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2018-05-14

电子手记工具

一款实用的电子日记工具,可以分类记录重要事件,工作心得。

2015-09-24

Nhibernate简单实例

简单实例,描述了Nhibernate的使用,和环境搭建。

2015-09-24

Nhibernate中文参考手册

Nhibernate中文参考手册,里面详细的介绍了很多Nhibernate的用法。

2014-02-12

IEWebdeveloper调试工具IE6IE7

该工具可以在IE67下调试,有助于开发人员IE6环境下开发

2013-12-12

C#利用ThoughtWorks.QRCode.dll创建和解析二维码

C#利用ThoughtWorks.QRCode.dll创建和解析二维码

2013-10-10

开发LDAP程序必备神器

该工具可以清晰的看到,LDAP的树形结构,查看用户dn对于ldap开发有很大的帮助

2013-09-09

C#简单学生管理系统源码程序

适用于初学者课程设计,实现了简单学生管理系统,登陆,注册,学生管理

2013-06-27

ExtJs日期时间选择控件

一个常用的ExtJs的日期时间选择控件,可以实现日期和时间的选择

2013-05-29

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除