Total Commander真不錯用.
很方便找尋某段時間內曾修改或新增的檔案
點選搜尋小圖示後,在尋找檔案的小視窗先切換到一般頁籤,選擇要搜尋的目錄
接著切到外掛頁籤新增規則, 可以依你想要的屬性及操作欄位設定查詢條件,
但當我想要找二個以上的副檔名時,真不知要怎麼下條件咧..
看了一下HELP, 要用正規式(expression)的方式設定,
像我要找2010/11/10 14:00:00後有異動過的.cs及.aspx檔,
就要下cs|aspx
最後,可以將這個查詢條件儲存起來,方便下次再用
2010年11月10日 星期三
2010年11月9日 星期二
JQuery 取得 asp cehckbox checked
想要針對某個<asp:checkbox>被點選時,要alert一些提示訊息
看了幾篇文章試都不成功
最後是用
其中classChktest 是針對這個<asp:checkbox>設置的cssClass
看了幾篇文章試都不成功
最後是用
if ($(".classChktest input[checked=true]").length > 0) {
//do somethin
}其中classChktest 是針對這個<asp:checkbox>設置的cssClass
2010年11月4日 星期四
SSMS2008 R2 Recent Servers List
因為有個連線帳號的密碼老是存不起來,每次開一個QUERY都要重打一次密碼,很煩啊..
要如何重設SSMS 2005/2008/2008R2中的連線資訊呢?
參考這篇文章...解決了一個非常煩人的小問題
要如何重設SSMS 2005/2008/2008R2中的連線資訊呢?
參考這篇文章...解決了一個非常煩人的小問題
Clearing the Recent Servers List in SQL Server Management Studio
刪除以下的目錄刪完後再重開SSMS就OK了
SQL Server 2008:
C:\Documents and Settings\<%username%>\Application Data\Microsoft\Microsoft SQL Server\100\Tools\Shell
SQL Server 2005:
C:\Documents and Settings\<%username%>\Application Data\Microsoft\Microsoft SQL Server\90\Tools\Shell
在windows 7中,路徑已改成(以SQL Server 2008R2為例)
C:\Users\<%username%>\AppData\Roaming\Microsoft\Microsoft SQL Server\100\Tools\Shell
2010年11月1日 星期一
VS2010 LINQ Stored Procedure
更新某支Stored Procedure, 開啟dbml檔刪除SP,, Server Explore連上DB後,直接拖拉新的SP,
出現這個訊息
The return types for the following stored procedures could not be detected. Set the return type for each stored procedure in the Properties window.
參考這篇...
建議的二種方法都不喜歡.
最後只好手動修改dbml檔的 .designer.cs檔
原本wizard自已產出的code如下
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.zspTest")]
public void zspTest([global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> param1,
[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> param2,
[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] ref System.Nullable<int> rtn)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), param1, param2, rtn);
rtn = ((System.Nullable<int>)(result.GetParameterValue(2)));
}
手動改成
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.zspTest")]
public int zspTest([global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> param1,
[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> param2,
[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] ref System.Nullable<int> rtn)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), param1, param2, rtn);
rtn = ((System.Nullable<int>)(result.GetParameterValue(2)));
return ((int)(result.ReturnValue));
}
出現這個訊息
The return types for the following stored procedures could not be detected. Set the return type for each stored procedure in the Properties window.
參考這篇...
Error: Unknown Return Type, The return types for the following stored procedures could not be detected….(LINQ).
建議的二種方法都不喜歡.
最後只好手動修改dbml檔的 .designer.cs檔
原本wizard自已產出的code如下
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.zspTest")]
public void zspTest([global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> param1,
[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> param2,
[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] ref System.Nullable<int> rtn)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), param1, param2, rtn);
rtn = ((System.Nullable<int>)(result.GetParameterValue(2)));
}
手動改成
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.zspTest")]
public int zspTest([global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> param1,
[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> param2,
[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] ref System.Nullable<int> rtn)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), param1, param2, rtn);
rtn = ((System.Nullable<int>)(result.GetParameterValue(2)));
return ((int)(result.ReturnValue));
}
訂閱:
文章 (Atom)
publish error allowDefinition='MachineToApplication'
一個老舊的aspx web form專案,調了一些功能建置成功,但進行部署時顯示以下錯誤。 在應用程式層級之外使用註冊為 allowDefinition='MachineToApplication' 的區段發生錯誤。錯誤的原因可能是虛擬目錄尚未在 IIS 中設定為...
-
上網找了免費的白箱檢測工具,找到了 puma scan 因為支援OWASP TOP 10的檢測,所以這是一個符合客戶需求又能與Visual studio結合的工具(白話說...交差了事矣....) 更重要的是這不用錢....檢測工具都貴森森的,尤其是源碼檢測工具。 ht...
-
在一台windows 2016的主機上,某一天,用遠端登入後,出現了以下的訊息.... 遠端工作階段中斷,因為沒有提供授權的遠端桌面授權伺服器可以使用。請連伺服器系統管理員。 這啥啊........... 想不到,在MOBILE01找到了解決...........哈哈...
-
SQL Server 2005 後,提供EXCEP 和INTERSECT, 功能和ORACLE的MINUS, INTERSECT相同 EXCEP 找出存在於第一個子集,但不存在於第二個子集的筆數 INTERSECT 找出皆存在於二個子集中的筆數 這二個方法很方便查找有多...