0

I'm pretty new with ASP , but Im looking for an answer to this question and nothing found yet.

Im using an Apache server to upload my website on it. i write a very simple asp code like this:

<!DOCTYPE html>
<html>
<body>
<%
response.write("My first ASP script!")
%>
</body>
</html>

and save the file as file.asp & get this as result:

Is the problem Apache server or what? What Should I do?

eylay
  • 1,712
  • 4
  • 30
  • 54

2 Answers2

1

Use a IIS web server rather. Moreover is it asp.net or classic asp? By any means if it results in <%response.write("My first ASP script!")%> that means web server somehow processing it a normal HTML and not understand the script block <% %> which can only happen if it's processed by ASP.NET dll or ASP dll.

Rahul
  • 76,197
  • 13
  • 71
  • 125
1

You need to configure your server to process ASP pages. Start with this Running ASP.Net on a Linux based server

If you are using old legacy ASP (not ASP.NET) then you may have trouble this platform is not actively developed from more than 10 years now. It would be better to switch to more modern framework e.g. ASP.NET.

Community
  • 1
  • 1
csharpfolk
  • 4,124
  • 25
  • 31