How to write text with response

1

I'm working with classic Asp and I can not write with Response.Write I show the code.

<%@ Language="javascript" %>
<html>
<body>
<form>

    <h3>Hello world!!! This is an ASP page.</h3>

    <% Response.Write("This content was generated ");%>
    <% Response.Write("as part of an execution block");%>
  </form>
</body>
</html>

On the other hand as I try that code can not be opened in the web browser opened in the IDE of Visual Basic 6.0, how can I test it in the web browser ?, I need to implement something. In the background I try to program vb6 with classic asp.

    
asked by Pedro Ávila 03.06.2017 в 17:06
source

1 answer

2

It is done in classic ASP in this way:

<%Response.Write "este es mi mensaje"%>

or you can contain the text within ( )

<%Response.Write("este es mi mensaje")%>
<html>
<body>
<form>

    <h3>Hello world!!! This is an ASP page.</h3>

    <% Response.Write "This content was generated "%>
    <% Response.Write "as part of an execution block"%>
  </form>
</body>
</html>

The file should obviously have the extension .asp and should be able to be identified as such by the IIS.

    
answered by 03.06.2017 / 20:23
source