上一页 1 ··· 7 8 9 10 11 12 13 下一页

2015年2月19日

序列表表格内容为字符串

摘要: $.serialize()序列化表格元素 (类似 '.serialize()' 方法) 返回 JSON 数据结构数据。'''注意''',此方法返回的是JSON对象而非JSON字符串。需要使用插件或者第三方库进行字符串化操作。 返回的JSON对象是由一个对象数组组成的,其中每个对象包含一个或两个名值对... 阅读全文

posted @ 2015-02-19 20:02 木屐 阅读(107) 评论(0) 推荐(0) 编辑

文本框提示内容

摘要: placeholder="请输入用户名" placeholder="请输入密码"![](http://images.cnitblog.com/blog/666303/201502/191927383773449.png) 阅读全文

posted @ 2015-02-19 19:28 木屐 阅读(91) 评论(0) 推荐(0) 编辑

ajax

摘要: //1 创建xhr对象 var xhr = createXHR(); function createXHR() { var request; if (typeof (XMLHttpRequest) == "unde... 阅读全文

posted @ 2015-02-19 16:09 木屐 阅读(97) 评论(0) 推荐(0) 编辑

上传文件

摘要: if (context.Request.Files.Count > 0) { HttpPostedFile file = context.Request.Files[0]; if (file.ContentLength > 0) ... 阅读全文

posted @ 2015-02-19 15:16 木屐 阅读(91) 评论(0) 推荐(0) 编辑

下载文件

摘要: context.Response.ContentType = "text/plain"; string filename = context.Request.QueryString["u"]; string path = context.Request.MapPath("... 阅读全文

posted @ 2015-02-19 10:28 木屐 阅读(83) 评论(0) 推荐(0) 编辑

全局处理程序

摘要: public class WaterMaker:IHttpHandler//新建一个类,实现IHttpHandler接口{ public bool IsReusable { get { return true; } } pub... 阅读全文

posted @ 2015-02-19 09:48 木屐 阅读(73) 评论(0) 推荐(0) 编辑

2015年2月15日

缩略图

摘要: context.Response.ContentType = "image/jpeg"; string path = context.Request.MapPath("03.jpg"); //原图 using (Image img = Image.FromF... 阅读全文

posted @ 2015-02-15 22:23 木屐 阅读(98) 评论(0) 推荐(0) 编辑

2015年2月11日

图片

摘要: context.Response.ContentType = "image/jpeg"; //画纸 using (Bitmap bitmap = new Bitmap(120, 80)) { //画笔 ... 阅读全文

posted @ 2015-02-11 22:28 木屐 阅读(109) 评论(0) 推荐(0) 编辑

2015年1月30日

文件上传

摘要: enctype="multipart/form-data" 改变请求报文的报文格式if (context.Request.Files.Count > 0) { HttpPostedFile file = c... 阅读全文

posted @ 2015-01-30 22:49 木屐 阅读(103) 评论(0) 推荐(0) 编辑

2015年1月26日

application用法

摘要: void Application_Start(object sender, EventArgs e) { Application.Lock(); Application["count"] = 0; Application.UnLock(); }... 阅读全文

posted @ 2015-01-26 14:43 木屐 阅读(181) 评论(0) 推荐(0) 编辑

上一页 1 ··· 7 8 9 10 11 12 13 下一页

导航