//Row Data
var datarow =
{
Item: $("#Item").val().trim(),
- 9月 12 週二 201710:57
[jqGrid] 基本操作
- 7月 25 週二 201714:29
[ASP.NET] Server.MapPath() 實體路徑 虛擬路徑
System.Web.HttpContext.Current.Server.MapPath()
傳入虛擬路徑 (網址URL,正斜線,例如 https://localhost/)
傳回實體路徑 (檔案總管,反斜線,例如 C:\inetpub\wwwroot )
- 6月 05 週一 201718:36
[Visual Studio] 解決方案文件結構分析 => Some of the properties associated with the solution could not be read.
Visual Studio 的解決方案文件是一個文本文件,其中的內容不是太復雜,有些時候 Visual Studio 會把這個文件搞亂,理解一下這個文件的結構,對我們處理一些異常情況有所幫助。
TFS 中特殊的 Global 配置節
如果使用 TFS 來管理項目,在 Global 配置節中會多出來一個 GlobalSection(TeamFoundationVersionControl) = preSolution 的配置節。
需要註意的是,這個多出來的配置節只能有一個,有的時候 TFS 會錯誤的多添加若幹個,這時候,在打開項目的時候,你應該會看到如下的提示信息。
- 4月 18 週二 201713:45
[JavaScript] 去掉小數點的零
//去掉小數點的零
function trimzero($str) {
//拆解字串,格式為: 整數.小數
var arr = $str.split('.');
var $int = arr[0];
- 2月 16 週四 201710:34
[SQL] 查詢登入者(login_name)與T-SQL
這段sql 可以看出現階段登入的user 跟 SQL 上在執行的sql 碼
- 12月 29 週四 201614:12
.Net 與資料庫溝通
.Net 與資料庫溝通
Sample Code:
//開啟連線
public static SqlConnection OpenSqlConn(string Server, string Database, string dbuid, string dbpwd)
{
- 12月 15 週四 201610:32
Email Tool
Sample Code
-----
using System;
using System.Collections.Generic;
using System.Linq;
- 10月 04 週二 201611:51
[JavaScript] toFixed 取小數點第幾位 && parseFloat 去掉小數點尾數零
var num = 123.4005;
alert(num);
// toFixed(N) 取小數第N位
alert("toFixed(N):" + num.toFixed(2));
- 5月 31 週二 201617:44
SMART
SMART就是指
S=Specific(具體的項目)、
M=Measurable(可測量的)、
A=Attainable(可達成的)、
R=Relevant(關聯性)、
- 5月 31 週二 201612:51
[English] In wanting nothing, one lacks nothing.
In wanting nothing, one lacks nothing.
知足常樂。
-----
