I'm trying to get a string passed through a url. Here is the code I currently use:
Public Property myStr() As String
myStr = CStr(Request.QueryString("ctrlnum"))
Set(ByVal Value As String)
myStr = Value
This works fine for most strings. For some reason though when a value like "J&J INC" is passed it ignores the '&' symbol and just stops so my value ends up being "J" and that's it. How do I fix this so I get the full querystring that is passed? I know the program that is sending the query is right because I can see the actual "J&J INC" in my URL. How do I fix this in vb?