liuzemin

2009年3月8日

.net前台判断一个字段的数据是否为空

摘要: 阅读全文

posted @ 2009-03-08 22:03 liuzemin 阅读(438) 评论(0) 推荐(0)
读取数据库连接字符串

摘要: Web.Config中读取数据库连接字符串: string conn = System.Web.Configuration.WebConfigurationManager.ConnectionStrings ["conn"].ToString(); 加密数据库连接字符串: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -pe... 阅读全文

posted @ 2009-03-08 21:57 liuzemin 阅读(276) 评论(0) 推荐(0)
ASP.NET-C#基础

摘要: 数据类型 整数型:int 小数型:float、double (区别在于float最多能有6位小数,double最多能有14位小数) 字符串型:string ("北京08奥运") 字符型:... 阅读全文

posted @ 2009-03-08 21:53 liuzemin 阅读(173) 评论(0) 推荐(0)
Server Error in '/' Application的错误

摘要: ASP.NET网页上传到空间后打开出现Server Error in '/' Application. 只要在web.config 中加入 即可,主要是.net 安全机制问题.只要你提交内容有脚本代码.默认都会包错. 阅读全文

posted @ 2009-03-08 21:47 liuzemin 阅读(323) 评论(0) 推荐(0)
内置函数setInterval的用法

摘要: setInterval测试 恭喜你,注册成功,秒后跳转到百度首页! 阅读全文

posted @ 2009-03-08 21:41 liuzemin 阅读(308) 评论(0) 推荐(0)
正则表达式2

摘要: ·匹配固定的数字:/^\d{6}$/ ·匹配QQ号:5~10位数字 /^\d{5,10}$/ ·匹配多个空格:/^( | ){0,}$/ 也可以写成 /^( | )*$/ ·*符号相当于{0,} +符号相当于{1,} ?符号相... 阅读全文

posted @ 2009-03-08 21:38 liuzemin 阅读(180) 评论(0) 推荐(0)
正则表达式1

摘要: ·replace使用:字符串.replace(正则表达式, 新字符); ·正则表达式的两种写法:① "笨蛋" ② /笨蛋/ ·正则表达式的参数:① g:全局替换 ② i:忽略大小写 ·match方法:把匹配到的字符存放在数组之中,使用:字符串.match(正则表达式) ·test方法:判断正则表达式是否匹配字符串,使用:正则表达式.test(字符串) 替换文本 请输入内容:... 阅读全文

posted @ 2009-03-08 21:37 liuzemin 阅读(120) 评论(0) 推荐(0)
通过ID来获取HTML元素

摘要: ·通过ID来获取HTML元素:document.getElementById("aaa") ·设置HTML的隐藏:document.getElementById("aaa").style.display = "none" 动态改变文本 welcome to beijing!!! 阅读全文

posted @ 2009-03-08 21:34 liuzemin 阅读(665) 评论(0) 推荐(0)
HTML对象.innerHTML

摘要: ·获取表单元素:document.表单名称.文本框名称.文本框属性 名称:name 在HTML的标签中,除了表单元素有name属性外,其它的HTML标签都没有name属性,只有id属性。 ·通过id获取HTML元素:document.getElementById( id标识 ) 通过此种方法获取文本框的值:document.getElementById( 文本框id ).value ·C... 阅读全文

posted @ 2009-03-08 21:32 liuzemin 阅读(355) 评论(0) 推荐(0)
用JS的正则表达式验证银行账号(19位数字)

摘要: 验证银行账号 账号: * (19位数字) 阅读全文

posted @ 2009-03-08 21:28 liuzemin 阅读(6550) 评论(0) 推荐(0)