04 2019 档案

摘要:父页面: <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></tit 阅读全文
posted @ 2019-04-30 10:05 咖啡无眠 阅读(682) 评论(0) 推荐(0) 编辑
摘要:List<CityData> listData =new List<CityData>(); //把一个集合自定转成json字符串。 foreach (var city in ctiyTable) { listData.Add(new CityData() { CityId = city.CityI 阅读全文
posted @ 2019-04-28 15:36 咖啡无眠 阅读(911) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Text; namespace WebDemo.Common{ public class LaomaPager { /// <summary> /// /// </summary> /// <param name="pageSize">一页多少条< 阅读全文
posted @ 2019-04-18 13:45 咖啡无眠 阅读(368) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Drawing;using System.Drawing.Drawing2D;using System.Drawing.Imaging;using System.IO;using S 阅读全文
posted @ 2019-04-16 16:05 咖啡无眠 阅读(1063) 评论(0) 推荐(0) 编辑
摘要:自已写的简易版本: <%@ WebHandler Language="C#" Class="ImageUpload" %> using System;using System.Web; public class ImageUpload : IHttpHandler { public void Pro 阅读全文
posted @ 2019-04-16 15:40 咖啡无眠 阅读(144) 评论(0) 推荐(0) 编辑
摘要:前端: <form action="/ImageUpload.ashx" method="post" enctype="multipart/form-data"> <input type="file" name="imgFile" /> <input type="submit" value="上传文 阅读全文
posted @ 2019-04-14 20:38 咖啡无眠 阅读(1925) 评论(1) 推荐(0) 编辑
摘要:Review: 原作者虽然使用了汉字的类名,看起来十分蹩脚,但是,还是把同步调用、异步调用、异步回调的使用讲解的很详细的。原理讲解的很清晰。 本文将主要通过“同步调用”、“异步调用”、“异步回调”三个示例来讲解在用委托执行同一个“加法类”的时候的的区别和利弊。 首先,通过代码定义一个委托和下面三个示 阅读全文
posted @ 2019-04-05 10:45 咖啡无眠 阅读(23265) 评论(0) 推荐(2) 编辑
摘要:private void btnLoop_Click(object sender, EventArgs e) { #region 跨线程的控件调用 //真正项目中不要去用。shit//Control.CheckForIllegalCrossThreadCalls = false; //真正处理跨线程 阅读全文
posted @ 2019-04-02 14:05 咖啡无眠 阅读(268) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示