自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

樱花园丁

.NET开发技术

  • 博客(22)
  • 收藏
  • 关注

原创 Linux ManJaro 换源、安装应用

1、换源 sudo pacman-mirrors -i -c China -m rank pacman文件配置 sudo nano /etc/pacman.conf 在末尾插入(可以先浏览器打开源看是否可用) [archlinuxcn] Server = https://mirrors.sjtug.sjtu.edu.cn/archlinux-cn/aarch64/ 2、设置软件商店aur软件库 3、安装GPG Key sudo pacman -S archlinuxcn-keyring 4、

2022-04-16 16:59:22 4065

原创 SQL 服务器上未安装 ASP.NET 2.0 版会话状态,或 ASP.NET 不具有运行 dbo.TempGetVersion 存储过程的权限,因此无法使用 SQL Server

iis部署问题:SQL 服务器上未安装ASP.NET2.0 版会话状态,或ASP.NET不具有运行 dbo.TempGetVersion 存储过程的权限,因此无法使用 SQL Server。如果尚未安装ASP.NET会话状态架构,请安装ASP.NET会话状态 SQL Server 2.0 版或更高版本。 方式一: 解决办法如下: 1.查看iis 应用程序池配置的.net版本 2.查看iis是否安装了对应的.net框架服务: 运行对应的 .net...

2021-01-12 10:36:53 2077

原创 数值类型值交换的三种方式

public static void main(String [] args){ ///数值类型值交换 方式 int a=0,b=0; a=3;b=5; System.out.println("初始值:\na的值:"+a+"\nb的值:"+b); /* * 三种交换值的方法 * */ //加减交换 a=3;b=5; a=a+b; b=a-b; a=a-b; System.out.println("加减运算交换后\..

2020-12-11 23:05:58 521

原创 c#多线程②--多参数传递

1.定义参数类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { public class PersonInfo { public string Name { get; set; } public string Code { g

2020-09-06 14:40:40 260

原创 c# 多线程①单参传递----------10个人同时抢耐克

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace ConsoleApp1 { class Program { public static int number = 3;//鞋子总数 public static b.

2020-09-06 13:54:11 260

原创 c#递归生成web界面Tree的json数据

static void Main(string[] args) { string conStr = ConfigurationManager.ConnectionStrings["ConsoleApplication1.Properties.Settings.FMS_AConnectionString"].ToString(); ...

2019-10-24 14:42:56 1382

原创 sqlServer让一个varchar类型进行加减

slq中字符转为数字: cast(字段 as 数值类型) -2 from gads select sgreads=cast(sgreads as decimal)-2 from gads where sid=1

2019-06-13 16:07:51 7951

原创 DataTable,sqlServer批量写入

static void Main(string[] args) { List<string> a = new List<string>(); //生成数据 while (a.Count<100000) { ...

2019-06-13 16:07:34 703

原创 c# DataTable 查询

using (SqlConnection con = new SqlConnection(ConStr)) { try { string sql = "select * from mainUser with(nolock) where 1=1"; co...

2019-06-13 16:07:03 3384

转载 DataTable分页

#region DataTable分页 //数据表,页码,每页行数 public DataTable getPageSource(DataTable dt,string page,string limit) { DataTable newDT = new DataTable(); var rows = dt...

2019-06-13 16:06:40 429

原创 c#+sqlServer存储过程详解

1.--SqlServer创建存储过程 create proc [dbo].[P_insert_gads] --定义参数@type int, @uid int, @uname nvarchar(50), @address nvarchar(50), @remark ntext, @pass nvarchar(50), @uphone nvarchar(12), --定义输出参数@result...

2019-06-13 15:54:12 1384

翻译 简单的冒泡排序

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication2 { class Program { static void Main(s...

2019-05-05 15:43:53 159

转载 c#发送qq邮件

using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Mail; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class...

2019-04-11 14:29:56 596

原创 SqlServer 简单的分页查询小白适用

--A:数据条数 B:页码 select top A * from Table where uid not in(select top ((B-1)*A) uid from Table) 列如: 每页显示5条数据 第一页查询语句如下 select top 5 * from adminInfo where uid not in(select top ((1-1)*5) uid from ...

2019-04-01 11:24:06 286

原创 c#数组与list集合之间的相互转换

string data = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10"; string[] a = data.Split(',');//数组 List<string> b = new List<string>(a);//数组转集合 b.RemoveAt(0); ...

2019-03-22 11:11:26 8133

原创 c#将1,2,3,4,5,6,7,8 拆分为1,2 和 3,4 和 5,6 和 7,8

//将一段以,分割的字符每次 取连续的2个字符 string str = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10"; //原始字符串 string[] a = str.Split(','); List<string> b = new List<string>(a); ...

2019-03-22 10:31:19 715

原创 c# 读取Excel,并批量插入到数据库

public static string BD_MaterialImport(string FilePath) { try { #region 读取工作表,导入数据 //此连接可以操作.xls与.xlsx文件 string strC...

2019-03-13 16:16:02 3890 3

原创 DataTable 查询

using (SqlConnection con = new SqlConnection(ConStr)) { try { string sql = "select * from mainUser with(nolock) where 1=1"; ...

2019-03-13 10:36:54 1849

原创 Extjs grid单元格赋值

//给grid的某个单元格赋值 var grid =Ext.getCmp("gridModel"); //某格子赋值 //grid.getStore().getAt(行索引).set("列名", 值) grid.getStore().getAt(0).set("index", "12") //多行赋值 for (var i = 0; i &lt; grid.getStore().getCo...

2019-01-10 11:15:37 2554

原创 初学Extjs 前端框架

extjs 4.2 库文件 连接 extjs 4.2 精简版 提取码:oqd3 在前台页面 引入这些库 ext-all-neptune.css bootstrap.js ext-lang-zh_CN.js

2019-01-08 15:49:18 4605

原创 Extjs grid表格根据条件判断某行是否可编辑

//grid编辑 var grid = Ext.getCmp('gridMain'); grid.addPlugin( Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit: 1 }) ); //单元格禁止编辑 grid.addListener...

2019-01-08 15:15:38 2158

原创 Extjs 4.2 grid增删改查 JSP

&lt;%@ page language="java" contentType="text/html; charset=utf-8"     pageEncoding="utf-8"%&gt; &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type"

2019-01-08 14:58:27 426

空空如也

空空如也

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

TA关注的人

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