`
wyf
  • 浏览: 433285 次
  • 性别: Icon_minigender_1
  • 来自: 唐山
社区版块
存档分类
最新评论
文章列表
void ShowData() { using (DBDataContext db = new DBDataContext(Database.ConnectionString)) { Expression<Func<T_Bargin, bool>> expr = n => GetCondition(n); var _query = db.T_Bargins.Where<T_Bargin>(expr.Compile()).Select(b => ...
public static class DataTableExtensions { /// <summary> /// DataTable 转换为List 集合 /// </summary> /// <typeparam name="TResult">类型</typeparam> /// <param name="dt">DataTable</param> / ...
<asp:GridView runat="server" BackColor="White" BorderColor="#009fef" style=" word-break:keep-all " BorderStyle="Solid" BorderWidth="1px" CellPadding="4"> <FooterStyle BackCo ...

js比较日期

  if (Date.parse($("#startdate").val().replace("-", "/")) > Date.parse($("#enddate").val().replace("-", "/"))) { alert("起始日期要小于或等于截至日期"); return; }  注意日期格式转化。   v ...
private void SetPageNoCache() { Response.Buffer = true; Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1); Response.Expires = 0; Response.CacheControl = "no-cache"; Response.AddHeader("Pragma& ...

c#遍历HashTable

  foreach (System.Collections.DictionaryEntry objDE in objHasTab) { Console.WriteLine(objDE.Key.ToString()); Console.WriteLine(objDE.Value.ToString()); } System.Collections.IDictionaryEnumerator enumerator = objHashTablet.GetEnumerator(); while (enumerator.MoveNext()) { Con ...
1、先引用System.Web.SessionState 这个命名空间,2、如果是要在HttpHandler 中读取Session的内容,就要在实现IHttpHandler 的类中同时实现IReadOnlySessionState 这个接口。3、如果是要在HttpHandler 中读写Session的内容,就要在实现IHttpHandler 的类中同时实现IRequiresSessionState 这样就可以在自定义的HttpHandler 中正常的使用Session了。
/* * jQuery AutoComplete * * Author: cntlis * http://blog.csdn.net/cntlis * * Licensed like jQuery, see http://docs.jquery.com/License * * 作者:cntlis * QQ:8112857 */ $.fn.AutoComplete = function(url,option){ var me= this; var strKey= $(me).val(); var strKeyBak= "&quo ...
  <table id="table6" class="caseTable"> <tbody id="tbody6"> <tr class="template repeat"> <td id="t1" class="btd"> 商品名或通用名 ...
缓存主要是为了提高数据的读取速度。因为服务器和应用客户端之间存在着流量的瓶颈,所以读取大容量数据时,使用缓存来直接为客户端服务,可以减少客户端与服务器端的数据交互,从而大大提高程序的性能。 本章从缓存 ...
先把文章中要用到一些扩展程序集贴出来。C#用到了System.Web.Extensions程序集,包括3个文件:System.Web.Extensions.dllSystem.Web.Extensions.Design.dllAJAXExtensionsToolbox.dllFlash用到了adobe的corelib-.90程序集:corelib.swc网上现在有很多将flash与C# web 服务程序通讯的资料,不过很多都是用remoting或者web service的方式做的,而且很多高手还做了效率比较,结果是基于TCP协议的remoting效率最好,但是这里对remoting就不多说了,并 ...
$.fn.enable_changed_form_confirm = function () { var _f = this; $(':text, :password, textarea', this).each(function() { $(this).attr('_value', $(this).val()); }); $(':checkbox, :radio', this).each(function() { var _v = this.checked ? 'on' : ' ...

log4j入门(转)

为什么要用日志(Log)? 这个……就不必说了吧。 为什么不用System.out.println()? 功能太弱;不易于控制。如果暂时不想输出了怎么办?如果想输出到文件怎么办?如果想部分输出怎么办?…… 为什么同时使用commons-logging和Log4j?为 ...
Global site tag (gtag.js) - Google Analytics