摘要: ValidateRequest = false in the. Net 4.0, no matter with ASP.NET 4.0验证请求(更新) A potentially dangerous Request.Form value was detected from the client (ctl00$MainContent$txtCode="<code></code>"). Des... 阅读全文
posted @ 2012-07-10 22:28 张亮1988 阅读(776) 评论(0) 推荐(0) 编辑
摘要: CKeditor,以前叫FCKeditor,已经使用过好多年了,功能自然没的说。最近升级到3.0版,好像重写了代码,所以构建的方式也有了些变化,应该说是更简单了。 相关地址: 官方网站:http://ckeditor.com/ 下载地址:http://ckeditor.com/download CKfinder:http://ckfinder.com/ 用于上传的插件(有四种... 阅读全文
posted @ 2012-07-10 22:24 张亮1988 阅读(453) 评论(0) 推荐(0) 编辑
摘要: url:http://interFace1.test.com/apis/interFaceTest.aspx?id=123&pwd=123 HttpWebRequest myReq = (HttpWebRequest)HttpWebRequest.Create("接口地址-URL");myReq.Timeout = 12000;HttpWebResponse HttpWResp = (HttpWe... 阅读全文
posted @ 2012-07-02 08:20 张亮1988 阅读(1313) 评论(0) 推荐(0) 编辑
摘要: 第一:(需替换<>) <script><!-- var limit="3:00" if ( document.images ) { var parselimit=limit.split( ":" )parselimit=parselimit[0]*60+parselimit[1]*1 } function beginrefresh( ) { if ( !document.image... 阅读全文
posted @ 2012-07-02 08:08 张亮1988 阅读(161) 评论(0) 推荐(0) 编辑
摘要: QueryString传值: 1. 这是最简单的传值方式,但缺点是传的值会显示在浏览器的地址栏中且不能传递对象,只适用于传递简单的且安全性要求不高的整数值,例如:2. 新建一个WEB项目,添加一个页面命名为Test1,在页面中添加一个Button命名为btnLogin,再添加两个TextBox分别命名为tbxUserName和tbxPassWord,添加Buttond的Click()事件:private void btnLogin_Click (object sender, System.EventArgs e){ string url=" Test1.aspx?UserName=& 阅读全文
posted @ 2012-04-26 16:40 张亮1988 阅读(211) 评论(0) 推荐(0) 编辑
摘要: //读取,删除,批量拷贝,删除,写入,获取文件夹大小,文件属性,遍历目录using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using Syste... 阅读全文
posted @ 2012-04-01 15:25 张亮1988 阅读(165) 评论(0) 推荐(0) 编辑
摘要: //声明一个一维数组 int[] array1 = new int[5]; //声明一个一维数组 int[] array2 = new int[] { 1, 3, 5, 7, 9 }; //替代语法 int[] array3 = { 1, 2, 3, 4, 5, 6 }; //声明一个二维数组 int[,] multiDimensi... 阅读全文
posted @ 2012-03-23 13:32 张亮1988 阅读(1006) 评论(0) 推荐(0) 编辑
摘要: 今天到博客堂,看见开心就好发的这个贴子,感觉很好。 新浪发送短信的Web Service资源的该问地址为:http://smsinter.sina.com.cn/ws/smswebservice0101.wsdl,这是一个WSDL文件格式,您可以直接在您的VS.NET环境中直接添加Web引用,把该地址输入即可。 该Web Service就只有一个方法,即string sendXml(carri... 阅读全文
posted @ 2012-03-23 13:27 张亮1988 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 一,用foreach: foreach(Control cl in this.Page.FindControl("Form1").Controls) { if(cl.GetType().ToString()=="System.Web.UI.WebControls.TextBox") { ((TextBox)cl).Text="";... 阅读全文
posted @ 2012-03-13 19:01 张亮1988 阅读(367) 评论(0) 推荐(0) 编辑
摘要: jQuery的绑定事件非常方便,有bind、unbind、live、one,还有它帮你把一些常用的事件给单独了出来,比如控件的onclick事件,我们绑定onclick事件的时候只需要view sourceprint?1$("#testButton").click(function() { 2alert("I'm Test Button"); 如果我们要取消绑定的事件?jQuery有unbind的方法,专门用来取消绑定的事件view sourceprint?1$("#testButton").unbind("clic 阅读全文
posted @ 2011-12-01 16:48 张亮1988 阅读(9039) 评论(3) 推荐(1) 编辑