原创 Lucene代碼備份之分頁條件查詢
分頁條件查詢並且獲取數據,兩種方法,Query和Query2是兩種方法 另外我用的是最新的lucene.net 2.94版本的寫法 是通過TopDocs2Data方法取最終數據的,相對以前版本好處是按需取數據,不用一次加載全部 u
原创 掉字符串裏的特定字符,並返回不包含該特定字符的一個新字符串
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> class Program
原创 程序版 樹形結構
第一種: /// <summary> /// 頁面加載 /// </summary> /// <param name="send
原创 asp.net 單用戶登錄
可以通過SessionID和用戶名來保證同一個用戶不能同時登錄的問題,下面程序模仿了QQ的登錄,當登錄後判斷當前帳號是否已經登錄,如果登錄。則踢掉以前登錄的用戶。 1.通過Application全局變量來存儲SessionID和用戶名
原创 asp.net 不用控件 循環輸出數據庫數據的方法
public string test = ""; protected void Page_Load(object sender, Event
原创 c#獲取本地IP和MAC地址
using System; using System.Management; using System.Net; public class Program { static void Main(string[]
原创 用.NET(C#)實現IP定位地理位置
用.NET(C#)實現IP定位地理位置 http://blog.sina.com.cn/s/blog_49b6b5590100kkxr.html
原创 分頁控件哦
http://www.cnblogs.com/ASPNET2008/archive/2008/03/29/1128917.html
原创 最棒的 10 款 jQuery 日曆插件 .
最棒的 10 款 jQuery 日曆插件 http://blog.csdn.net/chinajiyong/article/details/7390697
原创 js 連接url加參數
document.getElementById("myfrom").action = 'a.aspx?keyword='+參數; document.getElementById("myfrom").submit(); 即可
原创 數據庫版 樹形生成結構
測試數據 DECLARE @t TABLE(ID char(3),PID char(3),Name nvarchar(10)) INSERT @t SELECT '001',NULL ,'山東省' UNION ALL SE
原创 C#提升性能"數據庫連接打開與關閉"經驗分享(附:優化過的DBHelper類) 之配餐系統的開發
http://www.cnblogs.com/know/archive/2011/03/10/1979751.html
原创 分頁HTML代碼
public string RetureHtml() { int PageCount = Count % Number == 0 ? Convert.ToInt32(Count / Number)
原创 母版頁的子頁引用css和javascript
在模板頁面: ContentPlaceHolder控件拖放到<head></head>中間: <asp:ContentPlaceHolder ID="head" runat="server"> </asp:ContentPla
原创 字符串轉換爲日期型
如:"20100101"轉換成日期型? "20100101"轉換成int型怎麼轉換?? 1、DateTime dt=Convert.ToDateTime("20100101".Substring(0,4)+"-"+"20100101"