随笔 - 17  文章 - 1  评论 - 32 
  2008年4月10日
摘要: TinyMCE的使用阅读全文
posted @ 2008-04-10 11:47 wilensky 阅读(680) 评论(0) 编辑
  2007年11月14日
摘要: 一个可以生成本月月历的sql函数阅读全文
posted @ 2007-11-14 16:24 wilensky 阅读(354) 评论(0) 编辑
  2007年6月18日
摘要: 1usingSystem;2usingSystem.Web.UI;3usingSystem.Web.UI.WebControls;4usingSystem.ComponentModel;5usingSystem.Text;6namespaceFlashAdRotator7{8/**////<summary>9///fpAdRotator的摘要说明。10///</summary&g...阅读全文
posted @ 2007-06-18 10:32 wilensky 阅读(1166) 评论(4) 编辑
  2007年6月8日
摘要: 以后此帖会不定期更新的:1.屏蔽textbox等文本框控件的回车响应事件,在文本框上按回车时会刷新页面,为了屏蔽这个事件,在文本控件加入onkeypress="javascript:if(event.keyCode==13){event.returnValue=false;}"阅读全文
posted @ 2007-06-08 10:42 wilensky 阅读(161) 评论(4) 编辑
  2007年5月8日
摘要: 1.打开新的窗口并传送参数://传送参数:response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="++"’)</script>")  //接收参数:stringa=Request.QueryString("id");stringb=Request.Q...阅读全文
posted @ 2007-05-08 11:38 wilensky 阅读(160) 评论(0) 编辑
  2007年4月23日
摘要: 我们经常会遇到对时间进行转换,达到不同的显示效果,默认格式为:2006-6-6 14:33:34 如果要换成成200606,06-2006,2006-6-6或更多的格式该怎么办呢?这里将要用到:DateTime.ToString的方法(String, IFormatProvider)示例:using System;using System.Globalization;String format="...阅读全文
posted @ 2007-04-23 11:36 wilensky 阅读(562) 评论(0) 编辑
  2007年4月11日
摘要: 在使用 datalist 等控件绑定前台数据的时候,有时希望一行只显示定长字符,多出来的部分以省略号代替,我使用三元运算符来做:<asp:DataListid="DataList1"runat="server"RepeatColumns="5"Width="616px"><ItemTemplate><tableborder="0"cellpadding="2"cell...阅读全文
posted @ 2007-04-11 10:31 wilensky 阅读(1232) 评论(5) 编辑
摘要: 表格自动换行,或者固定高度阅读全文
posted @ 2007-04-11 10:07 wilensky 阅读(857) 评论(3) 编辑
  2007年4月7日
摘要: 生成缩略图的一个方法,根据自己定义的高宽阅读全文
posted @ 2007-04-07 11:13 wilensky 阅读(298) 评论(2) 编辑
摘要: usingSystem;usingSystem.Web;namespaceadmin{/**////<summary>///Utility的摘要说明。///</summary>publicclassUtility{publicUtility(){////TODO:在此处添加构造函数逻辑//}publicstaticstringGetRequestString(HttpReq...阅读全文
posted @ 2007-04-07 11:10 wilensky 阅读(316) 评论(3) 编辑