11 2019 档案
摘要:public static class A { private static readonly MethodInfo GetServiceInfo; public static IApplicationBuilder My_UseStaticFiles(this IApplicationBuilde
阅读全文
摘要:using Microsoft.AspNetCore.Http; using System.Globalization; using System.Threading.Tasks; namespace Culture { public class tets { //调用我的自定义类 public v
阅读全文
摘要:来自 https://www.w3school.com.cn/cssref/pr_transition-timing-function.asp css <!DOCTYPE html> <html> <head> <style> .right_head_ul li { display: inline-
阅读全文
摘要://--创建事务 Create PROC [dbo].[proc_XXXXX] @xxx varchar(50) AS BEGIN BEGIN TRAN BEGIN TRY .....................插入 COMMIT TRAN END TRY BEGIN CATCH SELECT
阅读全文
摘要:Truncate table Menu --truncate不能对有外键的表 delete Menu delete RoleMenu SELECT * FROM sys.foreign_keys WHERE referenced_object_id=OBJECT_ID('Menu'); --找到引用
阅读全文
摘要:public static void CallPrivateMethod(object instance, string name, params object[] param) { BindingFlags flag = BindingFlags.Instance | BindingFlags.N
阅读全文
摘要:SELECT * FROM INFORMATION_SCHEMA.columns WHERE TABLE_NAME='MenuInfo' select * from sysobjects where name='MenuInfo' --查询所有表 select * from sysobjects w
阅读全文
摘要:<!DOCTYPE html> <html> <body> <table bgcolor = "black" cellspacing= "1" > <tr bgcolor= "white"> <td colspan= "4" align= "center">通讯录</td> </tr> <tr bg
阅读全文
摘要:div水平和垂直居中,text-align和vertical-align不起作用,因为标签div没有这两个属性,所以再css中设置这两个值不能居中的效果。 1. div水平居中:设置margin的左右边距为自动。margin:0 auto; 2. div中的文字居中:将div的行高设置跟其高度一样的
阅读全文
摘要:static void SubTest() { Stopwatch sw = new Stopwatch(); sw.Start(); //耗时巨大的代码 sw.Stop(); TimeSpan ts2 = sw.Elapsed; Console.WriteLine("Stopwatch总共花费{0
阅读全文
摘要:<script> var user = document.getElementById("user"); var pwd = document.getElementById("pwd"); var user_erro = document.getElementById("user_erro"); v
阅读全文
摘要:private void button2_Click(object sender, EventArgs e) { DataTable dt = new DataTable(); dt.Columns.Add("AAA", typeof(string));//0 dt.Columns.Add("BBB
阅读全文
摘要:private void button2_Click(object sender, EventArgs e) { double a = 0; List<string> list = new List<string>(); for (int i = 0; i < 100; i++) { a += 0.
阅读全文
摘要:Type helloType = typeof(Hello); //Hello是一个接口 List<Type> types = new List<Type>(); //遍历程序集 foreach (var assembly in AppDomain.CurrentDomain.GetAssembli
阅读全文
摘要:· Windows 10:“我已经更新完毕,请重启我吧主人!” · Windows 10:“好吧,主人在忙,我重启了先~” · Windows 10: “正在配置windows更新 已完成99% 请勿关闭计算机…” · 我:“纳尼!!!谁让你更新了?!谁给你的胆子重启?!” 干掉系统文件"C:\Wi
阅读全文
摘要:zai SQLQuery4.sql 文件中--BULK INSERT Table_1 from 'D:\aaaa#azzz.txt' with(fieldterminator=',',rowterminator='\n') //以逗号分开 BULK INSERT Table_1 from 'D:\a
阅读全文
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Diagnostics;
阅读全文
摘要:抽象类 抽象类中 1.只包含抽象方法, 2.包含非抽象方法和抽象方法 3.可使用get和set访问器 Example 1: public abstract class GeeksForGeeks { public abstract void gfg(); } public class Geek1 :
阅读全文
摘要:if (state == "编辑") { ht["修改人"] = Helper.用户名; ht["修改时间"] = DateTimeHelper.ServerTime; //ht["产品id"] = ; var dt = dal半成品.check_idexit(txt产品名称.Text.Trim()
阅读全文
摘要:netstat -a -n -o netstat -a -b –o
阅读全文
摘要:CD C:\mysql\bin mysqld.exe --defaults-file=C:\mysql\my.ini --initialize-insecure mysqld --install //提示安装成功后 执行 net start mysql //启动服务 net stop mysql /
阅读全文
摘要:element_obj.NewTitle.value = json_obj.NewTitle.replace(/\"/g, "\""); model.NewTitle = model.NewTitle.Replace("\"", """); model.NewContent =
阅读全文
摘要:function loadJS(url, success) { var domScript = document.createElement('script'); domScript.src = url; success = success || function () {}; domScript.
阅读全文
摘要:首先,我们要确认日志的文件名,因为硬盘上的文件名不一定是数据字典里面的文件名,所以要确认下 USE test9572 GO SELECT file_id,name FROM sys.database_files; GO 然后就可以准备删了: USE [test9572] GO ALTER DATAB
阅读全文
摘要://选中事件 //最后 设置 属性 解决 CheckOnClick = true;
阅读全文
摘要:DataGridView 更改类型 需要用到重绘 DataGridViewTextBoxColumn aa01 = new DataGridViewTextBoxColumn(); aa00.DataPropertyName = "题目"; //绑定数据源的名称 aa00.HeaderText =
阅读全文
摘要:HttpContextBase context = (HttpContextBase)Request.Properties["MS_HttpContext"];//获取传统context HttpRequestBase request = context.Request;//定义传统request对象 var t = request...
阅读全文
摘要:List<string> list = new List<string>(); list.Add("textBox2"); list.Add("textBox1"); list.Add("txtNum"); StringBuilder sb = new StringBuilder(); foreach (Control ctl in this.Controls) { if (ctl is Text
阅读全文