User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 456,539 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,198 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 1535 | Replies: 3
Reply
Join Date: Jul 2005
Posts: 20
Reputation: davidianstyle is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
davidianstyle's Avatar
davidianstyle davidianstyle is offline Offline
Newbie Poster

Help Linux Chilisoft ASP

  #1  
Oct 13th, 2007
I just got ASP support enabled with my host and I'm trying to write my first active server page with a simple 'Hello World' test:

<!-- Test.asp -->

<html>
<body>
<% puts "Hello World!" %>
</body>
</html>

but instead of getting this output in the browser:

Hello World!

I get this:

<!-- Test.asp -->

<html>
<body>
<% puts "Hello World!" %>
</body>
</html>

Am I missing something? Is there setup that I have to do with my host prior to being able to use ASPs?
Last edited by davidianstyle : Oct 13th, 2007 at 12:03 pm.
.: davidianstyle :.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2005
Posts: 20
Reputation: davidianstyle is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
davidianstyle's Avatar
davidianstyle davidianstyle is offline Offline
Newbie Poster

Re: Linux Chilisoft ASP

  #2  
Oct 14th, 2007
*Update*

Turns out they hadn't switched me to a ASP server yet. Now that I'm on one, I tried creating a test page, test.asp:

<!-- test.asp -->

<%
#!/usr/bin/ruby
puts "Hello World!"
%>

but get this internal server error:

Error Type:
Sun ONE ASP VBScript compilation (0x800A0438)
Unexpected end of line inside a string
/~dchang/test.asp, line 4, column 18

I tried taking out the shebang

<!-- test.asp -->

<%
puts "Hello World!"
%>

but then get this error:

Error Type:
Sun ONE ASP VBScript runtime (0x800A01F4)
'puts' is undefined
/~dchang/test.asp, line 4

What am I doing wrong here?
.: davidianstyle :.
Reply With Quote  
Join Date: Sep 2007
Posts: 14
Reputation: kaykays is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
kaykays kaykays is offline Offline
Newbie Poster

Re: Linux Chilisoft ASP

  #3  
Oct 15th, 2007
In ASP, you would send output to browser this way:

<%
response.write("Hello World!")
%>

I suggest a quick run-through ASP tutorial at
http://www.w3schools.com/asp/
PHP | ASP
Reply With Quote  
Join Date: Sep 2007
Posts: 1,058
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Linux Chilisoft ASP

  #4  
Oct 22nd, 2007
or, if you wish to elminite response.write, put <%= "Hello World" %>

<%= is short for response.write.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP Forum

All times are GMT -4. The time now is 4:53 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC