我已经查看了所有内容,但找不到解决方案。更正:我找到了解决方案,但他们(我不能让他们)工作。
我通过查询字符串将数组传递给 HttpHandler。我读到你是这样读的:
Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
Dim request As HttpRequest = context.Request
For u = 0 To request.QueryString("arrayIneed").Count - 1
selectPONumber.Add(request.QueryString("arrayIneed")(u))
Next
这样做,无论查询字符串格式是 arrayIneed=data1,data2... 还是 arrayIneed=[data1,data2...],都会将 = 之后的所有内容都切割成单个值。
请帮忙。提前谢谢了!