ASP.Net 備忘錄
1.關於AppSettings:
File屬性可同時讀外部和內部,先內後外,key重覆只會讀最前面的,但configSource 只能一個。
2.取得目前版本(若是用one click會不一樣)
Version vs = Assembly.GetEntryAssembly().GetName().Version;
//Check to see if we are ClickOnce Deployed
if (ApplicationDeployment.IsNetworkDeployed)
{
vs = ApplicationDeployment.CurrentDeployment.CurrentVersion;
}
3.自訂區域Default Button
<div id="PartnerPanel1" onkeypress="javascript:return WebForm_FireDefaultButton(event, 'AddButton')"></div>