473,386 Members | 2,114 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,386 software developers and data experts.

VBScript not recognised in Web page

I have developed a web site using asp pages that use both vbscript and
javascript. Run the site on my PC and everything is fine. Ftp to my
web hosting provider which hosts asp pages and look on my site only to
find my vbscript is not recognised. It is treated as pure text so you
see
<% =Request.Form("LoginId") %>. Also see all the vbscript when you
"View Source". I have e-mailed my host provider but thought this may
be quicker!
Any ideas if I have missed something obvious or is it down to the host
provider?
An example of my code:
<%@ Language=VBScript %>
<%
Option Explicit
%>
<html>
<head>
<meta NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<link rel="stylesheet" type="text/css" href="Includes/style.css">
</head>
<!--#include File="includes/cache.asp"-->
<!--#include File="Database.asp"-->

<body>
<table cellSpacing="1" cellPadding="1" border="0" align="center">
<tr>
<td width="10" align="left"><p align="left">&nbsp;
</td>
<td width="100" align="left"><p align="left"><strong>Enter User
Id</strong>
</td>

<td width="100" align="left"><p align="left"><input type="text"
id="LoginId" name="LoginId" value="<% =Request.Form("LoginId") %>">
</td>
</tr> </table>

</body>
</html>
Jul 19 '05 #1
8 2381
Dave Thomas wrote on 06 feb 2004 in
microsoft.public.inetserver.asp.general:
I have developed a web site using asp pages that use both vbscript and
javascript. Run the site on my PC and everything is fine. Ftp to my
web hosting provider which hosts asp pages and look on my site only to
find my vbscript is not recognised. It is treated as pure text so you
see
<% =Request.Form("LoginId") %>. Also see all the vbscript when you
"View Source". I have e-mailed my host provider but thought this may
be quicker!


Show us the URL, please.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2

"Dave Thomas" <da**********@hotmail.com> wrote in message
news:d6*************************@posting.google.co m...
I have developed a web site using asp pages that use both vbscript and
javascript. Run the site on my PC and everything is fine. Ftp to my
web hosting provider which hosts asp pages and look on my site only to
find my vbscript is not recognised. It is treated as pure text so you
see
<% =Request.Form("LoginId") %>. Also see all the vbscript when you
"View Source". I have e-mailed my host provider but thought this may
be quicker!
Any ideas if I have missed something obvious or is it down to the host
provider?
An example of my code:
<%@ Language=VBScript %>
<%
Option Explicit
%>
<html>
<head>
<meta NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<link rel="stylesheet" type="text/css" href="Includes/style.css">
</head>
<!--#include File="includes/cache.asp"-->
<!--#include File="Database.asp"-->

<body>
<table cellSpacing="1" cellPadding="1" border="0" align="center">
<tr>
<td width="10" align="left"><p align="left">&nbsp;
</td>
<td width="100" align="left"><p align="left"><strong>Enter User
Id</strong>
</td>

<td width="100" align="left"><p align="left"><input type="text"
id="LoginId" name="LoginId" value="<% =Request.Form("LoginId") %>">
</td>
</tr> </table>

</body>
</html>


Is your site hosted on a Windows server?

--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.free-helpdesk.com - Completely free help desk software !
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook
Jul 19 '05 #3

John,

Site is a Windows Server (oneandone).

Evertjan,

No URL to give as I deleted all my asp pages.

Thanks

Dave
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #4
"david Thomas" wrote:
: John,
:
: Site is a Windows Server (oneandone).
:
: Evertjan,
:
: No URL to give as I deleted all my asp pages.
:
: Thanks
:
: Dave

Dave...

Perhaps it is me but asking for help and then removing the test material is
non-productive. This is not a coding question. It is a server question.
If you do not provide a URL, then you're not helping us to help you.

If you're missing this:

<%@ LANGUAGE=VBScript %>

or

<%@ LANGUAGE=JScript %>

or

<%@ LANGUAGE=Javascript %>

or one or all of these:

<% %>

and your code displays, then you'll generally get an error unless you're
just missing <% %> in pairs. If all of your code is displaying it is
because the ASP processor is not processing the data. If your files end
with .asp, and the server supports ASP, then it should work. If not, then
ONLY your host can provide the answer as to why and possibly fix it.

If your host provides *nix and Windows servers, perhaps you are not on a
Windows server. Hosts you generally try to make their money on Linux
servers but also offer Windows servers, generally charge more to host your
site on Windows because they have to pay for the server software and
generally because they would rather host it on Linux and its an incentive to
you to do that, in their opinion.

If you really want help from someone here, removing the code and only
stating that as a response is not going to get you very far.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #5
Sounds like IIS is not picking up and processing pages with .asp extensions.

Have you made sure your page did indeed have an '.asp' extension?
Are the hosting referring to .aspx as opposed to .asp pages [eg. not
processing .asp]?

Please upload an ASP page with just a simple HTML content in it (no ASP
script etc.) and tell us if you get the formatted HTML or just the text
(should be HTML of course).
Now add a small <%%> section to do something like dimension an variable and
see if that works.

Chris.
"Dave Thomas" <da**********@hotmail.com> wrote in message
news:d6*************************@posting.google.co m...
I have developed a web site using asp pages that use both vbscript and
javascript. Run the site on my PC and everything is fine. Ftp to my
web hosting provider which hosts asp pages and look on my site only to
find my vbscript is not recognised. It is treated as pure text so you
see
<% =Request.Form("LoginId") %>. Also see all the vbscript when you
"View Source". I have e-mailed my host provider but thought this may
be quicker!
Any ideas if I have missed something obvious or is it down to the host
provider?
An example of my code:
<%@ Language=VBScript %>
<%
Option Explicit
%>
<html>
<head>
<meta NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<link rel="stylesheet" type="text/css" href="Includes/style.css">
</head>
<!--#include File="includes/cache.asp"-->
<!--#include File="Database.asp"-->

<body>
<table cellSpacing="1" cellPadding="1" border="0" align="center">
<tr>
<td width="10" align="left"><p align="left">&nbsp;
</td>
<td width="100" align="left"><p align="left"><strong>Enter User
Id</strong>
</td>

<td width="100" align="left"><p align="left"><input type="text"
id="LoginId" name="LoginId" value="<% =Request.Form("LoginId") %>">
</td>
</tr> </table>

</body>
</html>
Jul 19 '05 #6

Roland,

Thanks for that. I'll ftp it again this evening. Reason I took it away
is it looked terrible with the vbscript being displayed!
I have included all what you suggested and have phoned oneandone this
afternoon and got the reply "We don't support vbscript Please e-mail
your question to us."!
Url is www.thepredictions.co.uk. If you view the source you will see the
vbscript.
One suggestion I have had from a colleague is to put <script
LANGUAGE="vbscript"> around my vbscript instead of <% and %> but I don't
hold too much hope in that.

All the best

Dave
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #7
From the 1 & 1 website it's probable that you have the Linux hosting as
opposed to the MS (IIS) hosting?

Chris.

"david Thomas" <da**********@hotmail.com> wrote in message
news:eI**************@TK2MSFTNGP12.phx.gbl...

Roland,

Thanks for that. I'll ftp it again this evening. Reason I took it away
is it looked terrible with the vbscript being displayed!
I have included all what you suggested and have phoned oneandone this
afternoon and got the reply "We don't support vbscript Please e-mail
your question to us."!
Url is www.thepredictions.co.uk. If you view the source you will see the
vbscript.
One suggestion I have had from a colleague is to put <script
LANGUAGE="vbscript"> around my vbscript instead of <% and %> but I don't
hold too much hope in that.

All the best

Dave
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #8
"david Thomas" wrote
: Roland,
:
: Thanks for that. I'll ftp it again this evening. Reason I took it away
: is it looked terrible with the vbscript being displayed!
: I have included all what you suggested and have phoned oneandone this
: afternoon and got the reply "We don't support vbscript Please e-mail
: your question to us."!
: Url is www.thepredictions.co.uk. If you view the source you will see the
: vbscript.
: One suggestion I have had from a colleague is to put <script
: LANGUAGE="vbscript"> around my vbscript instead of <% and %> but I don't
: hold too much hope in that.

Dave....

Your right. That won't help. What you need is a Windows server. You
obviously have the Linux hosting and not the Windows hosting. Checking
www.oneandone.co.uk, they offer both.

This is what is running with the link you provided.

HTTP/1.1 403
Date: Fri, 06 Feb 2004 20:00:19 GMT
Server: Apache/1.3.29 (Unix)
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html

So, your host was correct, they don't support vbscript, ON THAT SERVER,
which is what they should have said and then offered to move you to a
Windows server but apparently you were talking to 1st level support which is
an oxymoron and the person you were talking is probably named Ox E. Moron.
*snicker*

One other thing I noticed: Hosts usually have a pretty quick server because
they do not host others on their main server so it always appears to
response fast when your shopping for a web server. Shared hosting, on a lot
of hosts, is somewhat slow because their site/server ratio is very high.
This main site was slow for me, so I ran a tracert to see where the problem
was.

It jumped from 50ms to 113ms from NY to London. The start of Sprint was
112-116ms and by the time it left Sprint, it was 131ms, probably because it
routed through Paris and some other part of France. When it reached
Schlund.net, I assume in Germany, it was 135ms and pretty much stayed at
135ms to oneandone.co.uk.

Your time may vary but with the 135ms response and the time it took to
render the whole page at their main site, either their code is very sloppy
or the server is getting hit pretty hard. My point is, if the main site is
generally the best response, I'd consider looking around.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #9

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

Similar topics

2
by: Frank | last post by:
When I used IE 6.0 to view the ASP page on Window 2000 server PC, I encountered the error message: "Expected end of statement". The ASP page code is as:...
3
by: pjglick | last post by:
I am sorry if this sounds hokey but I am a newbie to ASP. I have a VBScript running in an ASP page. The script makes a connection to Oracle via and ADODB connection. When my clients connect...
8
by: Ess355 | last post by:
Hi, In the debugger at run time, characters like é are not recognised by their normal ASCII number, but something like -8615722... . I've seen this number before, it means "rubbish" right? So...
2
by: Frank | last post by:
Can I do this? I add a session var in C# and ultimatly want to pass it into a vbscript client side activeX control. This is what I have so far but get " Object Required:'name2' " error. Can...
6
by: Jase | last post by:
Hi, I have two servers, both running windows 2003 and both containing the exact same properties for IIS. I have a set of asp intranet pages that are located inside the c:\inetpub\wwwroot\test...
4
by: client site dll in vbscript | last post by:
Hi i have one dll on client site,i want to use it in aspx page, on clinet site Is it possible or not .Please tell me the solution Please email me at indipren@hotmail.com Regarda Indi
10
by: Shadow Lynx | last post by:
That subject packs a whallop, so let me explain in better detail what's happening and how it relates to ASPX pages... In a nutshell, if the first <script /on a page is of type "text/vbscript",...
2
by: Beemer Biker | last post by:
I put together a few lines of vbscript so I could dump the contents of a string to my C drive. It worked fine in a small test.htm where I put the vbscript at the top of the file. It failed to...
2
by: tunk | last post by:
I dont know where to start my question so let me tell you my story :) The ASP that cause me trouble is running on IIS that set ASP default language to JScript instead of VBScript. This ASP page...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.