Вопрос

I have the following code throws exception (absolute path required):

string versionIdStr = HttpContext.Current.Request["xxx"];

Is Request["xxx"] read-only? How do I set it?

Это было полезно?

Решение 2

I figure it out: problems with SimpleWorkerRequest. I didn't set a physical path, and the query shouldn't have any spaces.

Другие советы

HttpContext.Request[xxx]

Seek Path =

querystring -> form -> cookie -> session variables

I believe it falls in the last argument

try to be more specific

e.g.

HttpContext.Request.Form[...]
HttpContext.Request.QueryString[...]
...
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top