I thought this was going to be simple. I want to take an HttpRequest and add
an item to the QueryString.
First I tried to add it directly, but I got a "Collection is read-only."
error. So I decided to construct my own, new HttpRequest based on the
contents of the old one (from within a class that inherits from Page):
Dim q As New
System.Collections.Specialized.NameValueCollection (Me.Request.QueryString)
q.Add("TEST", test)
Dim r As New HttpRequest(Me.Request.FilePath, Me.Request.Url.ToString,
q.ToString)
Only this doesn't work, q.ToString returns
"System.Collections.Specialized.NameValueCollectio n". Do I really have to
serialize the QueryString myself? Is there really no built-in method to do
this?
I'm sure I misinterpreted what the constructor wants for FileName, but the
documentation offers no comment. Why is there no corresponding property?
Paul