2014年9月27日
摘要: string connectionString = new PublicDBHelper().GetCon(System.Configuration.ConfigurationManager.AppSettings["constring"].ToString());using (SqlConnec... 阅读全文
posted @ 2014-09-27 10:39 孟德思旧 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 关于sql 分组统计查询,我们在做报表的时候经常需要用到;今天就在这里整理下;先附上一段sql代码:if object_id(N'#mytb',N'U') is not null drop table #mytbgodeclare @Year intset @Year=2014create tabl... 阅读全文
posted @ 2014-09-27 10:32 孟德思旧 阅读(1630) 评论(0) 推荐(1) 编辑
  2014年4月28日
摘要: 一个表单下,如果只有一个文本框时,按下回车将会触发表单的提交事件。既然是只有一个文本框才会出问题,那么可以加一个隐藏的文本框,如下:[html]view plaincopy现在代码成了这样:[html]view plaincopy关键字搜索:结论是,可以采取两种方法解决这种问题:1.去掉表单;2.如... 阅读全文
posted @ 2014-04-28 09:55 孟德思旧 阅读(254) 评论(0) 推荐(0) 编辑
  2014年4月24日
摘要: 1 关键的对象关系art = jQuery = $function artDialog() {...}artDialog.fn = artDialog.prototype = artDialog.fn._init.prototypejQuery.fn = jQuery.prototype = jQu... 阅读全文
posted @ 2014-04-24 18:14 孟德思旧 阅读(4532) 评论(0) 推荐(0) 编辑
  2014年4月5日
摘要: 将一张图片处理成多张不用尺寸的图片 自动生成缩略图using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.IO;using System.Drawing.Imaging;using System.Drawing;public partial class ImageHandler : System.Web.UI.Page{ protected void Pa... 阅读全文
posted @ 2014-04-05 11:21 孟德思旧 阅读(1125) 评论(0) 推荐(0) 编辑
摘要: WebClient 上传文件 上传文件到服务器端 阅读全文
posted @ 2014-04-05 11:08 孟德思旧 阅读(9758) 评论(0) 推荐(0) 编辑
  2014年3月24日
摘要: 关于Jquery;相信大家已经很熟悉了,我最近的项目运用到关于Jquery的遍历事件;权当总结下:遍历Table 3 ... 阅读全文
posted @ 2014-03-24 15:01 孟德思旧 阅读(10783) 评论(0) 推荐(0) 编辑
  2014年3月17日
摘要: Memcached 缓存个体,对象,泛型,表 阅读全文
posted @ 2014-03-17 17:51 孟德思旧 阅读(4684) 评论(0) 推荐(0) 编辑
  2013年7月17日
摘要: 我们在使用上传控件的时候,会遇到刷新的问题,最近使用ajax做的上传,觉得效果还是很不错。首先,我们需要在页面上放上上传控件;需要注意的是,我们必须放在form里面,实现表单上传。 选择图片:前台提交方法function TajaxFileUpload() { var mypath = "../ajax/upload.ashx?fileName="+需要的参数; $("form[name='uploadPic']").ajaxSubmit({ url: mypath, ... 阅读全文
posted @ 2013-07-17 13:28 孟德思旧 阅读(1630) 评论(0) 推荐(0) 编辑
  2013年4月27日
摘要: 最近做一个项目,需要给每一个列表页面的Head标题做升降序排列处理,主要是利用JS来实现。现在,我们使用Rpeater控件开存放数据源。开发思路简单如下,首先,把数据源绑定值Repeater中。然后,对Table进行JS处理。先编写css style.css* {margin:0; padding:0; outline:none;}body {font:12px; margin:25px;}.ShoppingList{width:100%;}.sortable {width:100%; border-left:1px solid #c6d5e1; border-top:1px solid #. 阅读全文
posted @ 2013-04-27 20:42 孟德思旧 阅读(589) 评论(0) 推荐(0) 编辑