Microsoft KB Archive/229615

= PRB: Problem Submitting SOM Enabled ASP Pages Under Netscape Browsers =

Article ID: 229615

Article Last Modified on 4/22/2001

-

APPLIES TO


 * Microsoft Visual InterDev 6.0 Standard Edition

-



This article was previously published under Q229615



SYMPTOMS
When using Netscape Navigator to view an Active Server Pages (ASP) page that uses the Scripting Object model, one of the following behaviors occurs:  The browser is redirected to the default page of the Web site. A directory listing of the files and folders may appear in the browser. The following error message may appear:

Directory Listing Denied

This Virtual Directory does not allow contents to be listed.





CAUSE
These behaviors occur because the Scripting Object Model (SOM) uses a hidden form element, _method, to track whether a page redirection is necessary. When the _method element contains anything other than an empty string, the SOM interprets it as a page it to which it should redirect the user.

Under Netscape Navigator, the _method element may contain an erroneous value of " " (two spaces), which causes the SOM to attempt a page redirection to a relative path of " " (two spaces) on the Web server. Doing this causes Internet Information Server to attempt to retrieve the default page for the Web site, such as Default.asp, Default.htm, or Index.htm.

Depending on the configuration of your Web site, you may see one of the behaviors described above.



RESOLUTION
You can work around this problem by adding the following code to the window_onload client event handler of the page exhibiting the behavior. This code checks for both a single space and a double space because different versions of the Netscape browser will insert either 1 or 2 spaces. function window_onload { if (document.thisForm._method.value==" " | document.thisForm._method.value==" ") document.thisForm._method.value=""; }



MORE INFORMATION
The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

Keywords: kberrmsg kbprb kb3rdparty kbctrl KB229615

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.