.NET中有個mappath方法是轉成實體路徑的,但是我卻找不到現成的方法轉成虛擬路徑,自己寫了一個,以做備用!Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> /// <summary>把~/niunantest.aspx轉化成http://localhost:3212/ModuleTest/niunantest.aspx
這兩天有機會研究了一下Flex。由於以前沒有深接觸Flash/Flex用Adobe Flex Builder 2很不習慣,而且感覺ActionScript還不是很成熟。Silverlight對於像我這樣一直做.net的開發人員比較容易上手,但看下面的文章國外的討論,吵得挺凶,大家可以看看,發表自己的觀點有可能會選擇的平台(.net+Silverlight or java+Flex or .net +Flex):正方:Why Silverlight Is
之所以把這兩個模式放在一起說是因為C#語句的關係。這兩種模式實現起來變得很輕鬆或者說不一樣了。Observer(觀察者) class Observer { public delegate void EventHandler(string state); public event EventHandler changeEvent; public void ChangeState(string state) {
SQL Server中的彙總,常用的比如max,count之類。 我們現在也可以在SQLCLR裡建立自訂的彙總。Visual Studio 2005中提供的彙總模板是一個結構,標註了[Serializable],[SqlUserDefinedAggregate]標籤,這將讓SQLCLR知道這是一個彙總函式。看一段代碼,這段代碼來自SQL Server
樣本名稱:超級遞送員樣本說明:定義基類(BaseDelivery)和虛方法(Deliver),定義繼承自該基類的三個子類(MilkDelivery、NewspaperDelivery和CarDelivery),重寫基類的虛方法(Deliver)。樣本類圖:關鍵區段說明BaseDeliveryusing System;namespace Delivery{ public class BaseDelivery { public virtual void Deliver()
The situations where this ServerVariable works include the following methods of a browser loading a URL: clicking on a straight HTML <a href> link; submitting a form, using POST or GET, from a submit button, <input type=image> or