2014年4月10日 星期四

System.Security.SecurityException 組件不允許部分信任的呼叫端

原本系統有一個使用NPOI元件下載Excel的功能,今天突然出現這個錯誤。
解決方法: http://support.microsoft.com/kb/320268/zh-tw


進入Frameowk目錄後,輸入指令
Drive:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol.exe -m -ag 1 -url "file:////\\computername\sharename\*" FullTrust -exclusive on


✛修改成功後,IIS回收並重啟網頁

2014年4月9日 星期三

Visual Stuido 2013 自動關閉 IIS Express

Visual Studio 2013預設關閉瀏覽器會關掉 IIS Express


2014年4月3日 星期四

AngularJS + ASP.NET MVC drag and drop 拖拉

參考此網址修改為ASP.NET MVC連動資料庫 :
http://www.smartjava.org/content/drag-and-drop-angularjs-using-jquery-ui

ASP.NET MVC

結果

ASP.NET 使用 Oracle Store Procedure 分頁

INPUT
  PAGE_1:目前頁數
  START_1:開始筆數
  LIMIT_1:每頁幾筆資料
  SORT_1:排序欄位

OUTPUT
  RC_1:總筆數
  TP1025_RTN:回傳資料集

C#
Oracle Store Procedure
結果

RDLC 報表 依條件判斷資料內容靠右



Visual Studio 2013 (MSDN) 改為需要輸入Product key

2012年2月15日 星期三

Masterpage 與 iframe 傳值並刷新母頁面

MasterPage內包一個iframe
iframe傳值至 MasterPage 與刷新 MasterPage 動作
母頁面刷新 => parent.location.reload();
傳值至母頁面
var txt = parent.document.getElementById("ctl00_TextBox6");
txt.value = '12345';