05 2017 档案

摘要:1.0 版本 1.1 服务器端 using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; usin 阅读全文
posted @ 2017-05-30 17:18 逍遥小天狼 阅读(196) 评论(0) 推荐(0) 编辑
摘要:1 摇奖机 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using S 阅读全文
posted @ 2017-05-29 23:12 逍遥小天狼 阅读(219) 评论(0) 推荐(0) 编辑
摘要:“System.InvalidOperationException”类型的未经处理的异常在 System.Windows.Forms.dll 中发生 其他信息: 线程间操作无效: 从不是创建控件“label1”的线程访问它。 解决方法: 1 构造方法中添加 CheckForIllegalCrossT 阅读全文
posted @ 2017-05-29 17:04 逍遥小天狼 阅读(10996) 评论(0) 推荐(0) 编辑
摘要:1 进程 using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; nam 阅读全文
posted @ 2017-05-29 15:24 逍遥小天狼 阅读(263) 评论(0) 推荐(0) 编辑
摘要:1 get Get方式将数据发送到服务端,那么会将用户在表单中的数据放置到浏览器的地址栏中发送到服务器 格式:表单元素name属性的值=用户输入的值 请求地址:http://localhost:59448/GetAndPost.ashx?txtName=123&txtPwd=123 接收方式: st 阅读全文
posted @ 2017-05-25 17:57 逍遥小天狼 阅读(214) 评论(0) 推荐(0) 编辑
摘要:说明:NPOI组件的使用 1 添加引用 2 代码 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using S 阅读全文
posted @ 2017-05-22 17:57 逍遥小天狼 阅读(241) 评论(0) 推荐(0) 编辑
摘要:说明:使用微软提供的拼音组件ChnCharInfo.dll 1 方法一 //01 构建拼音对象 ChineseChar cc = new ChineseChar(txtHanZi.Text[0]); //02 创建拼音字符 string[] pinyin = cc.Pinyins.ToArray() 阅读全文
posted @ 2017-05-20 17:27 逍遥小天狼 阅读(154) 评论(0) 推荐(0) 编辑
摘要:说明:代码生成器有很多,我们目前介绍的是动软代码生成器 1 打开动软,连接数据库,新建项目,选择要生成的表和地址,生成 2 自定义模板生成 <#@ template language="c#" HostSpecific="True" #> <#@ output extension= ".cs" #> 阅读全文
posted @ 2017-05-19 10:49 逍遥小天狼 阅读(218) 评论(0) 推荐(0) 编辑
摘要:说明:版本控制器Svn的使用,安装教程不再多说 VisualSVN-Server--项目经理 TortoiseSVN--右击的时候显示 VisualSVN-- visual studio中使用 1 搭建服务器(项目经理) 1.1 启动服务 2.1 打开visualSVN-server 软件,并创建, 阅读全文
posted @ 2017-05-16 16:52 逍遥小天狼 阅读(175) 评论(0) 推荐(0) 编辑
摘要:说明:文档型关系数据库,多用于移动端 1.1 添加引用 ` 1.1.1 System.Data.SQLite.xml 1.1.2 System.Data.SQLite.dll 1.2 连接字符串的设置 string connStr = @"data source=F:\Users\home\Docu 阅读全文
posted @ 2017-05-16 13:18 逍遥小天狼 阅读(193) 评论(0) 推荐(0) 编辑
摘要:01 点谁谁哭 <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title 阅读全文
posted @ 2017-05-12 14:21 逍遥小天狼 阅读(250) 评论(0) 推荐(0) 编辑
摘要:jQuery本质还是封装好的js,只不过代码更简洁,而做的更好 使用JQuery选择器会返回一个jQuery对象,其本质是dom数组,jQuery对象可以调用JQuery方法. 1 选择器 1.1 基本选择器 1.1.1 id选择器 jquery ==> $('#btnShow'); js ==> 阅读全文
posted @ 2017-05-12 10:48 逍遥小天狼 阅读(202) 评论(0) 推荐(0) 编辑
摘要:1:加法计算器 <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title 阅读全文
posted @ 2017-05-09 17:54 逍遥小天狼 阅读(354) 评论(0) 推荐(0) 编辑
摘要:说明:DOM document object model 文档对象模型.将所有的标记加载到内存中,以树形结构处理 1.1 使用JavaScript操作DOM,主要包括两个部分 Browser对象:BOM 指的是window.*** Html Dom对象: 指的是document.*** 1.2 BO 阅读全文
posted @ 2017-05-09 11:59 逍遥小天狼 阅读(203) 评论(0) 推荐(0) 编辑
摘要:说明 :JS比较常用 1.1 常见的两种使用方式: 1.1.1 直接使用 <script>alert('Hello,World')</script> 1.1.2 引用js文件 <script src="JS/JSHelloWorld.js"></script> 1.2 一个简单实例 <!DOCTYP 阅读全文
posted @ 2017-05-08 17:56 逍遥小天狼 阅读(213) 评论(0) 推荐(0) 编辑
摘要:说明:好比事件 需要了解两个表 inserted表和deleted表 新增数据:先把数据添加到inserted中,然后添加到对应的表中 删除数据:把数据添加到deleted表中,然后删除数据 更新操作:把旧的数据放入到deleted表中,把新的数据放入到inserted表中.更新数据 1.1 语法 阅读全文
posted @ 2017-05-08 15:06 逍遥小天狼 阅读(157) 评论(0) 推荐(0) 编辑
摘要:说明 :存储过程类比C#中的方法 1.1 语法:create procedure 存储过程名称 @变量 类型[=默认值] [output], @变量 类型[=默认值] [output] , ... as begin 内容 end 1.2 创建一个数据表,并添加数据 use DemoDB create 阅读全文
posted @ 2017-05-07 11:28 逍遥小天狼 阅读(198) 评论(0) 推荐(0) 编辑
摘要:说明:比较常用 1 事务的四大特性: 1.1 原子性atomicity 一个事务中包含的多个SQL语句,要么同时成功,要么同时失败. 1.2 一致性consistency 事务必须使数据库从从一个一致性状态变成另外一个一致性状态.(银行转账) 1.3 隔离性 isolation 各个事务执行互不干扰 阅读全文
posted @ 2017-05-06 22:32 逍遥小天狼 阅读(159) 评论(0) 推荐(0) 编辑
摘要:说明:视图就是虚拟表 语法 create View VW_视图名 as SQL语句 --创建视图 create View VW_UserInfoNoDelete as select StuName from UserInfo where Delflag = 0; --使用视图 select * fr 阅读全文
posted @ 2017-05-06 20:24 逍遥小天狼 阅读(127) 评论(0) 推荐(0) 编辑
摘要:说明:游标给指针有点儿相似,相当于datareader(可能非常不恰当) 定义游标-打开游标-使用游标-关闭游标-释放游标 阅读全文
posted @ 2017-05-06 20:10 逍遥小天狼 阅读(130) 评论(0) 推荐(0) 编辑
摘要:说明:分页显示在实际业务中经常需要用到,其SQL语句分两种 1:分页显示SQL语句 --方法一:跳过多少行,选中多少行 --每页n条,选择第m页--n=2 m=3 --select top(n) * from 表 where 主键 not in (select top(m-1)*n 主键 from 阅读全文
posted @ 2017-05-06 16:10 逍遥小天狼 阅读(141) 评论(0) 推荐(0) 编辑
摘要:cmd.CommandText = "Update UserInfo set DelFlag=1 where UserId = @UserId"; //方法一 cmd.Parameter.AddWithValue("@UserId",deleteUserId); //方法二 SqlParameter 阅读全文
posted @ 2017-05-05 11:13 逍遥小天狼 阅读(139) 评论(0) 推荐(0) 编辑
摘要:说明:比较完整的增删查改 1:新建窗体项目,(命名规范) 2:添加dataGridView控件 3:通过AppConfig创建连接字符串 <connectionStrings> <add name="connStr" connectionString="server=.;uid=sa;pwd=sa; 阅读全文
posted @ 2017-05-04 18:02 逍遥小天狼 阅读(224) 评论(0) 推荐(0) 编辑
摘要:说明 :观察者模式又叫发布-订阅模式,其中又涉及到中介者模式 1 结构 2 创建Main窗体(中介者),ChildForm1(发布者),ChildForm2(订阅者),ChildForm3(订阅者), 2.1 ChildForm1中添加按钮,当按钮被点击是ChildForm2(订阅者),ChildF 阅读全文
posted @ 2017-05-04 14:10 逍遥小天狼 阅读(256) 评论(0) 推荐(0) 编辑
摘要:说明 :步步为营-27-事件以前用委托做过窗体之间传值 1 通过属性数据交互 1.1 在子窗体中添加属性Form1属性 public Form1 Form1 { get; set; } 1.2 在父窗体中添加SetText 方法,来给文本框赋值 public void SetText(string 阅读全文
posted @ 2017-05-03 17:59 逍遥小天狼 阅读(223) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示