摘要:
.net framework4.0中DataTime存入数据库精确到毫秒,想要显示到秒用函数 convert(varchar,日期字段,120) 阅读全文
摘要:
项目是vs2008版升级到vs2010发布网站到IIS注意事项:服务器需要安装:1、.net framework4.02、IIS 6.03、2010版的水晶报表 阅读全文
摘要:
public static byte[] EncryptPassword(string password) { byte[] bytes = new UnicodeEncoding().GetBytes(password); SHA1 sha = new SHA1CryptoServiceProvider(); return sha.ComputeHash(bytes); } protected void btnLogin_Click(object sender, EventArgs e) { byte[] encPassword = EncryptPassword("111&quo 阅读全文
摘要:
先安装sql,然后安装vs,最后安装office2007。 安装vs2010时会重启计算机一次,开机以后要先更新.net framework4,否则安装vs2010依旧失败。 阅读全文
摘要:
function GetInput1(tagname) { var input= document.getElementsByTagName("input"); for(var i=0;i<input.length;i++) { try{ if(input[i].tag==tagname) { return input[i]; } }catch(e){ alert("不存在"); } } return ""; } function GetInput(tagname) { var control=GetInput1(tagname 阅读全文
摘要:
function checkNumber(e,txt) { var key = window.event ? e.keyCode : e.which; var keychar = String.fromCharCode(key); reg = /\d|\./; var result = reg.test(keychar); if(result) { if(e.keyCode==46) result=!(txt.value.split('.').length>1); else result=!(txt.value.split('.').length>1 阅读全文
摘要:
function GetInputValue() { var TBBidPrice=document.getElementById("<%=TBBidPrice.ClientID %>").value; return TBBidPrice; } function GetRadio(tagname) { var input =document.getElementsByTagName("input");//获取所有input标签 for(var i=0;i<input.length;i++) { //判断是否是radio if(input 阅读全文