我的博客
摘要: function ReloadEditor(){ var oCKeditor=CKEDITOR.replace('txtcontent'),{toolbar:'Full'}); //实例化editor oCKeditor.on('instanceReady',function(event)) //准备 { var editor=event.editor; setTimeout(function(){ //延时加载 if(!editor.element) ... 阅读全文
posted @ 2013-06-25 16:06 Mr.Ren 嘚、|遊 樂 場 阅读(4360) 评论(2) 推荐(0) 编辑
摘要: 1 public class BaseHandler:System.Web.UI.Page 2 { 3 protected override void OnPreInit(EventArgs e) 4 { 5 base.OnPreInit(e); 6 if(用户未登录) 7 { 8 alert('请登录'); 9 return;10 }11 }12 } 阅读全文
posted @ 2013-06-21 16:06 Mr.Ren 嘚、|遊 樂 場 阅读(159) 评论(0) 推荐(0) 编辑
摘要: public enum DateInterval{ Second,Minute,Hour,Day,Week,Month,Quarter,Year}public static long DateDiff(DateInterval Interval,System.DateTime StartDate,System.DateTme EndDate){ long lngDateDiffValue=0; System.TimeSpan TS=new System.TimeSpan(EndDate.Ticks-StartDate.Ticks); switch(Interval){ cas... 阅读全文
posted @ 2013-06-13 10:17 Mr.Ren 嘚、|遊 樂 場 阅读(866) 评论(0) 推荐(0) 编辑
摘要: 点我,点我,点我 1 using System; 2 using System.Collections.Generic; 3 using System.Text; 4 using System.Text.RegularExpressions; 5 using System.Web; 6 using System.Security.Cryptography; 7 8 namespace Cvv.Components 9 { 10 public static class StringHelper 11 { 12 静态方法#region 静态方法 ... 阅读全文
posted @ 2013-04-25 09:45 Mr.Ren 嘚、|遊 樂 場 阅读(466) 评论(0) 推荐(0) 编辑
摘要: //第1: /*-- 内置跳转 ----*/ Response.Redirect( Request.Url.ToString( ) ); //第2: /*----内置 html ----*/ Response.AddHeader( "Refresh","0" ); //将指定的标头和值添加到此响应的 HTTP 标头。 //第3: Response.Write( " <script langu... 阅读全文
posted @ 2010-03-12 22:21 Mr.Ren 嘚、|遊 樂 場 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Convert类是将一个基本数据类型转换为另一个基本数据类型。例如如下的代码就行不通了:我们把上面的代码稍稍修改就可以达到目的了下面的代码示例演示 Convert 类中的一些转换方法,包括 ToInt32、ToBoolean 和 ToStringdouble dNumber = 23.15; try { // Returns 23 int iNumber = System.Convert.ToIn... 阅读全文
posted @ 2010-03-12 22:20 Mr.Ren 嘚、|遊 樂 場 阅读(1042) 评论(0) 推荐(1) 编辑