//Row Data
var datarow=
                {
                    Item: $("#Item").val().trim(),
                    Hours: $("#Hours").val().trim(),

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

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

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


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

TFS 中特殊的 Global 配置節

如果使用 TFS 來管理項目,在 Global 配置節中會多出來一個 GlobalSection(TeamFoundationVersionControl) = preSolution 的配置節。

需要註意的是,這個多出來的配置節只能有一個,有的時候 TFS 會錯誤的多添加若幹個,這時候,在打開項目的時候,你應該會看到如下的提示信息。

 ​​​​​​​Some of the properties associated with the solution could not be read.

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

//去掉小數點的零
function trimzero($str) {
    //拆解字串,格式為: 整數.小數
    var arr = $str.split('.');
    var $int = arr[0];

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

這段sql 可以看出現階段登入的user  SQL 上在執行的sql  

SELECT A.session_id,A.login_name,c.text AS 'TSQL語法',A.login_time,A.original_login_name,B.auth_scheme,

A.host_name,A.program_name,A.client_interface_name,A.login_name, 

A.nt_domain,A.nt_user_name,A.status,A.cpu_time,

A.total_elapsed_time,A.total_scheduled_time,B.client_net_address,B.client_tcp_port,

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

.Net 與資料庫溝通

Sample Code:

//開啟連線
        public static SqlConnection OpenSqlConn(string Server, string Database, string dbuid, string dbpwd)
        {

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

Sample Code

-----

using System;
using System.Collections.Generic;
using System.Linq;

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

var num = 123.4005;
alert(num);

// toFixed(N) 取小數第N位
alert("toFixed(N):" + num.toFixed(2));

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

  • May 31 Tue 2016 17:44
  • SMART

SMART就是指

S=Specific(具體的項目)、

M=Measurable(可測量的)、

A=Attainable(可達成的)、

R=Relevant(關聯性)、

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

In wanting nothing, one lacks nothing.

知足常樂。

-----

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

The outside world is full of danger, but here is no challenge of life, is doomed to no applause.

外面的世界充滿危險,但沒有挑戰的生活,注定無人喝采。

-----

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

Eagles without experience of suffering wind and rain can not fly high in the sky. And to be brave to take risks is an eternal formula for us.

沒有經歷逆風驟雨的雄鷹不能在空中高飛,勇敢地去冒險是我們永遠的推測。

-----

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

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。