window2003下安装SQL Server2008
作者:Rady 日期:2009-11-29
在window2003下安装SQL Server 2008,需要系统安装SP2补丁
window 2003 sp2补丁可以从 http://125.39.113.20:9204/1BEE9C3D738531EEBB188C6D50029BF3755BA7099B37CE8C/sdwt.down.chinaz.com/software/WindowsServer2003-SP2-x86-CHS.exe 下载
Linq to SQL更新操作
作者:Rady 日期:2009-11-28
YourDbDataContext db = new YourDbDataContext();
var list = from cc in db.UserInfos
where (ids.Split(',').ToArray().Contains(cc.UserID))
select cc;
foreach (var c in list)
c.IsState = 1;
db.SubmitChanges();
UserInfo一定要有主键,这是创建、更新、删除操作必须的,如果你不在更新数据不成功的时候请检查是否有主键。
如何取消北京神州行手机报
作者:Rady 日期:2009-11-28
发送00000到10086,按照提示进行操作
javascript得到Url文件类型
作者:Rady 日期:2009-11-20
从字符串中提取文件类型
1.利用substring和lastIndexOf函数
function GetFileType(url) {
return url.substring(url.lastIndexOf("."), url.length);
jquery.slide.3.0,
作者:Rady 日期:2009-11-12
从IList或IEnumerable 返回带,字符串
作者:Rady 日期:2009-11-09
IEnumerable<string> strings = ...;
// C# 3 and .NET 3.5:
string joined = string.Join(",", strings.ToArray());
// C# 2 and .NET 2.0:
string joined = string.Join(",", new List<string>(strings).ToArray());
基本思路先转为Array,然后使用string.Join()解决问题.
checkbox全选插件,jQuery checkbox插件
作者:Rady 日期:2009-11-09
//反选
$.fn.checkNot = function(){
return this.each(function(){
if(typeof this.checked == 'boolean') this.checked = !this.checked;
})
}
//全选
$.fn.checkAll = function(){
return this.each(function(){
if(typeof this.checked != 'undefined') this.checked = true;
})
}
//全不选
$.fn.checkNone = function(){
return this.each(function(){
if(typeof this.checked == 'boolean' && this.checked) this.checked = false;
})
}
使用方法
$("#content :checkbox").checkNone() //checkAll ,checkNot
Tags: javascript jQuery 插件
javascript取余函数
作者:Rady 日期:2009-11-06
多个text 只能输入1-5 一位数字的正则
$(document).ready(function(){
$("#content input").each(function(i){
$(this).blur(function(){
if(i%7 != 6)
{
if(! /^[1-5]{1}$/.test($(this).val()))
{
alert('只能为1到5数字');
this.focus();
}
}
})
})
})
Tags: javascript
- 1








