摘要: 一、使用方法:1、在页面<head>中引入ckeditor核心文件ckeditor.js<script type="text/javascript"src="ckeditor/ckeditor.js"></script>2、在使用编辑器的地方插入HTML控件<textarea><textarea id="TextArea1" cols="20" rows="2"class="ckeditor"></textar 阅读全文
posted @ 2012-06-05 13:47 Setme 阅读(38315) 评论(0) 推荐(4) 编辑
摘要: CKEDITOR.editorConfig = function (config) { config.language = 'zh-CN'; //语言 config.skin = 'v2'; //样式 config.enterMode = CKEDITOR.ENTER_BR; //回车时产生的标示 config.width = '660px'; //默认宽度 config.height = '410px'; //默认高度 config.r... 阅读全文
posted @ 2012-06-05 12:00 Setme 阅读(2903) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Xml; 6 7 namespace Common 8 { 9 public class Xml10 {11 private XmlDocument xmlDoc;12 13 /// <summary>14 /// xml文件名,调用次大类必须先设定xml文件名15 /// </summary>16... 阅读全文
posted @ 2012-06-05 11:49 Setme 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Common:/// <summary>/// 反序列化/// </summary>/// <param name="type">对象类型</param>/// <param name="filename">文件路径</param>/// <returns></returns>public static object Load(Type type, string filename){ FileStream fs = null; try { // open th 阅读全文
posted @ 2012-06-05 11:46 Setme 阅读(1167) 评论(0) 推荐(0) 编辑
摘要: 为了演示CalendarExtender丰富的使用方法,本例子一共使用了两个TextBox控件、一个Image控件和两个CalendarExtender组件。我会通过两个TextBox演示CalendarExtender两种不同的使用方法。我们将以上控件都拖进设计界面,代码如下:<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat 阅读全文
posted @ 2012-06-05 11:25 Setme 阅读(4056) 评论(0) 推荐(0) 编辑
摘要: 以前总手写TAB选项卡,总要写很多代码,ASP.net里AJAX - Container已为我们提供了选项卡功能,但默认样式比较难看,今天研究了一下它的CSS样式,自已写了一个给大家分享一下:最终效果:所用背景图片如下:Tab_Option_bg.gif Tab_Option_bg_ON.gif Tab_Option_bg_OFF.gif Aspx文件:<asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager><cc1:TabCont 阅读全文
posted @ 2012-06-01 20:52 Setme 阅读(4138) 评论(0) 推荐(1) 编辑
摘要: <meta http-equiv="Refresh" content="1;URL=inner.aspx " />页面1秒以后跳转到指定页 阅读全文
posted @ 2012-06-01 20:11 Setme 阅读(404) 评论(0) 推荐(0) 编辑
摘要: <iframe id="frmleft" name="frmleft" frameborder="0" onload="this.height=frmleft.document.body.scrollHeight"></iframe> 阅读全文
posted @ 2012-06-01 20:10 Setme 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 首先看看这个链接,出现的页面横向出现滚动条,把页面撑大,这是我们不希望看到的!http://www.cnblogs.com/tuyile006/archive/2006/05/07/393254.htmlTextBox设置为多行的时候,如果输入的内容太多,则在前台,表格会被撑的很大,这个问题的确是有点烦!这个问题说大不大,说小不小,既然博客园都出现了这个问题,我想有必要再讨论一下解决的方案.当我们要实现TextBox实现多行的时候,我们要设置TextMode为MultiLine,如果要实现自动换行,我们要设置Wrap为True,那么这样我们输入数据的时候,在TextBox里则能自动换行了,那么 阅读全文
posted @ 2012-06-01 20:08 Setme 阅读(254) 评论(0) 推荐(0) 编辑
摘要: <head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title><script type="text/javascript"> function countDown(secs,surl){ var jumpTo = document.getElementById('jumpTo'); jumpTo.innerHTML=secs; if 阅读全文
posted @ 2012-06-01 20:05 Setme 阅读(4935) 评论(0) 推荐(0) 编辑