03 2019 档案

摘要:一、ListView类 1、常用的基本属性: (1)FullRowSelect:设置是否行选择模式。(默认为false) 提示:只有在Details视图该属性才有意义。 (2) GridLines:设置行和列之间是否显示网格线。(默认为false)提示:只有在Details视图该属性才有意义。 (3 阅读全文
posted @ 2019-03-28 18:21 咖啡无眠 阅读(25322) 评论(0) 推荐(2) 编辑
摘要:private void dataGridView1_DoubleClick(object sender, EventArgs e) { Point hit = this.dataGridView1.PointToClient(Cursor.Position); DataGridView.HitTe 阅读全文
posted @ 2019-03-28 17:55 咖啡无眠 阅读(749) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Text;using System.Security.Cryptography;using System.IO;using System.Management;//引入命名空间 namespace Comm{ public class DataEn 阅读全文
posted @ 2019-03-27 16:02 咖啡无眠 阅读(328) 评论(0) 推荐(0) 编辑
摘要:若想将 List<T>作为DataGridView的数据源,然后后续还想继续操作的话,需要将List<T>赋值给BindingList对象, 然后直接将BindingList赋值给DataGridView.DataSource, 如此直接操作BindingList对象时,DataGridView的结 阅读全文
posted @ 2019-03-25 15:58 咖啡无眠 阅读(4795) 评论(1) 推荐(1) 编辑
摘要://获取当前程序集的完整路径加上EXE的名称 string binPath = Assembly.GetExecutingAssembly().Location; Console.WriteLine(binPath); //获取当前程序集的完整路径 binPath = Directory.GetCu 阅读全文
posted @ 2019-03-25 09:28 咖啡无眠 阅读(4025) 评论(0) 推荐(0) 编辑
摘要:我们将ASP.NET程序从IIS6移植到IIS7,可能运行提示以下错误: HTTP 错误 500.23 - Internal Server Error 检测到在集成的托管管道模式下不适用的 ASP.NET 设置。 为什么会出现以上错误? 在IIS7的应用程序池有两种模式,一种是“集成模式”,一种是“ 阅读全文
posted @ 2019-03-24 15:02 咖啡无眠 阅读(686) 评论(0) 推荐(0) 编辑
摘要://sql server 身份验证 连接字符串 private string ConnstrSqlServer = "server=服务器名称;uid=登录名称;pwd=登录密码;database=数据库名称"; //windows 身份验证连接字符串 private string ConnstrW 阅读全文
posted @ 2019-03-24 14:51 咖啡无眠 阅读(13563) 评论(0) 推荐(0) 编辑
摘要:select TABLE_NAME from INFORMATION_SCHEMA.TABLES 这样视图也会被查询出来 select * from INFORMATION_SCHEMA.TABLES select TABLE_NAME from INFORMATION_SCHEMA.TABLES 阅读全文
posted @ 2019-03-24 12:00 咖啡无眠 阅读(1411) 评论(0) 推荐(0) 编辑
摘要:概念 触发器是一种特殊类型的存储过程,不由用户直接调用。创建触发器时会对其进行定义,以便在对特定表或列作特定类型的数据修改时执行。 触发器可以查询其他表,而且可以包含复杂的 SQL 语句。 它们主要用于强制服从复杂的业务规则或要求。 例如,您可以根据客户当前的帐户状态,控制是否允许插入新订单。触发器 阅读全文
posted @ 2019-03-14 18:45 咖啡无眠 阅读(592) 评论(0) 推荐(0) 编辑
摘要:概念 存储过程(Stored Procedure):已预编译为一个可执行过程的一个或多个SQL语句。 创建存储过程语法 CREATE proc | procedure procedure_name [{@参数数据类型} [=默认值] [output], {@参数数据类型} [=默认值] [outpu 阅读全文
posted @ 2019-03-14 18:44 咖啡无眠 阅读(354) 评论(0) 推荐(0) 编辑
摘要:新方法 insert into TblClass output inserted.tClassId values('Hi~班','英语班') 或 insert into TblClass(say,class) output inserted.tClassId values('Hi~班','英语班') 阅读全文
posted @ 2019-03-14 16:15 咖啡无眠 阅读(1896) 评论(0) 推荐(0) 编辑
摘要:实际例子: 阅读全文
posted @ 2019-03-11 19:55 咖啡无眠 阅读(1829) 评论(0) 推荐(1) 编辑
摘要:<script type="text/javascript"> //1。扩展jQuery $.fn.selectRange = function (start, end) { var curObj = $(this).get(0); if (!curObj) return; else if (cur 阅读全文
posted @ 2019-03-10 13:52 咖啡无眠 阅读(296) 评论(0) 推荐(0) 编辑
摘要:private void button1_Click(object sender, EventArgs e) { string name = textBox1.Text; int age = Convert.ToInt32(textBox2.Text.Trim()); int? height = t 阅读全文
posted @ 2019-03-07 10:11 咖啡无眠 阅读(2323) 评论(0) 推荐(1) 编辑

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