•
•
•
•
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
![]() |
| |
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:
but instead of getting this output in the browser:
I get this:
Am I missing something? Is there setup that I have to do with my host prior to being able to use ASPs?
<!-- 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 :.
*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:
but get this internal server error:
I tried taking out the shebang
but then get this error:
What am I doing wrong here?
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 :.
•
•
Join Date: Sep 2007
Posts: 14
Reputation:
Rep Power: 2
Solved Threads: 0
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/
<%
response.write("Hello World!")
%>
I suggest a quick run-through ASP tutorial at
http://www.w3schools.com/asp/
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
ajax apple asp bbc cellphone computer core debian dell desktop developer development enterprise fedora games gentoo gpl hardware ibm install kernel laptop legacy linux microsoft mobile news novell office open open source openoffice operating os project red hat security server software source sun system ubuntu unix users vista web wesnoth windows xml
- What language do you use? (Web Developers' Lounge)
- Can I use a template html page within another html page (Site Layout and Usability)
- re:macs orvista or linux? (Web Developers' Lounge)
- Anyone ever switch from Linux to .NET Programming in their career? (Software Developers' Lounge)
- Web Controls (ASP.NET)
- PHP vs ASP... the big ShOwdOwN (IT Technologies and Trends)
- Sr. Software Engineer needed (Web Development Job Offers)
- ASP File Publish in PHP server (ASP)
- iis 5 through linksys wireless 4prt switch firewal (Windows NT / 2000 / XP / 2003)
Other Threads in the ASP Forum
- Previous Thread: Dynamic Page?
- Next Thread: Website problem



Hybrid Mode