摘要: using System;using System.Web;using System.Drawing;using System.Web.SessionState;public class ValidateCode : IHttpHandler,IRequiresSessionState { p... 阅读全文
posted @ 2014-05-23 19:00 我的技术控件 阅读(157) 评论(0) 推荐(0) 编辑
摘要: adfafa adfadf adfadf adfadf adfadf adfadf ... 阅读全文
posted @ 2014-05-23 18:47 我的技术控件 阅读(117) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Web;using System.IO;using NVelocity.App;using NVelocity... 阅读全文
posted @ 2014-05-23 16:42 我的技术控件 阅读(198) 评论(0) 推荐(0) 编辑
摘要: using (Bitmap bitmap=new Bitmap(100,40)) { using (Graphics g=Graphics.FromImage(bitmap)) { ... 阅读全文
posted @ 2014-05-23 15:34 我的技术控件 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 1 新建一般处理程序 .ashx public void ProcessRequest (HttpContext context) { context.Response.ContentType = "text/plain";context.Response.Write("Hello W... 阅读全文
posted @ 2014-05-23 15:07 我的技术控件 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 写SQL模糊查询语句可能大多数是这样写: string sql = "select * from UserInfo where username like '%"+username +"%'"; 但这样直接在sql语句中拼接字符串似乎不太明智。很不安全。 还有一种写法: string sql = "... 阅读全文
posted @ 2014-05-06 18:16 我的技术控件 阅读(885) 评论(0) 推荐(0) 编辑
摘要: 利用委托事件来传递数据Form1中:一个lable1用来接受Form2中textbox1的信息,button1用来show出Form2Form1中代码:using System;using System.Collections.Generic;using System.ComponentModel;... 阅读全文
posted @ 2014-04-25 21:00 我的技术控件 阅读(200) 评论(0) 推荐(0) 编辑
摘要: var a = '第一个值'; var b = '第二个值'; for (var i = 0; i < jiaohuan(a, b).length; i++) { alert(jiaohuan(a, b)[i]); }; ... 阅读全文
posted @ 2014-04-18 22:09 我的技术控件 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 现在用了win8系统想安装SQL2008,但提示没有安装framework3.5环境不许安装。 有特意找来了framework3.5安装程序,但在安装过程中又提示:错误代码 0x800f0906 折腾了好久最终可以了,下面我就把经验分享给大家。以免走弯路 第一步:打开windows8安装盘,找到sources\sxs 文件夹;并把这个文件夹考到本地如G盘 第二步:用管理员身份打开CMD程序 第三步:执行下面命令: dism.exe /online /enable-feature /featurename:NetFX3 /Source:X:\sources\sxs (其中的X: 指的盘... 阅读全文
posted @ 2014-04-08 14:04 我的技术控件 阅读(946) 评论(1) 推荐(0) 编辑
摘要: 一开始是从System.Data.DataRowView着手,但千篇一律,没什么帮助,后来从断点触发,发现是初始化的问题,就想既然能获得期望结果,那么代码是没问题的,应该是逻辑上的问题,增加if判断后还是如此,网上找了找初始化的问题集合,还真有,原来问题就出现在数据绑定到控件的顺序上,如下:DataSet ds = new DataSet();sda.Fill(ds);cboGrade.DataSource = ds.Tables[0];//如果在给下面2个属性进行赋值前就绑定了数据,那么系统会自动给下面2个属性初始化(初始化的值非空非null,而是"System.Data.Data 阅读全文
posted @ 2014-04-08 00:50 我的技术控件 阅读(1713) 评论(0) 推荐(0) 编辑