前往查询字符串(GET请求数组)在.NET的Web服务中 [英] Getting to the query string (GET request array) inside a web service in .NET
本文介绍了前往查询字符串(GET请求数组)在.NET的Web服务中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望找到一种方法来访问包含在Web服务中以标准ASP.NET请求对象的.NET查询字符串。在如果我设置一个SOAP Web服务来这个网址换句话说:
I'm looking to find a way to access the .net query string contained in the standard ASP.NET request object inside a web service. In other words if I set a SOAP web service to this url:
HTTP://localhost/service.asmx ID = 2
我可以访问ID获取变量?
Can I access the ID Get variable?
推荐答案
我只是看着在ASMX文件的上下文的请求,我看到了。但我不知道这是否是正确的。
I just looked for "Request" of the context in asmx file and I saw that. But I'm not sure if it is right.
this.Context.Request.QueryString["id"];
这篇关于前往查询字符串(GET请求数组)在.NET的Web服务中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文