skip to main
|
skip to sidebar
小明的程式記事本
補0的寫法 for c shap
2011年1月19日 星期三
常常遇到需要補0所以特別記下來
string.Format("Product/{0:D10}","12" );
Result
Product/0000000012
Read more...
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)
搜尋此網誌
熱門文章
在string.format裡呈現{}大刮號
在串字串時,遇到用string.format裡會有{}大刮號,但是一直無法成功,接下來直接看範例吧: string str = string.Format(@" $(document).ready(function( {{ alert('錯誤訊息:{0}...
強制固定表格寬度
今天遇到talbe裡的內容因為輸入字串太長,雖然table有設定長度,但是還是會發生不會自動換行 這種情況都是在輸入一連串英文會發生,這時候如果加上以下語法則可避免此問題 style= "word-break:break-all; " 不過呢...
C# ref/out 關鍵字與傳遞參考型別參數
C# 有 ref/out 關鍵字可以用來改變方法參數的傳遞機制,將原本的傳值(by value)改為傳址(by reference),因為有時候會碰到這樣的需求,提供給某方法的引數會希望輸出處理過的結果並回存到原本的變數上,此時就得用傳址參數 -- ref 或 out 參數來完成...
最新文章
線上翻譯
現在時間
常用網站
Convert
MSDN邊學邊做
mis2000lib ASP.NET教學
小朱® 的技術隨手寫
W3C Schools
Service.Endcode的網站
C# 程式設計手冊
訂閱
發表文章
Atom
發表文章
所有留言
Atom
所有留言
文章分類
c#
(33)
SQL
(16)
javascript
(16)
ASP.NET
(12)
Oracle
(5)
Linq
(3)
blog
(3)
jQuery
(3)
Store Procedure
(2)
TDD
(2)
VMware
(2)
VisualStudio
(2)
Windows
(2)
XSLT
(2)
report service
(2)
(Chrome)Extensions
(1)
(VS)Extensions
(1)
Br
(1)
DesignPattern
(1)
Json
(1)
Validator
(1)
XP
(1)
css
(1)
git
(1)
html
(1)
好用工具
(1)
心情日誌
(1)
站台
(1)
網誌存檔
►
2017
(6)
►
11月
(2)
►
10月
(1)
►
4月
(1)
►
2月
(1)
►
1月
(1)
►
2016
(8)
►
12月
(1)
►
11月
(2)
►
5月
(4)
►
3月
(1)
►
2015
(12)
►
12月
(2)
►
10月
(1)
►
8月
(1)
►
7月
(1)
►
6月
(1)
►
3月
(1)
►
1月
(5)
►
2014
(19)
►
10月
(5)
►
9月
(7)
►
8月
(2)
►
6月
(1)
►
5月
(1)
►
4月
(1)
►
2月
(1)
►
1月
(1)
►
2013
(23)
►
12月
(1)
►
11月
(3)
►
10月
(3)
►
9月
(2)
►
7月
(1)
►
6月
(3)
►
5月
(4)
►
4月
(1)
►
3月
(2)
►
2月
(2)
►
1月
(1)
►
2012
(36)
►
12月
(3)
►
11月
(1)
►
10月
(2)
►
8月
(6)
►
7月
(3)
►
6月
(4)
►
5月
(8)
►
4月
(4)
►
3月
(3)
►
2月
(2)
▼
2011
(10)
►
12月
(3)
►
10月
(2)
►
9月
(2)
►
8月
(1)
►
5月
(1)
▼
1月
(1)
補0的寫法 for c shap
►
2010
(11)
►
10月
(2)
►
9月
(1)
►
8月
(1)
►
7月
(2)
►
6月
(2)
►
4月
(1)
►
2月
(1)
►
1月
(1)
►
2009
(9)
►
12月
(1)
►
10月
(3)
►
9月
(5)