PIXNET Logo登入

廣度與深度

跳到主文

心情/育兒/財經/創業 登高必自卑,行遠必自邇 千里之行,始於足下 面對訊息萬變的現今社會,太多思緒需要整理。 要能廣泛涉獵各個領域,才能客觀的去看待事物, 對於每個議題也該深入去探討,才能有效洞悉結論。 記錄每日所思,是第一步。

部落格全站分類:心情日記

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 9月 12 週二 201710:57
  • [jqGrid] 基本操作

//Row Data
var datarow =
                {
                    Item: $("#Item").val().trim(),
                    Hours: $("#Hours").val().trim(),
                    Date: $("#Date").val().trim()
                };
(繼續閱讀...)
文章標籤

sendohlun 發表在 痞客邦 留言(0) 人氣(1,893)

  • 個人分類:coding
▲top
  • 7月 25 週二 201714:29
  • [ASP.NET] Server.MapPath() 實體路徑 虛擬路徑

System.Web.HttpContext.Current.Server.MapPath()
傳入虛擬路徑 (網址URL,正斜線,例如 https://localhost/)
傳回實體路徑 (檔案總管,反斜線,例如 C:\inetpub\wwwroot )
(繼續閱讀...)
文章標籤

sendohlun 發表在 痞客邦 留言(0) 人氣(20,876)

  • 個人分類:coding
▲top
  • 6月 05 週一 201718:36
  • [Visual Studio] 解決方案文件結構分析 => ​​​​​​​Some of the properties associated with the solution could not be read.

Visual Studio 的解決方案文件是一個文本文件,其中的內容不是太復雜,有些時候 Visual Studio 會把這個文件搞亂,理解一下這個文件的結構,對我們處理一些異常情況有所幫助。
 
(繼續閱讀...)
文章標籤

sendohlun 發表在 痞客邦 留言(0) 人氣(50)

  • 個人分類:coding
▲top
  • 4月 18 週二 201713:45
  • [JavaScript] 去掉小數點的零


//去掉小數點的零
function trimzero($str) {
    //拆解字串,格式為: 整數.小數
    var arr = $str.split('.');
    var $int = arr[0];
    var $dec = arr[1];
    //將小數點 ,右邊的0去除
    var $dec = arr[1].replace(/0+$/, '');
(繼續閱讀...)
文章標籤

sendohlun 發表在 痞客邦 留言(0) 人氣(617)

  • 個人分類:coding
▲top
  • 2月 16 週四 201710:34
  • [SQL] 查詢登入者(login_name)與T-SQL

這段sql 可以看出現階段登入的user 跟 SQL 上在執行的sql 碼 
(繼續閱讀...)
文章標籤

sendohlun 發表在 痞客邦 留言(0) 人氣(81)

  • 個人分類:coding
▲top
  • 12月 29 週四 201614:12
  • .Net 與資料庫溝通

.Net 與資料庫溝通
Sample Code:
(繼續閱讀...)
文章標籤

sendohlun 發表在 痞客邦 留言(0) 人氣(61)

  • 個人分類:coding
▲top
  • 12月 15 週四 201610:32
  • Email Tool

Sample Code
-----
(繼續閱讀...)
文章標籤

sendohlun 發表在 痞客邦 留言(0) 人氣(37)

  • 個人分類:coding
▲top
  • 10月 04 週二 201611:51
  • [JavaScript] toFixed 取小數點第幾位 && parseFloat 去掉小數點尾數零

var num = 123.4005;
alert(num);
// toFixed(N) 取小數第N位
alert("toFixed(N):" + num.toFixed(2));
//顯示結果: 123.40
//另,toFixed會四捨五入,若取到第3位,顯示結果為: 123.401
(繼續閱讀...)
文章標籤

sendohlun 發表在 痞客邦 留言(0) 人氣(18,391)

  • 個人分類:coding
▲top
  • 3月 23 週三 201617:16
  • [C#][.net] XML 取值

//XML格式
<NewDataSet>
    <DeliverySchedule>
        <Item>1</Item>
        <Qty>1000</Qty>
        <Unit>PCS</Unit>
        <CRDDate>07/23/2014</CRDDate>
    </DeliverySchedule>
    <DeliverySchedule>
        <Item>2</Item>
        <Qty>5000</Qty>
        <Unit>PCS</Unit>
        <CRDDate>07/28/2014</CRDDate>
    </DeliverySchedule>
</NewDataSet>
(繼續閱讀...)
文章標籤

sendohlun 發表在 痞客邦 留言(0) 人氣(3,483)

  • 個人分類:coding
▲top
  • 3月 15 週二 201617:36
  • [C#][.NET] DBNull 和三元運算

當DB的欄位值設定是允許Null
該欄位的值,是Null 或是空值("")不一樣。
所以取值時,要多一層判斷。(雖然在UI看起來都一樣沒有東西)
Model.txtCustomer = (object)dr["txtCustomer"] is DBNull ? null : dr["txtCustomer"].ToString();
=>DataReader要先轉成Object,並判斷 is DBNull,是的話就給Null值,不是的話就給DB撈出來的值。
(繼續閱讀...)
文章標籤

sendohlun 發表在 痞客邦 留言(0) 人氣(853)

  • 個人分類:coding
▲top
123»

個人資訊

sendohlun
暱稱:
sendohlun
分類:
心情日記
好友:
累積中
地區:

熱門文章

  • (1,569)[English] Bread is the staff of life.
  • (43)[English] Where there is a real superiority of mind, pride will be always under good regulation.
  • (152)[English] The value of life lies not in the length of days, but in the use we make of them.
  • (40)[English] Genius only means hard-working all one's life.
  • (371)[English] Work hard in silence. Let your success be your noise.
  • (10)[English] Obstacles don't have to stop you. If you run into a wall, don't turn around and give up. Figure out how to climb it, go through it, or work around it.
  • (115)[English] The only limit is your imagination.
  • (3,172)[SQL]查詢某欄位裡面的字串長度
  • (26)[English] You will never have what you like until you learn to like what you have.
  • (304)[English] Better to do something imperfectly than to do nothing flawlessly.

文章分類

  • 開箱 (1)
  • 投資理財 (5)
  • coding (26)
  • English (668)
  • 股市 (18)
  • 未分類文章 (1)

最新文章

  • [jqGrid] 基本操作
  • [ASP.NET] Server.MapPath() 實體路徑 虛擬路徑
  • [Visual Studio] 解決方案文件結構分析 => ​​​​​​​Some of the properties associated with the solution could not be read.
  • [JavaScript] 去掉小數點的零
  • [SQL] 查詢登入者(login_name)與T-SQL
  • .Net 與資料庫溝通
  • Email Tool
  • [JavaScript] toFixed 取小數點第幾位 && parseFloat 去掉小數點尾數零
  • SMART
  • [English] In wanting nothing, one lacks nothing.

動態訂閱

文章精選

文章搜尋

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣: