2012-07-27 106 views

回答

23

使用Request.QueryString集合爲GET paras和Request.Form集合爲POST。

例如

var someValueFromGet = Request.QueryString["YourGetPara"]; 
var someValueFromPost = Request.Form["YourPostPara"]; 

請參考http://msdn.microsoft.com/en-us/library/ms524784(v=vs.90).aspxhttp://msdn.microsoft.com/en-us/library/ms525985(v=vs.90).aspx

+0

請一些代碼闡述[閱讀本元(http://meta.stackexchange.com/questions/72000/should-there-be-a -policy-about-one-link-only-answers) – albertjan 2012-07-27 09:00:29

+0

感謝@the_ajp,我剛剛添加了一些示例代碼。 – 2012-07-27 09:03:23