Pregunta

I have the following VBS code in my webpage:

<body>

<%

Randomize
response.write(Rnd)

%>

</body>

But instead of outputting a random number, I get a webpage that says this:

<% Randomize response.write(Rnd) %>

Why won't my code execute?

Thank you.

¿Fue útil?

Solución

You need to make sure your webpage extension is managed by the ASP handler mapping. The steps to configure handler mappings depend on the version of IIS you are using.

See this page for information on configuring ASP under IIS 7 or 7.5.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top