摘要: 最近做项目中碰到上传需要显示进度的问题,通过uploadfiy很好的解决了这个问题不过(IE9出现了按钮不能点击的问题,至今仍找不到良策)在使用uploadfiy3.2版本时需要下载jquery.tmpl.min.js并引用在Jquery下面 $("#uploadify").uploadify({ 'uploader': '/LZKS/Handler/BigFileUpLoadHandler.ashx', 'swf': '/LZKS/Scripts/uploadify/uploadify.swf', ' 阅读全文
posted @ 2012-09-04 18:10 aking96 阅读(26508) 评论(14) 推荐(4) 编辑
摘要: Out Ref用法 Out的使用,可以使void修饰的方法传出参数, 在使用前需定义参数,可以不赋值。 out的参数进入了方法后首先会被清空ref是传递参数的地址,out是返回值,两者有一定的相同之处,不过也有不同点。 int x,y;static void outTest(out int x, out int y) {//离开这个函数前,必须对x和y赋值,否则会报错。 //y = x; //上面这行会报错,因为使用了out后,x和y都清空了,需要重新赋值,即使调用函数前赋过值也不行 x = 1; y = 2; } static void refTest(ref int x, ref ... 阅读全文
posted @ 2012-09-04 17:58 aking96 阅读(272) 评论(0) 推荐(0) 编辑
摘要: public DataSet BulidDataSet() { DataSet ds=new DataSet(); DataTable dt = new DataTable(); DataColumn col = new DataColumn("姓名",typeof(string)); col.MaxLength = 20; dt.Columns.Add(col); //注意是dt.columns 然后ADD Da... 阅读全文
posted @ 2012-09-04 17:53 aking96 阅读(3536) 评论(0) 推荐(0) 编辑
摘要: namespace Calculator{ public interface Iwel { String Print(); }} 类 namespace Calculator{ public class Arithmetic:Iwel { /// <summary> /// 没有带参数的构造函数 /// </summary> public Arithmetic() {} public Arithmetic(int num1, int num2) { ... 阅读全文
posted @ 2012-09-04 17:42 aking96 阅读(196) 评论(0) 推荐(0) 编辑