BUG: Using Page Object to Navigate URL with Spaces Causes Error

ID: Q193999


The information in this article applies to:
  • Microsoft Visual InterDev, version 6.0


SYMPTOMS

When you use a Page Object Design Time Control (DTC) in a page, and you insert a thisPage.navigateURL method call using a URL that contains spaces, the following error occurs:

HTTP Error 400
400 Bad Request

Due to malformed syntax, the request could not be understood by the server. The client should not repeat the request without modifications.


RESOLUTION

Use the %20 character instead of spaces. For example, "ASP Page 1.asp" becomes "ASP%20Page%201.asp".


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a new Web project.


  2. Create two ASP pages called "ASP Page 1.asp" and "ASP Page 2.asp" (make sure they are in the same directory).


  3. On "ASP Page 2.asp" add a page object DTC and a DTC command button.


  4. Using the scripting outline, add an "onclick" handler for the button.


  5. In the handler enter the following code:
    
          thisPage.navigateURL("ASP Page 1.asp") 


  6. View "ASP Page 2" and click the command button.


Additional query words:

Keywords : kberrmsg kbCtrl kbVisID600bug kbGrpASP
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: May 27, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.