user2397282
user2397282

Reputation: 3818

ASP response.write not doing anything

I'm writing a very simple ASP program inside HTML to write "hello". However when I open it in internet Explorer on Windows 7 it doesn't show anything:

<!DOCTYPE HTML>
<html>
<body>
<%
response.write("hello")
%>
</body>
</html>

Upvotes: 0

Views: 148

Answers (1)

Darren Wainwright
Darren Wainwright

Reputation: 30727

Have you declared the use of ASP in your page?

At the very top you should put:

<%@ LANGUAGE="VBSCRIPT" %>

Also, do you have a server delivering the page, and are visiting a .asp extension?

Upvotes: 0

Related Questions