• C#Execl

    using System.IO;using System.Text;namespace iLIS.Common{ /// summary /// 生成Excel文档内容 /// 存入工作流 /// /summary public class ExcelDocumentx { private readonly StreamWriter _streamWriter; public ExcelDocumentx(Stream stream) { _streamWriter =...

    2018-06-22 07:18:54

  • 二、MVC3+EF单表增删改查

    document 表为例 写入静态类NorthwindDataProvider: Controller可直接调用:如 1 // 获取document表全部数据 2 NorthwindDataProvider.GetDocuments() document 类:EF 映射 1 public static class NorthwindDataProvider 2 { 3 const string NorthwindDataContextKey...

    2018-06-22 07:18:52

  • 微软的深度学习框架cntk ,我目前见过 安装方式最简单

    wiki:https://github.com/Microsoft/CNTK/wiki 嗨,你也是我这种手残党么?之前试着安装着mxnet和tensorflow,但是因为时间比较短所以往往来不及安装完就失去兴趣,今天看到微软的cntk可以用了,一次性安装好了,并且测试通过 本人环境: Windows 7 X64 8G内存 下载链...

    2018-06-22 07:18:53

  • Js调用asp.net后台代码

    方法一 : 1、首先建立一个按钮,在后台将调用或处理的内容写入button_click中; 2、在前台写一个js函数,内容为document.getElementById("btn1").click() 或者document.getElementById("btn1").onclick() 3、在前台或后台调用js函数,激发click事件,等于访问后台c#函...

    2018-06-22 07:18:50

  • C#基础_MD5

    MD5加密 1创建Md5 2.开始加密,需要将字符转换为字节数组 3.返回一个加密好的字节数组 4.将字节数组中每个元素按照指定的编码格式解析成字符串 1 static void Main( string [] args) 2 { 3 4 string s = GetMD5( " 123 " ); 5 6 Console.WriteLine(s); 7 Console.ReadKe...

    2018-06-22 07:18:49

  • System.Web.Caching

    System.Web.Caching简单封装类: 1 using System; 2 using System.Collections.Generic; 3 using System.Web.Caching; 4 using System.Web; 5 using System.Collections; 6 7 namespace APP.HttpCache 8 { 9 public class CacheHelper 10 { 11 private static Cache ca...

    2018-06-22 07:18:49

  • C#之继承

    一.继承的类型 在面向对象的编程中,有两种截然不同继承类型:实现继承和接口继承 1.实现继承和接口继承 *实现继承:表示一个类型派生于基类型,它拥有该基类型的所有成员字段和函数。在实现继承中,派生类型采用基类型的每个函数的实现代码,除非在派生类型的定义中指...

    2018-06-22 07:18:44

  • .Net开发之旅(一个年少轻狂的程序员的感慨)

    高端大气上档次。这次当时一个身为懵懂初中生的我对程序员这一职位的描述。那时虽不是随处都能看到黑客大军的波及,但至少是知道所谓的黑客爸爸的厉害,一言不合说被黑就被黑。对于懵懂的我那是一种向往。自己也曾想着会不会有一日自己也变得人人畏惧。于是开始踏上这...

    2018-06-22 07:18:43

  • HttpWebRequest HttpClient

    HttpWebRequest HttpClient 简单封装使用,支持https HttpWebRequest 1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.IO.Compression; 5 using System.Linq; 6 using System.Net; 7 using System.Net.Security; 8 using Syst...

    2018-06-22 07:18:41

  • 任意输入判断是否为回文数

    回文数的判定 很多人纠结回文数的数学概念 忘了可以直接分割字符串 如此连中文都可以分割 纯给萌新看 static void Main( string [] args) { bool bl = true ; while (bl) { Console.WriteLine( " \n请输入需要判断的数字; " ); string X = Console.ReadLine(); if (X =...

    2018-06-22 07:18:41

2