上一页 1 ··· 5 6 7 8 9
摘要: jQuery获取Select选择的Text和Value:1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发2. var checkText=$("#select_id").find("option:selected").text();//获取Select选择的Text3. var checkValue=$("#select_id").val();//获取Select选择的Value4. var checkIndex=$ 阅读全文
posted @ 2012-05-10 21:38 Jack.Y 阅读(204) 评论(0) 推荐(0) 编辑
摘要: System.Web.HttpContext.Current.Server.MapPath 阅读全文
posted @ 2012-03-23 14:44 Jack.Y 阅读(1117) 评论(0) 推荐(0) 编辑
摘要: 一、using System.Web.SessionState;二、类实现IRequiresSessionStatepublic class DoAjax : IHttpHandler,IRequiresSessionState{}完成以上两步就可以正常使用Session了。 阅读全文
posted @ 2012-03-20 14:56 Jack.Y 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 在insert语句中需要插入查询出来的值。 Insert into a (a1,a2,a3) values (1,select num from b where id=1,3) 这样写就出现了“在此上下文中不允许使用子查询。只允许使用标量表达式。”这个错误可以这样: insert into a (a1,a2,a3) select 1,num,3 from b where id=1 即可解决问题. 阅读全文
posted @ 2012-03-02 11:16 Jack.Y 阅读(3036) 评论(0) 推荐(0) 编辑
摘要: delete from 表名 where 字段名 is null 阅读全文
posted @ 2012-03-01 16:06 Jack.Y 阅读(495) 评论(0) 推荐(0) 编辑
摘要: 类或结构的默认访问类型是internal类中所有的成员,默认均为private接口默认访问符是internal接口的成员默认访问修饰符是public,也不可能是其他访问修饰符命名空间,枚举类型成员默认public,也不可能是其他访问修饰符委托,默认internal在命名空间内部或编译单元顶部的所有类型,默认是internal,可以人为改为public 阅读全文
posted @ 2012-02-29 16:38 Jack.Y 阅读(193) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9