上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要: DataTable dt = SqlHelper.Query(strQuery); var data = dt.AsEnumerable().Skip((page - 1) * size).Take(pagesize); List listData = new List(); foreach (var item in data) { Model m=new Model(); ... 阅读全文
posted @ 2018-04-09 11:09 水墨晨诗 阅读(186) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web; namespace Common { /// /// 封装对缓存的操作!(对缓存的操作,最重要的就是取和存) ... 阅读全文
posted @ 2018-04-01 12:11 水墨晨诗 阅读(293) 评论(0) 推荐(0)
摘要: 前台页面 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %> <!DOCTYPE html> <html xmlns="h 阅读全文
posted @ 2018-03-29 22:38 水墨晨诗 阅读(1574) 评论(0) 推荐(0)
摘要: 项目结构图: App_start文件夹中的文件是VS自己创建的,其中NinjectWebCommon类在创建之初并不存在。后面会再次提到! 添加一个Home控制器。代码如下: using EssentialTools.Models; using Ninject; using System; usin 阅读全文
posted @ 2018-03-18 14:25 水墨晨诗 阅读(220) 评论(1) 推荐(0)
摘要: 1、引用对象模型 public ActionResult Index() { Product p = new Product(); p.Name = "ball"; return View(p); } @model Razor.Models.Product 如果一个视图页是一个强类型视图,那么就会在 阅读全文
posted @ 2018-03-12 21:48 水墨晨诗 阅读(413) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threadin 阅读全文
posted @ 2018-03-09 15:41 水墨晨诗 阅读(256) 评论(0) 推荐(0)
摘要: 利用在dataGrid中,每行都会被加上 datagrid-row 这个特性,为单元格增加些事件。 为grid增加事件最好的方式是直接在jqueryEasyUI的脚本中进行更改,网上也有实例。但是easyUI有几个版本的变化较大,插件内部的JS代码也不尽相同,更改起来较为麻烦。所以就选择了这种比较简 阅读全文
posted @ 2018-03-02 14:55 水墨晨诗 阅读(699) 评论(0) 推荐(0)
摘要: 单列模式:保证一个类仅有一个实例,并提供一个访问它的全局访问点。(全局访问和实例化控制) using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Singleton 阅读全文
posted @ 2018-02-11 13:29 水墨晨诗 阅读(152) 评论(0) 推荐(0)
摘要: 简单工厂模式只是解决对象的创建问题 完成计算器: 仅利用面向对象的封装特性,完成计算器。 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Calculate 阅读全文
posted @ 2018-01-29 22:11 水墨晨诗 阅读(178) 评论(0) 推荐(0)
摘要: url : ../../Service/MSD_Maintain.ashx/?action=Add4T2 url : Handler/MaintainHandler.ashx/?action=GenerateCombobox 1、在url中加上“/”,就会变成绝对路径,会去你的根目录开始查找的 2、 阅读全文
posted @ 2018-01-24 10:27 水墨晨诗 阅读(2828) 评论(0) 推荐(0)
摘要: Create Table Article ( Id Int Identity(1,1) Not Null, Title Varchar(50) Not Null Constraint uq_ArticleTitle Unique, Keywords Varchar(50) Not Null, Abs 阅读全文
posted @ 2018-01-21 17:04 水墨晨诗 阅读(516) 评论(2) 推荐(1)
摘要: using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using S 阅读全文
posted @ 2018-01-14 15:30 水墨晨诗 阅读(137) 评论(0) 推荐(0)
摘要: 1、向文件中写入XML XmlDocument xmlDoc = new XmlDocument();//在内存中构建一个Dom对象 XmlDeclaration xmld = xmlDoc.CreateXmlDeclaration("1.0", "utf-8", "yes");//指定文档声明 x 阅读全文
posted @ 2018-01-06 22:43 水墨晨诗 阅读(253) 评论(0) 推荐(0)
摘要: //cmd:"regsvr32 " + dllPath(注册dll的语句) //output:string.Empty(注册后的反馈信息 ) private static void runCmd(string cmd, out string output) { string CmdPath = @"C:\Windows\System32\cmd.exe"; cmd = cmd.Trim... 阅读全文
posted @ 2018-01-03 16:25 水墨晨诗 阅读(2750) 评论(0) 推荐(0)
摘要: 主要来源: 博客: https://www.cnblogs.com/rumeng/p/3785748.html 官网: http://epplus.codeplex.com/ 教程: https://riptutorial.com/zh-CN/epplus/topic/8070/%E5%BC%80% 阅读全文
posted @ 2017-12-22 14:00 水墨晨诗 阅读(489) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页