2009年5月12日
摘要: 一、定义分页类及存储过程:using System;using System.Collections.Generic;using System.Text;/**//// <summary>/// .Net通用分页类(存储过程分页版,可以选择页码的显示样式,且有中英选择)/// 作者:启程 www.letwego.cn/// 可用于任意用途,请保留作者信息,谢谢!/// </sum... 阅读全文
posted @ 2009-05-12 14:39 笑傲江湖 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 可以用于table的td,也可以用在div上,类似IBM的效果鼠标经过时改变背景颜色插入代码:<!--<table><tr><td width="100" height="100" bgcolor="#BDDEEE" onMouseOver="this.bgColor='#E6EEF2'" onMouseOut="this.bgColor='#BDDEEE'"&... 阅读全文
posted @ 2009-05-12 14:37 笑傲江湖 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 当然也适用于其他数据绑定控件,使用方法<%Eval("{0:d}")%>åU²=EԜ‚®bbs.51aspx.com]Ï+)¡ÍKhï 形式 语法 结果 注释 数字 {0:N2} 12.36 数字 {0:N0} 13 货币 {0:c2} $12.36 货币 {0:c4} $12.3656 货币 "¥{... 阅读全文
posted @ 2009-05-12 13:53 笑傲江湖 阅读(260) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta ... 阅读全文
posted @ 2009-05-12 09:24 笑傲江湖 阅读(838) 评论(0) 推荐(0) 编辑
摘要: 以下是引用片段:  Function c2u(myText)   Dim i   c2u = ""   For i = 1 to Len(myText)   c2u = c2u & "&#x" & Hex(AscW(Mid(myText, i, 1))) & ";"   Next   End Function 以下是引用片段:  Function cutStr(str,st... 阅读全文
posted @ 2009-05-12 09:12 笑傲江湖 阅读(267) 评论(0) 推荐(0) 编辑
摘要: $("img").each(function(){ if($(this).width() > $(this).parent().width()) { $(this).width("100%"); }}); 阅读全文
posted @ 2009-05-12 09:09 笑傲江湖 阅读(1144) 评论(1) 推荐(0) 编辑
  2009年5月11日
摘要: 在我们开发过程中,经常会复制一些代码,而Visual Studio会自动把这些代码的ID重新生成,常常导致我们还必须去修改回原ID其实,Visual Studio是可以保留原始ID的。我们可以通过在Tools->Options->Text Editor->HTML->Miscellaneous中,把Auto ID elements on paste in Source Vi... 阅读全文
posted @ 2009-05-11 13:22 笑傲江湖 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 还有由于那个eWebEditor编辑器的问题。今天检查公司一老站后台,发现eWebEditor编辑不能使用,按照前段时间的博文“IE 8.0 下 eWebEditor不能正常使用的解决办法”中修改了Edit.js一行代码。修改之后一同事使用IE7竟然不能正常使用该编辑器,修改之后可以。估计还是那行代码的问题。恢复以前的,IE7可以而IE8不可以。看来还必须先判断IE版本然后... 阅读全文
posted @ 2009-05-11 13:11 笑傲江湖 阅读(680) 评论(0) 推荐(0) 编辑
摘要: 转一位前辈的代码自己加了点注释,以备自己使用时查找,同时也希望能给需要的人一点帮助. using System; using System.Xml; using System.Text; using System.IO; using System.Data; namespace TestCenter.XMLData { /**//// /// XMLHandle XML操作。 ... 阅读全文
posted @ 2009-05-11 13:06 笑傲江湖 阅读(175) 评论(0) 推荐(0) 编辑
摘要: DateTime dt = DateTime.Now;dt.ToString();//2005-11-5 13:21:25dt.ToFileTime().ToString();//127756416859912816dt.ToFileTimeUtc().ToString();//127756704859912816dt.ToLocalTime().ToString();//2005-11-5 21... 阅读全文
posted @ 2009-05-11 13:01 笑傲江湖 阅读(381) 评论(0) 推荐(0) 编辑