摘要: ASP.NET中的post和get请求操作主要是为了测试一下当post请求中有get参数的时候,服务器端是如何处理这两种不同的参数的。是一起当post参数处理,还是分开处理。客户端post_test.html Post_Get Test 服务器端 Default.aspx 服务器端Default.aspx.csusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.U... 阅读全文
posted @ 2013-07-19 10:23 returnKing 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 在应用有frameset或者iframe的页面时,parent是父窗口,top是最顶级父窗口(有的窗口中套了好几层frameset或者iframe),self是当前窗口, opener是用open方法打开当前窗口的那个窗口。window.self功能:是对当前窗口自身的引用。它和window属性是等价的。语法:window.self注:window、self、window.self是等价的。window.top功能:返回顶层窗口,即浏览器窗口。语法:window.top注:如果窗口本身就是顶层窗口,top属性返回的是对自身的引用。window.parent功能:返回父窗口。语法:window. 阅读全文
posted @ 2013-07-12 11:30 returnKing 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1.对象冒泡关键字this引用的是构造函数当前创建的对象,不过在这个方法中,this指向的是所属的对象把ClassA作为常规的函数来建立继承机制。 1 function ClassA(sColor) 2 { 3 this.color=sColor; 4 this.sayColor=function(){ 5 alert(this.color); 6 }; 7 } 8 9 10 11 function ClassB(sColor){12 this.newMethod=ClassA;13 ... 阅读全文
posted @ 2013-07-11 08:53 returnKing 阅读(161) 评论(0) 推荐(0) 编辑
摘要: js继承有5种实现方式:1、继承第一种方式:对象冒充 function Parent(username){ this.username = username; this.hello = function(){ alert(this.username); } } function Child(username,password){ //通过以下3行实现将Parent的属性和方法追加到Child中,从而实现继承 //第一步:this.method是作为一个临时的属性,并且指向Parent所指向的对象, //第二步:执行this.method方法,即执行Parent所指向的对象函数 //第三步... 阅读全文
posted @ 2013-07-10 14:23 returnKing 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 工厂方式var oCar=new Object;oCar.color="red";oCar.doors=4;oCar.mpg=23;oCar.showCar=function(){ alert(this.colorr);};可能需要创建多个Car对象,所以可以封装在一个函数中,见代码function createCar(){var oTempCar=new Object;oTempCar.color="red";oTempCar.doors=4;oTempCar.mpg=23;oTempCar.showColor=function(){alert(thi 阅读全文
posted @ 2013-07-10 10:36 returnKing 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 1.字符串转换成字节数组byte[] array = Encoding.UTF8.GetBytes("你好");2.字节数组转换成base64字符串string base64 = Convert.ToBase64String(array);3.base64String转换成字节数组byte[] bitArray = Convert.FromBase64String(base64String);首先要明白它们本身是由什么组成的:流:二进制字节:无符号整数字符:Unicode编码字符字符串:多个Unicode编码字符那么在.net下它们之间如何转化呢?一般是遵守以下规则:流-& 阅读全文
posted @ 2013-07-09 21:22 returnKing 阅读(1722) 评论(0) 推荐(0) 编辑
摘要: 首先,在Windows Server 2003中建立自己的邮件服务器。  第一步:选择 开始->管理工具->配置您的服务器向导,然后点击"下一步",再点击"下一步",选择"自定义配置",点击"下一步",选择"邮件服务器(POP3,SMTP)"  第二步:此时在开始->管理工具下面多了POP3服务,选择它,右击服务器名,选择新建->域,填写域名,例如:jcj.mail  第三... 阅读全文
posted @ 2009-10-30 19:23 returnKing 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 我们在使用SqlDataSource进行并发策略的时候比较容易实现,通过设置ConflictDetection值为CompareAllValues,OldValuesParameterFormatString="original_{0}"就可以在SelectCommand,UpdateCommand,DeleteCommand里面进行设置即可。设计Account(AccountID,Account... 阅读全文
posted @ 2009-10-19 19:34 returnKing 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 解决方案:把“VIA协议”给启用了,停用“VIA协议”问题解决。"VIA协议"停用方法:开始->程序->Microsoft SQL Server 2005->配置工具->SQL Server Configuration Manager ->打开后找到"SQL Server 2005 网络配置"->MSSQLSERV... 阅读全文
posted @ 2009-07-14 22:48 returnKing 阅读(3312) 评论(0) 推荐(0) 编辑
摘要: 存储过程中可以定义输出变量,返回值,执行存储过程还能获得结果集。每个存储过程都有默认的返回值,默认值为0。下面我们分别看看在management studio中如何查看输出参数,返回值以及结果集,然后我们再在ASP.NET调用存储过程中如何获得输出参数,返回值以及结果集。首先:在sql server management studio中查看输出参数,返回值以及结果集。本示例以Northwind数据... 阅读全文
posted @ 2009-07-14 19:32 returnKing 阅读(4187) 评论(0) 推荐(1) 编辑