摘要: use ITwebgoif exists(select * from sysobjects where name='bank') --判断是否存在这个表 drop table bank --存在的话删除if exists(select * from sysobjects where name='transInfo')--判断是否存在这个表 drop table transInfo --存在的话删除gocreate table bank( customerName char(8) not null, --顾客姓名 cardID char(10) not null, 阅读全文
posted @ 2011-05-27 10:15 解磊 阅读(259) 评论(0) 推荐(0) 编辑
摘要: <HTML> <HEAD> <title>年月日三联动下拉框</title> <meta http-equiv='Content-Type' content='text/html; charset=gb2312'> <meta name='author' content='http://singlepine.cnblogs.com/'> </HEAD> <body> <form name="form1"> 阅读全文
posted @ 2011-05-27 10:14 解磊 阅读(294) 评论(0) 推荐(0) 编辑
摘要: private DataTable CreateTable() { DataTable dt = new DataTable("dirName"); #region table column DataColumn columnID = new DataColumn(); //创建一列 columnID.DataType = System.Type.GetType("System.Int32"); //数据类型 columnID.ColumnName = "ID"; //列名 columnID.AutoIncrement = true; 阅读全文
posted @ 2011-05-27 10:10 解磊 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 对于这样一个URLhttp://www.x2y2.com:80/fisker/post/0703/window.location.html?ver=1.0&id=6#imhere我们可以用javascript获得其中的各个部分1,window.location.href整个URl字符串(在浏览器中就是完整的地址栏)本例返回值:http://ifisker.com/blog/post/0703/window.location.html#2,window.location.protocolURL的协议部分本例返回值:http:3,window.location.hostURL的主机部分本例 阅读全文
posted @ 2011-05-11 13:29 解磊 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 方法一:02//须添加对System.Web的引用03usingSystem.Web.Security;0405...0607/// <summary>08/// SHA1加密字符串09/// </summary>10/// <param name="source">源字符串</param>11/// <returns>加密后的字符串</returns>12publicstringSHA1(stringsource)13{14returnFormsAuthentication.HashPasswordF 阅读全文
posted @ 2011-05-06 14:36 解磊 阅读(272) 评论(0) 推荐(0) 编辑
摘要: http://www.51cto.com/html/2005/0813/1342.htmhttp://faq.comsenz.com/viewnews-490安装产品前需要做哪些准备工作http://faq.comsenz.com/viewnews-449UCenter 1.5.0 安装图文教程http://www.discuz.net/thread-1796583-1-1.html盛创想 Windows (server 2003) 服务器部署标准 白丁简明版http://tech.163.com/06/0206/11/299AMBLT0009159K.html Apache+php+mysq 阅读全文
posted @ 2011-05-03 15:20 解磊 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 1、备份 点击要备份的数据库右键-任务-备份 备份类型:完整2、还原 点击数据库右键-还原数据库 目标数据库:(数据库名) 选择 原设备:(你备份的xxx.bak文件) 在选择页中,选择选项,在 将数据库文件还原为:写上你要方的数据库路径和名称(路径一定存在) 点击确定就ok了 阅读全文
posted @ 2011-05-03 15:12 解磊 阅读(249) 评论(0) 推荐(0) 编辑
摘要: <tr> <td class="table_body" style="width: 10%" align="right"> 工作目标 </td> <td class="table_none" style="width: 90%" colspan="2"> <asp:TextBox ID="txt_JobGoal" runat="server" ... 阅读全文
posted @ 2010-07-02 14:46 解磊 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 这两天搞个天气预报,记得以前用.net版本有种是抓取百度天气写入txt,再读取。时间久了,txt很多。感觉不是很好。百度了一下,找了点别人的方法改进了一下。获取天气网址:http://www.weather.com.cn/html/weather/101210701.shtml这里是温州的,当然其他城市自己搜索一下,换一下ID。由于是写入cookies记录当天天气,所有需要在站点下浏览。js代码:... 阅读全文
posted @ 2010-07-02 14:45 解磊 阅读(1323) 评论(0) 推荐(0) 编辑
摘要: 由于在做OA项目的后期,需要对整体的代码进行一些优化,整理和总结了一些经验和编码规范,分享一下,希望对您有用。编程高手与初级编程人员的最根本区别就在于他们时时刻刻在考虑效率问题,因为这个时代是一个效率至上的时代,如果效率跟不上,那么您就会被您的竞争对手牢牢的甩在身后,可能您又会问,如何提高效率了,也就是具体的方案,其实很简单,从没一点做起,有这样一个等式六个百分之九十九十百分之五十九,九十不及格。... 阅读全文
posted @ 2010-07-02 14:21 解磊 阅读(471) 评论(0) 推荐(0) 编辑