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));
}
2010年10月30日 星期六
Pencil Project
無意中看到這個open source的工具, Pencil Project
官方首頁這麼寫著
The Pencil Project's unique mission is to build a free and opensource tool for making diagrams and GUI prototyping that everyone can use.
當下覺得這free 又是 opensource, 又可畫GUIprototyping, 就覺得很有意思.
下載下來安裝, 目前是1.2 build 0
以往寫文件做UI展示說明時,不管是client/server 或website project, 通常都是看專案是用什麼工具開發,就用什麼工具去做UI的設計.
或者寫power point檔時,常需要用圖表來表示重點,通常也都是用visio,自已每次在用visio時,總是怨嘆自已缺乏藝術天份,覺得做出來的圖很二光.
有了這個工具,在做UI design時,就覺得很有FU了,而且元件拖拉及對齊也很方便.里頭的一些元素也是我喜歡的那種style
另外,也可以匯入別人做好的stencils (collection)及export template
不管用何種export template, 其實最後其實都是將設計好的UI轉成圖檔再嵌入吧?
試過後,只有匯出圖檔和html格式是OK的.
來一張匯出的截圖..嗯....很像一回事..
至於匯出pdf,doc則有錯誤,參考這個issue的說明吧
就嚐鮮來說, 這真是個有趣的工具.
官方首頁這麼寫著
The Pencil Project's unique mission is to build a free and opensource tool for making diagrams and GUI prototyping that everyone can use.
當下覺得這free 又是 opensource, 又可畫GUIprototyping, 就覺得很有意思.
下載下來安裝, 目前是1.2 build 0
以往寫文件做UI展示說明時,不管是client/server 或website project, 通常都是看專案是用什麼工具開發,就用什麼工具去做UI的設計.
或者寫power point檔時,常需要用圖表來表示重點,通常也都是用visio,自已每次在用visio時,總是怨嘆自已缺乏藝術天份,覺得做出來的圖很二光.
有了這個工具,在做UI design時,就覺得很有FU了,而且元件拖拉及對齊也很方便.里頭的一些元素也是我喜歡的那種style
另外,也可以匯入別人做好的stencils (collection)及export template
不管用何種export template, 其實最後其實都是將設計好的UI轉成圖檔再嵌入吧?
試過後,只有匯出圖檔和html格式是OK的.
來一張匯出的截圖..嗯....很像一回事..
至於匯出pdf,doc則有錯誤,參考這個issue的說明吧
就嚐鮮來說, 這真是個有趣的工具.
2010年10月29日 星期五
BugNet - OraAspNetConString?
今天測試時,突然跳了個runtime error
The connection name 'OraAspNetConString' was not found in the applications configuration or the connection string is empty. (C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 166)
WHY????
今天確實裝了oracle client 11g r2
也剛好google到討論,不然又是一陣莫名奇妙...
Widget Administration not found.
<siteMap>
<providers>
<add name="OracleSiteMapProvider" type="Oracle.Web.SiteMap.OracleSiteMapProvider, Oracle.Web, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342" connectionStringName="OraAspNetConString" applicationName="" securityTrimmingEnabled="true" />
</providers>
</siteMap>
The connection name 'OraAspNetConString' was not found in the applications configuration or the connection string is empty. (C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 166)
WHY????
今天確實裝了oracle client 11g r2
也剛好google到討論,不然又是一陣莫名奇妙...
Widget Administration not found.
.NET 2.0 SiteMap使用的时候有一个错误
註解掉 C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config<siteMap>
<providers>
<add name="OracleSiteMapProvider" type="Oracle.Web.SiteMap.OracleSiteMapProvider, Oracle.Web, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342" connectionStringName="OraAspNetConString" applicationName="" securityTrimmingEnabled="true" />
</providers>
</siteMap>
SSRS 2008 欄位動態隱藏
在SSRS 2008 report designer中,將欄位動態顯示,是直接設定textbox的Hidden屬性.
preview時,看來一切都很正常,整個欄位也會隨著條件做顯示
轉成rdlc後,在website檢視這張表,卻發現動態顯示欄位的功能失效了.
試了一下,在Column Groups中設定才能正常動態顯示欄位.
先將report designer的Column Groups切換到Adavanced Mode
點選要動態隱藏的欄位(例上圖第9個(Static)欄位)
在屬性Hidden設定隱藏的Expression
這樣就可以動態依條件顯示欄位了.
RDL和RDLC雖然都可藉由report viewer來呈現.但RDLC使用上仍有一些限制,可以參考MSDN上的比較說明
preview時,看來一切都很正常,整個欄位也會隨著條件做顯示
轉成rdlc後,在website檢視這張表,卻發現動態顯示欄位的功能失效了.
試了一下,在Column Groups中設定才能正常動態顯示欄位.
先將report designer的Column Groups切換到Adavanced Mode
點選要動態隱藏的欄位(例上圖第9個(Static)欄位)
在屬性Hidden設定隱藏的Expression
這樣就可以動態依條件顯示欄位了.
RDL和RDLC雖然都可藉由report viewer來呈現.但RDLC使用上仍有一些限制,可以參考MSDN上的比較說明
Visual Studio 2010 中的 Reporting Services 和 ReportViewer 控制項
訂閱:
文章 (Atom)
VS CODE離線安裝套件方式-續
去年 vscode離線安裝 powershell nupkg 今年在一台無外網的 windwos 2025上安裝時遇到了powershell版本一直讀取到了5.1的版本,鬼打牆了一下午,在VM還原重測測了好幾回,應該是可行了。 將下載到的免安裝powershell 解壓縮到...
-
一個老舊的aspx web form專案,調了一些功能建置成功,但進行部署時顯示以下錯誤。 在應用程式層級之外使用註冊為 allowDefinition='MachineToApplication' 的區段發生錯誤。錯誤的原因可能是虛擬目錄尚未在 IIS 中設定為...
-
freeFTPd是套免費的SFTP SERVER支援22 port SFTP及21port FTP,一般找到免費的都不支援SFTP只有技援FTPS。 之前一直有個困擾在幾台主機安裝後,有幾台重開機後,SFTP SERVER必須手動去啟動,一直以來老是搞不懂為什麼,今天看到一篇文...
-
Row.Cells[2].Text == "abc" ? "ok" : "not ok" ; 或加入Microsoft. VisualBasic 參考使用 vb namespace using Microsoft...



