Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下代码抛出异常(需要绝对路径):
string versionIdStr = HttpContext.Current.Request["xxx"];
Request["xxx"] 是只读的吗?我该如何设置?
HttpContext.Request[xxx]
寻找路径 =
querystring -> form -> cookie -> session variables
我相信它属于最后一个论点
尝试更具体
例如
HttpContext.Request.Form[...] HttpContext.Request.QueryString[...] ...
我想通了:SimpleWorkerRequest 的问题。我没有设置物理路径,查询不应该有任何空格。