2012-07-27 104 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