摘要: --- 获取数据库表sELECT TABLE_CATALOG as "DataBaseName", TABLE_SCHEMA as "Table" , TABLE_NAME as "TableName" ,TABLE_TYPE as "表类型" FROM INFORMATION_SCHEMA.TABLES where TABLE_CATALOG=N'acdddC' order by TABLE_NAME ---- 获取指定表的字段SELECT * FROM acdddC.INFORMATION_SC 阅读全文
posted @ 2011-06-28 11:14 Rhythmk 阅读(422) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Reflection;namespace WebLinq{ public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { User u = new User(); u.Age = 18; u 阅读全文
posted @ 2011-06-19 21:07 Rhythmk 阅读(261) 评论(0) 推荐(0) 编辑
摘要: public partial class SystemManage_ModulePicture : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string strModuleID=Request.QueryString["ModuleID"].ToString(); Module instance = new Module(); byte[] imgData = instance.GetOneModule(strModuleID) 阅读全文
posted @ 2011-06-16 15:06 Rhythmk 阅读(2509) 评论(0) 推荐(0) 编辑
摘要: WCF 安全 【待完成】 阅读全文
posted @ 2011-06-09 10:04 Rhythmk 阅读(145) 评论(0) 推荐(0) 编辑
摘要: WCF 序列化 阅读全文
posted @ 2011-06-09 10:04 Rhythmk 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 契约:注意:所有传入的参数必须设置成字符串using System;using System.Collections.Generic;using System.ServiceModel;using Rhythmk.Model;using System.ServiceModel.Web;namespace Rhythmk.Contracts{ /// HTTP方法中: /// PUT相当于Update /// GET相当于Read /// POST相当于Create /// DELETE相当于Delete [ServiceContract] [DataContractFormat] public 阅读全文
posted @ 2011-06-08 19:30 Rhythmk 阅读(276) 评论(0) 推荐(0) 编辑
摘要: --删除表exec sp_msforeachtable 'drop table ?' --- 删除存储过程DECLARE @STRING VARCHAR(8000)WHILE EXISTS(SELECT NAME FROM SYSOBJECTS WHERE TYPE='P' AND STATUS>=0)BEGINSELECT @STRING='DROP PROCEDURE '+NAME FROM SYSOBJECTS WHERE TYPE = 'P' AND STATUS>=0--SELECT @STRINGEXEC( 阅读全文
posted @ 2011-06-08 17:45 Rhythmk 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 契约:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ServiceModel;namespace Rhythmk.Contracts{ /// <summary> /// 对象在每次调用前创建,在调用后回收 /// </summary> [ServiceContract] public interface IPerCall { [OperationContract] void Add(); [OperationContract] 阅读全文
posted @ 2011-06-01 15:59 Rhythmk 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 契约:namespace Rhythmk.Contracts{ [ServiceContract(Namespace="http://wwww.wangkun.com")] public interface ICalculate { [OperationContract] [TransactionFlow(TransactionFlowOption.Mandatory)] void OperationTransaction(int i); /* TransactionFlow - 指定服务操作是否愿意接受来自客户端的传入事务 NotAllowed - 禁止事务。默认值 Al 阅读全文
posted @ 2011-06-01 14:44 Rhythmk 阅读(451) 评论(1) 推荐(1) 编辑
摘要: 项目结构:Rhythmk.Contracts //契约Rhythmk.Services //服务Rhythmk.WCFSvc // 服务寄宿Rhythmk.test //测试-----------------------------------------------------------------说明:通过Session 去保证对象的一致性,通过绑定 binding="wsHttpBinding" 实现会话状态1.Rhythmk.Contracts //契约using System.ServiceModel; /// SessionMode - 获取或设置是否允许、不 阅读全文
posted @ 2011-05-30 13:22 Rhythmk 阅读(652) 评论(0) 推荐(0) 编辑
摘要: 2.WCF 同步 异步using System.ServiceModel;namespace Rhythmk.Contracts{ [ServiceContract(Namespace="http://wwww.wangkun.com")] public interface ICalculate { //通过 IsOneWay 实现无返回 异步调用 [OperationContract( IsOneWay=true)] void IsOneWay(); [OperationContract] void IsReturnWay(); }}------------------- 阅读全文
posted @ 2011-05-30 13:11 Rhythmk 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 1.结构2.契约:using System.ServiceModel;using Rhythmk.Entity;namespace Rhythmk.Contracts{ [ServiceContract(Namespace="http://wwww.wangkun.com")] publicinterface ICalculate { [OperationContract(Name="AddServices")] double Add(double x, double y); /* Name :则体现在客户端调用此... 阅读全文
posted @ 2011-05-25 14:11 Rhythmk 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2010-11-07 10:23 Rhythmk 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$.fn.ltrim=function(val){return val.replace(/(^\s*)/,"");}$.fn.rtrim=function(val){return val.replace(/(\s*$)/g,""); }$.fn.trim=function(val){return val.replace(/(^\s*)|(\s*$)/g 阅读全文
posted @ 2010-11-04 22:53 Rhythmk 阅读(1212) 评论(64) 推荐(0) 编辑
摘要: 代码常规的数据导入导出:使用DTS向导迁移你的Access数据到SQL Server,你可以使用这些步骤:   1在SQL SERVER企业管理器中的Tools(工具)菜单上,选择Data Transformation   2Services(数据转换服务),然后选择czdImport Data(导入数据)。   3在Choose a Data Source(选择数据源)对话框中选择Microso... 阅读全文
posted @ 2010-07-19 19:24 Rhythmk 阅读(5585) 评论(2) 推荐(0) 编辑
摘要: stopPropagation() 方法定义和用法不再派发事件。终止事件在传播过程的捕获、目标处理或起泡阶段进一步传播。调用该方法后,该节点上处理该事件的处理程序将被调用,事件不再被分派到其他节点。语法event.stopPropagation()在b/s开发中经常用到的javaScript技术整理 一、验证类1、数字验证内 1.1 整数 1.2 大于0的整数 (用于传来的ID的验证) 1.3 负整数的验证 1.4 整数不能大于iMax 1.5 整数不能小于iMin2、时间类 2.1 短时间,形如 (13:04:06) 2.2 短日期,形如 (2003-12-05) 2.3 长时间,形如 (2 阅读全文
posted @ 2010-05-08 17:02 Rhythmk 阅读(280) 评论(0) 推荐(0) 编辑
摘要: Window.close()这句脚本是用来关闭当前窗口,如果是在window.open的窗口中执行Window.close(),将会很顺利地将窗口关闭,但如果是在一非window.open打开的窗口中执行Window.close(),将会弹出一个提示窗口,如下: 要在程序中消除这个提示框也很简单,不过在IE6和IE7稍有不同 1. IE6 <html xmlns="http://www.w3... 阅读全文
posted @ 2010-05-08 16:51 Rhythmk 阅读(398) 评论(0) 推荐(0) 编辑
摘要: -- ======================================================--列出SQL SERVER 所有表,字段名,主键,类型,长度,小数位数等信息--在查询分析器里运行即可,可以生成一个表,导出到EXCEL中-- ======================================================SELECT (case wh... 阅读全文
posted @ 2010-05-08 16:49 Rhythmk 阅读(405) 评论(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 htt... 阅读全文
posted @ 2010-05-04 21:15 Rhythmk 阅读(237) 评论(1) 推荐(0) 编辑
摘要: 建立Man.csusing System.Xml.Serialization;//////Man 的摘要说明/// [Serializable] public class Man { public Man() { } [XmlElement("Man_Age")] public int Ag... 阅读全文
posted @ 2010-04-07 13:11 Rhythmk 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 1.Wamp5安装 Wamp5是Apache+PHP+Mysql 在windows下的集成环境。能够满足大多的php用户需求 。下载wamp5 进行安装以后 默认的是英语,可以通过点击屏幕右下角的的wamp5服务>右键>语言>Chinese 转换成中文操作界面。由于apache 与iis 一样默认的都是80 端口, 所以如果在机器上已经安装了IIS ,则会有些许冲突 ,解决的办法... 阅读全文
posted @ 2010-04-05 18:55 Rhythmk 阅读(1181) 评论(14) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingLucene.Net.Analys... 阅读全文
posted @ 2010-04-04 12:24 Rhythmk 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 把些好的一个URL重写的demo 传入服务器端 一直不能实现URL重写 于是在网上找了一些资料 http://www.vipcn.com/wangluobiancheng/ASP/293741.html我按照上面的配置可是还是不能实现。 偶然发现了如下方法 通过如下配置马上就成功了! http://www.it3f.com/article/sort05/sort032/info-1316.html... 阅读全文
posted @ 2010-03-11 14:38 Rhythmk 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 假设当前页完整地址是:http://www.test.com/aaa/bbb.aspx?id=5&name=kelli"http://"是协议名"www.test.com"是域名"aaa"是站点名"bbb.aspx"是页面名(文件名)"id=5&name=kelli"是参数【1】获取 完整url (协议名+域名+站点名+文件名+参数)string url=Request.Url.T... 阅读全文
posted @ 2010-03-08 09:52 Rhythmk 阅读(4369) 评论(0) 推荐(1) 编辑
摘要: HttpWebRequest 是 .net 基类库中的一个类,在命名空间 System.Net 下面,用来使用户通过 HTTP 协议和服务器交互。HttpWebRequest 对 HTTP 协议进行了完整的封装,对 HTTP 协议中的 Header, Content, Cookie 都做了属性和方法... 阅读全文
posted @ 2010-01-18 16:18 Rhythmk 阅读(406) 评论(0) 推荐(1) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Web;usingSystem.Web.Security;usin... 阅读全文
posted @ 2009-12-13 09:20 Rhythmk 阅读(795) 评论(0) 推荐(0) 编辑
摘要: 解读Lucene.Net 阅读索引 http://www.cnblogs.com/birdshover/archive/2008/08/07/1262521.html 阅读全文
posted @ 2009-11-20 14:34 Rhythmk 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 这是一个故事: "工程師修了一條隧道,隧道的一端就是美麗的風景,很多人會開車通過隧道.雖然隧道內已經有燈了,但是設計者擔心隧道可能會停電,所以在隧道的入口立了牌子,提醒駕駛員進入隧道前開燈.可是由此却使得駕駛員由於看到美麗的風景而忘記關燈的情況的發生." 引来对ooa,ood,oop的理解; 分析师拿到了政府,民众,组织,社团等的需求,这里泛指所有来自客户的需求了;了解需求,分析需求,分析技术实现... 阅读全文
posted @ 2009-11-11 08:59 Rhythmk 阅读(1216) 评论(0) 推荐(0) 编辑
摘要: 在jquery 中我们可以选择$().each() 与 $.each() 进行迭代对象和数组$(items).each(function(){ //item}) ,而后者则 $.each(items,function(i,item){//write yourcode})-----------------jquery ajax----------------------jquery 开发ajax 相... 阅读全文
posted @ 2009-10-20 12:06 Rhythmk 阅读(23508) 评论(1) 推荐(1) 编辑
摘要: 1.jQuery.fn.extend 是对jQuery方法进行扩展demo: jquery 本身并不提供 jQuery.color() 这个方法,如果我们需要对jQuery本身提供的方法进行扩展,则我们就需要是用jQuery.fn.extend [代码]2.jQuery.extend对jQuery对象的扩展,可以理解为静态方法,不需要实例jQuery就可以使用 jQuery.extend( { ... 阅读全文
posted @ 2009-10-19 11:28 Rhythmk 阅读(6578) 评论(1) 推荐(0) 编辑
摘要: 1.页面输出缓存 1>.在aspx页面顶部加上下面语句 ,则设置整个页面进行输出缓存<%@ OutputCache Duration="30" VaryByParam="none" %> Duration:设置缓存的有效时间; VaryByParam:根据Request请求的参数进行改变缓存页面 VaryByControl:则根据页面中控件属性的改变进行缓存页面eg:<%@... 阅读全文
posted @ 2009-09-30 11:26 Rhythmk 阅读(334) 评论(0) 推荐(1) 编辑
摘要: asc 按升序排列desc 按降序排列下列语句部分是Mssql语句,不可以在access中使用。SQL分类: DDL—数据定义语言(Create,Alter,Drop,DECLARE) DML—数据操纵语言(Select,Delete,Update,Insert) DCL—数据控制语言(GRANT,REVOKE,COMMIT,ROLLBACK)首先,简要介绍基础... 阅读全文
posted @ 2009-09-03 11:58 Rhythmk 阅读(342) 评论(0) 推荐(0) 编辑
摘要: --按姓氏笔画排序:SELECT*FROM TableName ORDERBY CustomerName COLLATE Chinese_PRC_Stroke_ci_as--数据库加密:SELECT encrypt('原始密码')SELECT pwdencrypt('原始密码')SELECT pwdcompare('原始密码','加密后密码')=1--相同;否则不相同 encrypt('原始密码')SELECT pwdencrypt('原始密码')SELECT pwdcompare('原始密 阅读全文
posted @ 2009-09-03 11:48 Rhythmk 阅读(512) 评论(1) 推荐(0) 编辑
摘要: 触发器是一种特殊的存储过程,它不能被显式地调用, 而是在往表中插入记录、更改记录或者删除记录时,当事件发生时,才被 自动地激活。2、这样做带来的 '功能':触发器可以用来对表实施复杂的完整性约束,保持数据的一致性,当触发器所保护的数据发生改变时,触发器会自动被激活, 响应同时执行一定的操作(对其它相关表的操作),从而保证对数据的不完整性约束或不正确的修改。触发器可以查询其它表,同时也可以执行复杂的... 阅读全文
posted @ 2009-09-01 09:52 Rhythmk 阅读(500) 评论(0) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->//声明方法一functionperson(name,age){this.name=name;this.... 阅读全文
posted @ 2009-08-18 15:02 Rhythmk 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 1. select 语句的基本结构是 select -->From-->where àgroup By àHaving àOrder By 2. Exists 条件 Exists 后面括号内的条件语句如果为真的话 这此次查询继续 ,如Exists跟的条件语句没有查询到数据则前面语句块的查询不再执行下去select provincename as '省名' ... 阅读全文
posted @ 2009-08-12 15:58 Rhythmk 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 在一个SQL Server数据库中,可以创建多达两万亿个表输入一条Create Table 语句 指定下列内容1.包含表的数据库2.表的所有者3.表名,在同一个数据库中和同一个所有者下,改表名必须与任何其他基表或视图不同4.指定1到1024个列5.主键约束(可选)6.1到250个Uniquer约束(... 阅读全文
posted @ 2009-08-12 11:19 Rhythmk 阅读(2886) 评论(1) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2009-08-12 10:28 Rhythmk 阅读(336) 评论(0) 推荐(0) 编辑
摘要: [代码][代码] 阅读全文
posted @ 2009-08-10 16:34 Rhythmk 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 游标简介: Sql游标提供了一种循环结果集的机制,它对数据集中的数据进行逐行读取,可以实现不易用select语句语法轻易地表达复杂计算。 通过sql语言从数据库中检索数据口,然后把结果放到内存的一块区域中.往往这个结果讲包含多条数据,这也是游标产生了一个不可避免的弊端对系统资源占用相对较大。游标的使用过程:1.声明游标2.打开游标3.从游标中重复(读取)行,有选择的修改或者删除4.关闭游标5.当不... 阅读全文
posted @ 2009-08-10 12:03 Rhythmk 阅读(561) 评论(1) 推荐(0) 编辑
Rhythmk 个人笔记