原创 擴展方法(C# 3.0 語言)
namespace ExtensionMethods { public static class MyExtensions { public static int WordCount(this String str) {
原创 Web Application的部署
1.項目完成後,在本地建一個發佈目錄,先發布到本地的發佈目錄 2.再上傳到服務器(win2003)網站映射的目錄,如果是web下的文件改變,更新發
原创 隱藏服務器端控件
FindHtmlButtonFromMaster(ConstantDefine.MASTERPAGE_BUTTON_AddAwoke).Style.A
原创 WebApplication(asp.netWeb應用程序)和WebSite(建網站)區別
WebApplication編程模型的優點: ●網站編譯速度快,使用了增量編譯模式,僅僅只有文件被修改後,這部分纔會被增量編譯進去。 ●生成的程
原创 大數據量顯示列表的頁面(建索引)
一定要在查詢列表頁面的查詢條件(字段)建索引,這樣效果很明顯!
原创 c#類型轉換(Convert.ToInt32與Int32.Parse,Int32.TryParse的區別和性能)
using System;using System.Collections.Generic;using System.Text;namespace ConsoleApplication1{ class Program { static
原创 常用javascript方法
//字符串去重複 function StrDistinct(swd) { Array.prototype.unique = function() { var a =
原创 GridView動態組合列
Label lblInfo = new Label(); lblInfo.Text = "<font color=green>增加聯繫人,未保存</font>"; grvCompanyContact.Foot
原创 c# 新的實用但容易忘記的方法
1.public static string Join( string separator,string[] value) 在指定 String
原创 25大軟件編程錯誤不可赦(寫程序應注意)
大多數IT安全事件(如補丁程序或網絡攻擊等)都與軟件編程錯誤有關,在過去的三年中,非贏利調研機構MITRE和美國系統網絡安全協會(SANSInstitute)發現了700多處常見的軟件編程錯誤,經過安全專家的篩選,最終於週一公佈了以下25
原创 C# 集合
System.Collections 命名空間包含接口和類,這些接口和類定義各種對象(如列表、隊列、位數組、哈希表和字典)的集合。 System.Collections.Generic 命名空間包含
原创 Silverlight 2.0中文學習資源集萃
Silverlight 2.0中文學習資源集萃 作者 朱永光 發佈於 2008年4月15
原创 c# 執行客戶端腳本方法
ClientScript.RegisterStartupScript(this.GetType(), "btnsave", "<script language='javascript'>Save();</script>"); 使用asp
原创 軟件開發
1.面向服務的架構(SOA)和麪向服務的集成(SOI)2.Windows Workflow3.WPF和Silverlight 4.SAP瞭解5.UML
原创 當前頁刷新父窗口後再彈出問題的解決
document.domain = "XX.com"; function Save() { alert("已成功取消!"); var from = "<%=From%>";