摘要: @using(Html.BeginForm("actionName","controllerName",FormMethod.Post,new{data_ajax="false"})){ }主要是这一句:new{data_ajax="false"},当然也可以: 阅读全文
posted @ 2013-12-11 10:26 @索卡 阅读(811) 评论(0) 推荐(0) 编辑
摘要: View Code function upperMoneys(num) { debugger; var strOutput = ""; var strUnit = '仟佰拾亿仟佰拾万仟佰拾元角分'; num += "00"; var intPos = num.indexOf('.'); if (intPos >= 0) { num = num.substring(0, intPos) + num.substr(intPos + 1, 2); } strUnit = strUnit.substr(strUnit.len 阅读全文
posted @ 2013-01-08 11:34 @索卡 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 在函数体内,标识符arguments是指向实参对象的应用,实参对象是一个数组对象 ,这样就可以通过数字下标访问传入函数的实参值, 演示arguments 的用法View Code //查找最大值 function maxs() { var _max=Number.NEGATIVE_INFINITY; //负无穷大,溢出时返回该值 //遍历实参,查找并记录最大值 for(var i=0;i<arguments.length;i++) { if(arguments[i]>_max) { ... 阅读全文
posted @ 2012-12-02 20:31 @索卡 阅读(253) 评论(0) 推荐(0) 编辑
摘要: View Code 1 set statistics time on 显示分析、编译和执行各语句所需的毫秒数。2 3 4 select * from messages where id=11115 6 create index id_test_t1 on messages(id)7 select * from messages where id=11118 set statistics time off 阅读全文
posted @ 2012-11-12 20:53 @索卡 阅读(126) 评论(0) 推荐(0) 编辑
摘要: create table messages( id int not null identity, ) select * from messages alter table messages add [user] nvarchar(max) --增加字段 alter table messages add msg text not null -- 增加字段 alter table messages add [time] int not null -- 增加字段 alter table messages drop column [time] --删除字段 a... 阅读全文
posted @ 2012-11-03 11:23 @索卡 阅读(158) 评论(0) 推荐(0) 编辑
摘要: jquery ui combogrid 查询jquery:View Code 1 $("#StallName").combogrid({ 2 panelWidth: 450, 3 idField: 'Value', 4 textField: 'Text', 5 pageSize: 10, //每页显示的记录条数,默认为10 6 pageList: [10], //可以设置每页记录条数的列表 7 method: 'post', 8 fit: true, //自动大小 9 ... 阅读全文
posted @ 2012-10-23 13:44 @索卡 阅读(3691) 评论(3) 推荐(0) 编辑
摘要: View Code <script type="text/javascript"> $(function () { $('#test').datagrid({ title: 'My DataGrid', // 标题 iconCls: 'icon-save', //头图片 width: 730, height: 350, nowrap: false, //是否在一行显示数据 st... 阅读全文
posted @ 2012-10-23 13:40 @索卡 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 更新指定的行,param参数包含下列特性:index:更新行的索引。row:行的新数据。 vargrid=$("#QualityAdd").datagrid("updateRow",{index:gridIndex,row:{Url:"<ahref=\"#\">"+r[0].html+"</a>"}});datagrid 内置对象 {rows:[{No:001,Order:{no:00101,amount:10}}]}columns:[[{title:'订单编号& 阅读全文
posted @ 2012-08-31 11:05 @索卡 阅读(1496) 评论(0) 推荐(0) 编辑
摘要: var predicate = PredicateBuilder.True<Shop_Product>(); 1. predicate = predicate.And(c => c.CommodityType.StartsWith(temmp)); 2. predicate = predicate.And(c => c.CommodityType.Contains("0102")); 3. predicate = predicate.And(c => c.CommodityType.IndexOf("0102")>-1 阅读全文
posted @ 2012-08-15 15:37 @索卡 阅读(365) 评论(0) 推荐(0) 编辑
摘要: MVC服务Autofac 控制反转容器 先下载 Autofac dll, web.config 配置iis6 <httpModules><addname="ContainerDisposal"type="Autofac.Integration.Web.ContainerDisposalModule,Autofac.Integration.Web"/></httpModules><modules><!--ii7配置ioc--><addname="ContainerDisposal& 阅读全文
posted @ 2012-06-04 16:31 @索卡 阅读(480) 评论(0) 推荐(0) 编辑