討論串[問題] 怎麼改變Request.Form的分隔字元 ,
共 5 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 6→)留言8則,0人參與, 最新作者kenshinn (子凌(b))時間17年前 (2008/09/08 21:02), 編輯資訊
0
0
1
內容預覽:
string[] values = Request.Form.GetValues("xxx");. values 就是正確的值的陣列了. --. my blog: http://kenshinnn.blogspot.com. operation system : Ubuntu GNU/linux.

推噓0(0推 0噓 5→)留言5則,0人參與, 最新作者matchyou (這樣也要罵=.=)時間17年前 (2008/09/08 13:00), 編輯資訊
0
0
0
內容預覽:
用for迴圈去跑字串陣列的內容. 當不是空白才要. String[] abc=Request.Form["ooxx"].Split(',');. String bb="";. For(int i=0;i<abc.Length;i++). {. if(abc[i].Trim() !=""). {. b
(還有181個字)

推噓0(0推 0噓 1→)留言1則,0人參與, 最新作者hpbrother (黑皮)時間17年前 (2008/09/08 00:18), 編輯資訊
0
0
0
內容預覽:
我的資料. test. test1,. test2. 這樣Request.Form回傳的string是 test,test1,,test2. 如果我用split分割 就會變成. test. test1. (空白). test2. 這樣就不對了. --. 發信站: 批踢踢實業坊(ptt.cc).

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者matchyou (這樣也要罵=.=)時間17年前 (2008/09/07 23:56), 編輯資訊
0
0
0
內容預覽:
Request.Form["ooxx"]是一個回傳String的property. 既然是String 那就可以用split 這個method傳回字串陣列. 範例如下. String[] strArray=Request.Form["ooxx"].Split(',');. 這個字串陣列存的都是資料沒

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者hpbrother (黑皮)時間17年前 (2008/09/07 23:44), 編輯資訊
0
0
0
內容預覽:
Request.Form的分隔字元是 ,. 可是我的資料中有,. 這樣就分不清楚是資料還是分隔字元了. 請問怎麼改變. 還是有什麼辦法. 謝謝. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 125.224.131.56.
首頁
上一頁
1
下一頁
尾頁