上一页 1 2 3 4 5 6 7 8 ··· 40 下一页
摘要: 我们开发web项目的时候,经常遇到由于数据库中数据不存在或者被删除,而带来相应的web页面不存在/出错的情况。那么我们应该如何对待这种情况呢?通常情况下,类似代码:Product pro = GetProduct(123);返回编号为123的产品信息,如果后面不判断pro==null直接引用pro的属性,就会引发 NullReferenceException(为将对象引用到对象实例)异常,然后如果web.config中设置 <customErrors mode="RemoteOnly" defaultRedirect="err.aspx"> 阅读全文
posted @ 2012-03-21 20:46 你妹的sb 阅读(1950) 评论(0) 推荐(0) 编辑
摘要: SQL SERVER2012在ORDER BY 子句中加入了新元素offset,允许用户在排序完成的结果集中自定义输出行范围,大大简化了分页SQL的书写方式和效率。以下是与以前的两种分页方式的简单对比use mastergoset nocount ongoset showplan_text ongo--2012的OFFSET分页方式select number from spt_valueswhere type='p'order by number offset 10 rows fetch next 5 rows only;go--2005的ROW_NUMBER分页方式selec 阅读全文
posted @ 2012-03-21 20:11 你妹的sb 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 方法一、 using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.SessionState; using System.Timers; using System.Net; using System.IO; using System.Text; using System.Threadin... 阅读全文
posted @ 2012-03-21 20:04 你妹的sb 阅读(1147) 评论(0) 推荐(0) 编辑
摘要: 一天有这么一个想法,想让自己的电脑,可以在我不在的时候也能每天定时开机和关机 ,呵呵!你是不是也有这个想法呢,特别是做个人服务器的朋友,有了这个想法,就要想怎么实现啦!我喜欢简单。所以我决定向大家,介绍这种方法啦。1.自动开机。这个有个条件,就是你的主板要支持才行,哦,可能你已经明白,用什么方法啦!是的就是要利用bios来实现.重启进入BIOS设置主界面中,不同的主板也可以有小小的区别.好了,选择“Power Management Setup”,进入电源管理窗口。默认情况下,“Resume By Alarm(定时开机)”选项是关闭的,将光标移到该项,用“Pagedown”键将“Disabled 阅读全文
posted @ 2012-03-16 11:21 你妹的sb 阅读(556) 评论(0) 推荐(0) 编辑
摘要: 有时候会遇到这种情况:在一个表单上需要多个按钮来完成不同的功能,比如一个简单的审批功能。如果是用webform那不需要讨论,但asp.net mvc中一个表单只能提交到一个Action处理,相对比较麻烦点。使用客户端脚本<input type="submit" value="审核通过" onclick='this.form.action="<%=Url.Action("Action1") %>";' /> <input type="submit" v 阅读全文
posted @ 2012-03-13 20:14 你妹的sb 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 系统OA在线演示地址 下载地址通达oa http://www.tongda2000.com/download/新思创oa http://www.gotooa.com/download.htm正高oa http://secooa.com/main/index.shtml思道oa http://www.anyoffice.net/download.htm信达oa http://www.xdoa.cn/down/rjxz/index.html极限oa http://www.sohuu.com/通达oa http://www.oasoft.com/绿叶oa http://www.oa169.com/d 阅读全文
posted @ 2012-03-02 21:48 你妹的sb 阅读(987) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf 阅读全文
posted @ 2012-02-22 17:10 你妹的sb 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 本文会给你们展示50个jquery代码片段,这些代码能够给你的javascript项目提供帮助。其中的一些代码段是从jQuery1.4.2 才开始支持的做法,另一些则是真正有用的函数或方法,他们能够帮助你又快又好地把事情完成。如果你发现你任何可以做得更好的地方的话,欢迎把你的版本粘贴 在评论中!1. 如何修改jQuery默认编码(例如默认UTF-8改成改GB2312):$.ajaxSetup({ ajaxSettings:{ contentType:"application/x-www-form-urlencoded;chartset=GB2312"} });复制代码2. 阅读全文
posted @ 2012-02-12 15:32 你妹的sb 阅读(303) 评论(1) 推荐(1) 编辑
摘要: //解决datagrid单元格不能设置100%问题 function fixWidth(percent) { return document.body.clientWidth * percent ; //这里你可以自己做调整 } columns:[[ {field:'Sys_UserID',title:'编号',width:fixWidth(0.2)}, {field:'Sys_UserName',title:'姓名',width:fixWidth(0.3)}, {field:'opt',title:'操作 阅读全文
posted @ 2012-02-08 14:59 你妹的sb 阅读(238) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Text; /// <summary> /// JsonConvert 的摘要说明 /// 阅读全文
posted @ 2012-02-08 11:35 你妹的sb 阅读(1139) 评论(1) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 40 下一页
百度一下