|
-
Apr 23rd, 2004, 10:30 PM
#1
Simple asp page works locally but not from server
What am I missing here? Here is what I have. A very simple asp page (default.asp) that was created using Visual Interdev.
VB Code:
<%@ Language=VBScript %>
<!-- #INCLUDE FILE="style.asp" -->
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE>Test</TITLE>
</HEAD>
<BODY>
<%
Response.Write "<h1>"
Response.Write "ASP TEST"
Response.Write "</h1>"
%>
</BODY>
</HTML>
As you can see, basically I'm loading an include file (style.asp). This asp page loads a style sheet using this code.
VB Code:
<LINK REL="stylesheet" TYPE="text/css" HREF="defaultstyle.css">
Right now all I have in the style sheet is an image for the background and some formatting for the <h1> tag.
After that I'm simply trying to print a couple words.
This works fine locally, but if I try to move it to the server and test it, it just returns a blank page. It appears that my include file is not being read and anything in the script tags are being ignored.
-
Apr 24th, 2004, 07:36 AM
#2
For security and performance reason some server disables the use of Include file. So check if its the case. I tried to find the settings in IIS but couldnt find it. If its your own server then search google you will probably find it.
Hope this helps.
Danial
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Apr 24th, 2004, 08:30 AM
#3
I'm not sure that is it. I just signed up for web hosting and while that say they support asp, I'm not sure they signed me up for the right account.
If I place a response.redirect in my page somewhere it seems to be ignored. Request.Servervariables is returning nothing. Unless I'm missing something simple here, I think there is a problem on there end.
-
Apr 24th, 2004, 09:43 AM
#4
I'm assuming you'll be contacting them and asking them.
Meanwhile, try to upload a page named abc.php, and place this in there:
PHP Code:
<? phpinfo(); ?>
If it works, then there is a possibility that they've put you in PHP hosting, but doesn't exclude IIS completely because IIS can support PHP as well.
-
Apr 24th, 2004, 03:15 PM
#5
They just got back to me and they did put me on a linux server instead of a windows server. Things are better now.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|