0
je utilise ASPX page actuelle en passant chaîne de requête url.am dans ma page code url.my utilisé pour diviser la chaîne de requête et d'écrire sur l'écran. suis l'écriture de code dans la méthode de chargement de la page.comment stocker la valeur de chaîne de requête dans un tableau en utilisant .net
my code
------
Dim strarr() As String
Dim key
For Each key In Request.QueryString
Response.Write(key & ": " & Request.QueryString(key) & "<BR>")
Next
output
------
http://localhost:54592/vicidial_project/Default.aspx?a=1&b=2(in run time am passing query string to that url)
a:1
b:2
the query string values are displayed in the screen like above.
my question
-----------
i want to store that query string value into an array . am using the code like this
code
-----
Dim strarr() As String
Dim key
For Each key In Request.QueryString
Response.Write(key & ": " & Request.QueryString(key) & "<BR>")
strarr = key & ": " & Request.QueryString(key)
Next
error
-----
am getting error in this line
strarr = key & ": " & Request.QueryString(key)
Je reçois une erreur comme "chaîne de type ne peut pas être convertie en 1-dimenssional tableau de chaîne – vps