11 2017 档案
委托事件
摘要:后台 namespace WindowsFormsApplication1{ /// <summary> /// 刷卡验证 类 /// </summary> public class Card { public delegate void shuaka(object txt); public eve 阅读全文
posted @ 2017-11-30 11:56 过客s 阅读(90) 评论(0) 推荐(0)
存储过程分页 练习
摘要:后台 /// <summary> /// 存储过程分页 /// </summary> /// <param name="PageIndex"></param> /// <param name="PageSize"></param> /// <param name="name"></param> // 阅读全文
posted @ 2017-11-30 11:34 过客s 阅读(109) 评论(0) 推荐(0)
批量
摘要:前台 $("#Checkbox1").click(function () { $("input[type='checkbox']").prop("checked", this.checked); }) function pi() { var id=""; $("input[type='checkbo 阅读全文
posted @ 2017-11-23 11:52 过客s 阅读(178) 评论(0) 推荐(0)
图片水印
摘要:后台 [HttpPost] public ActionResult uploadfile(HttpPostedFileBase pic) { string warning = ""; string files = Server.MapPath(pic.FileName); string filena 阅读全文
posted @ 2017-11-23 11:07 过客s 阅读(110) 评论(0) 推荐(0)
add
摘要:前台 <input id="Button1" type="button" value="button" onclick="add()" /> <input id="save" onclick="saveadd()" type="button" value="批量保存" /> <div> <table 阅读全文
posted @ 2017-11-22 19:48 过客s 阅读(131) 评论(0) 推荐(0)
分页
摘要:API的控制器 DAL /// <summary> /// 万能 /// </summary> /// <param name="Pageindex"></param> /// <param name="Pagesize"></param> /// <returns></returns> publi 阅读全文
posted @ 2017-11-22 19:42 过客s 阅读(120) 评论(0) 推荐(0)
mvc控制器
摘要:控制器 using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using System.Net.Http;using Newtonsoft.Json; 阅读全文
posted @ 2017-11-21 19:43 过客s 阅读(155) 评论(0) 推荐(0)
API的控制器
摘要:// GET: api/showApi /// <summary> /// 显示 查询 /// </summary> /// <param name="name"></param> /// <param name="type"></param> /// <returns></returns> [Ht 阅读全文
posted @ 2017-11-21 19:39 过客s 阅读(153) 评论(0) 推荐(0)
MVC跨域API
摘要:API using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Net.Http;using System.Web.Http;using System.Web.Http 阅读全文
posted @ 2017-11-19 19:53 过客s 阅读(161) 评论(0) 推荐(0)
WindowsForms 调用API
摘要:WindowsForms 后台 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;usi 阅读全文
posted @ 2017-11-19 19:29 过客s 阅读(300) 评论(0) 推荐(0)
触发器
摘要:--数据库表名 CREATE TABLE BANKUSER( BID INT PRIMARY KEY IDENTITY, BNUM NVARCHAR(50), BNAME NVARCHAR(50) , BPWD NVARCHAR(50), BMONEY DECIMAL ) --数据库表名 CREAT 阅读全文
posted @ 2017-11-19 19:05 过客s 阅读(185) 评论(0) 推荐(0)
视图
摘要:StringBuilder sql = new StringBuilder(); sql.Append(@"if exists(select * from sys.objects where name='V_stu') drop view V_stu" ); //判断是否有视图 DbHelper.E 阅读全文
posted @ 2017-11-19 19:04 过客s 阅读(107) 评论(0) 推荐(0)
分页的存储过程的用法
摘要:数据库的存储 alter PROCEDURE Proc_stu @PageIndex int, //页数 @PageSize int,//显示条数 @where nvarchar(50),//条件 @Tocount int output, //返回值 @totName nvarchar(50),// 阅读全文
posted @ 2017-11-19 19:00 过客s 阅读(165) 评论(0) 推荐(0)
MVC架构
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using WebApplication1.Models;using Model;using B 阅读全文
posted @ 2017-11-14 21:01 过客s 阅读(162) 评论(0) 推荐(0)
导出 导入 解压 压缩
摘要:前台 @{ Layout = null;}@model List<Model.stuModel><!DOCTYPE html> <html><head> <meta name="viewport" content="width=device-width" /> <title>Index</title 阅读全文
posted @ 2017-11-14 14:14 过客s 阅读(184) 评论(0) 推荐(0)
Com 调用word和excel
摘要:using Microsoft.Office.Interop.Word;using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;u 阅读全文
posted @ 2017-11-14 14:10 过客s 阅读(177) 评论(0) 推荐(0)
Sockets使用
摘要:服务端 using System.Text;using System.Threading.Tasks;using System.Windows.Forms;using System.Threading;using System.Net.Sockets;using System.Net; namesp 阅读全文
posted @ 2017-11-14 14:08 过客s 阅读(132) 评论(0) 推荐(0)
水印文字 图片
摘要:@{ Layout = null;} <!DOCTYPE html> <html><head> <meta name="viewport" content="width=device-width" /> <title>Index</title> <script src="~/Scripts/jque 阅读全文
posted @ 2017-11-14 14:03 过客s 阅读(453) 评论(0) 推荐(0)