[Web] Request.QueryString S7an 9/21/2017 10:30:00 上午 0 Comments 要怎麼取得前端的Request欄位值? request("所需的欄位名稱") Ref: http://www.study-area.org/coobila/tutorial_337.html http://www.cnblogs.com/haic... Read More Read more 沒有留言:
[Oracle][SQL] SUBSTR 截字串 S7an 9/21/2017 10:13:00 上午 0 Comments SUBSTR(欄位, 第?位開始, 取?位) select * from user_table where substr(username, 0,2) in ('Ch', 'An') Read More Read more 沒有留言:
[C#] 全形轉半形 S7an 9/19/2017 01:27:00 下午 0 Comments 為了要避免user輸入錯誤的資料,所以要加入全形轉半形的功能,之前查到一篇文章是用VB寫,但我是用C#,原來那篇文章沒說錯,把VB的namespace加入就對啦~ Ref: https://blog.miniasp.com/post/2007/12/08/Convert... Read More Read more 沒有留言:
[Python][筆記]資料類型 序對, 串列, 字典 S7an 9/16/2017 04:48:00 下午 0 Comments 序對(Tuple) - 不能指派新元素、可以當字典的key sample_Tuple = ('Baseball', 'basketball') 串列 - 可以指派新元素,但不能當字典的key sample_String = ['New... Read More Read more 沒有留言:
DataTable .Clone() and .Copy() S7an 9/13/2017 10:11:00 上午 0 Comments dt是要保留得資料來源 dtd是目的端,完成Clone()後,還要執行ImportRow的動作。 DataTable dtd = dt.Clone (); dtd.ImportRow ( drr ); Ref: https://www.codeproject.c... Read More Read more 沒有留言:
清除gridview內的資料 S7an 9/13/2017 09:43:00 上午 0 Comments 由於方法1,我不適用,所以改用Ref:Solution 2。 方法1: grv_01_master是前端的gridview grv_01_master.DataSource = null ; 方法2: 以下是片段程式碼。 如果資料庫撈出來的indt... Read More Read more 沒有留言: