As of now, I’m sending only an empty array through the query-string.
selectPONumber=[]
Have no idea why I’m getting this error. The stacktrace points the Next on this.
If context.Request.QueryString("selectPONumber").Count <> 0 Then
For u = 1 To request.QueryString("selectPONumber").Count
selectPONumber.Add(request.QueryString("selectPONumber")(u))
Next
End If
How is it getting past the if if the .Count is 0? Is my query string formatting incorrect?
If it had values it would look like
selectPONumber=[value1, value2,...]
Many thanks in advance!
Extra Credit
Yes, vb.net did not read selectPONumber as an array when using []. All that’s necessary is to to do selectPONumber=value1, value2,…
Thank-you very much for the above and beyond!
Are you saying your querystring looks like this?
If so, you are passing the string “[]” and
Context.Request.QueryString("selectPONumber").Count == 2. It would evaluate to 0 formysite/mypage.aspx?selectPONumber=.Also, VB.NET arrays are zero-based. Use: