473,385 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

problem opening asp page

hi Everybody,

I just made a simple web site using Frontpage 2003 with a simple MS Accesss
database.

IF I try to open the asp page in a browser by typing
http://localhost/mysite/db.asp it opens just fine

However if I try to opeb it by typing c:/mysite/db.asp I get the following
error message:

The Database Results component on this page is unable to display database
content. The page must have a filename ending in '.asp', and the web must be
hosted on a server that supports Active Server Pages.

Any solution to this ?

tia
Dec 24 '06 #1
8 4946
John wrote:
hi Everybody,

I just made a simple web site using Frontpage 2003 with a simple MS
Accesss database.

IF I try to open the asp page in a browser by typing
http://localhost/mysite/db.asp it opens just fine

However if I try to opeb it by typing c:/mysite/db.asp I get the
following error message:

The Database Results component on this page is unable to display
database content. The page must have a filename ending in '.asp', and
the web must be hosted on a server that supports Active Server Pages.
Why are you trying to open it using "c:/mysite/db.asp"? Are you trying to
edit it?

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Dec 24 '06 #2
Bob Barrows [MVP] wrote:
John wrote:
>hi Everybody,

I just made a simple web site using Frontpage 2003 with a simple MS
Accesss database.

IF I try to open the asp page in a browser by typing
http://localhost/mysite/db.asp it opens just fine

However if I try to opeb it by typing c:/mysite/db.asp I get the
following error message:

The Database Results component on this page is unable to display
database content. The page must have a filename ending in '.asp', and
the web must be hosted on a server that supports Active Server Pages.
Why are you trying to open it using "c:/mysite/db.asp"? Are you
trying to edit it?
I am no ASP expert (by a long, long way !!), but surely ASP pages will only
work as ASP pages when one is connected to a server.

Opening as http://localhost/mysite/db.asp will open it using IIS which is
installed locally (I assume). But opening as "c:/mysite/db.asp" would try to
open the page as a web page (using Internet Explorer perhaps ??). There
would be no connection to a server - hence the message.

I have certainly found this if I open an ASP page locally. I do not have IIS
(I am using XP Home), so I will always get this message. So to edit it, I
explicitly open it with an editor -UltraEdit is my choice.
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
----------------------------------------

Dec 24 '06 #3
Trevor L. wrote:
Bob Barrows [MVP] wrote:
>John wrote:
>>hi Everybody,

I just made a simple web site using Frontpage 2003 with a simple MS
Accesss database.

IF I try to open the asp page in a browser by typing
http://localhost/mysite/db.asp it opens just fine

However if I try to opeb it by typing c:/mysite/db.asp I get the
following error message:

The Database Results component on this page is unable to display
database content. The page must have a filename ending in '.asp',
and the web must be hosted on a server that supports Active Server
Pages.
Why are you trying to open it using "c:/mysite/db.asp"? Are you
trying to edit it?

I am no ASP expert (by a long, long way !!), but surely ASP pages
will only work as ASP pages when one is connected to a server.
Why are you telling me this? :-)

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Dec 24 '06 #4
Bob Barrows [MVP] wrote:
Why are you telling me this? :-)
I am not.

I am attempting to expand on your reply to the OP with my experience
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
----------------------------------------
Dec 24 '06 #5
I've just started learning frontpage and I bought a tutorial DVD in which
the person that produced it made a simple access database and then used
Frontpage 2003 to import the database file and display the content in a
table on an asp page.

She was able to open the asp file using this syntax: c:/mysite/db.asp so I
tried to do the same and it didn't work for me.

So my question is if this is not how it's supposed to work how in the world
was she able to open it correctly without using
http://localhost/mysite/db.asp syntax


"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in message
news:uU**************@TK2MSFTNGP04.phx.gbl...
John wrote:
>hi Everybody,

I just made a simple web site using Frontpage 2003 with a simple MS
Accesss database.

IF I try to open the asp page in a browser by typing
http://localhost/mysite/db.asp it opens just fine

However if I try to opeb it by typing c:/mysite/db.asp I get the
following error message:

The Database Results component on this page is unable to display
database content. The page must have a filename ending in '.asp', and
the web must be hosted on a server that supports Active Server Pages.
Why are you trying to open it using "c:/mysite/db.asp"? Are you trying to
edit it?

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Dec 24 '06 #6
John wrote:
I've just started learning frontpage and I bought a tutorial DVD in
which the person that produced it made a simple access database and
then used Frontpage 2003 to import the database file and display the
content in a table on an asp page.

She was able to open the asp file using this syntax: c:/mysite/db.asp so I
tried to do the same and it didn't work for me.

So my question is if this is not how it's supposed to work how in
the world was she able to open it correctly without using
http://localhost/mysite/db.asp syntax
Bob Barrows is clearly the expert, but off the top of my head, I woudl say:

She couldn't :-))

That is, she couldn't open it correctly without using
http://localhost/mysite/db.asp syntax (or without opening it on a server
supporting ASP).

Here is my attempt to open guestbook.asp on my local drive (from Windows
Explorer)
Trevor L.'s Guestbook
Note: Update and Delete are admin only functions

Action Name Comments Timestamp
The Database Results component on this page is unable to display database
content.
The page must have a filename ending in '.asp', and the web must be hosted
on a server that supports Active Server Pages.
.............

Now try it on http://trevorl.mvps.org/guestbook.asp - no problems
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
----------------------------------------

Dec 24 '06 #7
John wrote:
I've just started learning frontpage and I bought a tutorial DVD in
which the person that produced it made a simple access database and
then used Frontpage 2003 to import the database file and display the
content in a table on an asp page.

She was able to open the asp file using this syntax: c:/mysite/db.asp so I
tried to do the same and it didn't work for me.

So my question is if this is not how it's supposed to work how in
the world was she able to open it correctly without using
http://localhost/mysite/db.asp syntax
I would suspect there was some "movie magic". In order for code in an ASP
page to be executed, it needs to be requested via a web server.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Dec 24 '06 #8
OK, thanks. That's probably it. She probably didn't feel like getting into
IIS since the course is about Frontpage
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in message
news:ec**************@TK2MSFTNGP03.phx.gbl...
John wrote:
>I've just started learning frontpage and I bought a tutorial DVD in
which the person that produced it made a simple access database and
then used Frontpage 2003 to import the database file and display the
content in a table on an asp page.

She was able to open the asp file using this syntax: c:/mysite/db.asp so
I tried to do the same and it didn't work for me.

So my question is if this is not how it's supposed to work how in
the world was she able to open it correctly without using
http://localhost/mysite/db.asp syntax

I would suspect there was some "movie magic". In order for code in an ASP
page to be executed, it needs to be requested via a web server.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Dec 24 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Eric Tuomikoski | last post by:
Im having trouble with server side ASP with Javascript. I have an ADO recordset that returns a list of Times example: 7:00AM. I then populate the option box with the results. (see below) The...
5
by: John Morgan | last post by:
I am using the following link to download a file of about 50k <a target= "_blank" href="http://www.bsecs.org.uk/ExecDocs/documentStore/elfridaWord.doc">open file</a> If I save the file to...
1
by: Jack | last post by:
Hi, I'm having a problem with web page navigation. Senario: I have one web page (webpage1.aspx) which hosts a control containing a datagrid with a list of charges. Underneath the datagrid...
0
by: melanieab | last post by:
Hi, I can't begin to understand this one. I have a form with a tabcontrol. When I first enter one of the pages (whether by tabbing or opening the form), I say to focus on a button. It does focus...
4
by: MrL8Knight | last post by:
Hello, I am trying to build a simple php form based shopping cart using a cookie with arrays. I need to use 1 cookie because each order will have over 20 items. With that said, I realize I need to...
11
by: emailus | last post by:
I am webmaster for the domain <www.alpha1.org.au>. Not being an expert in html, I take advantage of my domain Registrant's web building tool, 'Instant Website'. This tool is provided as part of...
0
by: sjickells | last post by:
Hi I am having a problem using asp:TextBox's in a transparent table. I have a background image on the page and a table in the middle of the page. I have set the background colour of the table...
1
by: KavithaSing | last post by:
Hi everyone, In our website we have an option ‘official login’ for users to login and send information through the site. We face the following problem while loggin in. We use the following...
1
by: past123in | last post by:
I am facing problem in the following code <a href="" onClick="openWindow('../NavigationalPages/Contact Us.html',435,820);" title="Contact us for any assistance" target="_blank"> When i click on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.