I created some new dynamic ASP page links and now I am getting the HTTP Error 400 Bad Request Due to malformed syntax. What went wrong?
HTTP Error 400 Bad Request Due to malformed syntax:
The 400 error is due to illegal characters in the url parameters of your link string. This cannot contain spaces, etc. You can fix that by using the Server.URLencode method. After you build the strLink, UrlEncode the finished strLink like:
strLink = Server.URLencode(strLink)
That will convert all of the spaces and other illegal characters.