讓文字框裡只能輸入moneyCodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><script language="javascript" type="text/javascript"> function onlyNum() { if(!(event.keyCode==46)&
前幾天用那個System.Timers.Timer類中的Timer,代碼很簡單CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->System.Timers.Timer t = new System.Timers.Timer(10000);//執行個體化Timer類,設定間隔時間為10000毫秒; t.Elapsed += new System.
public class Assemble<T> where T:new這句話的意思是聲明了一個叫做Assemble<T>的泛型類,然後T的限制為必須要有一個無參構造器。CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->public class Assemble<T> where T : new() {
System.Web.Routing入門及進階 上篇 上面介紹的是最簡單的一種定義方式。當然我們可以建立更複雜的規則。其中就包括設定規則的預設值以及設定規則的Regex。UrlRouting進階應用程式預計效果:Code highlighting produced by Actipro CodeHighlighter
文章目錄 Ensuring That Your Silverlight 2 Applications Work with the Silverlight 3 Beta Release 首先你需要下載Microsoft Web Platform Installer 2.0 Beta下載完後啟動安裝包,它會去擷取最新的網路安裝包資訊我驚喜的發現Silverlight 3 Tools for Visual Studio 2008 SP1
可能很多人都看過灰鴿子中的 設定管理員端,點擊後彈出一個視窗,選擇幾項之後,點產生,就可以產生木馬的伺服器端(一個exe檔案),只要這個exe檔案運行在誰的電腦上,那個電腦就成了肉雞。^_^ 不過我不會這招。我今天是想做個能夠通過一個exe檔案產生另一個exe檔案的東東。首先建立個winform應用程式,代碼如下CodeCode highlighting produced by Actipro CodeHighlighter
我們知道event的第二個參數EventArgs,可以用來在處理事件觸發時,傳遞資料,今天就用它在表單間傳值。demo是winform程式,就是兩個表單,ParentFrm和ChildFrm。首先定義一個類myCustomEventArgs繼承自EventArgsCodeCode highlighting produced by Actipro CodeHighlighter
最近做的項目中遇到了這個問題,就是在用window.showModalDialog開啟aspx頁面時,你點擊開啟之後,被開啟的頁面,有一段時間頁面主體是白色的,這樣的話,有些使用者就受不了了。所以要做些改進了。1、想到了在body裡onload事件,結果不行。 2、想到了Page頁面事件執行順序,Page.PreInit應該是最前面的。就想到在此事件裡寫代碼。CodeCode highlighting produced by Actipro