自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(31)
  • 收藏
  • 关注

转载 winform在线操作office--dsoframerocx第三方控件

public Form1() { InitializeComponent(); RegControl();//注册控件 axFramerControl1.Menubar = false;//file栏 axFramerControl1.Titlebar = fa...

2018-09-03 22:00:00 587

转载 Dapper操作

public const string connString = "Data Source=.;Initial Catalog=test;User ID=sa;Password='qq'"; private void dapperTest_Click(object sender, EventArgs e) { ...

2018-08-03 23:36:00 82

转载 ado.net入门

//1.0连接字符串 string conStr = "Data Source=.;Initial Catalog=test;User ID=sa;Password='qwertyu'"; //2.0返回第行第一列结果 using (SqlConnection conn = new ...

2018-08-02 23:02:00 96

转载 解决Win10 中打开VS2012 出现“ASP.NET 4.0 尚未在 Web 服务器上注册”

iis 勾上net4.5或以上(或者打补丁http://download.microsoft.com/download/A/0/2/A02C37E0-77F7-448A-BD5C-F66AB1F78DBC/VS11-KB3002339.exe)转载于:https://www.cnblogs.com/junhuang/p/8563079.html...

2018-03-13 22:12:00 355

转载 后台调用前台方法

Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "<script>closeWin();</script>");转载于:https://www.cnblogs.com/junhuang/p/6889851.html

2017-05-22 15:51:00 149

转载 DataTable和List互转

/// <summary> /// list转datatable /// </summary> /// <typeparam name="T"></typeparam> /// <param name="collection"></par...

2017-02-27 11:09:00 107

转载 读取Excel

public static class ExcelHelper { #region 查询Excel /// <summary> /// 将Excel文件导出至DataTable(第一行作为表头) /// </summary> /// <param ...

2017-02-24 13:55:00 75

转载 压缩解压

public class ZipHerlper { #region 压缩zip public static bool CreateZipDirectory(string dirPath, string zipFilePath) { bool success = false; ...

2017-02-24 11:49:00 80

转载 winform语音提示

1 public static class voiceHelper 2 { 3 public static System.Speech.Synthesis.SpeechSynthesizer synth; 4 /// <summary> 5 /// 语音提示 6 /// &l...

2017-02-06 09:43:00 266

转载 oracle暂停启约束

暂停约束select 'alter table '||table_name||' disable constraint '||constraint_name||';' from user_constraints where constraint_type='R';启用约束select 'alter table '||table_name||' enable constraint ...

2016-09-14 10:39:00 112

转载 winform线程委托给主线程

1.1 private void Add()2 {3 if (this.InvokeRequired)4 {5 this.Invoke(new MethodInvoker(delegate { Add(); }));6 ...

2016-07-18 14:48:00 302

转载 修改系统时间

//imports SetLocalTime function from kernel32.dll [DllImport("kernel32.dll", SetLastError=true)] public static extern int SetLocalTime (ref SystemTime lpSystemTime); //struct for date/t...

2015-09-30 10:17:00 81

转载 动态调用webService

using Microsoft.CSharp;using System;using System.CodeDom;using System.CodeDom.Compiler;using System.Collections.Generic;using System.IO;using System.Linq;using System.Net;usin...

2015-09-23 10:04:00 61

转载 一个很简单的弹窗

<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title&g...

2015-06-19 10:37:00 93

转载 文件流

使用文件流读写大文件 1 //文件流只能单一读取或者写入操作,文件流需要做自动释放,不然占据文件句柄造成其它进程无法访问 2 //1.、将数据读取到byte数组,2.将byte数组中的数据写入到文件 3 using (FileStream fsReader = new FileStream(txtBigFile.Text, ...

2015-04-12 21:56:00 53

转载 文件下载

1.1 Response.ContentType = "application/x-jpg-compressed";//下载jpg格式文件2 Response.AddHeader("Content-Disposition", "attachment;filename=z.jpg");//下载后的名字为z.jpg3 str...

2015-03-25 17:21:00 57

转载 文件上传

fileupload服务控件上传int leng = FileUpload1.PostedFile.ContentLength;//获取文件大小 string fileName = FileUpload1.PostedFile.FileName;//获取文件名 if (!string.IsNullOrEmpty(fileNa...

2015-03-25 16:48:00 52

转载 简单的反射Demo

1 private void button1_Click(object sender, EventArgs e) 2 {//计时器 3 System.Diagnostics.Stopwatch watcher = new System.Diagnostics.Stopwatch(); 4 //开启...

2015-01-12 15:01:00 51

转载 sql--类型转换函数

--类型转换函数--+首先是一个算术运算符,只有当两边都是字符串类型的时候才是连接符select 1+'a'--cast(源数据 as 目标类型)select cast(1 as CHAR)+'a'select datalength(cast(1 as CHAR))--convert(目标类型,源数据,格式)select convert(char(1),1...

2014-11-20 22:35:00 84

转载 sql复习-分组

--数据分组-统计信息--查询每个班级的总人数select COUNT(8) from Studentselect ClassId, COUNT(*) from Student group by ClassId--得到男生,女生的总人数 group by按指定的字段进行分类select sex, COUNT(*) from Student group by se...

2014-11-20 22:33:00 90

转载 sql复习-聚合函数

--SQL聚合函数--count():求满足条件的记录数,与值无关max():求最大值min():求最小值sum():求和 只能对数值进行计算不能运用于日期和字符串avg():求平均值--1.求整个表的记录数,随意传入参数,因为它与具体的值无关,只与记录数有关select COUNT(sex) from Student--查询班级年龄最小的学员和最大...

2014-11-20 22:31:00 224

转载 简单excel的导入导出

需引用程序集导出: List<类型> lists = new List<类型>; //数据是存储在工作表中的,但是创建工作表需要先创建出工作薄。有了工作薄就可以根据工作薄创建出工作表 //1.创建出工作薄 HSSFWorkbook workbook = new HSS...

2014-11-07 15:40:00 91

转载 checkbox全选jquery

<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>selectAll&...

2014-09-07 17:39:00 71

转载 根据用户的名字获取名字对应的拼音

/// <summary> /// 根据用户的名字获取名字对应的拼音 /// </summary> /// <param name="name"></param> /// <returns></returns> publi...

2014-06-15 00:01:00 767

转载 datagridview,listView,treeViewd的数据绑定

转载于:https://www.cnblogs.com/junhuang/p/3778909.html

2014-06-09 22:28:00 161

转载 使用sql语句创建数据库和数据表

create database TestSchoolon primary( name='TestSchool_data',--逻辑名称 size=3MB, --初始大小 FileGrowth=10%,--每次增长按总大小的10%增长 maxSize=1000mb,--最大容量 FileName='d:\qqaa\vv\cc\TestSchool_data....

2014-06-06 20:37:00 686

转载 数据集的使用

DataSet ds=new DataSet();//创建数据集--就是数据库,在内存中 string sql="select * from studnet"; string connStr="Data Source=.;Initial Catalog=MySchoolMoreData;Integrated Security=...

2014-06-06 16:48:00 169

转载 Ado.net的初步链接

string connStr = "Data Source=.;Initial Catalog=MySchoolMoreData;Integrated Security=True"; try { using (SqlConnection conn = new SqlConne...

2014-06-04 22:40:00 69

转载 SQL的小技巧

use [Master]go切换当前数据库--自动创建文件夹exec sp_configure 'show advanced options',1goRECONFIGUREgoexec sp_configure 'xp_cmdshell',1goRECONFIGUREgoexec xp_cmdshell 'mkdir d:\qqaa\vv\cc'--创建文件夹转载于:ht...

2014-06-01 14:27:00 82

转载 SQL的一些基本知识

Len():得到当前指定字符串的个数,与中英文无关DataLength():得到当前字符串占据的字节数,与字符类型有关char:char类型空间一旦分配,就不会做自动收缩,就算没有存储满也需要占据指定分配的空间,如果存储过多,就会报错--二进制数据截断的错误,不能越界VarChar它会根据存储的内容的长度自动收缩,如果存储的内容小于指定的空间范围,那么多余的空间会收回。所以当...

2014-06-01 14:25:00 62

转载 Microsoft SQLServer有四种系统数据库

Microsoft SQLServer有四种系统数据库:1.master数据库 master数据库记录SQLServer系统的所有系统级别信息。它记录所有的登录帐户和系统配置设置。master数据库是这样一个数据库,它记录所有其它的数据库,其中包括数据库文件的位置。master数据库记录SQLServer的初始化信息,它始终有一个可用的最新master数据库备份。2.tempdb...

2014-06-01 14:04:00 1010

空空如也

空空如也

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

TA关注的人

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