ASP.NET中如何取得别人传送过来的参数??
现在有如下代码向我的一个页面发出请求,我需要做的就是将它提交过来的参数全部取到,但是我不知道该怎么做,请各位大侠帮帮忙,谢谢了!
Dim url,urlResult,return_url as string
Dim HttpReq as object
HttpReq = CreateObject( "WinHttp.WinHttpRequest.5 ")
return_url = "http://要访问的网站 "
url = "storeid= "& storeid
url = url & "&ordernumber= "&ordernumber
url = url & "&payment= "& payment
url = url & "¬e= "& note
url = url & "&sid= "& sid
Try
HttpReq.Open( "POST ",return_url,false)
HttpReq.SetResquestHeader( "Content-Type ", "application/x-www-form-urlencoded;charset=utf-8 ")
HttpReq.Send( " "&url)
urlResult = ICase(trim(HttpReq.ResponseText))
HttpReq = nothing
Catch e as exception
response.write( " ")
EndTry
[解决办法]
Request[ "storeid "]
Request[ "ordernumber "]
...
[解决办法]
Request.QueryString[ "id "]
[解决办法]
都行啊 哈