In one web page, I redirect it to "prtDelReq.aspx?prtindex=0A2A3A8" after the
user click the button.
The prtindex actually contains many integers separated by 'A'.
On the prtDelReq page, I use QueryString("prtindex") to get the value. After
that, I use the Split method to get each integer, something like this:
Dim strItems As String = Request.QueryString("prtindex")
Dim arrItem() As String = strItems.Split("A")
Dim itemno As String
For Each itemno In arrItem
itemno = itemno.Trim
Dim arrIndex As Integer = Integer.Parse(itemno)
resultList.Add(wholeList.Item(arrIndex))
Next itemno
However, error occurs whenever it comes to Integer.Parse(itemno). It always
says that itemno is not in the correct format to convert into an Integer. How
can I resolve this problem?
Thank you in advance.