I am passing a query string between asp.net pages in a VB.net application. I recieve the string by doing the following:
Dim pagename_username As String = Request.QueryString("field1")
The query string made up of a URL and a user_id, and is sent via JavaScript.
The string is then split in the VB page, by doing the following:
Dim parts As String() = pagename_username.Split(New String() {"|"}, StringSplitOptions.None)
Dim pagename As String = parts(0)
Dim username As String = parts(1)
This works fine for the following query string:
field1=http://**********/default.aspx|1
But gives an outside the bounds of the array error for the following query string:
field1=http://**********/docstore/browse.aspx?docstoreid=0&docstoretypeid=2|1
My suspicion is that the second string is too long??
If so, how can I solve it?
If not, what is the problem?