PRB: DataConnections or Commands Unrecognized, Browser Flashes
ID: Q191961
|
The information in this article applies to:
-
Microsoft Visual InterDev, version 6.0
SYMPTOMS
When trying to add an Active Server Pages (ASP) page to your current
project by selecting New File from the File menu, clicking the New tab of
the resulting dialog box, selecting the Visual InterDev folder in the left
side, and selecting "ASP Page" in the right side of the dialog box, the
following symptoms may show on that ASP page:
- The fields of the recordset DRC or DataCommand, if added to the page,
are shown in red with an exclamation point.
- When viewing the page in the browser, the error "Object expected" may
occur.
- When trying to view the page in the browser, the browser will simply
open, then close again quickly, just flashing up on the screen for an
instant.
- This "flash" also occurs when a connection is hand-coded using ADO
against a data connection.
CAUSE
Adding a new file by using this menu option does not add the file to the
project. Instead, it adds it to a subfolder called "Miscellaneous Files,"
which is not a part of the project and does not recognize Data Connections
or Data Commands in the project.
RESOLUTION
Use the following steps to correctly add an ASP page to your current
project:
- In the Project Explorer: right-click your current project (Bold type
face, located directly under the Solution).
- From the shortcut menu, select Add and then click Active Server Page.
This adds an ASP page to your project and not to the Miscellaneous Files
folder.
STATUS
This behavior is by design.
MORE INFORMATIONSteps to Reproduce Behavior
- From the File menu, click New File (a new window will pop up).
- Under the New tab, select the Visual InterDev folder in the left
pane.
- Select ASP Page in the right pane.
- Click Open.
-or-
- From the File menu, click New File (a new window will pop up).
- Select HTML Page in the right pane.
- Click Open.
- From the File menu, select Save New HTML Page1.
- Change the extension to .asp by clicking Save xxx.asp AS from the File
menu, and save the HTM page as an ASP.
Result: The new ASP or HTM page stored in a folder called Miscellaneous
Files instead of in your current project.
The Miscellaneous Files directory was intended to be an area that you could
add files to without affecting your team's project.
Additional query words:
Keywords : kbVisID600 kbWebServer kbGrpASP
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbprb
|