jessewth's blog
2008/10/18
字串比對上的眉角
if
(e.Row.Cell[0].Text.Equals(
"mytest"
))
...
改成
if
(
"mytest"
.Equals(e.Row.Cell[0].Text))
...
可避免因為e.Row.Cell[0].Text如果是空值而造成程式exception.
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
軟體工程的重要的指標
3分鐘的智力測驗
一個糖果有一個糖果紙 一個糖果1元 現在商店在作促銷 3個糖果紙可以換1個糖果 請問 15元最多可以吃幾個糖果?
幾個可以幫助新創業務的線上服務
內容取自 Producthunt =============================== "What's a tool that changed your life?" - us to freelancers on Twitt...
Command line recycle IIS Application Pool
## Use appcmd ### List application pool (find the apppool name) ``` C:\Windows\System32\inetsrv\appcmd.exe list apppool ==== the result ==...
沒有留言:
張貼留言